May
16
comment Ripple drawable in xml not working
This works perfectly if you just want to have a transparent background. In that case the <item><selector><item(s)> can be replaced by a single transparent drawable <icon>-tag. --- oh, but the performance of the ripple suffers tremendously
May
15
comment Best way to interpret JavaScript in an Android Java Application
Ok, thanks. I couldn't find a Tutorial for Android with a quick search. I'll use a WebView, and when I start recognizing patterns in the "filters" I'll parse and process them directly in Java. Maybe the WebView will have the additional benefit of allowing to add a HTML5 based editor / debugger for the rules.
May
15
comment Best way to interpret JavaScript in an Android Java Application
Thanks, the second approach sounds interesting, as the parsing/modifying of the text occurs rarely and usually upon request of the user. I'd like to try that. Are there any well established libraries you know about? I think I'm prefering JavaScript.
May
15
comment Best way to interpret JavaScript in an Android Java Application
@jcubic Yes, I was going for JSON already, but the Java side processing may be too unflexible. I added some example rules so that you see what I mean. I have it in Python, and JavaScript would be just as easy, but in Java, I think that's wasted time and effort.
May
15
revised Best way to interpret JavaScript in an Android Java Application
Added extra information
May
15
asked Best way to interpret JavaScript in an Android Java Application
May
14
comment Handler vs AsyncTask vs Thread
Worth checking out: Douglas Schmidt lecture android concurrency and synchronisation
May
14
revised Handler vs AsyncTask vs Thread
Added more information
May
13
answered Using a scripting language in Android
May
13
comment Using a scripting language in Android
@alfasin Java is not a scripting language.
May
12
awarded Supporter
May
8
comment Firefox "window.event is undefined" error
This was very helpful. So the naming seems to be important, as using this instead of event will pass the object instead of the event
May
7
comment Fragments, dealing with async configuration for onCreateView
@ReedB about what you say with "reconstruct everything", how can I prevent that automatic re-creation of the fragments?
May
6
comment Fragments, dealing with async configuration for onCreateView
The problem is much harder than anticipated. :( It looks like I will need to use empty placeholder-Fragments and swap them out as the data comes in...
May
6
comment Fragments, dealing with async configuration for onCreateView
@ReedB I'm not really convinced of that approach as I don't really understand how Android is using these bundles, and it may be the case that relying on them would be a smart(er) thing to do. I'm also not that convinced of using a variable like "m_bIsInitialized", because there is this ambiguous moment where m_bIsInitialized is set to true and the fragment-set-up-function may have already been skipped. This is very improbable, but it doesn't feel right. I believe that the right way to deal with this would be to use deferreds. Or some other callback-based system.
May
6
comment Fragments, dealing with async configuration for onCreateView
No, not really. Since the restructuring/refactoring in the App is going to take some work, I'd rather get some feedback from SE prior to beginning with it. Or maybe I'm procrastinating? ;-)
May
6
asked Fragments, dealing with async configuration for onCreateView
May
5
comment onCreate(Bundle savedInstanceState) in always null
@DoctororDrive Your Activity might get called twice, so that you have one instance running in the background, ready to be restored at a later time, and one active in the foreground. Like when you have an Activity which also responds to android.intent.action.CREATE_SHORTCUT. In that case the Activity for the shortcut creation is running in the foreground, and will get destroyed before the background one comes to the foreground again, which can be several positions backwards in the history stack. In that case the shortcut creation "mode" will have overwritten the old one's shared preferences.
May
4
revised Use HttpUrlConnection with volley
Little reformatting of the code
May
1
comment How to get current foreground activity context in android?
Why is mMyApp.setCurrentActivity(this); not called in onCreate() in addition to onResume()? onResume() gets called pretty late and sometimes it's necessary to have it initialized earlier.
1 2 3 4 5