I am building an app for college project, when I tested it on Virtual Device- Pixel 2 API 30 Android 11, it is running smoothly, but when I am testing it on my physical device which is Redmi Note 3 running on Android 6 (Marshmallow) it is sticking.
Reason is android version. Try creating a virutal system which has android 6 marshmallow, it will behave same.
Related
I was hoping someone can put me on a right track with my issue.
I developed this android app with target sdk 30 and min sdk 16. During the development I was using Android 9 (sdk 28) for test purposes and everything worked well. This app is meant to be used internally in my father's small business, so I didn't put this up on Play Store. I built .apk file instead and installed on my father's phone with Android 10 (sdk 29) and tried to run. It turned out that the app crashes without any error. The phone's screen just flashes for 0.1 sec and the app crashes. Then I tried to install the app on another (older) phone with Android 8 (sdk 27) but the app crashes as well.
My another guess was phone language - as I was testing the app on phone with English set and my father's phone had set Polish as default, but on testing phone after the language change the app still works and on my father's phone after the language change to English still crashes.
Does anyone have any idea what the issue can be? Has anybody run into this issue before?
Any suggestions would be much appreciated.
First error is working on min sdk 16, is just old.
The most common crashes are from permissions errors. Big names in the industry like Samsung have their on rules an limits.
Then you should debug your code on MainActivity with your dads phone to identify when is crashing.
Developed a big Android app and tested on emulators all versions from 4.1.1 to 10 and on real devices original brands also all versions from 4.1.1 to 9.0 no bugs appeared. However when uploaded to the store many bugs appeared. For example the app is English / Arabic, on real test devices with android studio worked fine but on the store below Android 9.0 did not switch to Arabic. Another bugs like Notification on Android 5.1.1 showed crash.
My question in general, what makes Android apps works fine on real devices connected to Android Studio while the same real devices shows bugs when same app installed from the play store, what does google do on the code to do this, what else can I do instead of uploading beta versions to final test.
For the multilanguage add this below code in your build.gradle file.
android{
bundle {
language {
enableSplit = false
}
}
}
I am absolutly new in Android development (I am a Java EE developer) and this is the first time that I use Android Studio.
So I am finding some difficulties to run my HelloWorld application on my HTC One phone.
I have installed the driver of my phone on my Windows 8.1 system (it should be ok because I can correctly see my phone into the Windows Device Manager).
So I open my app into Android Studio and then click on the start button and then I can choose perform the application on my phone but then I obtain the following error message:
The selected device is incompatible
Here a screenshot of the problem:
Why? What is the problem? How is it possibile that my Htc One is incompatible with Android Studio? How can I fix this issue?
Another problem is that if I chose Launch Emulator instead my phisical phone I have not a virtual device. Is is something that have I to instal separatly or what?
Sometimes reasons may be your device is not recognized by Android Studio.
For this to happen do the following:
Settings -> Developer Options -> Revoke USB debugging authorizations.
Select OK and disconnect your phone. Reconnect it, run the app and you should get a popup on your phone asking for authorization with title "Allow this Device..." . Tick the checkbox for future prefrence. and Select Ok.
You have created the app with min SDK version 15 (as mentioned in the snapshot) but your device is working on a lower version of android. You can change the min SDK version from project properties or create a new application project with lower or equal version of android SDK than the android version installed on your device.
The version of SDK, you select, will work on any device having same or higher version of android OS installed.
Gingerbread (version 10) will work on ~90% of the devices.
It seems the minSdkVersion defined in the grade file of your project is higher than the api version of your phone. So you should change minSdkVersion.You can only start a virtual device, if you have previously downloaded a system image and configured the device with AVD Manager.
I want to test my mobile application on Galaxy Note 4.
Are there any emulators available, that I can install on my windows machine and test the application. Is there any way I can test the application without purchasing the physical device.
Appreciate your response.
You can run Android emulator version 4.4 on-demand on AWS with Ravello and run your particular device and run the tests. It will probably cost you very less.
http://www.ravellosystems.com/blog/android-emulator-on-amazon-ec2-and-google-cloud/
Let me know if you have questions or need more information.
Manisha Arora
From what I've read, 6.0 and 6.0.1 are both considered API 23 and Android N is considered API 24. When I create an Android Virtual Device with API 23, the AVD shows OS Version 6.0
Given this information, I do not think there is any way to run an emulator that has Android 6.0.1 installed.
I've been working on my Android app for a while, initially targeting version 2.1 (API level 7). I've now changed the min/target SDK to 2.2 (API level 8) in order to support Google Cloud Messaging.
Since this change I've noticed the time to build and run the project in Eclipse has greatly increased.
I don't use the emulator (too slow anyway) and run direct to my phone, and it takes upto 20 seconds to build/run when I just make a minor change in one .java file. It was much quicker when targeting 2.1.
Is there anything I can tweak in Eclipse to improve things?
I'm using Eclipse Juno 4.2.0. My PC is Windows 7, Intel Core2 Duo CPU #1.4Ghz, 5GB RAM.
Please make sure that eclipse.ini doesn't contains a similar line:
CompileThreshold=5
If it does, just remove any CompileThreshold specifications from your config.