fonbot.git
11 years agoHandle multi-line SMSes in SmsReceiver
Marius Gavrilescu [Fri, 22 Mar 2013 11:10:01 +0000 (13:10 +0200)]
Handle multi-line SMSes in SmsReceiver

11 years agoFix a bug in making FonBot a user/system app
Marius Gavrilescu [Thu, 14 Mar 2013 15:10:49 +0000 (17:10 +0200)]
Fix a bug in making FonBot a user/system app

If FonBot was moved to /system and then updated, it will have apks in
both /system/app and /data/app and ApplicationInfo.sourceDir will point
to the second one.

11 years agoFix NPE in HCER when callback == null and connection errors
Marius Gavrilescu [Thu, 14 Mar 2013 14:52:20 +0000 (16:52 +0200)]
Fix NPE in HCER when callback == null and connection errors

If the connection error'd, HttpCallExecutableRunnable would call
callback.onError even if the callback was null. This is fixed now.

11 years agoRemove the login broadcast
Marius Gavrilescu [Tue, 12 Mar 2013 16:39:53 +0000 (18:39 +0200)]
Remove the login broadcast

The login status is now updated directly in the ResultCallback, so
the login broadcast is no longer needed.

11 years agoMerge SendHttpMessageAsyncTask and PollServerAsyncTask
Marius Gavrilescu [Tue, 12 Mar 2013 16:27:54 +0000 (18:27 +0200)]
Merge SendHttpMessageAsyncTask and PollServerAsyncTask

The resulting class is named HttpCallExxecutableRunnable. It uses
the new ExecutableRunnable class and lets the users make a HTTP
call to a server URL and pass in a callback to use the response.

11 years agoAdd ExecutableRunnable
Marius Gavrilescu [Tue, 12 Mar 2013 16:16:34 +0000 (18:16 +0200)]
Add ExecutableRunnable

ExecutableRunnable is a lightweight replacement for AsyncTask.

It does not support onPreExecute()/onPostExecute() or showing progress,
but it can be ran multiple times and retried if it fails.

11 years agoImprove JSON parsing
Marius Gavrilescu [Tue, 12 Mar 2013 08:56:52 +0000 (10:56 +0200)]
Improve JSON parsing

Command arguments are now represented as JSON arrays, and the
JSON parsing code uses less memory. Previous versions can no
longer receive commands, since they expect command arguments in
the old arg0, arg1, ... form.

11 years agoRemove the global FonBotApplication instance.
Marius Gavrilescu [Mon, 11 Mar 2013 16:02:23 +0000 (18:02 +0200)]
Remove the global FonBotApplication instance.

11 years agoUpgrade to the latest server protocol.
Marius Gavrilescu [Mon, 11 Mar 2013 15:27:54 +0000 (17:27 +0200)]
Upgrade to the latest server protocol.

Server protocol changes:
* All server requests use Basic access authentication
* There is no more X-Action. Server paths are used instead:
- /send for sending messages, with the destination address
in the X-Destination header.
- /ok for doing nothing. Used for the main activity login status.

Other minor changes:
* Centered the resultTextView in main.xml.
* Utils#parseHttpMessage can parse messages like "(text)".

11 years agoMake custom server work when polling
Marius Gavrilescu [Wed, 6 Mar 2013 22:08:38 +0000 (00:08 +0200)]
Make custom server work when polling

Until now, the custom server hostname:port were only used in
SendHttpMessageAsyncTask, while PollServerAsyncTask used the
hardcoded http://ieval.ro:7777/get.

11 years agoLet user change server hostname/port
Marius Gavrilescu [Tue, 5 Mar 2013 22:32:22 +0000 (00:32 +0200)]
Let user change server hostname/port

11 years agoInitial commit
Marius Gavrilescu [Tue, 5 Mar 2013 19:12:17 +0000 (21:12 +0200)]
Initial commit

This page took 0.013136 seconds and 4 git commands to generate.