[android-developers] Couldn't refresh list

2011-01-30 Thread vnv
Hi, could anyone provide quick hint, because I just cannot get it.. I am adding new values to my ArrayList and putting those values on ListActivity. code: bSetNote.setOnClickListener(new OnClickListener() { @Override public void

[android-developers] Couldn't refresh list

2011-01-30 Thread vnv
Hi, could anyone provide quick hint, because I just cannot get it.. I am adding new values to my ArrayList and putting those values on ListActivity. code: bSetNote.setOnClickListener(new OnClickListener() { @Override public void

Re: [android-developers] Couldn't refresh list

2011-01-30 Thread Kostya Vasilyev
Make sure that the two lines below actually update data that's referenced by getView. Also, your getView ignores convertView and so prevents item view recycling. For better performance and memory usage, might be a good idea to fix that. -- Kostya 30.01.2011 11:14, vnv пишет:

[android-developers] Re: Couldn't refresh list

2011-01-30 Thread vnv
Tnx for helping Kostya. I have changed it to: PersonalNoteData pn = saveNote(n); if(pn != null){ ia.add(pn); }

[android-developers] Re: call .net web service from android

2011-01-30 Thread Akash Kava
You can checkout WSClient++ , http://wsclient.neurospeech.com , it generates the code for web service that automatically executes asynchronous anonymous methods on the UI thread and as well as it does all SOAP handling and it is light weight. On Jan 13, 5:34 pm, kandroid mdrezaulho...@gmail.com

Re: [android-developers] Re: Couldn't refresh list

2011-01-30 Thread Kostya Vasilyev
Ok, cool. ConvertView is used for recycling item views - as you scroll, item views that leave the screen are reused for items that scroll into view. This is a good explanation, with pictures: http://android.amberfog.com/?p=296 -- Kostya 30.01.2011 11:56, vnv пишет: Tnx for helping Kostya.

[android-developers] Re: Couldn't refresh list

2011-01-30 Thread vnv
Tnx for this also. Really appreciate your help! On Jan 30, 10:05 am, Kostya Vasilyev kmans...@gmail.com wrote: Ok, cool. ConvertView is used for recycling item views - as you scroll, item views that leave the screen are reused for items that scroll into view. This is a good explanation,

[android-developers] Live Wallpaper Memory Allocation

2011-01-30 Thread Andreas Hedin
I have a problem with my Live Wallpaper app. It has a settings button where the user can change the background image (and a couple of more things). I store information as shared preferences (see the Live Wallpaper tutorial). After starting it the memory allocated by the app is constant and

[android-developers] Free gesture library

2011-01-30 Thread Anton Persson
Hi, does anyone know if there are any free multi touch gesture libraries out there? The standard Android SDK only contains the one for pinch zoom, ScaleGestureDetector, which is kind of limited... I would like additional basic gestures like two/three finger flings. Perhaps there are other nice

[android-developers] bitmap image from a SurfaceView

2011-01-30 Thread som
Hi, I would like to create a bitmap image from some freehand drawing on a surface view...if someone shows me the way, that will be of immense help... i tried setDrawingCacheEnabled(true) and getDrawingCache(true) of the view class...but its not working... are these two functions behave

[android-developers] MonkeyImage.writeToFile error

2011-01-30 Thread dan raaka
I am running this as ./monkeyrunner test.py 17 # Takes a screenshot 18 result = device.takeSnapshot 19 20 # Writes the screenshot to a file 21 result.writeToFile('shot1.png','png') This throws an error as.. any thoughts ... mini@tools$./monkeyrunner test.py 110130 03:47:34.316:S [main]

[android-developers] Re: Emulator loses network connection issue

2011-01-30 Thread H
I've been suffering the same, but for a while now on previous emulator versions as well as the current. I had put it down to my PC simply being lacking on cpu and memory and assumed the emulator only worked up-to a point and I had to close and restart it. But if other people are now reporting

Re: [android-developers] Re: Emulator loses network connection issue

2011-01-30 Thread varun tewari
Guys i was suffering from the same issue. What i figured out in my case is, when i was connected to Wired Connection i wasn't able to see this problem and everything used to work fine. But when i connects sometime to Wireless Network i used to see this problem. What i noticed is, i used to make my

[android-developers] What Cancels Timer and TimerTasks?

2011-01-30 Thread bklik
I'm trying to write an egg timer application. Here's what I have: * An Activity that has the UI for adding timer and displaying time remaining * A Service that has a Timer/TimerTask which controls the countdown When I set a really long time, say nine hours and go to bed, somewhere in the night

[android-developers] XML or JSON in Android

2011-01-30 Thread Ranveer
Hi All, I am developing an Android application. Following is my scenario: 1. I parsing XML in android which is hosted on server (same like RSS feed). 2. It takes around 10 second depend on network speed. 3. XML refresh on server in every 15 minutes. Is there any other way so I can make it more

[android-developers] google analytics and active installs on market way off

2011-01-30 Thread neuron
Hi I got an application that on http://market.android.com/publish/ shows around 20k active installs / 30k total installs. However, google analytics for the app (that's not really doing anything weird. It's just using the normal api, collecting fairly standard data). Is showing 100k+ unique

[android-developers] Re: Attempt to read preferences file without permission

2011-01-30 Thread Lior
My user seem to have had the same symptom. He e-mailed me that he had to do a factory-reset to his phone due to other reasons, he re-installed the app from the market (something that didn't help before the reset), and now everything works as expected. On Jan 27, 8:49 pm, klwinkel

[android-developers] Re: google analytics and active installs on market way off

2011-01-30 Thread Hari Edo
Congrats on having such a popular app. Sounds like your child has grown up and left home, moved off to other markets without asking your permission. Some people would say it's stealing, piracy, and must be stopped at all costs. Some people would say that the more people see it, the more people

Re: [android-developers] Re: google analytics and active installs on market way off

2011-01-30 Thread Anders Aagaard
It's a free app, so they are free to copy to wherever they want. But a jump from 30k downloads in market to 120k users seem extreme to me. To the level where something's gotta be wrong somewhere. Or is this normal? Best regards Anders On Sun, Jan 30, 2011 at 3:33 PM, Hari Edo hari@gmail.com

Re: [android-developers] What Cancels Timer and TimerTasks?

2011-01-30 Thread Kostya Vasilyev
Brenton, I'm having a sense of deja vu, but here again are some points about timers in Android. A Java Timer / TimerTask is not really good for an Android application: - TimerTasks are invoked on a background thread, this creates an inconvenience if you need to touch the UI, since UI

Re: [android-developers] Re: Attempt to read preferences file without permission

2011-01-30 Thread Kostya Vasilyev
Lior, Do you know if the application was installed before or after he updated the firmware? That would tell if the 2.2.1 firmware messes up the files during the update process, or during normal use. -- Kostya 30.01.2011 17:25, Lior пишет: My user seem to have had the same symptom. He

[android-developers] Re: TCP socket network problem

2011-01-30 Thread dan
hii i have a similar problem do you get this error : java.net.SocketException: Address family not supported by protocol ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] MonkeyRunner

2011-01-30 Thread Bharathi raja
Hi All, I want to know files needed(for python) to start work with monkeyrunner tool. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

[android-developers] Running code right after installation

2011-01-30 Thread Omer Gilad
Hi, I am looking for a way to run code right after being installed - without waiting for activity launch\boot\etc. I have used the following manifest declaration: receiver android:name =xxx.yyy.zzz.PackageInstallReceiver intent-filter action

[android-developers] Re: XML or JSON in Android

2011-01-30 Thread Stephan Wiesner
I find JSON faster and much easier to use. Easier to produce the data as well :-) Stephan On 28 Jan., 20:20, Kumar Bibek coomar@gmail.com wrote: JSON is lighter, and is simple. :) Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Fri, Jan 28, 2011 at 1:17 PM,

Re: [android-developers] Running code right after installation

2011-01-30 Thread Marcin Orlowski
On 30 January 2011 16:25, Omer Gilad omer.gi...@gmail.com wrote: Hi, I am looking for a way to run code right after being installed - without waiting for activity launch\boot\etc. Hopefuly you're out of luck in this particular case. -- You received this message because you are subscribed to

[android-developers] Access to picture stored in my mobile.

2011-01-30 Thread muasif80
I have taken a picture using my camera on android. Now how can I access it in my program? Where do the camera store the picture by default inside android? Regards, Asif -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Enterprise Virtual App Container (EVC)

2011-01-30 Thread JAlexoid (Aleksandr Panzin)
So this isn't an advertisement for a library/platform/whatever for Android? On 29 янв, 17:23, amerhhh amer...@gmail.com wrote: Any feedback on Bitzer's approach ? Amer On Jan 27, 11:22 am, amerhhh amer...@gmail.com wrote: Bitzer is trying to push Android into the Enterprise.  Bitzer has

[android-developers] Re: Whats the key difference between Monkey Runner and Monkey tool?

2011-01-30 Thread A. Elk
I don't think that Monkey will give you the type of UI testing you want. It's mostly used to generate input while you test other things. MonkeyRunner can do functional testing, but a better use for it is to run suites of system tests and then collect the results. Remember, too, that MonkeyRunner

[android-developers] Re: When to use SingleLaunchActivityTestCase

2011-01-30 Thread A. Elk
First of all, yes, you can organize multiple tests into one test method, but that's not the accepted way of doing unit/functional testing. That's why you should use ActivityInstrumentationTestCase2(AITC2) in *most* cases to do unit/ functional testing of multiple methods in an Activity or multiple

[android-developers] Re: Access to picture stored in my mobile.

2011-01-30 Thread muasif80
Actually I have searched and found out the the pictures are stored in DCIM/Camera location. I have successfully downloaded and stored the images in the gallery using MediaStore.Images.Media.insertImage (ContentResolver cr, Bitmap source, String title, String description) method. Now I will be

Re: [android-developers] Questions about Two Way Sync Using SyncAdapter and SyncService in android

2011-01-30 Thread Dmitri Plotnikov
Hi Himanshu, 1) SampleSyncAdapter is still a good source of inspiration. It has some issues and plan to have them fixed in the nearest future. 2) In releases of Android from Eclair through Gingerbread integrated editing of 3rd party contacts is poorly supported. The trick is to insert a data

[android-developers] Re: i have htc legend The problem with is that whenevr i connect it witd my computer it says USB DEVICE NOT RECOGNISED error

2011-01-30 Thread JAlexoid (Aleksandr Panzin)
USB Device note recognised is a generic issue, when Windows identifies something connected to the USB but the data being sent is not in correct format. It might be that your phone's USB port is broken, your computer's port is broken or you have a defective cable. On 29 янв, 20:20, Muhammad Jawad

[android-developers] Re: Running code right after installation

2011-01-30 Thread Lance Nanek
intent-filter action android:name=com.android.vending.INSTALL_REFERRER / /intent-filter On Jan 30, 10:25 am, Omer Gilad omer.gi...@gmail.com wrote: Hi, I am looking for a way to run code right after being installed - without waiting for activity launch\boot\etc. I have used the following

[android-developers] When to use Handler

2011-01-30 Thread skrat
I have following code http://pastie.org/1513146, and while setProgress method works, onParsed doesn't. onParsed has to be called from Handler message because it accesses progressbar view from different thread. setProgress is called from different thread as well (thread running

[android-developers] Re: How to change the background color of ToggleButton?

2011-01-30 Thread Eric Chow
Yes, I just want to change the button background. How can I do it at runtime? Would you please to give me a simple example? Best regards, Eric On Jan 29, 2:17 am, Kostya Vasilyev kmans...@gmail.com wrote: If you only want tochangethe way aToggleButtonlooks (not behaves), you can replace the

[android-developers] Share app button? Any direct way to send link to launch market to app location?

2011-01-30 Thread pawpaw17
Guys, Is there any direct way to share a link with friends that if opened on an Android device, will launch the market app to your apps location? This would be for a button users could press to share the app with a friend? Any pointers would be appreciated. Thanks! pawpaw17 -- You received

[android-developers] Looking for 50-50 partner - Using unity3d

2011-01-30 Thread brian purgert
I'm looking for a partner or partners to start making a game in unity3d for android and iphone and it's ok if you don't know unity but are willing to learn because the reason I'm posting this in the android group is because most of your are hardworking and smart. which is much more important than

[android-developers] LocationManager.requestSingleUpdate() crashes device

2011-01-30 Thread davemac
I got nowhere with my previous question, so I did some experimenting and am trying again. The following code is correct AFAIK, but reliably crashes the emulator with a SIGSEGV. The build target is 2.3.1. public class LocationUpdateDemoActivity extends Activity { private static final

Re: [android-developers] Re: XML or JSON in Android

2011-01-30 Thread Kevin Duffey
C2DM sounds like the right way to do this. I am interesting to know if the use of C2DM is completely free from the server to the google servers? That is pretty nice if google provides those servers for free to all C2DM developers. On Sun, Jan 30, 2011 at 7:37 AM, Stephan Wiesner

[android-developers] Display PDF in an application

2011-01-30 Thread peria abirami
I need to display PDF in an application ... Can any one help me on this issue.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] Re: NFC Secure Element

2011-01-30 Thread Ajith Kamath
great mtk, my doubts are getting cleared... So to work on WI mode , i need to set the SE to wired -interface mode like u said. After this if i Use RawTagconenction to send GP commands to SE , Will this work for WI mode? I mean can u select the 0 AID with this? . Sorry i dont have device yet, so

[android-developers] Re: Android Developer Position for a NY Based Internet Company

2011-01-30 Thread Muhammad Ali
Hi Mr. Abunado, I have a question for this job, if you have any sponsor for overseas employee. Regards, Ali On Jan 27, 4:45 pm, Kim Abunado kim.abun...@gmail.com wrote: Hi There, SourcePad is a New York City based Internet company focusing on outsourcing services for SME. Our company

[android-developers] reboot emulator

2011-01-30 Thread Narendra Bagade
hi all, How to reboot emulator? -- Regards, Narendra . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Unable to upload app on Android Market having uses-configuration android:reqHardKeyboard=false/ tag in manifiest

2011-01-30 Thread Yogini
Thanks for your reply. I dont want to support landscape mode in my application. An activity can restrict to portrait view. But how do i restrict a wallpaper from being displayed in landscape mode (?) So, I would like it not to be displayed on devices supporting landscape mode on home screen, and

[android-developers] Re: reboot emulator

2011-01-30 Thread AJ
try this adb shell reboot Thanks, AJ On Jan 31, 3:16 pm, Narendra Bagade bagadenaren...@gmail.com wrote: hi all, How to reboot emulator? -- Regards, Narendra . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] Re: reboot emulator

2011-01-30 Thread Narendra Bagade
Thanks for reply, its not rebooting but I am getting error like, ADB rejected shell command (ls -l /): regards, Narendra On Mon, Jan 31, 2011 at 12:13 PM, AJ ajeet.invinci...@gmail.com wrote: try this adb shell reboot Thanks, AJ On Jan 31, 3:16 pm, Narendra Bagade

[android-developers] Re: How to exit the application..?

2011-01-30 Thread Mark Carter
I have a legitimate reason for wanting to kill the JVM. There appears to be a bug when instantiating the TextToSpeech class. You can read about it here: http://stackoverflow.com/questions/4819330/texttospeech-oninitlistener-oninitint-being-called-continuously The listener is repeatedly called

Re: [android-developers] Re: How to exit the application..?

2011-01-30 Thread Narendra Bagade
use Runtime.getRuntime.exit(code); On Mon, Jan 31, 2011 at 12:55 PM, Mark Carter mjc1...@googlemail.comwrote: I have a legitimate reason for wanting to kill the JVM. There appears to be a bug when instantiating the TextToSpeech class. You can read about it here:

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-01-30 Thread Samuh
:shameless bump: -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

[android-developers] Re: Display PDF in an application

2011-01-30 Thread JAlexoid (Aleksandr Panzin)
http://groups.google.com/group/android-developers/browse_thread/thread/33c065dcb4bd8583/2b737e636a7f8281?lnk=gstq=PDF#2b737e636a7f8281 http://lmgtfy.com/?q=Android+PDF+library How many times can you ask the same question? Nay, same message! On 31 янв, 06:54, peria abirami periaabir...@gmail.com