I just added admob ads to my app "Banner ads"
and i notice its using more than 30MG i already searched for solution her in stack-overflow and other web sites and i didn't find any useful solution i already using the last SDK version and here is the version of ads library
compile 'com.google.android.gms:play-services-ads:11.8.0'
compile 'com.google.firebase:firebase-ads:11.8.0'
by the way i am using Kotlin .
it's not duplicated because i already take look of the most of question and answers here and no one worked for me
#NikolayElenkov Answered this question relatively well in this post.
He goes on to basically say that it's due to how complex the object is. Additionally, due to the fact that ads come in various types (HTML, Videos, Images, etc.), they will vary in the amount of memory they use. Furthermore, due to it being a closed source SDK provided by Google, there is really nothing you can do about it unless you wanted to create your own ad hosting SDK.
Related
This question already has answers here:
Is there a way to get the source code from an APK file?
(32 answers)
Closed 6 years ago.
My friend and I are building an android app for an FBLA State Leadership Conference Competition.
We used MockingBot to create a "blueprint" for our app, and planned on using Android Studio to replicate the design & make the app functional.
We downloaded the Android APK file from MockingBot. Instead of re-making it on Android Studio, is there a way that we can extract the Java & XML Files from the APK, and put them into Android Studio to complete most of the XML work, then tweak it from there?
THANKS
You'd normally be able to do something like this with a number of tools. apktool and dex2jar are good, jadx is a great all in one solution too. In this case, it looks like MockingBot uses Cordova to generate your app, meaning there is almost no real Java/Android code to decompile. It is essentially a web wrapper so you can build cross platform apps.
jadx will still allow you to extract everything from the application, but it might not be easy to reconstruct. I would suggest checking out Apache Cordova, or another project that implements it, such as Ionic if you intend on going this route. If you do, I also suggest using an IDE better for web developing. You can still use Android Studio, but vanilla Intellij might make your life a little easier.
Assuming MockingBot didn't use any Cordova plugins, you can simply unzip the APK and use what falls under the assets/www directory to start customizing your app using Cordova.
Edit: Because I can't comment without at least 50 points... This actually isn't a duplicate as was already suggested. The question might seem similar, but web wrapped applications are very different from those built using Java and much easier to decompile/reverse. The answer linked in your comments will very likely not help you.
I'd like to have advertisements in an android App I've written and built using PGS4A. I've done my research and all, but there doesn't seem to be any online resources that explains how to do that just yet. I haven't much knowledge on Java either, which is clearly why I've written that in Python. Has anyone found a way to achieve that? If not, how difficult would it be to convert the project files into an Android Studio (or even an Eclipse) project? (so then one can just implement the ads following the Java Admob documentation found everywhere)
Thank you in advance.
To access Java already implemented version you can use pyjnius. I tried to use it for something else and I didn't succeed. Well, I yielded pretty quickly because it wasn't necessary for my project.
Otherwise, I am afraid, you will have to implement it yourself from scratch.
I never heard about a finished solution for your problem.
If you succeeded to use PGU, it wouldn't be so hard.
If not, well, I wish you luck, and put your solution online for others.
There is an Eclipse plug-in for Python. I think that Android studio does not support PGS4A. Never needed it. Console is the queen.
I am using Google AdMob for showing Ads in an application of mine. Everything is working fine, unless that the number of Threads add up over time. My application will get more and more DaemonThreads named "SCHTimer" that are created internally by AdMob.
It is the same problem as this guy has: https://groups.google.com/forum/#!msg/google-admob-ads-sdk/EvfESpBSjbY/DEyCfxP4hxcJ
Unfortunately, there is no answer to it on the forum. My AdMob initializion/destroying looks very similar. After debugging with several breakpoints, I can verify that the destroy part gets called.
Also I couldn't find any indication of leaking objects in the HPROF profile.
Therefore, I am running out of ideas, what else to look for. Did anyone else experience this problem? (How) Did you solve it?
I get this problem:
The type java.awt.image.RenderedImage cannot be resolved. It is indirectly referenced from required .class files
I know it means that there is no reference to it in my build-path and I heard that java.awt.image is not in the Android SDK. So I am trying to figure out how to work around it.
This is my code:
Bitmap image = (Bitmap)data.getExtras().get("data");
String text = new OCR().recognizeEverything(image);
Obviously you can see that I am trying to use a OCR library. If it is impossible to get around this then can anyone show me a reference to maybe a "how to make an OCR program" or something along those lines. I pretty much have NO experience with images.
Thanks!
If your OCR library uses java.awt classes internally, you can't use it on Android. Porting it to use Android classes instead is likely to be non-trivial, especially if you have no experience. This library is being actively developed, and is reported to work on Android (I haven't personally used it). You might want to give it a try. Also, searching helps too: this is a fairly frequent question on SO, you might get some other ideas from previous answers.
We are developing pure java OCR library here:
http://sourceforge.net/projects/javaocr/
At the moment, there is some image processing stuff, invariant moment based recognition
and high performance binarisation. There are also demos schowcasing complete roundtrip for android ( gathering samples, performing recognizer training, performing reconigtion )
I already published 2 appluications based on it:
http://www.pribluda.de/android/charger/
http://www.pribluda.de/android/ocrcall/
It seems as if every Android application I really want to make is impossible to make with the current SDK. It doesn't give me access to certain things I would like to work with. This is an example of one of these things.
I know it is possible since I've seen apps in the market that do things that the SDK cannot do. My basic question is can someone point me in the direction of how to create such an application. I've searched around, but all of the links I've found are for developing with the SDK. A simple link to a tutorial that can show me how to access Android elements that aren't available through the SDK would be great.
Thanks.
You will not find a tutorial on it because the NDK is in flux..
What I have found is ..
One of the Eclipse CDT has blog posts on how to setup NDK projects in Eclipse.
The people who know Android Embedded C and frameworks are usually on certain IRc channel.
Plenty of code documentation..
Google search for android jni wrapper blog posts.
But keep this in mind several areas require state management as hey interact with hardware buffers in a certain way..ie audio..video..etc.