Thursday, February 20, 2014

I made my Andrews Android2.3 installed to what position? How can not find it


I made a small program, the package name com.example.nn24
My association Andrews A278T is a low-end phones, Android 2.3,
Small memory, inserted a 16G SD card, I put a small program
Install to SD card, you can run properly, that is life and death can not find
Its directory location, ES file browser can not see it,
Is it because there is no ROOT privileges?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
I put my word nn24.apk program loaded into the SD card. Turn off the phone, the SD card to win, into the SD card U disk,
Into the computer, and the computer hidden system directory open to prevent see.
In addition to the SD card directory android_secure there:
com.example.nn24-1.asec
In addition, he just did not find com.example.nn24 related files and directories.
Estimates ROM installation files are still in the phone, not in the SD card.
Reply:
As long as possible after the Simulator ROOT know.
Question and answer, Oh, master it
Reply:
Own solution!
With getApplicationContext (). GetFilesDir (). GetAbsolutePath ()
Displays the current path
getApplicationContext (). getPackageResourcePath ()
Displays the current installation package path

textView1 = (TextView) findViewById (R.id.textView1);
textView1.setText (

getApplicationContext (). getFilesDir (). getAbsolutePath () + "\ n" +
getApplicationContext (). getPackageResourcePath ()

);
The results showed that:
Current directory / data / data / com.proj.mytest / files
Installation package location / data/app/com.proj.mytest-1.apk

Here the lack of popularity, we superficial understanding, there is no strong spirit of my research!

No comments:

Post a Comment