Hi, please help with installing an .apk

by Dr. Tingrong Lu » Fri, 02 Jan 2009 19:19:29 GMT


Sponsored Links
 Hi,

I'm trying to write a code to install an apk on SDK1R2. I read your posts on 
google groups, and copied the code like below. but the code doesn't work. Did I 
miss anything? Thanks. 




 public void insAPK() {
    Uri data = Uri.parse("file://sdcard/an1115.apk");
    try {
        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setDataAndType(data, "application/vnd.android.package-archive");
        startActivity(intent);
    } catch (Exception e) {
        Log.e("insAPK", e.getMessage());
    }
 }
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. KoreanPhoneNumberFormatter.java?

Hi,
I have a question which is so important for korean localization.
as I know, there is JapanesePhoneNumberFormatter.java. so, this file
enable japanese user see localized phone format (ex, 022-229-1234).

but, in korean locale mode, it showes only number string without
hypen.
Definitely, there is rule to show phone number on the phone in korea.
(ex, 010-1234-1234).

1.  do you have plan for this critical issue?

2.  if it's not, how can I make FORMAT_MAP[ ]?

thanks

--~--~---------~--~----~------------~-------~--~----~

2. Shared Libraries not supported. Use Service

I realize that Android 1.5 does not have support for shared libraries.
Copying common resources / libraries into each apk causes bulkiness.

I hear that a way to get around this  is to application  is to run it
as a Service.

Anyone knows what that means or can point me to a place that explains
this.

Thanks a lot.

--~--~---------~--~----~------------~-------~--~----~

3. onCreateInputConnection gets called only after trackball is pressed

4. Reference design for cupcake based mobile phone.

5. Overloading Methods in AIDL

6. Avoiding the display of a picture taken by the camera

7. capture local webpage/html doc as image thumbnail without opening the android website browser