803 Commits

Author SHA1 Message Date
Artur Dryomov
927711bf0f Change the source code structure a bit.
* Follow usual Android project structure.
* Make the structure more clean.

Change-Id: Ia5b115fe2b8a6417e6d9cfaae46c859c9e4c3c1a
2013-07-25 18:01:57 +01:00
Artur Dryomov
cc20292c4d Remove legacy and unused code.
Change-Id: I9c126628cd8e73c162e561d23bd884c1af26404a
2013-07-25 18:01:57 +01:00
Artur Dryomov
f39f3ccd59 Add a basic slide show activity.
Slides grid and pager could be switched now.

Change-Id: I2c29f36b16c247f1d895773d90766828f571a375
2013-07-25 18:01:57 +01:00
Artur Dryomov
043a580648 Add a basic slides pager UI.
Change-Id: I0ef53ca7bbcf5eab2bb131a88c687e302f80dc41
2013-07-25 18:01:56 +01:00
Artur Dryomov
1e680128df Add a basic slides grid UI.
The slides adapter is using the ViewHolder pattern and view recycling to
improve performance.

Change-Id: I8f922799dc3af73e9ecaec92ca91eb38e8a784c0
2013-07-25 18:01:56 +01:00
Artur Dryomov
8e236acf9e Fix source files headers and footers.
Change-Id: I3d5298f43efdf220fc56eee60636a94985a07360
2013-07-25 18:01:56 +01:00
Artur Dryomov
7ab7e72e86 Fix intent creation to use the static factory class.
Change-Id: I7c9cd2ab8a0d185e7ace7d7f9c0183775b620178
2013-07-25 18:01:55 +01:00
Artur Dryomov
d080b0efa1 Move pairing operations from CommunicationService to a PairingProvider.
Clean up CommunicationService as well.

Change-Id: I0fcea89b2531192869f4e039dba7e06528f22def
2013-07-25 18:01:55 +01:00
Artur Dryomov
1b085b8f73 Add adding and removing computers.
Change-Id: I52166bbe848e1b877a91d8ad83859e9f6345c3aa
2013-07-25 18:01:55 +01:00
Artur Dryomov
5f6eb2d86d Remove PAIRING_STARTED intent action.
Replace with PAIRING_VALIDATION. Probably it is better to rely on
protocol and server.

Change-Id: I5120fe1b2c3a5f48c294fb2c76334c1cd09285a1
2013-07-25 18:01:54 +01:00
Artur Dryomov
c81c82f801 Add static factory for intents.
* Remove intents actions from the CommunicationService.
* Move all intents extras names to a single place.
* Move intents creation to a single place.

So we avoid duplications and possible typos.

Change-Id: Ic486727522962763e2fefbf96b65125cf2e3d466
2013-07-25 18:01:54 +01:00
Artur Dryomov
4397d863f4 Change TcpServersFinder to handle multiple threads properly.
Change-Id: I6d76e1b25e5d3a38fef0d3702fdb35a11e129946
2013-07-25 18:01:54 +01:00
Artur Dryomov
2aaab2a01e Add additional loading servers to the UI.
Change-Id: I4866c6398146bd0e83d27c7f2014a0180b0b4540
2013-07-25 18:01:53 +01:00
Artur Dryomov
94255fc98e Move servers management from the service to a separate class.
Change-Id: I7739bbf961c2783b3699e2bac21fc79eedcf5b26
2013-07-25 18:01:53 +01:00
Artur Dryomov
1990f88aa6 Add action bar button for reconnection.
Change-Id: I8729dcd2b179b7301ae85528a615195e907cf443
2013-07-25 18:01:53 +01:00
Artur Dryomov
c5cdd6b43f Fix search state declaration at the CommunicationService.
Change-Id: Ib60b68cc9bad42207333738fa238e0dd1ec63588
2013-07-25 18:01:52 +01:00
Artur Dryomov
986b6804e0 Change thread usage at TcpServersFinder.
It seems like Executor is a much better solution.

Change-Id: Icbc5ef4fbdc73c159e51acad0e37bf895a5e4a70
2013-07-25 18:01:52 +01:00
Artur Dryomov
82f5b8200f Fix messages receiver possible errors related to thread usage.
Change-Id: I403cee3815a4e2cd70468032dd9c50742262bee3
2013-07-25 18:01:52 +01:00
Artur Dryomov
77ba1b25d1 Fix broadcast manager usage.
Change-Id: Ifa4b461b537e40a65753c49f848dd8e4357e82f7
2013-07-25 18:01:52 +01:00
Artur Dryomov
5fe6ee0f92 Modify up navigation.
* Add such type of navigation to the ComputerConnectionActivity.
* Remove NavUtils usage. It is not a really clean solution but it keeps
  activities state just right.

Change-Id: I9be70a530c180745fdfb35490b025a683aab6cf5
2013-07-25 18:01:51 +01:00
Artur Dryomov
8eb2f0ef16 Add the computer connection activity.
It shows proper instructions for Bluetooth and WiFi at moment, it should
be helpful for solving possible issues with the connection process.

Change-Id: Ie81bd211fa2b47e3392e1ef83a52a15ea54fe370
2013-07-25 18:01:51 +01:00
Artur Dryomov
fc961aeaf6 Add the licenses activity for showing open source licenses.
Change-Id: I2198cea9ef27cfbdf760a8da41e0c7af8e04f20e
2013-07-25 18:01:50 +01:00
Artur Dryomov
ba41294087 Add basic functionality of displaying servers list to the new UI.
Change-Id: I1df9d85d7c03884c9572a33957232edc576c9965
2013-07-25 18:01:50 +01:00
Artur Dryomov
fd5ec7142f Remove preference requirement for TCP servers search.
Change-Id: I4305ccedd487f39ea3ec1a765f55c55aff096fd1
2013-07-25 18:01:50 +01:00
Artur Dryomov
668c57f61d Add missed copyrights.
Change-Id: I3b750e853fc74a19329236e186ee05fd31ee77cc
2013-07-25 18:01:49 +01:00
Artur Dryomov
69ea1e76d8 Change the UI to a new look.
* Change action bar color to a more Impress- and Holo-consistent one.
* Clear used styles.
* Optimize manifest.
* Add computers lists activity with proper styling of tabs in landscape
  and portrait modes.

Change-Id: Ie0a5ac15866b8cacdf44c39f7a2ca806e43421a4
2013-07-25 18:01:49 +01:00
Artur Dryomov
615a900393 Change the existing code to use new classes.
* Remove old classes, their functionality was moved to more suitable
  places.
* Update existing ones to use new schema.

Change-Id: Ic525fd4682051317dc717dedb6d08b97f11c0b09
2013-07-25 18:01:49 +01:00
Artur Dryomov
f6a170524c Add CommandsTransmitter and MessagesReceiver classes.
These classes consist of the code from Client, Receiver and Transmitter
classes. The main goal is to combine all actions at suitable plases.

Change-Id: Ic90f1c0a47a31bd32d57f409fe24a60f3b0686e1
2013-07-25 18:01:48 +01:00
Artur Dryomov
51b6e108ba Add the ServerConnection interface and its Bluetooth and TCP implementations.
Basically code of these classes consists of Client implementations. The
new classes only provide connection and access to messages and commands
streams.

Change-Id: I683b58dc764d309c47bb46c98663bcb1986a197b
2013-07-25 18:01:48 +01:00
Artur Dryomov
858072d9b8 Refactor servers finders.
* Add a common ServersFinder interface.
* Rename finders to match their responsibility.

Change-Id: Ib414ce2ba8315558695c80ca47d43d98f64298c9
2013-07-25 18:01:48 +01:00
Artur Dryomov
a4165981dc Fix possible null pointer exception in the BluetoothClient.
Change-Id: Ib43458bd8cfa9624f6f43610db90686476d9865f
2013-07-25 18:01:47 +01:00
Artur Dryomov
d0f3c74887 Refactor CommunicationService.
Change-Id: I5107d18101a3d37e6df260563814a367c93ec10d
2013-07-25 18:01:47 +01:00
Artur Dryomov
d170ecde6c Refactor finders classes.
Change-Id: Icaf80e1ff13bca059f6ee42a56f36a4b3f65a3fb
2013-07-25 18:01:47 +01:00
Artur Dryomov
19015bd364 Refactor clients classes
* Remove logging, it should not be running on users devices.
* Try to break long methods to small ones.

Change-Id: I6ee1f211b4c9d20ff9d04f0faf96b45393c067ef
2013-07-25 18:01:46 +01:00
Artur Dryomov
bdc523c310 Refactor the SlideShow class.
* Move the Timer class to a separate file.
* Remove drawing shadows for slides, it would be better to draw shadow
  only for the ViewPager in the future.

Change-Id: I4373bdcf83f31ab08dccf96fd09a0a60f5d085b6
2013-07-25 18:01:46 +01:00
Artur Dryomov
fa309d0e22 Refactor Receiver, Transmitter, Server and SlideShow classes.
Introduce the Protocol class which contains all static information about
the remote protocol: server messages, client commands, etc. It will help
to avoid duplicates and possible typos.

Change-Id: Ic96a17899b3cec13c4081d671e2296c647bf328c
2013-07-25 18:01:46 +01:00
Miklos Vajna
2477353014 LibreOffice4Android: render in a bit better quality
Change-Id: I65984af5e28c8a0250105b34c4bc7b1abf9ce3c7
2013-07-22 10:14:13 +02:00
Miklos Vajna
847fa44810 LibreOffice4Android: support pinch zoom and dragging around while in zoom
Change-Id: Ic8e4cb30acff734e6860dfc9bb31e836d2ecd32d
2013-07-22 10:14:03 +02:00
siqi
a5f6c185ed accelormeter implemented but doesn't work well...
Change-Id: Ia5f2c1e706b21914ff483378e1bf8ffbdeb5eed6
2013-07-12 11:31:47 +02:00
Miklos Vajna
015e1b8444 android: prefer external storage in DocumentLoader / LibreOffice4Android
With this, these apps can be used even if /data is something like 128MB,
e.g. on normal phones, not tablets / emulators.

Change-Id: I7c8f2787b6395e98e8065e2e207aa09d9a2f39b3
Acked-by: Tor Lillqvist <tml@iki.fi>
2013-06-28 09:51:10 +02:00
Ptyl
19efe68b1e Imrove scrolling in the Android "Desktop" app
I got scrolling to respond to the JNI scroll method call.  (This is not yet
the gesture I want to implement (scroll by pixels), but at least it’s a
start.)

At first I tried to do some hacking in the C++ part, then found the problem
was in the Java parameters, which set the mouse whell delta too big.  When
passed the value 1 or -1 to the Y value of AppSupport.scroll(int x, int y),
the scrolling is reasonable.

Change-Id: Id8fa0ada1a035760b7b05bf21325d0e51ef28fdc
2013-06-27 13:28:35 +03:00
Tor Lillqvist
653a4b313c Need a no-resource-compress.xml for Android SDK version 22, too
Can be identical to the one for version 21.

Change-Id: Ic974dd9ed06947e6be1c04598d3a7e715795e202
2013-06-27 12:08:19 +03:00
Andras Timar
23cafa4aca fix typos reported by localizers
Change-Id: I0b9a36f0c6f081ff35f0b8bc6e420d881036576c
2013-05-27 11:32:07 +02:00
Andras Timar
4d08f1a49d typo: s/recommanded/recommended/
Change-Id: I4a22f856b993ef09556fcf921aa1f01be322cd4b
2013-05-25 13:48:42 +02:00
Tor Lillqvist
7d528592ac android: Keep the images_tango.zip name as is
Not sure why I used to store it as images.zip. Probably just a mistake. The
code uses the images_tango.name.zip when trying to open it.

Sure, no toolbar with images is displayed currently anyway, so having this
file in the .apk is pointless, but there has been talk of reverting the
disabling of toolbars, sigh.

Change-Id: I12dfd3abe8f329d660b518f6b37904aa00423bc2
2013-05-02 15:26:25 +03:00
Tor Lillqvist
802a87e181 Adapt to library name changes for Android, too
Change-Id: I6da1f38c5a9693c13ef841442cbef017d388416a
2013-05-02 11:58:41 +03:00
Michael Meeks
abacc389db android: remove lotus word pro filter - bit optimistic.
Change-Id: I08bbec95db2ae9bc7226cd5ca1cc7b81c235a26f
2013-04-30 13:19:51 +01:00
Ota Chasák
b6ab91d55e fdo#60791 - fix android remote count-down / clock. 2013-04-24 16:44:46 +01:00
Tor Lillqvist
5a15474709 Adapt to changes in type rdb file locations and names
The old bin/ure/types.rdb was just a duplicate of bin/udkapi.rdb. There is no
bin/types.rdb any more either. We have just udkapi.rdb, offapi.rdb and
oovbaapi.rdb now.

Change-Id: Idd0911f1d4d48f172af159b852918d429f17cc92
2013-04-24 12:45:47 +03:00
Tor Lillqvist
f62324cecd Use the newfangled "include" directory
Change-Id: I3228ad8277d34454affe71b9cbc9ad7f56326ca9
2013-04-24 11:54:56 +03:00