Created a simple Android app

I've created a very simple Android app for Emoncms. The app collects the Json data from a users account and lists them. The development is in an early stage, the code is on Github and the api-key is hardcoded (you'll have to change it to show your own data).

Code is here: https://github.com/bphermansson/Emondata_Light

Screenshot:

 

phermansson's picture

Re: Created a simple Android app

Some progress has been made. The Api-key is no longer hard-coded, now it's editable in the app. I also created an Apk if anybody likes to test the app.

After the Api-key has been entered the app has to be restarted, this will be fixed in the next version. 

 

glyn.hudson's picture

Re: Created a simple Android app

Wow, nice work. Just tried to install. I get "The file type 2015-10-13-10-27-15-175null is not supported now!" error. I tried on my phone running Android 5.1 and on my tablet running android 6.0 and I get same error. 

phermansson's picture

Re: Created a simple Android app

Ok... I've tested on two different phones and it works. It seems your filename is wrong, did you download the attachement "Emondata_Light-release-1.0.apk_.zip"? You have to unzip the file and allow the phone to install from unknown sources, 

I might put the app on Google Play later on for easier install. 

Bill Thomson's picture

Re: Created a simple Android app

Hello,

Tried installing your app, (unzipped it first) but get this error: "There was a problem parsing the package"

Sideloading is enabled. Device is a tablet running Android 4.2.2

phermansson's picture

Re: Created a simple Android app

I've used Android 4.4.2 as lowest possible Android version, a bit stupid maybe :) I shall recompile so that it works on earlier versions too. 

glyn.hudson's picture

Re: Created a simple Android app

Hi Patrik,

Got this installed tonight on my Moto x running Android 5.1. I had to use adb sideload.

App loads ok and lets me past in my API then save. Then I exit the app and close it by swiping it away from the running apps. When I try and load it again I get an error "Unfortunately Emoncms data has stopped". The only way to recover from this is clear the app data then I'm back to the API enter screen. Is there any logfiles I can use to help you debug?

App looks promising, I look forward to using it to quickly check my feeds. useful to point to other emoncms servers other *than* emoncms.org and be able to select feeds that are shown.

Keep up the good work. 

phermansson's picture

Re: Created a simple Android app

Thanks!

I tried to replicate your error with no success, but I don't remove the app from running apps after I saved the API. 

I'll start modyfing the code so you don't have to reload the app after entering the API, let's see how that works. In the meantime I've compiled it for lower Android versions, the attached file works on my Sony Tipo with Android 4.0.4. 

Edit: I can't attach the file, but you'll find it at Github, https://github.com/bphermansson/Emondata_Light/tree/master/app

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.