class A {
oncreate()
{
setContentView(R.layout.main);
................
..................
installApk("myapk.apk")
}
}
.......
............
private void InstallApk(String myapk) throws NameNotFoundException {
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file:///sdcard/" +
myapk),
"application/vnd.android.package-archive");
startActivityForResult(intent,Intent.FLAG_ACTIVITY_NO_ANIMATION);
}
}
............
......
}
On May 12, 9:24 am, Justin Anderson <[email protected]> wrote:
> *> some suggestion ? solutions*
> Here's a suggestion... provide enough information for us to help you! Like,
> maybe, some sample code that isn't working...
>
> ----------------------------------------------------------------------
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> ----------------------------------------------------------------------
>
>
>
> On Tue, May 11, 2010 at 8:52 AM, Issamux <[email protected]> wrote:
> > hi,Androiderz
>
> > i use startActivity(myintent) or even an startActivityForResult to
> > call an other activity (PackageInstaller ) , when it finished ... it
> > disable setOnClickListener ?!!! i cant any more click in button in my
> > UI ...???
> > some suggestion ? solutions
>
> > Issamux
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > [email protected]<android-beginners%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group
> athttp://groups.google.com/group/android-beginners?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en