Im trying to add admob ads to an exisiting application on the play store which is written in html5 and javascript and made using cordova but I'm having trouble initializing and showing the ads... I believe I narrowed the problem down to my MainActivity.java file but I'm not sure.. I would just like to display a banner ad from admob on my application using either cordova or android studio.. Thank you..
I'm using an android device and cordova and as of now when I do the command cordova run android, it looks like it deploys but crashes.
I'm not very familar with java..
can someone more expierenced in java tell me if my code is atleast correct?
I debugged an app on android studio to test it, I entered some values inside the app.
But when I debugged it again I found that those values still exist in the app.
I cleaned and build again but did not work.
Can anyone help please? and thank you in advace :)
On the device, close the app using task manager before running it again.
Alternatively, uninstall and reinstall it.
Please, anytime I create a project with CardViews, my android emulator can't successfully run the app. Please help me, it's been happening for 2 days now. I followed this tutorial to learn how to use card views, which returned no errors but my emulator can't run the app successfully https://www.androidhive.info/2016/05/android-working-with-card-view-and-recycler-view/
I am trying build an application which shows maps in my application. Everything works fine once I open the in built maps app and go back to my app else it does not display the maps just the logo at the bottom.
Steps I follow.
Generate signed APK install it on device. launch app, no maps.
minimize then launch in built maps and minimize (close it does not matter)
maximize my app and it works. I can even see calls from the API manager in console.developers.google.com
How do I figure out what the problem is? please help with the issue.
EDIT 1:
If I create a new sample application and use the default map activity in a sample appliation and paste my key and fire it up also the same behavior. I have changed nothing in the application except for pasting the key.
Device is moto g3 running lollipop
Turns out every application has the same problem .... Uninstalled UBER and reinstalled it, had to open the maps and then voila maps on UBER works... Guess something to do with lollipop and Motorola... Tested it on other phones and it works fine. Check if any other application which uses maps also acts up like this.
i just made a simple android app with 6 buttons. Each button on click opens a new activity. I installed the app on my device via USB cable from Android studio and it runs fine on my device.
But here rises the problem, when I installed the app on my friends device after sharing via SHAREit the app installed on his device but did not run.
What could be the reason for this? And how can I solve this?
Please help. Thank you
You dont need to create a signed APK if you only want to test it on your friends device and not to run it in a production progress. Android Studio creates an apk automatically which is signed for 365 days. Just open your project in your explorer and go to [ProjectName]\app\build\outputs\apk and select the app-debug.apk.
Make sure instance run in android studio is disabled.
Because if Instance run is enabled when you debug the app on real device through usb debugging it will work properly . but if u share the apk from your device to other device it will not work. It might show an error . App Name Unfortunately Stoped.
If Instance run is enable. you must disable the instance run first. If you don't know how to disable it just google it. After disable the instance run, you must clean project and Build new apk. It will work on all the other devices without generating signed apk.
Hope it may help you.
While building the app what MinSDK version you defined? Do both devices satisfy that criteria?
If you suspect that installing through sharing app is a problem then try attaching your friend device to your laptop and try running the app.
Or
Send the apk through email and let your friend download the apk and install the apk through apkInstaller app.
I have a solution for you:
Install Bluestacks Android Emulator.
Go to Tools, Android and click on Enable Adb Integration to disable it.
In android studios one Android Device for Bluestacks will appear while installation.
Share the installed app through shareit.
It will work on other device.
Hope it helps
Here is the link, where you will find your solution. https://developer.android.com/studio/publish/ check the point 'publish your app', In left column.
Simply follow these steps:
Double click on shift and search for build apk and click on it.
Locate that apk file.
Copy to your physical device or your friend's device... whatever, it will work.