May I know is there any other solution other then using childbrowser plugin to display a pdf in phonegap?
Thanks
I looked into this exact issue when developing an app that views PDF's. The childbrowser plugin is the best route. It's actually quite easy, and you can customize it any way that you'd like. Do you have a particular reason why you can't use the childbrowser?
From what I researched, you could also use 3rd party extensions to display pdf's, but in the end you'll still need to do most of what childbrowser plugin does, cause you will need to create a custom view that gets displayed when javascript is triggered.
Related
I want to have a scrollabeView (pagingControl) exactly like this image, where I can show 2 pages at the same time or more and swipe between them on Ios And Android.
In iOS you can have a look at the property clipViews. For Android it is currently not possible without adjusting the SDK. Have a look at this ticket: https://jira.appcelerator.org/browse/TIMOB-25635. It is a feature request to have this kind of layout. Also it features some links that explain how to add it to the sdk.
I fixed this problem by creating this widget com.developatic.pagingControl. I hope that will be useful.
I want to know if it's possible to design my android app UI with HTML5 and CSS3.
If it's possible, is there any performance issue?
Android has WebView which can render HTML content, but it doesn't provide the same user experience as native apps so its use is generally discouraged.
Yes it possible. As rhoadster91 stated, you can use a normal Android WebView which loads your "index.html". All your HTML files should be in the "assets/www" directory. But you'll find plenty tutorials out there which explain everything step by step. Have a look at Googles developer site.
A second possibility would be Phonegap. It is a little tool which helps you to deploy your app for various devices (Android, iOS, WP,...) while coding your app only once in HTML.
I experimented with jquery mobile, native application and phonegap. Building a web application at first seemed very attractive at first as the coding is a lot easier compared to native applications. Here is my opinion based on my research:
Using phonegap slows your application responses, it loads slowly and together with jquery mobile the response and load time increases. So I didnot use it.
Using jquery alone was no different in Gingerbread mobile and on emulator you can clearly see the lag in switching between one div to another div. I didnot use it either.
What I did was use android Webview. I wrote my own javascript and css and placed them on the head section of my page. Used div for changing pages on button click. This approach worked really good giving nearly native performance.
I'm currently using Wikitude phonegap extension to develop my app.
Using jquery mobile, I have set up a header, and footer with a central div that provides content information.
I would like to show the AR Browser within the <div> content tag, however, when I execute the loadArchitectWorld() call it brings the full screen AR Browser.
What would be the best practice here?
Use the AR BRowser only for displaying POIs and related info?
Build the whole app over the AR browser?
Switch back and forth between the AR Browser and the rest of the app using .hide() and .show() calls?
Thanks in advance.
Wikitude's PhoneGap plugin is by design fullscreen. Once you call loadArchitectWorld() a fullscreen view is added to phoneGap activity's parent view that handles any "AR."-Components.
Best practice is therefore to define anything to AR inside the "Wikitude SDK html" and use the urlListener-concept (fires event in phonegap when you call "document.location = architectdk://..." in ARchitect World) to pass information between AR and PhoneGap, e.g. to exit AR view.
Please also have a look at the provided Samples in the Wikitude github account.
Kind regards
Is there anything that I can use to mimic the UIPageControl in Android Phonegap? I've tried to research it but can't find any clue.
As far as I know in HTNL and Jquery i dont think you have any control to do such. You will have to implement it on your own. You will have to take an image tag in HTML with two buttons / handle the swipe event in jquery Mobile (http://jquerymobile.com/test/docs/api/events.html) and then upload a new image and call redraw on the page.
I want to create my custom android launcher but not with java code. I want to create it with HTML5 code. I've seen some launchers with HTML5 but not the documentation. Does anyone can give me some links or some tutorials/documentation to start? Thanks.
Does anyone can give me some links or some tutorials/documentation to start?
You could define much of the UI as HTML/CSS/JavaScript. Via PhoneGap, you could deploy this as an app. However, you will still need Java code -- or perhaps a PhoneGap plugin, if someone has written one -- to be able to access information about the installed apps, in order to populate your launcher.