Hi, please help with installing an .apk

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

Sponsored Links

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");
    } catch (Exception e) {
        Log.e("insAPK", e.getMessage());

Other Threads

1. Adding a user to a new group

Hi All,

 I am facing some permission problem while trying to access a directory.

I am running in system server context which meants I am running as user
"system" . I want a access a file in a directory "logdir" and this directory
does not have execute permission for others(770).Because of security
issues,  its not allowed to make the security bits to 771.
The  ownershipd  details of the "logdir" is  ;

owner == > dhcp
group ==> dhcp

Is there any way so i can add  the user 'system' to  this "dhcp" group ?



2. Install Android Market di Emulator

Dear all,

hanya ingin berbagi.. siapa tau ada yang butuh langkah2 utk
menginstall android market di emulator

utk versi 1.5 sampe 2.1 ada di tutorial berikut


utk versi 2.2 ada di tutorial berikut



Go Android


3. How to make such a customized component

4. [WTA] Restore ke Official

5. How to allow for devices without a touchscreen android.hardware.touchscreen

6. OOT: melaporkan...

7. OOT - WTAsk - modem