Why not use getPackageName() from the class Context. So in your
activity it would be something like this.getPackageName()
That would five you a String of your package. It is against Android
convention to end your process in this manner, however. Android will
garbage collect it as necessary.
On De
One observation,
It is working fine if I am giving hardcoded package as
am.restartPackage("demo.test"); rather than
am.restartPackage(pkg.substring(0,pkg_point)); .
Here it is showing error that : Invalid package : demo.test
which is same as I had given inside quotes.
Any suggestions??
On
Hi all,
Can I have any working example of restartPackage() API.
Thanks in advance,
Asif
On Dec 9, 2:56 pm, Asif k wrote:
> Hi justinh,
>
> Thanks for your reply.
>
> > Is that the package name you have defined in your Manifest for the
> > package attribute?
>
> yess thats the package name t
Hi justinh,
Thanks for your reply.
> Is that the package name you have defined in your Manifest for the
> package attribute?
yess thats the package name that is there in manifest file. I am
finding the package name from the main activity as shown bellow ,
String pkg = "demo.test.MyActivity"
Is that the package name you have defined in your Manifest for the
package attribute? Also, you need to provide the parameter as a
String.
On Dec 8, 8:46 am, Asif k wrote:
> Hi All,
>
> I want to kill my application whose base activity is
> demo.test.MyActivity.
>
> I am trying to kill it from
5 matches
Mail list logo