Hello,
I am trying to display a dynamic paint window in android, I want to make a red line move across the rectangular pulses that have been generated.
Here is the code for generating 4 pulses
canvas.drawLine(ps, size ,(p0+p1) , size, paint);//start x,start y,stop x,stop y
canvas.drawLine((p0+p1+p2), size ,(p0+p1+p2+p3) , 300,...
The software team in our graduation project asked for increasing the heap size per process in Android. They said that the default is "16MB" which isn't sufficient for them.
How could I custom the size?
I found a commented line in the file: /acme/my_board/BoardConfig.mk in my android source code:
# USE_CUSTOM_RUNTIME_HEAP_MAX := "64M"
...
Why does Android provide 2 interfaces for serializing objects? Do Serializable objects interopt with Android Binder and AIDL files?
...
In OpenGL ES, how do I specify what the maximum visibility distance is? I've found that when I do:
gl.glTranslatef(0,0,-10f);
everything I draw is invisible because it's too far away from the camera. How do I specify that it should draw things farther away?
...
I got a Droid X for development, and after setting it up just like all my other test devices, it showed nothing when I ran "adb devices". When I plugged it in each time, OS X complained that it could not connect to the mass storage device.
How can I fix this, and connect my Droid X to OS X for development?
Finally found the answer, so...
Hi,
I am looking to create an android widget for my application. It is a static widget, meaning it does not periodically update itself with new data (like google search widget)? If that is the case, do I still need to create a service like the Word Widget sample in the android sdk?
Thank you.
...
Anyone have any luck querying for a contacts nickname given a phone number or contacts name?
Thanks
http://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Nickname.html
...
I've looked all over the internet and can't seem to find what i'm looking for...
I'm just trying to find a site with some examples on how to use the OFFICIAL facebook android SDK http://github.com/facebook/facebook-android-sdk
To be specific i'd like to see some examples on notification use and simple photo upload. But i'll take anythi...
I need to store data to use in my android program. Here are the details about the data:
There will be one table. Each "row" of data will have a unique INT identifier. Other then that field, there will be four other INT fields and a text field. The string field will probably be a 2 or 3 sentences long. Each of the 4 INT fields will corr...
I have tried to ask this question several different ways. I just need a little bit of nudging in the right direction. I have been able to pair devices and open input and output stream on the bluetooth socket, but am flummoxed by how to control the asynchronous read from an input stream. If the file/data size is known, I can easily loop u...
I have a large bitmap that i would like to keep in memory when the qwerty keyboard is visible. My app is always in landscape, so this is the only configuration change that will cause a reDraw. I heard this is what onRetainNonConfigurationinstance() is for...but cant figure it out. Can someone point me in the right direction? Thanks.
...
I have a strange behaviour of BroadcastReceiver when trying to listen
incoming call. I set up the BroadcastReceiver to listen to both
incoming calls and sms. The BroadcastReceiver run after the booting is
complete. When first i fake a call into the emulator, i can not catch
the call. I try again with sms and my Broadcastreceiver can catc...
I would like to disable the keyboard across the OS, but I am not exactly sure if this is possible.
http://developer.android.com/reference/android/app/KeyguardManager.html
...
I'm working on an Android application where I'm performing a search on all businesses in a radius around a city, and I'm looking for a way to get the addresses of the businesses at each pin into my application so I can work with them. I can perform the search and display it on a map using MapViews, but I can't figure out a way to get acc...
I am using a public AsynTask to download data, and I am trying to show a progress bar which would show the download progress. I think I have the code right, but all I get is a spinner progressdialog. Am I missing something? Why isn't the progress bar showing up? Here is the code.
Thanks for any pointers.
public class FileDownloader exte...
Hey all,
I have done a ton of searching and am hitting a brick wall. I am able to use HTML5 on a Motorola Droid with Android 2.1. The problem is when I add fallback options for firefox, and flash that add multiple source files. If I use src within the video tag, and add the onclick="this.play();" code within the video tag, I can watch ...
Hi, i am facing a problem of OutOfMemoryError that is bitmap size exceeds vm budget while changing the orientation of the Droid mobile (but not in any of other mobiles like Android normal and Android small).I am displaying 10 images in gridview, each one size is less than 20kb.
If i insert 6 images then it doesn't arise that error.
Ho...
Hi people,
I would like to ask all of you if you know any good books, articles etc ... on development for these mobile platforms. I'm looking for learning material where the whole technology, OSes and development is discussed in great detail so i could gain a deeper understanding of the system as a whole.
So any quick start tutorial and...
I cannot stop Toast messages that continue even when I have destroyed the activity from which they originate. They are queued and just carry on and on and on when I am in the next activity.
...
HI ALL
I need to show :
1) Photostream of a particular account on flickr in a grid view.
2) List OR Grid of you tube videos for a particular channel.
Please suggest tutorials OR link to do that.
Thanks..
...