Menu
Who Do Is
  • Home
  • What
  • How
  • Is
  • Can
  • Are
  • Does
  • Do
  • Why
  • Who
  • Where
  • Which
  • Which
  • Should
  • Will
  • When
  • What’s
  • Did
Who Do Is

[ANSWERED] android – How to place admob ads to application without having activity_main.xml file

Posted on November 14, 2022

Solution 1 :

Please don’t get confuse with library and actual applications.

https://github.com/jahirfiquitiva/Frames is a library that you can include into your project/app using gradle –

dependencies {
    implementation('dev.jahir:Frames:3.3.0'@aar) {
        transitive = true
    }
}

After importing you can create your application and then you can put admod in your app’s main layout file.

Edit (Missing Layout Folder)

If the folder isn’t there or wasn’t added automatically when you created the project, you need to add it to your project in the following way:

  1. Right-click on the res folder
  2. Select New -> Android Resource Directory from the menu that opens
  3. Select Resource type to be layout from the popup that opens
  4. Click OK

After creating the res folder you can add layout folder as well

  1. Right-click on the layout folder
  2. Select New -> Layout Resource File from the menu that opens
  3. Enter your new file name
  4. Click OK

Now you have XML file you can use into you activity/fragment.
Please check this and this for more info.

Happy Coding !

Problem :

enter image description hereI’m beginner to android studio . I downloaded code from this link :- https://github.com/jahirfiquitiva/Frames . In this code there is no activity_main.xml file . I want to place admob ads to this application . Can anyone help me to place admob ads to this “https://github.com/jahirfiquitiva/Frames” frames application .

Thanks in advance .

Comments

Comment posted by Teja Pamanji

I completed the process as you said before only . I can’t find layout folder in application. Please help me to place ads.

Comment posted by i.stack.imgur.com/3Iogr.png

i.stack.imgur.com/3Iogr.png

READ  [ANSWERED] android - tow button_click_event crushing together
Powered by Inline Related Posts

Recent Posts

  • How can I play with my cat without toys?
  • What is a bag pipe band called?
  • Are Honda Civics actually fast?
  • Are Yankee candles toxic?
  • How do I pair my Michael Kors smartwatch with my Android?

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuántas
  • ¿Cuánto
  • ¿Que
  • ¿Quién
  • 90” and 108” so you may have to round up to the nearest size.
  • and delete any Spotify folders from it. Once this is done
  • Android
  • Are
  • At
  • Bei
  • blink
  • C'est
  • Can
  • carbs
  • Comment
  • Did
  • Do
  • Does
  • During
  • For
  • Has
  • How
  • In
  • Is
  • Ist
  • Kann
  • Können
  • nouveau
  • On
  • or 108 inches.2020-08-03
  • Où
  • owning
  • Pourquoi
  • Puis-je
  • Quand
  • Quante
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • spiritual
  • tap the downward-facing arrow on the top left. A downward-facing arrow will appear underneath each song in the album; they'll turn green as the download completes.2020-07-28
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welcher
  • Welches
  • Welke
  • Wer
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Whose
  • Why
  • Wie
  • Will
  • Wo
  • Woher
  • you will receive two curtains each with the same measurements of width 66"" (168cm) x drop 54""(137cm).
  • you'll see a green downward-facing arrow next to each song.2021-02-26
©2023 Who Do Is | Powered by SuperbThemes & WordPress