I want to draw a graph that updates in real time (grows from the right). The most efficent way I can think of to do that would be to copy everything from x[0 .. width-2] left by 1 pixel, then draw the new value at x[width-1].
I have little experience with Android, but from what I can tell, Canvas doesn't operate on it's contents at all...
I know you can get a developer phone but the new G2 looks pretty nice as well as the Samsung around the corner.
I would assume however that it would be a better idea to be using a consumer phone if they are the target market for apps you wish to produce, especially for testing purposes.
Has anyone else had experience from this choice an...
Hello! This is my first S/O question, please be gentle!
I'd like to know more about porting C applications to native ARM for use on Android devices.
I can make simple programs using the prebuild toolchain which comes with the source, but how can I use this toolchain with applications which are more than one file and require configure a...
Is Android going to gain momentum or will the iPhone continue to dominate mobile application sales?
I want to develop iPhone apps, but the learning curve is too steep to be productive quickly. I get the feeling that I have to already be a Mac developer since I've never done memory cleanup beyond removing an event listener.
Is android ...
Hi,
we are trying to develop an application on android we are using SQLite Database and on phone we are getting SQLiteException:no such table. but, it is working fine on simulator.
Can anyone provide any input on this?
...
Hi i want to change the folder permissions on device but when i type su i get permission denied is there any other way to do the same .....
...
I would like to execute opcodes directly against the running Dalvik VM instance from within my application on Android. I'm looking for something similar to the C asm function. I have a list of opcodes for dalvik, but I am unfamiliar with how to either execute them directly, or write them out to .class files and execute them against som...
I have created a custom ExpandableListAdapter and everything works properly. What I'd like to be able to do is in each of the groups add a different type of child to the end. I have tried adding 1 to the getChildrenCount() number and then testing isLastChild in the getChildView() method, but that doesn't seem to work.
If a group has thr...
I've been battling to get 'fling' gesture detection working on my Android application today.
I've been looking at these sources;
Detect Gestures - Tutorial
SDK docs
Calculator Code
Nothing has worked for me so far and I was hoping for some pointers.
What I have is a 'GridLayout' that contains 9 ImageViews. The source can be found he...
I recently stumbled into PhoneGap and I love the concept, but I can't get my first try at an Android application working. The documentation skips a few details and the comments are filled with people running into problems.
Does anyone out there have PhoneGap running? What did you tweak for Android?
...
Hi,
How can I differentiate an android Activity from a SubActivity programatically?
Is there any api for that?
...
Hi
I am trying to get the GPS location of my G1 using the following code
In Activity
MyLocationListener myListener = new MyLocationListener();
LocationManager myManager = (LocationManager)getSystemService(LOCATION_SERVICE);
myManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 2000, 0, myListener);
This is the LocationListe...
I am new to android,now i am working on some database sample programs.
Now i have a problem in displaying the data retrived from database in
a tabular format.If anyone know the answer please help me with the
source code.
...
hi,
I am having an db file in res/raw/folder iam calling Resources.openRawResource() with the file name as R.raw.FileName and i get an input stream but i having an another db file in device i want to copy the contents of that db to the device db i am using BufferedInputStream bi = new BufferedInputStream(is);
and FileOutPutStream b...
I need to work on my Android development skills. Which blog has the freshest and most walkthroughs, code samples, and tutorials?
...
Hi, the graphic designer of the Android app that I'm currently building has come up with a two-color line as a separator between items in a layout box:
If you look closely at the image, you see a darkish gray line, with immediately below it a very light gray (almost white) line. The lines should resize to the width of the container.
...
I am a newcomer to Android. I know the C And C++ programming languages, but I do not know Java . I want to learn Android right from basics, but I could not find any relevant link or e-book that can help me.
Can I begin to learn Android without knowing Java or should i go to learn Java first? From where should I learn Android which shoul...
I need sample code to create TabHost in android.
can anyone help me.
...
I want to show an AlertDialog with one option that might change on every request. So for example at one time I want to show the option "add to contacts" while another time it should be "remove from contacts".
My code does work on the first time, however Android seems to cache the AlertDialog so that onCreateDialog is not executed next t...
What JavaScript Mobile development tool would you use based on momentum, existing documentation and functionality, and ability to get passed the App Stores strict policies?
...