As someone who does iOS/Android, there are issues when you try to look naitive on all platforms. Like:
1. Android has physical back buttons, on iOS you must provide them in the UI, as a result your Android UI gets back buttons too.
2. The selector control [ A | B | =C=] does not exist in Android.
3. Many other nuaces... some visual, many more behavioral.
4. iOS can'thave "Signup" buttons. Really. Look at Netflix. The iOS version doesn't have it. (It's gotta go through the App Store)
I recommend that for your X-Platform app, that you create one UI for your users to know and if/so when they switch devices there is no lack of familarity. Your documentation (screen shots) are all is the same as well.
Sent: Thursday, November 05, 2015 at 8:40 AM
From: "Edward Sutton" <edward.sut...@subsite.com>
To: "Robert Iakobashvili" <corobe...@gmail.com>, "Ben Lau" <xben...@gmail.com>
Cc: "Qt Interest" <interest@qt-project.org>
Subject: Re: [Interest] Qt interfacing to Android native UI ?
From: "Edward Sutton" <edward.sut...@subsite.com>
To: "Robert Iakobashvili" <corobe...@gmail.com>, "Ben Lau" <xben...@gmail.com>
Cc: "Qt Interest" <interest@qt-project.org>
Subject: Re: [Interest] Qt interfacing to Android native UI ?
Hi Robert,
The approach you outlined below was the one I was considering. Use of common C++ business layer, widgets for desktops, iOS native UI, and Android native UI.
The Android native UI was my biggest concern.
I am going to continue experimenting with QML for a few more days
Hi Ben,
Thank you for sharing your Android UI interfacing code. I will take a look.
Your iOS UI interfacing code was *very* helpful in understanding how to mix C++ and Objective-C++ in the same *.mm file. Java seems much more challenging to interface to native UI. However all I have done so far is simple JNI calls into Java.
Thank you both,
-Ed
On Nov 5, 2015, at 1:51 AM, Ben Lau <xben...@gmail.com> wrote:Not really a solution for wrapping Android UI in Qt app. But I have already developed an image picker with native UI and communication library between Qt and Java/Android. May be it could used as example / core framework.
Image Picker
https://github.com/benlau/quickandroid/blob/DEV/QuickAndroid/ImagePicker.qmlSystem Dispatcher - Invoke Java/Android function and vice visa without using JNI. Data type conversion is handled automatically.
-Ed
This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interestOn Nov 5, 2015, at 1:36 AM, Robert Iakobashvili <corobe...@gmail.com> wrote:Dear Ed,
It seems that I have something native for iOS, but not for Android.
I was thinking now about another path to take:
1. Common layer - with business app logic;
2. Presentation layer with the below options:
2.1 Qt Desktop layer to cover Win, Mac and Linux;
2.2 iOS-Native;
2.3 Android-Native.
Please, update us on your success of co-existence between
Qt-Widgets and QML and whether after adding QML it is still
sustains tough memory environment on iOS and low-memory
Android devices.
Thank you in advance.
Regards,
Robert
On Tue, Nov 3, 2015 at 5:12 PM, Edward Sutton <edward.sut...@subsite.com> wrote:I know I can use native iOS UI by mixing Objective-C++ and C++ in the same *.mm file.
I have done a little Android JNI. Are there any examples for interfacing to Android native UI elements?
I need to create a UI picker for manually entering GPS latitude and longitude in degrees, or degrees, minutes, seconds for a widgets app. I expect it will be hard to make a touch usable widget UI picker. Developing a native interface may take similar amount of time but result will be much superior.
Thank you for your advice,
-Ed
This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest