aspose file tools*
The moose likes Android and the fly likes cannot open the pdf application in emulator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "cannot open the pdf application in emulator" Watch "cannot open the pdf application in emulator" New topic
Author

cannot open the pdf application in emulator

Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

i am quite new to android. I tried running an application downloaded from web on my emulator but it failed.

I am using Linux(ubuntu). I first of all pasted the .apk file in tools folder of android_sdk.
then I tried the following things on terminal:-

export PATH=$PATH:/home/user1/Downloads/android-sdk-linux_86/tools
sudo apt-get install adb pdfview2.apk

It gave the following errors:-
E: Unable to locate package adb
E: Unable to locate package pdfview2.apk
E: Couldn't find any package by regex 'pdfview2.apk'


I launched my emulator from the tools folder itself...


OCPJP 6.0 93%
OCPJWCD 5.0 98%
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39577
    
  27
sudo apt-get install adb pdfview2.apk

What do you think this line should do?


Ping & DNS - updated with new look and Ping home screen widget
Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634


i followed the steps as given at http://blog.freewarelovers.com/2010/08/how-to-install-apk-files-on-android.html
In ubuntu ,we need to use apt-get command
please help me.i am newbie to linux too.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39577
    
  27
In ubuntu ,we need to use apt-get command

No, and that article doesn't even mention it. Rather, it talks about "adb install ...".

Note that "adb install ..." only works if either the emulator is running, or an Android device is connected via USB.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot open the pdf application in emulator
 
Similar Threads
Deploy Audio files with .apk
deploying a .apk file (App), Without the App store, could not open/mnt/sdcard/ActionBarExample.apk
adb shell - "error: device not found" or "error: device offline"
INSTALL_FAILED_OLDER_SDK
Failure [INSTALL_FAILED_ALREADY_EXISTS]