I'm using the library QoppaPdf which is very good.
But there aren't much help on the net.
My problem is, that on Eclipse and with emulator, my pdf opens whitout issue, but when i transfer the .apk on my device and that i try , my pdf opens oddly.
I put two picture , one with emulator and other with device, to better understand my problem.
Screenshot of my emulator
image on emulator
Screenshot of my device
image my device
So i don't understand why my app do it..
Thank for your answer
I found how to resolve my problem !
After many search on the net and doc android ,
i simply add : android:hardwareAccelerated="false" in the AndroidManifest.xml .
You can put it in the or in the .
I hope that i help other people.
Bye !
Regarding gvsharma's question about the ExceptionInitializationError, the answer can be found in another Stackoverflow post: Qoppa PDF Android NullPointer.
You need to add the following code before making any calls to the qPDF Toolkit:
//this static allows the sdk to access font assets,
//it must be set prior to utilizing libraries
StandardFontTF.mAssetMgr = getAssets();
Related
I am almost complete building a stocktaking app for work, but there is one thing stumping me at the moment. Firstly, I am a .net developer and so have had no previous Java experience prior to this app, so everything has been learnt on the fly.
Ok, so I have put together a "help" page for the users. Its in HTML. I have created a folder on my nexus 7 and named it saregohelp (the app name is Sarego). I have placed the html file inside and its named "help.html"
Here is my current link.
"file://Internal storage/saregohelp/help"
I can get the button to link to a website, but the tablets wont have web access so the html file needs to be local.
Any ideas?
Thank you!
You can put the html file in assets.
In my project I have to load the contents of a PDF located in the assets folder onto a WebView.Can It be achieved directly just by reading the contents onto a WebView.. I googled a lot and I found that i need to use third party PDF readers to achieve the same?
If so, Plz give me the links of the source of the PDF reader of GITHUB. Am not able to find it..
If you load pdf inside the webview, unicode text type or images wont be visible. So you want
to go for OCR tool.
Use set of libraries and sdk
This might help you
http://www.qoppa.com/android/pdfsdk/
http://code.google.com/p/droidreader/
mupdf is the best library in terms of performance and all i have found till now, you can also use it in your application.
But it needs knowledge of ndk.
Click here for more description
I am a newbie to android. I need to develop an application in which I can access my android phone sd card from my pc's browser by just using the ip address generated from my phone.
I got Ip address but couldnt find any example for this. Please if any one has any example or any knowledge please reply. I am in urgent need of it.
Thank you in advance.
KNOWLEDGE GROWS BY SHARING....
Its no simple thing. You need to implement something like an FTP server on your phone. Or a samba server.
Failing that you can download one of the apps that already provide you with a samba server.
Edit: You'd probably do well looking at something like swiftp.
Application of your really interesting. You can download application wifiFileExplorer then translate reverse to get source reference.
Link: http://www.mediafire.com/?7tyvrvh26ekwwxe
You can download application wifiFileExplorer then translate reverse to get source reference
it's not possible
I'm trying to open a local PDF file stored in the sdcard. I tried everything possible but nothing seems to work.
I tried to open the pdf using the anchor tag with external and _blank attribute.
I as well tried to "WebIntent, an Android PhoneGap Plugin". But was not able to succeed. I'm sure i have missed something in the manifest xml file. I'm not more into backend development. Any help will be appreciated.
Thanks in advance
Here the answer :
http://giovesoft.blogspot.com/2011/08/download-and-open-pdf-with-phonegap.html#more
The following link downloads a file from a site.it works fine in desktop browser. but it is not working in android default browser and in webview code(i used download listener too but not working).
I believe the Android default browser can't download .zip files by default (you should get a "This content is not supported" error).
If you want to download certain files through your own application though, you can try this this solution.
What code do you use? Could you specify it? I suggest you downloading it in AsyncTask via HTTP. Where do you save it? What is the error log? So many questions =)