Android device update for G1 - java

I am using android G1 phone and now I have upgraded my SDK to 1.5 and I want to run my application on a physical device, but when I connect my phone to PC I'm able to install my app only when I'm selecting 1.1 SDK but not when selected 1.5 .
So is there any updates required for the device so I can proceed with 1.5 SDK? Also, if possible can you provide with a proper link? That would be great.

An update for your phone will be pushed OTA by your operator, just wait. If it is a dev phone look at HTC pages.

If you're in the US or UK you can find instructions on how to force-upgrade here. I did it on mine and it went fine.

Related

How can an app find out if the user has updated the OS in their device

I am trying to build an application in which I need to find out whether the user has updated their Android phone's OS or not.
For example if user's phone has android version 9 and his phone supports android version 11 but he has not updated it then I have to send a notification on his phone that please update your device.
But if his phone doesn't support android version 11 or other new versions then we have to check that till which version his device can support.
Please advise me on how I can do that.
TL;DR - It will be a lot of work. This is not something that the standard Android APIs support.
Here are a couple of approaches that may work
Approach #1
You will need to do is build and maintain a central database of all makes and models of Android phones and the latest available OS version for each one.
When your app needs to check if the OS is up to date it does the following:
Lookup the device's make and model, and its OS version. This Q&A explains how to get the current OS version:
How can I check the system version of Android?
Query the central database (running on your infrastructure) to find out what the latest OS version for the device is.
If the user's device is out of date, send the user the notification.
Downside: you will have to assemble the database of devices and OS versions, and keep it up to date. And you will need to pay for the infrastructure that hosts the database and responds to queries.
Approach #2
For each Android device manufacturer, research how their device firmware works out if there is an update available. Apparently, this functionality is not standardized. There are no standard Android APIs that will tell you if the user's device has an OS update available.
Downside: you have a lot of research and (possibly) implementation work to do to support a range of devices. It will quite possibly entail getting hold of a lot of different types of devices for testing. (You are unlikely to be able to develop and test on an emulator.

ERROR: "The selected device is incompatible" in Android HTC device

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.

How to install Google Play Services on 6.0 Genymotion device? [duplicate]

This question already has answers here:
How to install Google Play Services in a Genymotion VM (with no drag and drop support)?
(17 answers)
Closed 5 years ago.
How to install Google Play Services on 6.0 Genymotion device?
For other versions this answer works, but not for 6.0
EDIT:
I've tried to use 6.0 Gapps from this source, but all of them failed to flash the emulator.
Ivan,
I found the solution here and followed the steps from the user #sinistance and it worked for me using the Nexus 5X Preview API 23.
To simplify this is the answer:
what image did you use? i'm using the preview nexus 5x image. here is the steps:
flash Genymotion-ARM-Translation_v1.1.zip then restart.
flash gapps-L-4-21-15.zip.
sign in into your google account.
flash benzo-gapps-M-20151011-signed-chroma-r3.zip then restart.
that's all
You can find all the files in the link above!
I hope it works for you!
Regards
Since Genymotion 2.7.2 and above follow these steps.
https://www.genymotion.com/faq/#google-play-services
Visit opengapps.org
Select x86 as platform
Choose the Android version corresponding to your virtual device
Select nano as variant
Drag & Drop the zip installer in new Genymotion virtual device
Follow the pop-up instructions
On Samsung Galaxy S6 - 6.0.0 - 1440x2560:
Flash Genymotion-ARM-Translation_v1.1
Flash open_gapps-x86-6.0-pico-20160524.zip
Please give it a try.
If Google Play Services on Android 6.0 crash everytime, you can try do the same things in this sequence. Maybe it will work.
Here is what I did:
Install a latest Genymotion (version 2.6.0 in my case). Make sure
the previous old (preview) Android 6.0 images are removed(Genymotion
-> Settings -> Misc -> Clear cache).
Add a new virtualdevice, select Google Nexus 5X and Android 6.0
image. It should download a new image from Genymotion website.Start
created Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 virtual device.
Flash Genymotion-ARM-Translation_v1.1.zip (drag&drop the zip file to
virtual device window) and then restart the virtual device.
Flash gapps-L-4-21-15.zip and restart the virtual device again. Now
add Google account in the virtual device via Settings -> Accounts ->
Add account. Do not start Google Play! Ignore any crashes in sign in
process.
Flash benzo-gapps-M-20151011-signed-chroma-r3.zip and restart the
virtual device. Open Google Play in virtual device,update all
installed applications.
Start Google Now with long touch on home button to force dialog with
request to update Google Play Services. Update Google Play Services.
Now the device is prepared with working Google Play and Google Play
Services.
Genymotion android 6.0 with Google play service
For me it worked just to install a package (in my case the full) for x86 and Android Version 6.0 from http://opengapps.org/ by dragging the downloaded zip-file to the machine. A restart was suggested and done
Maybe some Apps won't work but you don't have to do anything else.
I hope I could help you with that answer.
For enable Google play service in genymotion marshmallow version
Download and install Install ARM Translation from here : http://filetrip.net/dl?4SUOrdcMRv
After installation reboot your device (Just close and restart )
After restart Download the gapps/5.1/gapps-L-4-21-15.zip flash from :
http://mirror31.downloadandroidrom.com/download/gapps/5.1/gapps-L-4-21-15.zip?token=432826691
After installation . reboot the device and update yourgoogle play service and google.
For enable Google play service in genymotion, as per answer you mentioned in your question you need ARM and Gapps.
So, Download gapps for Android Marshmallow from here and follow this answer.

Galaxy Note 4 Emulator

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.

Eclipse wont read my device

I was using my phone earlier today for testing apps. I plugged it in later today to test another and eclipse wouldn't recognize it. I looked everywhere. I'm not sure why it wont work. Im using a Samsung Galaxy S3 device. All of the drives properly installed and updated. And debuggin is on.
This is not a problem with eclipse, devices get detected by adb(Android Debug Bridge that comes with the SDK) and the underlying driver(Install Samsung Kies to get the correct driver for S3), Ensure you have the correct drivers installed. Then it will detect successfully. Ensure USB debugging connected in Settings -> Developer Options
I have only used my phone to test for one day. And all day i had my phone connected cause i was teathering. I turned my teather back on and viola, problem solved.
Install google usb driver throu android sdk manager

Categories