803 Commits

Author SHA1 Message Date
Miklos Vajna
4460f406a4 android: don't load the document after every rotation
Change-Id: I0af154bc5bc6cc79ab45a85a5a06e4539442ec81
2012-11-20 12:51:00 +01:00
Miklos Vajna
a1d9caffa3 android: move toolkit and dummySmallDevice to bootstrapContext as well
Change-Id: I4b6ce49aa5e6d391e832dc1023e47d694a480948
2012-11-20 12:10:52 +01:00
Miklos Vajna
4c359c22e1 android: don't bootstrap after every rotation in DocumentLoader
It seems that previously onCreate served 3 different purposes:

1) bootstrap UNO machinery
2) load the document
3) create the view

Ideally it should do the first two only if not done already -- as a
first step, this commit extracts 1) and does only once.

Change-Id: I087a6b934c05295263080f571c95ef152e4602cb
2012-11-20 11:02:25 +01:00
Tor Lillqvist
26b8cd2b3e Reduce dynamic symbols and strip all local ones from the Android single .so
Use a version script ("version map") that exports only the Java_* and
JNI_OnLoad symbols that the JNI machinery needs. No non-dynamic
symbols are needed (in the .so that goes into the .apk; the one kept
locally for debugging is not stripped).

Change-Id: Ie874e59c593ec9e5d08ba369612cef1a3ea85fe4
2012-11-16 16:25:17 +02:00
Miklos Vajna
677ca1d596 android: remember displayed page during rotation in DocumentLoader
Change-Id: I1948dcc76026e4c906407932aa67371e5e9e8bb6
2012-11-13 14:25:52 +01:00
Miklos Vajna
29719a369d sync android manifest with project properties: sdk version
Note that with having a targetSdk >= 11 and minSdk <= 10, we can enable
hw acceleration without loosing compatibility with 2.x devices.

Also, remove android:configChanges="orientation", as it seems to improve
rotation experience a bit.

Change-Id: Ia3be9bb3b998d604a032eb5c60f9bb0ec71dfc68
2012-11-12 11:27:37 +01:00
Tor Lillqvist
a5b985ce67 Let's try to make this significantly smaller by keeping only text doc support
Change-Id: Ib766a4ed49d089488fc4ec67b941be2f38ba3ac3
2012-11-09 09:54:11 +02:00
Tor Lillqvist
62b4827f23 Use --gc-sections
Change-Id: I6694f1820dc8c2cdae2522357932ab0065754a75
2012-11-08 15:29:14 +02:00
Tor Lillqvist
8d32dc82e6 Produce a linker map
Change-Id: Iff4f7be61310884dea1c29f6fe931dd35cadc552
2012-11-08 15:28:59 +02:00
Noel Grandin
f252b332dd fdo#46808, renamet awt::XToolkit2 to XToolkitExperimental..
..because we want to use the name for the new merged interface
for the Toolkit service.

Change-Id: Ib1e193c7d04729f6420ee6984231fd50181e59d3
2012-10-24 16:49:49 +02:00
Tor Lillqvist
d8feea6c28 Seems that on the emulator the y scale is -1, huh
Change-Id: I1ad30e278a5b04de3ee544c30c38f4765539157d
2012-10-22 15:18:29 +03:00
Tor Lillqvist
a09a98ee45 Add ucppkg1
Change-Id: I471440867895b2a8ef2f2de90ed37f5b3c9c0721
2012-10-22 15:18:29 +03:00
Andrzej J.R. Hunt
6f2a127989 Add LibreOffice licence headers where currently missing. 2012-10-18 19:51:40 +01:00
Tor Lillqvist
b8523dd612 Add animcore and dba mappings
Change-Id: If560563c884dc3ee4159aae24e62c5f56c544254
2012-10-15 13:47:52 +03:00
Tor Lillqvist
82bba1a2b3 Drop confusing comment
Change-Id: Ic702abecf1bd21893bd5d4dee532d2e342985e6e
2012-10-11 10:07:12 +03:00
Tor Lillqvist
b9bef032ce COPYSO should not be used with DISABLE_DYNLOADING
Change-Id: I0e04cd8fe35a487b85cd3abd420d24ab2a55821a
2012-10-11 10:07:12 +03:00
Tor Lillqvist
5476c14de5 Adapt to disable-dynloading style
No need to load any native libraries here any more.

For now, using the same native-code.cxx as over in ../DocumentLoader
works. In other words, we end up with the same code in
liblo-native-code.so. This will obviously change if/when the UNO APIs
that are called start to differ.

Change-Id: Ia47ce833c5a290a93986005f92e981c89f63bf71
2012-10-11 10:07:11 +03:00
Tor Lillqvist
3a5d6a9ac3 Just use the wildcard function to list all the libs
It doesn't seem to be any slower. (Note that we are *not* using
-Wl,--whole-archive around these libs so it won't link in them in
total, but only what's needed.)

Change-Id: I2cc090562fc910d3375c6293f1f4358c68a6f9f3
2012-10-11 10:07:11 +03:00
Tor Lillqvist
96ee8e4dce More libraries
Now the DocumentLoader test app seems to work like it does with all
the separate DSOs, knock on wood. The only "attempting to load unknown
library" message I see in logcat is for libspelllo.a, and I
deliberately don't have a mapping for that. A viewer application
presumably has no use for spell checking. (I do link in the
hyphenation stuff, that affects rendering, and we want the rendering
to match LO on the desktop.)

Change-Id: I1ad9eedf352eb0af1187bdfdc71f8f1754912600
2012-10-11 10:07:10 +03:00
Tor Lillqvist
6848bcf6e4 More libs
Change-Id: I7921ac41a31f545a74ec2981dda9c30f40d4b4d9
2012-10-11 10:07:10 +03:00
Tor Lillqvist
5b195fbcf7 Even more libs
Change-Id: I055b3d1a3105475883283c32a46141c38ed350fa
2012-10-11 10:07:09 +03:00
Tor Lillqvist
89372ae703 More libs
Change-Id: I4f717cfdf8e13044931e6820cc9fe6f74fc8aa7f
2012-10-11 10:07:08 +03:00
Tor Lillqvist
8ede8ee2ce Some more logging
Change-Id: Ib901de4a10cb18ce8e1f5d0293c61ab0eed2a4e8
2012-10-11 10:07:07 +03:00
Tor Lillqvist
c11a906a67 More libs
Change-Id: I83214fffadf68c6d92e129fd8f89f671fd9bc1c2
2012-10-11 10:07:07 +03:00
Tor Lillqvist
925b118a26 More libs
Change-Id: I2ea26d46f22620d567a23412d7780a95e2715af2
2012-10-11 10:07:06 +03:00
Tor Lillqvist
602f93da37 Link in more libs
Change-Id: I5e016a061ea4206966757cda2d6681617b45b550
2012-10-11 10:07:06 +03:00
Tor Lillqvist
8ab89346ba Add some more components/libraries
Change-Id: I2dba9bceee4c68b551ed8ed9239e93ea9ae93117
2012-10-11 10:07:06 +03:00
Tor Lillqvist
4b7e701024 Use DISABLE_DYNLOADING on Android
IN this branch these changes are not conditional. Unclear yet whether
this is what we finally will want to use or not. Maybe should make
these changes conditional and do this stuff in master instead?

Change-Id: I379d570a0e00648d295c675fd90eba6594ba3182
2012-10-11 10:07:05 +03:00
Anurag Jain
37a2fa5d5a fdo#51304: Remove the author of some java source files
This patch remove some '@author' for Java souce files, and removes some
commented code founded when removing the '@author'.

Change-Id: Ic4fcd028a9cdbd85c693d93bcd48e41f36386d22
2012-10-01 14:10:03 +02:00
Andrzej J.R. Hunt
58c32f1f59 Fix about dialog image, Fix null device name.
Change-Id: I487582592d468c83030202241d67296a0a1b6aa8
2012-09-24 18:44:22 +01:00
Andrzej J.R. Hunt
b29ae2b975 Improve About Dialog for small or very large screens.
Change-Id: Iec8b67dd4e59ca8a1c17119cae5be91fceecf1b1
2012-09-24 18:44:22 +01:00
Andrzej J.R. Hunt
c31e0a0b18 Change a SwitchPreference to CheckBoxPreference for Android 2 compatibility.
(SwitchPreference requires android api >= 14, i.e. Android 4.)

Change-Id: I69d83946407d008b8e47b320b5a4f5120c0ff35d
2012-09-24 18:44:22 +01:00
Andrzej J.R. Hunt
e8dcab34e5 Use android:logo + separate label in intent-filter for proper naming.
It appears that activity-alias is actually misleading, by using
android:logo a different icon is used in the actionbar than in
the launcher, and setting android:label in the intent-filter
sets the desired launcher title.

Change-Id: I06e0ddc83498333ec45bdd83d56c47451e59df2a
2012-09-21 08:41:06 +02:00
Andrzej J.R. Hunt
0cb520c71f Prototype launcher icon for sdremote.
Change-Id: I0e6d87db90a60b300f68d83c5f5d2b1ba98f420c
2012-09-20 21:57:15 +02:00
Andrzej J.R. Hunt
c630a2458e Use activity-alias to show a separate name/icon in the launcher.
By default android will use the title and icon of the the starting
activity in the launcher. This can be overriden using an activity-alias
as the default activity, with its own title and icon.

Change-Id: I794b6738fdc383879b3c056c61f62fecbb268c5a
2012-09-20 21:00:33 +02:00
Michael Meeks
e989d16748 dung out no longer needed initUCBHelper methods; thanks to sberg. 2012-09-19 18:41:45 +01:00
Andrzej J.R. Hunt
b1cd18bcd1 Return empty string for null notes to avoid showing null in UI.
Change-Id: I1f60ce48d9d11b074aa268eda118c427b3cc62c0
2012-09-19 11:47:00 +02:00
Andrzej J.R. Hunt
4aed4eb1ca Further improvements to connection and feedback.
Change-Id: I04c48ad3d465e132ea9adaf840e9f858a7096794
2012-09-18 11:16:23 +02:00
Andrzej J.R. Hunt
5962129ea8 Dialog for connection, more activity launching cleanup.
Change-Id: I1ff8508daa2863020c6d7fa735f0f23b1ce96d8f
2012-09-17 17:08:46 +02:00
Andrzej J.R. Hunt
f38715f7a8 Modify and simplify activity starting and backstack usage.
Change-Id: Ic4c4806ea3e791d0d75621e678166d0ffbbfa96a
2012-09-17 15:04:01 +02:00
Andrzej J.R. Hunt
9f8cd15be9 Add icons + device name display to pairing activity.
Change-Id: If27119e3e62bac8046fcc33cb12767b116bcc991
2012-09-17 10:16:55 +02:00
Andrzej J.R. Hunt
ee181f82aa Styling and icons for Selector Activity complete.
Change-Id: I11e26c9c97c4e9aea465c0d9f6b7863a260a3577
2012-09-17 09:58:19 +02:00
Andrzej J.R. Hunt
b8834500f7 Changed timerUpdateThread to Runnable for clarity.
Change-Id: I49d66181d3aecddf8a5f6fbccccce01699aaa465
2012-09-17 08:39:32 +02:00
Michael Meeks
8f1199860b sdremote: unwind a couple of crasher / corner cases 2012-09-14 16:27:58 +01:00
Andrzej J.R. Hunt
76c5f6fdaf More 2.3 styling + fix for flickering bug on multi-slide change.
Change-Id: Iae19e9d44f1a437737c943c06356a99957c6991e
2012-09-14 16:27:00 +02:00
Tor Lillqvist
1260555e28 Build also LibreOffice4Android
Change-Id: I81f241d830bc914c7ddf3cce23fb6bb48f30e89b
2012-09-10 14:15:11 +03:00
Andrzej J.R. Hunt
1f831f5ac8 Use background color directly rather than Color.TRANSPARENT to support 2.3.
It appears that Color.TRANSPARENT turns into black on Android < 4.

Change-Id: I40312062726696777e218afc382d55b48ac6d42b
2012-09-07 11:44:13 +02:00
Andrzej J.R. Hunt
36bb1a3158 Fix some serviceconnection issues and more bluetooth power managment.
Change-Id: Id2e309ee5b8f6feff845dba28e7474e2246865f5
2012-09-07 11:12:37 +02:00
Tor Lillqvist
6dc9552e22 Move Bootstrap setup and lib pre-loading (for easier debugging) to onCreate()
Change-Id: I77c08dc1236c4c77cfb7711f3be659ebfe877dd1
2012-09-06 17:32:57 +03:00
Andrzej J.R. Hunt
9382fa6ce2 Automatically enable/disable bluetooth as necessary for searching/connection.
Change-Id: Ie7a11c05cf1ba6181e955a65ebef03117c956f1a
2012-09-06 11:37:07 +02:00