open file dialog in android using Qt - android

What's the best way to choice (select/open) file using Qt in Android ?
I'm tried to use QFileDialog But did not get good result , Is there anyway to use android native open file dialog in Qt ?!

In Qt 5.3, the Qt Quick Controls look good but they don’t (yet) look the same as Android’s Java Controls. This is something that’s planned to be fixed for Qt 5.4.
You can use Ministro to have Native look in your app :
Switch to Projects mode
Select the Run Settings for Android
Open Deploy configurations Details
Select Use Ministro service to install Qt
Now the Qt Widgets will have a native Android look. But there is a big drawback: Your App has now a dependency to the Ministro App. The App will check on startup if Ministro is installed on your device. If it is not installed the user is forced to install it over the Android Play Store.

Related

Move the code from Qt to AndroidSDK

I got used with programming in Nokia's QtSDK (C++) and published a few simple apps in the Nokia's Store. I want to move to Android platform now but am quite confused how to do it in a simple and natural way.
I have a nice working (desktop) app which would perfectly fit for tablet devices. It was written in C++. I have difficulties in understanding how to move that code to Android platform and publish the app in Google's Play Store.
The question is: can it be compiled in QtCreator and would fulfill publish requirements or should it be moved to AndroidSDK? I want to avoid Necessitas plugin.
Thanks.
Qt targets Android, so you don't need to abandon Qt at all. Simply download Qt for Android, add it to available Qt versions and Qt kits in Qt Creator, and follow the documentation to tweak your project to run on Android !

Qt app on Android without Ministro

I want deploy app with Qt 4 or 5 libs (Core & GUI) in apk. Is it real? I use necessitas to create apps. google.com didn't help in this answer.
P.S.: sorry for my English, it's not my native language.
If you mean that you don't want to use Ministro, then it should be possible. The page below gives some directions how to:
http://community.kde.org/Necessitas/QuickStartDevelop
On March 1, 2013, the page above has the following:
Deploy Configurations
Also on the Run view you can set the Deploy Configurations, by selecting Details at the right hand side these are the different options you can choose between.
Use device's qt libs
Deploy local qt libs
Install Ministro system
The Use devices qt libs option depends also on the Use local qt libs option. When Use local qt libs is unchecked your application will need the Ministro package to run. However if Use local qt libs is checked, Qt Creator will pass special parameters to the application, forcing it to use Qt libraries from the /data/local/qt path on the device.
The Deploy local qt libs option makes Qt Creator deploy qt libs found in the Qt SDK chosen (e.g. android-lighthouse-4.8.0). This option is useful when you hack on the Qt framework to test it. This option automatically selects the Use local qt libs option. This option get automatically unchecked after Qt Creator pushes the Qt libs. This option can be checked every time you need to push your local Qt modifications.
Install Ministro system option installs the Ministro package (you must provide the apk yourself; download it from from here). It is useful when you try to test your application on Android Virtual Devices.
If you want to go with Ministro for the libraries, here are directions on how to get it set up:
https://play.google.com/store/apps/details?id=eu.licentia.necessitas.ministro
http://sourceforge.net/p/necessitas/home/necessitas/
What is Ministro ?
Necessitas is also the Home of Ministro, an Android application which provides a system wide downloader and installer of the LGPL Qt shared libraries. You can find Ministro on the Android Market or as direct download here.
EDIT: Some more links:
http://community.kde.org/Necessitas
http://necessitas.kde.org/
http://qt-project.org/wiki/How_to_Create_and_Run_Qt_Application_for_Android
Hope that helps.

Debug native Android Applications

Is it possible to debug a native Android application with eclipse and the Android SDK. I have downloaded the sources. Would I have to build the app and then deploy it onto the device to debug it (like any other debugging process)? If so, how would I go about doing that (can use messenger/call app if needed).
You can debug native android applications using eclipse and ndk-gdb. The detailed information you can find here

How to deploy Titanium Projects to Android customers?

I want to deliver a finished and working Titanium App to Android customers. But I can't find any documentation about how to produce something like a jar-file that I can create to directly install it on Android devices without the Android market or the Titanium IDE at hand (I can't expect my users to install Titanium IDE first, right).
When you do a build for device in titanium studio, titanium studio creates an apk file for you.
You can find this at Titanium Workspace/Your Project/Build/Android/bin/app.apk. This is the app file you want.
This file can be e-mailed to your customers, and if the android phone is set to accept apps from 3rd party locations, they can install it through this e-mail.
See the Appcelerator Wiki:
https://wiki.appcelerator.org/display/guides/Deploying+to+Android+devices
and
https://wiki.appcelerator.org/display/guides/Distributing+Android+apps

How to run Phone Gap Application in multiple platform?

I have developed one simple application in phone-gap-android using eclipse and android SDK.
As phone-gap support multi mobile platform , I want to run this application in iPhone also.
How can i achieve it ?
For each platform you want to get a port, you need to create a project in the dedicated environment and compile application as native one for each.
Your created source should be shared between project.
Then for example :
to port your application to iPhone, you need a mac with installed Xcode, iPhone SDK downloaded and phonegap one installed.
In xcode, create a phonegap project, import your sources, compile it, and it works !
Instructions on how to set up Phonegap for each OS can be found here: http://phonegap.com/start
If you are lucky, major modifications will not be needed between the devices.
An alternative would be to try PhoneGap Build: https://build.phonegap.com/

Categories

Resources