212 Commits

Author SHA1 Message Date
Ciaran Gultnieks
0d0c65fb0e Adds handling of formatted descriptions 2012-09-17 21:46:32 +01:00
Ciaran Gultnieks
a14a926264 Major revamp of database and app index handling 2012-09-14 22:05:55 +01:00
Ciaran Gultnieks
c40572ca92 Don't mess about upgrading transient database tables 2012-09-14 11:03:07 +01:00
Ciaran Gultnieks
3c0ccf2f4f Tidied up some file-related stuff 2012-09-14 09:24:08 +01:00
Ciaran Gultnieks
ff8dde9cc7 Stops attempting to get signatures for not-installed packages
This only wastes a negligible amount of time, but causes silly
log messages.
2012-09-14 07:12:25 +01:00
Ciaran Gultnieks
0efc4c6794 Performence improvements, work in progress 2012-09-13 21:28:19 +01:00
Ciaran Gultnieks
003d65627e Fix crash when rotating screen in App Details 2012-09-12 21:52:52 +01:00
Ciaran Gultnieks
0623801474 Reorganise database access to prevent locking issues 2012-09-10 21:01:39 +01:00
Ciaran Gultnieks
c98aa9f6dc Overhauled repository update to resolve multiple problems 2012-08-31 16:33:51 +01:00
Ciaran Gultnieks
8323aacc7e Add "What's New" and "Recently Updated" categories 2012-08-26 09:31:59 +01:00
Kevin Everets
6d0b5d2d8e Add "added" information to the Apk list in AppDetails if available
Just place it below the status for the time being until a more pleasing
layout can be created.
2012-07-16 15:08:17 -04:00
Henrik Tunedal
63c573b28b Add landscape layout for AppDetails 2011-03-30 01:39:36 +02:00
Henrik Tunedal
9c3da557fa Fix bug in DownloadHandler
If an error occurred or the user cancelled the download, the message
(toast) would be redisplayed on every rotation from there on.

This change fixes the bug (by removing the reference to the download
thread when it's finished) and encapsulates all interaction with the
download thread in DownloadHandler.
2011-03-29 02:01:19 +02:00
Henrik Tunedal
1ae3e604bd Use unfiltered application list for updates 2011-03-28 18:25:23 +02:00
Henrik Tunedal
33fa2debf9 Consolidate hex conversion functions 2011-03-28 03:49:48 +02:00
Henrik Tunedal
37732255b2 Log available device features 2011-03-26 17:29:29 +01:00
Henrik Tunedal
767f1a6866 Stop progress updates when in background 2011-03-22 23:27:46 +01:00
Henrik Tunedal
7c43b91502 Reset signature ID after uninstall 2011-03-22 23:27:46 +01:00
Henrik Tunedal
89dd64a210 Remove APK count from AppDetails
Rationale:
1) The string is competing for space with the license field.
2) It would need separate singular/plural versions to be correct.
3) It's unnecessary when the list of APKs is shown directly below.
2011-03-22 23:27:33 +01:00
Henrik Tunedal
030075925a Make rotation quicker
Traceview revealed that the call to DB.getApps() was by far the
slowest part of recreating the activity, followed by getPackageInfo().
By transferring the list contents and some other fields from the old
activity object, the time needed to create the new one can be
substantially reduced.
2011-03-22 21:42:52 +01:00
Henrik Tunedal
84f150ed6a Handle rotation in AppDetails activity
This moves the download thread from an anonymous inner class to the
class Downloader, which isn't tied to the activity.

The state of the progress dialog is updated by polling the download
thread at regular intervals - message passing seemed to need a bunch
of synchronized methods and shared variables anyway (to ensure that
all messages reached the right activity) so it was much simpler to
just take it out. But maybe my approach is completely backward.
2011-03-22 21:42:52 +01:00
Henrik Tunedal
6950085b56 Support SHA-256 in addition to MD5
The client will now check the SHA-256 hash of an APK if it's provided
in the index but otherwise falls back to the MD5 hash.
2011-03-18 18:46:24 +01:00
Henrik Tunedal
ce3e4bd34f Merge branch 'compatcheck' 2011-03-09 00:22:31 +01:00
Henrik Tunedal
3502896e65 Check compatibility when determining current version 2011-03-08 20:06:43 +01:00
Henrik Tunedal
4caa43d0d6 Fix default value of "cacheDownloaded"
Change the default value of the "cacheDownloaded" preference used in
the actual code to match the default value that is specified in XML
and shown to the user.
2011-03-08 17:46:42 +01:00
Henrik Tunedal
7ae24e2917 Remove useless confirmation dialog
The dialog shown when clicking an APK provides the same information
and options as the system dialog that follows it.
2011-03-08 14:37:04 +01:00
Henrik Tunedal
62ad5e2ed1 Add cancel button to download dialog 2011-03-08 14:37:04 +01:00
Henrik Tunedal
aedcdaf238 Use IEEE 1541 standard units 2011-03-07 19:35:11 +01:00
Henrik Tunedal
0513bb2de7 Filter incompatible applications 2011-03-05 19:59:01 +01:00
Henrik Tunedal
111a57fc47 Disable incompatible APKs 2011-03-04 19:44:01 +01:00
Henrik Tunedal
08816e4bc8 Make use of sdkver, permissions and features 2011-03-04 13:17:13 +01:00
Henrik Tunedal
4ed1c3d622 Market-related improvements
Only show the market button for apps we know are available there.
Use a new URL that automagically opens in the market application if
it's installed but also works in the browser.
2011-02-27 23:14:05 +01:00
Ciaran Gultnieks
efcc7c6d8c Show whether an apk is from source or a binary on the apk list 2011-02-21 22:12:00 +00:00
Ciaran Gultnieks
79ab3fe030 Added donate button to AppDetails menu 2011-02-21 21:33:18 +00:00
Henrik Tunedal
f602e4586c Improved logging of exceptions. 2011-02-03 20:55:27 +01:00
Henrik Tunedal
47a3db7767 Changed button order in app details dialog.
Most Android applications have the cancel button on the right, but
this dialog had it on the left (Cancel/Install). It was especially
confusing as pressing "Install" immediately leads to a system dialog
with Install/Cancel buttons (i.e. in the opposite order).
2011-02-03 20:55:27 +01:00
Ciaran Gultnieks
6fddf13fb3 Potential crash when using new version without updating repo index 2011-01-26 18:41:53 +00:00
Ciaran Gultnieks
6cae359505 Cancel is probably more appropriate there 2011-01-17 20:25:11 +00:00
Ciaran Gultnieks
f05905c855 Can now detect attempt to install an apk with a different signature and tell the user to uninstall first 2011-01-16 16:07:42 +00:00
Ciaran Gultnieks
c629a6884f Slight adjustment signature md5 calculation, to match server 2011-01-14 23:08:34 +00:00
Ciaran Gultnieks
0881142023 Might be better to show that dialog before the thread starts - possible FC on gingerbread 2011-01-13 22:55:03 +00:00
Ciaran Gultnieks
df6a37a705 Expert mode - currently just displays md5 of signature for installed apps 2011-01-04 23:52:04 +00:00
Ciaran Gultnieks
38fc4bfec1 Resolved a crash, under some circumstances, after installing an app and returning 2010-12-09 10:57:28 +00:00
Ciaran Gultnieks
b9a41878f8 Deal more gracefully with apps in the repo that have no packages available 2010-12-08 15:59:06 +00:00
Ciaran Gultnieks
48dca0e52c Correction to previous commit 2010-11-14 22:31:10 +00:00
Ciaran Gultnieks
ab8feedea0 Made new strings (and a couple previously missed) translatable) 2010-11-14 22:28:08 +00:00
Ciaran Gultnieks
55c06a203e Added the ability to have the actual apk file sourced from elsewhere 2010-11-14 20:05:17 +00:00
Ciaran Gultnieks
a2c1b3da17 Auto update from repos when empty, plus database rejig and less unnecessary list repopulation 2010-11-14 18:28:01 +00:00
Ciaran Gultnieks
fb772cb015 Close databases when activities are destroyed 2010-11-13 22:53:17 +00:00
Ciaran Gultnieks
4f864aaf10 Only do background updates when the main activities are not in the foreground 2010-11-08 23:49:22 +00:00