[android-developers] Installing apk package from my application

2011-05-31 Thread maha rm
Hi, I'm trying to write an application which will install the apk from a specified location. The code I've added is public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); File apkFile = new File(/data/install_flashplayer.apk);

Re: [android-developers] Installing apk package from my application

2011-05-31 Thread TreKing
On Tue, May 31, 2011 at 4:30 AM, maha rm maha2...@gmail.com wrote: Can anyone help me how to get notified that Done button is pressed and how to close the application once it is clicked? You probably can't get notified of that button click, but there is a broadcast when a package is installed

Re: [android-developers] Installing apk package from my application

2011-05-31 Thread Dianne Hackborn
Note that installing from the SD card is fundamentally dangerous because another app can replace that file with their own and cause the user to install something different than you intend. On Tue, May 31, 2011 at 2:30 AM, maha rm maha2...@gmail.com wrote: Hi, I'm trying to write an