Reputation: 2553
I have started testing my app in my Samsung Note 2 (real device). In installed it using this guide. However I have few questions if someone please help me:
1) Once I run my app in the device, does it install anything in my mobile (i have database use as well)? If so, what is the proper way to close the connection so that all installed things get deleted automatically?
2) If I change my code and run it again to check, what happens to the previous installation? Does it override or so?
3) When I use AVD with 5.7 inch screen, it shows menu button perfectly. But in my Note II, 3 menu button (out of 5) are shown in the bar, but rest are missing though I set android:showAsAction="ifRoom" for all of them.
Thanks,
Upvotes: 0
Views: 147
Reputation: 2062
1) Once I run my app in the device, does it install anything in my mobile (i have database use as well)? If so, what is the proper way to close the connection so that all installed things get deleted automatically? Answer: When u install your app on device, it will get create a database, sharedperferences and other files that u have created in your application. but to delete the databases you have manually install the app or clear the data from Setting --> app.
2) If I change my code and run it again to check, what happens to the previous installation? Does it override or so? Answer : The newer version of the app will be overridden by older one, and you can see the new changes from the app.
3) When I use AVD with 5.7 inch screen, it shows menu button perfectly. But in my Note II, 3 menu button (out of 5) are shown in the bar, but rest are missing though I set android:showAsAction="ifRoom" for all of them. Answer: When u run the app on actual device, os will detect what ever the available space to display the menu items.. so it is not your hand, but you can decide which item you want first.
Hope this help you.. Enjoy..!!!!
Upvotes: 1
Reputation: 8587
1) Yes, it does perform a "normal" installation of your app. There is no automatic cleanup, so you have to remove any installed packages manually.
2) It will install the changed package to your device, any previous installation of your package will be gone. It will keep any application private data though.
3) Probably there is not enough room to display all of them, you did request "ifRoom" so it will only place them there if it fits.
Upvotes: 1
Reputation: 10368
1) installed in /data/com.yourapp.pkgname/ , no auto delete, you should uninstall it manually
2) Old one will be overrided
3) It might because your AVD is m-dpi/h-dpi but your phone is h-dpi/x-hdpi
Upvotes: 1