Commit Graph

31 Commits

Author SHA1 Message Date
Gioacchino Mazzurco
4dd277614c
Remove android JNI .class from source 2018-03-10 13:15:53 +01:00
Gioacchino Mazzurco
2b300eb9b0
Update version in Android Manifest 2018-03-10 00:44:24 +01:00
Gioacchino Mazzurco
034d88c4e2 Fix android compilation with newer Qt
In lastest Qt versions linux-* mkspec doesn't match android anymore,
this was triggering a compilation error as DATA_DIR was not defined the
RsAccountsDetail::PathDataDirectory(bool check) code has been rearranged
so it works reasonably also on Android and do not depend on DATA_DIR
define anymore

Updated Android compiling documentation
2017-10-16 20:07:52 +02:00
Gioacchino Mazzurco
32f43b999e Merge branch 'GSoC2017-evaluation-final' 2017-08-18 01:39:31 +02:00
Angela Mazzurco
c86b7c79ae Open contacts view on click unread notification 2017-07-31 16:52:03 +02:00
Angela Mazzurco
dcaa4c0458 Fix libpng warning: iCCP: known incorrect sRGB profile 2017-07-29 15:34:51 +02:00
Gioacchino Mazzurco
5f0cb3ce5d Merge branch 'qml_app_avatar_picker' into GSoC2017-evaluation-II 2017-07-19 13:33:40 +02:00
Angela Mazzurco
938c3109f6 Solve incorrect behaviours on android 2017-07-18 17:05:04 +02:00
Phenom
5bf056c7a4 Rename retroshare06 to retroshare 2017-07-17 10:45:18 +02:00
Angela Mazzurco
0494dd7516 Merge remote-tracking branch 'retro/master' into qml_app_avatar_picker 2017-07-12 18:24:29 +02:00
Angela Mazzurco
2d9f062c27 Get real file path from Uri 2017-07-12 15:37:34 +02:00
Angela Mazzurco
8a59503260 Send resulting image uri via native calls 2017-07-11 18:37:01 +02:00
Angela Mazzurco
5838b13043 Open image camera or gallery selector from main QtActivity 2017-07-11 18:05:02 +02:00
Angela Mazzurco
3b092f7fb6 Delete imagepicker activity 2017-07-11 17:34:06 +02:00
Angela Mazzurco
2cb6742dbc Create logic for call android native image picker 2017-07-10 20:09:54 +02:00
Angela Mazzurco
02d4790890 Merge remote-tracking branch 'g1o/android_share_intent' into qml_app_ui_aesthetic 2017-07-09 13:18:12 +02:00
Angela Mazzurco
5205301e10 Solve bug that push view when android keyboard is shown 2017-07-08 17:39:56 +02:00
Gioacchino Mazzurco
dafaa568b8 Qml App: better Android interaction on URL export
Clipboard usage is uncommon in Android so export the URL via Intent too
that is the common pattern on Android
2017-07-04 16:44:15 +02:00
Gioacchino Mazzurco
a19f6a2cbc Some modifications from Android Studio update 2017-05-02 12:21:10 +02:00
Gioacchino Mazzurco
fcca44d1e6 Android qml app play notification sound 2017-05-02 12:20:27 +02:00
Gioacchino Mazzurco
987b5a1cdc QML app fix: crash closing, notification deadlock
The crash was introduced at 533dbef0c7

This has been particurarly tricky as lot of different parts contributed
  in causing unexpected behaviours

When the activity is created onNewIntent is not called and we have to
  get the intent data from C++ bu other means, but C++ code is running
  in a different thread so there is no guarantee that the intent data is
  reacheable yet on starting, so the C++ code has to wait for the intent
  data being ready, but paying attention to not cause a deadlock beetween
  the two thread (the android ui thread may be waiting for some
  operation performed by Qt)

Because of notification intent flags not properly set the activity was
  recreated also if it was already on top, this caused a nasty
  interaction between android ui thread and qt thread that derived in a
  deadlock, to avoid this lot of try/error has been made until the
  proper soup of manifest and intent flags has been found

At this point link handling, notification handling, and Activity closing
  should work as expected without any deadlock or crash
2017-04-18 11:53:14 +02:00
Gioacchino Mazzurco
5be6094214 Implement notifications on Android
Notify when there are unread messages
2017-04-12 19:28:48 +02:00
Gioacchino Mazzurco
533dbef0c7 Implement Android intent handling in qml app
AndroidManifest.xml register activity as an handler for retroshare links
RetroShareQmlActivity...NativeCalls.cpp bring the intent data from java
  to C++ and then to QML
QMl mainWindow uses URI.js to parse the received uri
Create a singleton for qml engine so it is reachable from NativeCalls
2017-04-11 13:11:57 +02:00
Gioacchino Mazzurco
6aa7143a24 Improve AndroidManifest.xml readability 2017-04-10 14:52:36 +02:00
Gioacchino Mazzurco
e06d92e939 Improve QML performances via extract_android_style
The App uses Quick Controls 2 so full style extraction and it's cost
  is not needed
2017-04-10 14:32:02 +02:00
Gioacchino Mazzurco
03ac2ed0a7 Broadcast receiver are now exported as per default
If android:exported is false brodcast receiver can receive intents only
  from the same application, in this case it doesn't make sense as
  BOOT_COMPLETED and MY_PACKAGE_REPLACED are triggered by the system
2017-04-10 13:30:11 +02:00
Gioacchino Mazzurco
bcbd5230eb android notification service stub, improve login
Added retroshare-android-notify-service a stub will handle notifications
  to android system, at the moment it only attempt autologin if default
  password is used
retroshare-android-service quit QCoreApplication gracefully
Android Studio update has changed some android build files
Create BusyOverlay.qml componet so it is reusable accross the qml app
Contacts.qml create a pseudonimous GXS identity as needed without
  prompting the user
RsLoginPassView.qml nicer look, on mobile phone password usage is not
  common so do not use password by default
QML app main view handle correctly +waiting_startup+ runstate
QML app main view use BusyOverlay as initial item
2017-04-07 18:26:08 +02:00
Gioacchino Mazzurco
5a219b4d10 Update to Qt 5.8.0
Simplified android buinding and updated documentation
Removed a bunch of unused qml files
2017-03-15 23:11:50 +01:00
Gio
ad21d7202a Start RetroShare Android Service when needed
RetroShareQmlActivity checks if the service is running, and start it if
not
The service is restarted on package update
Remove non existents qml files from qrc
2016-09-05 02:12:00 +02:00
manu
50fe3dd711 QML activity interacts with backend.
Test QML activity changed for a simplified version of drbob's rsqml-models.
It requests JSON documents from the libresapilocalserver and shows them raw.
Updated Android documentation.
Moved Android qmake section to the end of libretroshare.pro and openpgpsdk.pro
to avoid static linking errors.
2016-09-04 15:01:44 +02:00
Gio
279551fe8d Retroshare android service now run and start at boot on android, the qml app is still disfunctional 2016-08-23 12:15:28 +02:00