Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Thursday, March 15, 2012

Android PackageUpdater Sample

This android sample app implements an update strategy for some files of your project.
This sample is usefull if you want to update some files in your apps without uploading a new app version on the market.



The PackageUpdater class download a version file which contains only the latest version number.
If the local version is older then the remote version, the PackageUpdater try to download the new package file for the latest version.
The package file is a compressed (zip) files which contains all the files that need to be updated.
If this download succeed, then the package will be decompressed and checked for the required files. Then it can be copied to the device package files location.


Code


Notes
  • read risk disclaimer
  • excuse my bad english

Thursday, February 23, 2012

Android Persistent Home App Sample

This is an Andorid sample application which persist on the home page.



Home, Back, Call, Power button are disabled.
It is a part of a presentation tablet.
User can exit the application only by typing a password.
The user must select the default home manager when it finish this application.


Code


Notes
  • read risk disclaimer
  • excuse my bad english

Wednesday, February 15, 2012

Android Drag & Drop Menu Sample

This project is an example I've built to explore custom View in Android.



The menu class extends View class and override the onDraw method to draw the canvas of the pointer, the menu background and the menu items.
The pointer, and the items are also class.
The onTouchEvent method controls the display touch interaction, setting the X/Y value of each element drawn in the onDraw function.


Code


Notes
  • read risk disclaimer
  • excuse my bad english