Dropbox links in a Phonegap app (Android) - android

I try to create downloadable links to files which can be downloaded directly after clicking the link. I added "dl" instead of "www" and "?dl=1" in the end of the dropbox link (dropbox api: Force a file or folder to download). The direct download works perfectly in the chrome browser but if I package the app with phonegap for android and click on the same link whithin the resulting app the file will not be downloaded. Is this not possible whithin the android browser or do I have to modify some android browser preferences?

The problem seems to be the version of phonegap. It works with Phonegap 2.0 and as far as I remember with phonegap 1.4 too, but not between 1.5 and 2.0, and not above 2.0.

Related

Allow Phonegap's inappbrowser to access phone gallery?

Our app uses Phonegap's inappbrowser to point to our website. Our website (written in Laravel) has an edit profile page where you can upload a profile pic. This works fine on desktop but in the Phonegap app tapping the 'Choose Picture' button does not bring up the Android file system or gallery. I've installed both file system plugin and file transfer plugin for Cordova and it doesn't make a difference. Is my only choice really to re-write this part of the app custom for Phonegap using JS?
<input type="file" has a lot of know errors on mobile and isn't supported with Android WebViews in general. I would suggest using the FileTransfer Plugin to accomplish what you're trying to do. Use the upload method of this plugin to manually upload the file to the remote server. Also look at the Camera Plugin to choose which image on the device to upload.
Install the plugin cordova camera and also FileTransfer, I think that could help you much more than any kind of input, remembers working in the default browser and operating system often fail with different html attributes. There are several ways to get the picture from the device to make an upload to a server. If you're only working on Android, check your code on several devices since in some models (mostly Motorola) my fault I often a code if it works in Samsung for example. Always keep your updated plugins.
Plugin Camera
FileTransfer

How to upload a Firefox OS app on Android

I'm developing an app for Firefox OS and I would like to test it on my Android phone. Is it possible? I only found articles about installing apps from the Firefox Marketplace.
I could connect my Android device to the WebIDE, but it only makes possible to debug web pages on Firefox for Android, and does not work for uploading apps through it.
You can publish your app from any computer with a web server. You just need a single html file and a "mini" manifest, then you access that page from you phone (using firefox for android, of course) and you will be able to install the app as you would install it from the marketplace.
Reference
The Testing Your Native Android App blog post describes using the mozilla-apk-cli to do this.
(Eventually that documentation should migrate to the How can I test/debug APKs? section of the Open web apps for Android page.)

Deploying an iOS App using PhoneGap From Windows

I am new to PhoneGap and Mobile Application Development. I want to create an application using PhoneGap so that I can get Android, iOS, BlackBerry versions of the same app.
I have installed PhoneGap in my windows 7 Desktop using tutorials given in https://www.youtube.com/watch?v=nqFpfrUrMM4
I have some questions regrading PhoneGap:
Can we create multiple pages(HTML Files) or we only have index.html single file?
Can we use jQuery UI plugins, Mobile jQuery UI and other iQuery plugins? Will PhoneGap cloud service be able to convert to mobile app?
I have created Hello World example and uploaded zip file to PhoneGap and it converted to Android, Windows app but for iOS app it shows error certificate(P12) and provisioning file. I have windows 7, how can I get that legally? (My friend has Mac book. I can use it)
I want to launch app to Play market and iTunes but I have no idea what I need to do after uploading zip to phonegap.
I will really appreciate if you can provide me with the suggestions, steps that I need to take or links that would ease whole process.
Thanks!
You can make multi-page apps with PG. All of my apps are.
You can use those plugins. If they work on a regular web site, they'll work in PhoneGap. PhoneGap Build should be able to package all the scripts as one app, as long as the content is within their guidelines.
You need a Mac to get it. This page gives a lot of directions: http://centuryware.wordpress.com/2014/10/30/how-to-create-and-test-ios-apps-on-phonegap-build/
You'll need to sign up for a Developer account at https://developer.apple.com/devcenter/ios/index.action to upload an app there, and a Google Play account at http://developer.android.com/index.html to upload to that store. Once you sign up, read their docs. It can get pretty involved on the Apple side.

XDK - open link in browser without using Cordova

I want you to open a link in my app via browser not in Appview. I ma making my html5 mobile app via xdk. I don't want to use cordova in my app as my app is heavy enogh and don't want to make it heavier because of just one link.
I saw this :
www.kidzout.com
But the problem is I must install Cordova InAppBrowser plugin for this to work. Do you have any solution without using Cordova or external plugins? Do you think is it possible at all?
You can open a link in the native browser(Mobile Safari, Android, etc.) from within a HTML5 Mobile app using the intel.xdk API formerly AppMobi.
In the head, include a reference to the intelxdk.js file.
<script src="intelxdk.js"></script>
Use this for opening your link:
Launch in Browser
For more information, go to http://www.html5dev-software.intel.com/documentation/jsAPI/device/launchExternal/index.html
If you are opening a remote URL in your webview and adding javascript is not an option, you can make a patch in native code.
Here I show the workaround for Android:
https://stackoverflow.com/a/35037737/813951

How to load flash in Android?

HI, i want to load a flash file in my android application. Can any one guide me how to do?
A flash file requires the Flash Player runtime to...well...run. The ability to run flash files is available to the Android platform in two forms.
As a plugin that renders Flash content in the native Android web browser(just like your browser on your desktop computer), or by utilizing the Android UI webView API and loading an HTML file with an embedded Flash file. In other words, create a webview in your Android application and load it with the remote or local URL of HTML file with the embedded flash content. Essentially you are putting a stripped down version of the Android browser into your application to render the Flash file.
Adobe AIR for Android. You could rewrite your Android application into a Flex Mobile Application, if your application relies heavily on Flash, and then run it directly as and AIR application and just us the AIR API's to load it.
A quick search on Google will show you code examples on how to write the HTML file to embed the Flash file, and it will tell you how to us the Android API webview to load said HTML file.
Good luck, let me know if you have any trouble.
You need Android 2.2 or later. It has built-in flash support.
If you are running Android 2.1 you just cant do it.
Flash is only available on Android 2.2, so you have to upgrade it first.

Categories

Resources