Quote (Eldunari @ Mar 26 2014 11:48pm)
I'm looking for help with my Android App code. So far, I am using aSyncTask to run a simple JSON get request in the background, but for my needs, it needs to do this and update(i.e.- looper class in a thread, hopefully, if I understand what a looper thread is correctly?)
So my first question is - How would I go about adding a class that creates a looper thread, where I can run a JSON request, then update the text on the UI of my app?
i'm not clear what a "looper thread" is, but this is what you want to asynchronously update the ui:
http://developer.android.com/reference/android/os/AsyncTask.html
Quote
1.1) How do QR readers work, and what would be a simple way of implementing one into an app?
unless you have a super strong reason against this, i suggest firing an intent to open another app on the phone (can be set up to prompt user to install), the other app scans the qr code, then returns the result to your app. i used zxing, but i'm sure there are others.
Quote
1.2) How does saving data/caching multiple strings work in Android? I understand the sharepreferences concept, but I got an error on load, so I then just removed it as that is the least important concept of my project, for the time being.
Why don't you explain what you're trying to do? "saving/caching" doesn't tell me much. are you trying to persist data across activities? why aren't you using a database? do you have large data and you're trying to read only a small part at a time?
http://developer.android.com/guide/topics/data/data-storage.html#pref