Re: [android-developers] Memory leak with setAdapter + ArrayAdapter

2011-06-30 Thread Chris
You think debugging should come for free or something? -- 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

Re: [android-developers] Memory leak with setAdapter + ArrayAdapter

2011-06-30 Thread Romain Guy
Debuggers usually keep objects alive, preventing them from being freed. On Wed, Jun 29, 2011 at 11:09 PM, Chris crehb...@gmail.com wrote: You think debugging should come for free or something? -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Memory leak with setAdapter + ArrayAdapter

2011-06-30 Thread Chris
Grr. -- 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 options,

Re: [android-developers] Memory leak with setAdapter + ArrayAdapter

2011-06-30 Thread Atlan
Hi Romain, thanks for answering this post. I think I read all your blog posts according to this subject... Maybe it's clear for you that this behavior is normal but it was at least not clear for me. I also think that a lot of other people are suffering with that. In all the posts I read it

Re: [android-developers] Memory leak with setAdapter + ArrayAdapter

2011-06-30 Thread Chris
Its so less complicated than 'quantum physics' -- 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

Re: [android-developers] Memory leak with setAdapter + ArrayAdapter

2011-06-30 Thread Romain Guy
I actually never ever do a heap dump with the debugger attached. You really want to make sure there's no external entity interacting with your heap. On Wed, Jun 29, 2011 at 11:39 PM, Atlan off...@mikemitterer.at wrote: Hi Romain, thanks for answering this post. I think I read all your blog

[android-developers] 3.1 release note is wrong about FLAG_EXCLUDE_STOPPED_PACKAGES or it is a bug?

2011-06-30 Thread James Wang
Hi, There are such words about FLAG_EXCLUDE_STOPPED_PACKAGES in 3.1's release note:http://developer.android.com/sdk/android-3.1.html. When neither or both of these flags is defined in an intent, the default behavior is to include filters of stopped applications in the list of potential targets.

Re: [android-developers] how to download source?

2011-06-30 Thread Kostya Vasilyev
The source for 3.* has not been released (yet). -- Kostya Vasilyev 30.06.2011 3:39 пользователь doles sachin.d...@gmail.com написал: Hi Kostya, Thanks! I did browse to that url. However, what tag is for version 3.0 and 3.1 platform? I can see gingerbread-release tag on there. Will that be

[android-developers] Jérôme Martin veut chatter

2011-06-30 Thread Jérôme Martin
--- Jérôme Martin souhaite faciliter la communication avec vous en utilisant les derniers et donc les meilleurs produits Google. Si vous utilisez déjà Gmail ou Google Talk, consultez la page :

[android-developers] Re: Disable HDCP in Android 3.1

2011-06-30 Thread Pauland
Ok, so nobody wants to answer this question, whatever the perfect spot where I ask ... -- 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,

Re: [android-developers] Memory leak with setAdapter + ArrayAdapter

2011-06-30 Thread Atlan
A system which shows me different results depending on how I observe it is a bit like quantum physics. Until the last few weeks I was really impressed about Android, it's API an how Google brought all these things together but after searching a memory leak for about 2 weeks which only exists

[android-developers] Re: Disable HDCP in Android 3.1

2011-06-30 Thread Pauland
Ok, so nobody wants to answer this question, whatever the perfect spot where I ask ... -- 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] KML Layers on Google Maps

2011-06-30 Thread Slicc
Hello, I have a KML file containing some plygons (apparently), can someone please tell me if it is possible to display these polygons on Google maps on an Android device. Would I need to manually parse the KML file then draw the polygons on in code? Can I just pass the KML file to the Maps API?

[android-developers] Re: Urgent need for Web Methods developer @AZ

2011-06-30 Thread Zsolt Vasvari
I can suggest his resume of you want a good laugh -- Indian Resume Review Guide On Jun 30, 1:58 pm, tushar sahni tusharsahn...@gmail.com wrote: Respected Sir I am sending you my latest Resume For Post Of Android Application Developer.. Regards Tushar Sahni  Tushar_Sahni.doc

[android-developers] Re: Android sdk insatllation problem?

2011-06-30 Thread Samuel
Hi, In the installed software of control panel, I found Java(TM) 6 Update 26 and Java(TM) SE Development kit 6 Update 26. My OS : windows vista. What else should I check out? I waited for couple of minutes (more than 5 minutes) but still get the alert. thanks, Samuel On Jun 27, 7:30 pm, Harsh

Re: [android-developers] Memory leak with setAdapter + ArrayAdapter

2011-06-30 Thread Atlan
That's what I learn in this conversation. But as said before I made a heap dump because my app crashed after changing the orientation in the emulator for about 6 to 10 times. This caused me to check the heap and because I found no problem in my code I started to make heap dumps. The dumps

[android-developers] Re: Android sdk insatllation problem?

2011-06-30 Thread Samuel
I found the answer : hit Back button and then Next button. Thanks On Jun 30, 2:19 pm, Samuel jrl...@gmail.com wrote: Hi, In the installed software of control panel, IfoundJava(TM) 6 Update 26 andJava(TM)SEDevelopmentkit6 Update 26. My OS : windows vista. What else should I check out? I

[android-developers] Does service gets restarted automatically after an application is manually force closed from settings screen.

2011-06-30 Thread Jitesh dedhiya
I am testing one scenario where i have to test whether the application service gets restarted after an application is manually force closed from settings screen. When i force close the app in logs it shows:- 06-30 11:26:30.283: WARN/ActivityManager(116): Scheduling restart of crashed service

Re: [android-developers] Memory leak with setAdapter + ArrayAdapter

2011-06-30 Thread Romain Guy
Checking the heap dump is perfectly, just make sure you're not doing it with the debugger attached. Also make sure to force a GC a couple of times on your process before taking a heap dump. On Thu, Jun 30, 2011 at 12:19 AM, Atlan off...@mikemitterer.at wrote: That's what I learn in this

[android-developers] Re: Fireworks app

2011-06-30 Thread Ali Chousein
Congratulations!!! I also uploaded to Youtube the most fantastic goal I ever scored in indoor soccer. Would you like to watch it? -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ On Jun 29, 3:17 pm, July 4th fireworks joeyk@gmail.com wrote: Hi my

[android-developers] Re: need to search photos contains in phone

2011-06-30 Thread JAlexoid (Aleksandr Panzin)
I didn't understand because I don't understand Indglish. On Jun 30, 2:38 am, Indicator Veritatis mej1...@yahoo.com wrote: The reason you can't understand it is most likely just as Justin speculates: because the question was not a 'smart question'. But MediaStore is a good guess. On Jun 29,

Re: [android-developers] Memory leak with setAdapter + ArrayAdapter

2011-06-30 Thread Atlan
OK + Thank you. I linked this conversation to my post in Stack Overflow. Hope it helps some others too. Also make sure to force a GC a couple of times on your process before taking a heap dump. That's what I made. Mike -- You received this message because you are subscribed to the Google

[android-developers] Re: replicating SmsManager.sendDataMessage on CDMA phones

2011-06-30 Thread Ben F.
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 options,

[android-developers] Starting an app at BOOT

2011-06-30 Thread Paolo
Hi there! I'd like to start a service when the device completes booting up. I know I have to use a BrodcastReceiver with ACTION_BOOT_COMPLETED, but as documentation this only works if the app installed in the internal storage. What about the external storage? Is there a workaround to get a quite

Re: [android-developers] Slow motion video

2011-06-30 Thread Daniel Drozdzewski
On Wednesday, June 29, 2011, New Developer secur...@isscp.com wrote: I'm struggling to close these two timer tasks I have@Override public void onCompletion(MediaPlayer arg0) { try { mMediaPlayer.stop(); mMediaPlayer = null;

[android-developers] Re: Urgent need for Web Methods developer @AZ

2011-06-30 Thread JAlexoid (Aleksandr Panzin)
Some people have no concept of private information On Jun 30, 10:17 am, Zsolt Vasvari zvasv...@gmail.com wrote: I can suggest his resume of you want a good laugh -- Indian Resume Review Guide On Jun 30, 1:58 pm, tushar sahni tusharsahn...@gmail.com wrote: Respected Sir I

Re: [android-developers] Re: code to run/install apk file

2011-06-30 Thread Paulsen J Siahaan
thx for reply,. but i think you don't get my point.. anyway, i have found the answer at http://stackoverflow.com/questions/4967669/android-install-apk-programmatically , i got the same case.. regards, On Wed, Jun 29, 2011 at 5:04 PM, Breakan joranr...@gmail.com wrote: I just know how to

Re: [android-developers] Re: Slow motion video

2011-06-30 Thread Daniel Drozdzewski
On Thu, Jun 30, 2011 at 12:35 AM, Indicator Veritatis mej1...@yahoo.com wrote: I don't use TimerTask in Java. For reasons that were never 100% clear to me, the online docs for the JDK and other sources recommend using a Handler instead. There is even an example in code in the docs for Handler

[android-developers] Re: After using the camera all the activities become horizontal

2011-06-30 Thread gaara
ctrl + F11 On Jun 30, 2:04 am, Josh Gitter joshgit...@gmail.com wrote: How did you solve it? On Jun 29, 11:42 pm, gaara amellal.kamili...@gmail.com wrote: Solved ! On Jun 29, 2:28 pm, gaara amellal.kamili...@gmail.com wrote: Hi group, when i use the camera in my first

[android-developers] AlarmManager - list of alarms set?

2011-06-30 Thread Neilz
Hi all. I'm using AlarmManager to, well, set an alarm which then calls a BroadcastReceiver at specified times. Is there a way, in my code, I can get hold of a list of the alarms that have been set, and then identify in some way if my alarm is in the list? (I want to do this because sometimes,

[android-developers] How to perform Pinch zoom out or zoom in using MonkeyRunner

2011-06-30 Thread Karthikeyan R
Hi, I would like to perform multi touch zoom in and zoom out operations using monkeyrunner. Could someone give me pointers for doing the same. Thanks in advance. Thanks --Karthik -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: unknown android module

2011-06-30 Thread Indicator Veritatis
Now that you finally admitted you are running SL4A, I at least know where to send you to get better answers than yo uare getting here. Please recall that the page for the SL4A project, http://code.google.com/p/android-scripting/ (q.v.), says to go to the FAQ and discussion list or to #sl4a on

Re: [android-developers] AlarmManager - list of alarms set?

2011-06-30 Thread Kostya Vasilyev
There isn't. You process should not be dying inside an receiver's onReceive, as being inside onReceive makes your process least likely to be killed by the process killer: http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html#Lifecycle Perhaps you have a bug where

[android-developers] Re: Java.net.UnknownHostException using httpGet on Android

2011-06-30 Thread Indicator Veritatis
You already have the right permission, good. But you still need to 1) double check that the host data is in the right format: the least discrepancy will cause that exception and 2) make sure you HAVE internet connectivity. No firewalls in the way? WiFi turned on? On Jun 24, 7:09 am, My Email

[android-developers] Re: Insecure Rfcomm Socket

2011-06-30 Thread Indicator Veritatis
I thought that was what you meant. But it should not be possible. How will you prevent a malicious snooper from connecting in that case? On Jun 29, 9:59 pm, D. Sav dhruvinsava...@gmail.com wrote: By Insecure connection, I mean that pairing wouldn't be required to send data from the client to

[android-developers] Re: Source code for finding Route between two places in Google map

2011-06-30 Thread Indicator Veritatis
If he wrote complete sourcecode but really meant provide me with a working example, then he is the one who need to work his style. Raghav Soods's response was quite appropriate. More so than yours. On Jun 29, 8:19 pm, Latcho spamtha...@gmail.com wrote: The reply style on this forum is SHIT.

[android-developers] Re: Source code for finding Route between two places in Google map

2011-06-30 Thread Indicator Veritatis
What do you want this for? Are you aware of the restrictions on route display in the agreement you agreed to to get the Google Maps API key? Real-time route display is outright forbidden, and any other calculation and display of routes requires reporting to Google. On Jun 27, 9:34 am, Md.Fazla

[android-developers] Screen sizes and precise element placement.

2011-06-30 Thread Serdel
I have a problem with supporting different screen sizes. My application has different drawables for mdpi (320x480), hdpi (480x800) or ldpi (240x432). I also have different layout for small, normal- notlong, normal-long. Every size scaling or placement features are done in dp. However my problem is

[android-developers] Re: AlarmManager - list of alarms set?

2011-06-30 Thread Neilz
Hi Kostya. This is basically a revival of this old thread, in which you helped me some time ago. http://groups.google.com/group/android-developers/browse_thread/thread/b2abad03be3467c0/d73f3780fbdd08f9 In my case, the onReceive method calls an ASyncTask which does some network calls, so

Re: [android-developers] Screen sizes and precise element placement.

2011-06-30 Thread Marcin Orlowski
PS: I have also another question that is a little bit connected: how to distinguish 480x800 and 480x854, or 240x400 and 240x432 to provide different drawables for them? There's no difference in DPI between 480x800 and 480x854 or 240x400 and 240x432 so you can't. And you also should not

Re: [android-developers] Screen sizes and precise element placement.

2011-06-30 Thread Marcin Orlowski
On 30 June 2011 11:58, Serdel adam.lichwierow...@gmail.com wrote: PS: I have read the 'Supporting Multiple Screens' article from dev.android.com, so please don't paste the link. I tried to read it carefully but if you think I must have missed sth. than feel free to point out where is the

Re: [android-developers] Re: Fireworks app

2011-06-30 Thread Marcin Orlowski
On 30 June 2011 09:37, Ali Chousein ali.chous...@gmail.com wrote: Congratulations!!! I also uploaded to Youtube the most fantastic goal I ever scored in indoor soccer. Would you like to watch it? Do I need iPad? Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you

[android-developers] Aw: ListView-Item with drawable highlightning - created programmatically

2011-06-30 Thread Rutton
Well. The pasted code at the end works in a test example, but not in my real app :-(. Anyhow, thanks for your attention. R. public StateListDrawable createSelectedUnSelectedDrawable( Drawable normalDrawable, Drawable selectedDrawable) { int[] pressed = new int[] {

Re: [android-developers] Screen sizes and precise element placement.

2011-06-30 Thread Kostya Vasilyev
Adam, For your specific requirements, aligning UI elements with a background image, you may be better off writing your own ViewGroup subclass, which would combine in one place two pieces: - The logic to resize the background image based on actual screen (rather, view) dimensions; - The

Re: [android-developers] Re: AlarmManager - list of alarms set?

2011-06-30 Thread Kostya Vasilyev
Neil, A running AsyncTask does not make your process less likely to be killed. Two possible fixes: - Use a service with startForeground to that Android (and the user) knows that your application is doing something important and doesn't kill the process. You can leverage IntentService or Mark

Re: [android-developers] Screen sizes and precise element placement.

2011-06-30 Thread Kostya Vasilyev
dip and dp are exactly the same thing. http://developer.android.com/guide/topics/resources/more-resources.html#Dimension: The compiler accepts both dip and dp, though dp is more consistent with sp. -- Kostya 30.06.2011 14:16, Marcin Orlowski пишет: Why not start using dip instead of dp?

[android-developers] Re: Screen sizes and precise element placement.

2011-06-30 Thread Serdel
I am sorry but I don't get this one. Dpi is screen density as far as I understood... DPI- dots per inch... so the number of pixels on a inch area on the screen. So isn't it screen density? On 30 Cze, 12:16, Marcin Orlowski webnet.andr...@gmail.com wrote: On 30 June 2011 11:58, Serdel

[android-developers] Re: How to perform Pinch zoom out or zoom in using MonkeyRunner

2011-06-30 Thread Ganesh Vadlakonda
multi touch is not fully implemented in android upt 2.0 and above also i think but you go and follow this link you may get complete idea regarding that. http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2/1747?tag=rbxccnbzd1 On Jun 30, 2:27 pm, Karthikeyan R

[android-developers] How do same using monkeyrunner tool and python lib?

2011-06-30 Thread c j
I using monkeyrunner in the Eclipse but now need using python lib PIL to comparing monkeyrunner cutting image code like this: import Image from com.android.monkeyrunner import MonkeyRunner device = MonkeyRunner.waitForConnection() image1 = device.takeSnapshot()

[android-developers] Linking different object files created from crosstool with the current shared library created from ndk-build

2011-06-30 Thread s.rawat
*NOTE: Changed the subject from OLD :Cross compiling the android application using the jni call to invoke a c method failing NEW : Linking different object files created from crosstool with the current shared library created from ndk-build* No, No success in this [?][?][?][?], I am not sure if I

[android-developers] Re: Insecure Rfcomm Socket

2011-06-30 Thread gjs
Hi, Yes apparently, try this http://mobisocial.stanford.edu/news/2011/03/bluetooth-reflection-and-legacy-nfc/ Regards On Jun 29, 6:29 pm, D. Sav dhruvinsava...@gmail.com wrote: Hi, I am trying to establish an insecure connection between my client (Android) and server (PC) using Bluetooth

Re: [android-developers] Starting an app at BOOT

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 4:28 AM, Paolo brand...@gmail.com wrote: I'd like to start a service when the device completes booting up. Why? I know I have to use a BrodcastReceiver with ACTION_BOOT_COMPLETED, but as documentation this only works if the app installed in the internal storage. What

Re: [android-developers] Does service gets restarted automatically after an application is manually force closed from settings screen.

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 3:23 AM, Jitesh dedhiya jitesh.dedh...@gmail.com wrote: I am testing one scenario where i have to test whether the application service gets restarted after an application is manually force closed from settings screen. It will not be restarted, AFAIK, because the user

Re: [android-developers] How to scroll images with both swipe and click in android?

2011-06-30 Thread Shruthi Varma
Yes I know, how to get the click event from a button and how to move to a specific item in a Gallery by using setSelection. But if I select the first item, that item will be in the middle of the screen and only 2 images shows up. When I move to second image, the 2nd image will come to middle and

[android-developers] Re: Screen sizes and precise element placement.

2011-06-30 Thread Serdel
I think Kostya is right - the dp and dip is the same thing... so this doesn't solve my problem, because I need to change (scale) the dp I use in my app... On 30 Cze, 12:31, Kostya Vasilyev kmans...@gmail.com wrote: dip and dp are exactly the same thing.

Re: [android-developers] Memory leak with setAdapter + ArrayAdapter

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 3:23 AM, Romain Guy romain...@android.com wrote: Checking the heap dump is perfectly, just make sure you're not doing it with the debugger attached. Just to be clear, what are the precise bounds of the debugger attached? Or, to phrase it another way, which of the

Re: [android-developers] How to scroll images with both swipe and click in android?

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 7:22 AM, Shruthi Varma shruthi.tlis...@gmail.com wrote: What I need is to show 3 images on the screen, where the first image is selected, when I click or swipe, 1st image should be replaced by the second image, second by 3rd and 3rd by 4th using slide animation. Grab

Re: [android-developers] Re: Screen sizes and precise element placement.

2011-06-30 Thread Kostya Vasilyev
Really, the documentation is quite clear about this, but let's check the source for TypedValue.java to be sure: public static float applyDimension(int unit, float value, DisplayMetrics metrics) { switch (unit) { case

[android-developers] Video codec integration issue someone help me who have 3+ yrs experience not for child developer

2011-06-30 Thread naveen kumar
hi i have downloaded github all libirary for media Jni and video player support. from http://android.git.kernel.org/?p=platform/external/opencore.git;a=tree;f=codecs_v2/audio/aac/dec;hb=HEAD i am confused how to use codec interface by using this code. please share me step by step support for

[android-developers] Re: Problem launching a basic application using GMaps on Android emulator

2011-06-30 Thread davemac
You can very likely ignore the first dialog. The emulator can run very slowly and will often complain about things not responding, especially when you first start it. Like the keyboard. The second dialog is the one you want to investigate using logcat. Since you're using maps and working from

[android-developers] Fwd: sometimes CTS cannot detect the device connection after reboot

2011-06-30 Thread waterblood
-- Forwarded message -- From: waterblood guoyin.c...@gmail.com Date: Jun 30, 10:44 am Subject: sometimes CTS cannot detect the device connection after reboot To: android-platform CTS will try to reboot device every 200 case. And sometimes, CTS cannot detect the device

Re: [android-developers] Re: Screenshots taken by Google+ App

2011-06-30 Thread Kostya Vasilyev
Haven't seen that app, but. It probably does it the same way that Market is able to install applications chosen via the web site, without requiring the user to confirm permissions on the device. Officially, this is not possible either. -- Kostya 30.06.2011 6:53, Zsolt Vasvari пишет: I

[android-developers] Binding to a Remote service

2011-06-30 Thread Suraj Gopalakrishnan
Hi All, Can more than one applications bind to a remote service simultaneously? -- Best Regards, Suraj Gopalakrishnan -- 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

[android-developers] Share Page

2011-06-30 Thread Android Beta
What I want to do is basically have an application run in the background. So what the user would basically do is open the application and then switch to a browser. After the User has opened up the browser he would go on to clicking menu - more - share page and would find the application name on

[android-developers] Re: Screen sizes and precise element placement.

2011-06-30 Thread Serdel
Kostya - thank you for the suggestion but this seems too complex for such a simple (or not?!) task.. I have many other elements in my application activities so writing such classes for every activity and placing each element manually really seems too complex.. there must be a simper way to

Re: [android-developers] Re: Slow motion video

2011-06-30 Thread New Developer
I have tried to simplify the process Based on the cycle of 100 ms play 100ms pause , etc... handle = new Handler(); play = new Runnable() { @Override public void run() { if (mMediaPlayer != null) { mMediaPlayer.setLooping(false); if

Re: [android-developers] Share Page

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 12:59 AM, Android Beta androidgee...@gmail.com wrote: What I want to do is basically have an application run in the background. Why? So what the user would basically do is open the application and then switch to a browser. After the User has opened up the browser he

Re: [android-developers] Binding to a Remote service

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 7:58 AM, Suraj Gopalakrishnan suraj...@gmail.com wrote: Can more than one applications bind to a remote service simultaneously? Yes, AFAIK. Remote services, particularly ones involving binding, are not terribly common, though. -- Mark Murphy (a Commons Guy)

Re: [android-developers] Video codec integration issue someone help me who have 3+ yrs experience not for child developer

2011-06-30 Thread Mark Murphy
Step #1: Visit http://source.android.com. Step #2: Click on the Community tab. Step #3: Choose a Google Group that actually relates to your topic, since nothing in that git repo you point to is relevant for an SDK application. Step #4: Ask there. On Thu, Jun 30, 2011 at 7:51 AM, naveen kumar

Re: [android-developers] Binding to a Remote service

2011-06-30 Thread Suraj Gopalakrishnan
But i tried to bind to a remote service from App A and when i tried to bind to the same remote service from App B it didn't bind? What might be the reason? On Thu, Jun 30, 2011 at 5:49 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Jun 30, 2011 at 7:58 AM, Suraj Gopalakrishnan

Re: [android-developers] Binding to a Remote service

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 8:25 AM, Suraj Gopalakrishnan suraj...@gmail.com wrote: But i tried to bind to a remote service from App A and when i tried to bind to the same remote service from App B it didn't bind? What might be the reason? I have no idea. Of course, I also am unclear of what you

[android-developers] Re: Video codec integration issue someone help me who have 3+ yrs experience not for child developer

2011-06-30 Thread naveen kumar
On Jun 30, 4:51 pm, naveen kumar kumarnaveen.si...@gmail.com wrote: hi i have downloaded github all libirary for media Jni and video player support. from http://android.git.kernel.org/?p=platform/external/opencore.git;a=tre... i am confused how to use codec interface by using this code.

Re: [android-developers] Binding to a Remote service

2011-06-30 Thread Suraj Gopalakrishnan
When App-A bound to the remote service, it hit 1. OnCreate() 2.OnBind() methods When App-B tried to connect to the remote service, there were no hits. On Thu, Jun 30, 2011 at 6:02 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Jun 30, 2011 at 8:25 AM, Suraj Gopalakrishnan

Re: [android-developers] Re: Video codec integration issue someone help me who have 3+ yrs experience not for child developer

2011-06-30 Thread Mohammed Hossain Doula
A developer already responded... :)... On Thu, Jun 30, 2011 at 6:35 PM, naveen kumar kumarnaveen.si...@gmail.comwrote: On Jun 30, 4:51 pm, naveen kumar kumarnaveen.si...@gmail.com wrote: hi i have downloaded github all libirary for media Jni and video player support. from

Re: [android-developers] Binding to a Remote service

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 8:35 AM, Suraj Gopalakrishnan suraj...@gmail.com wrote: When App-A bound to the remote service, it hit 1. OnCreate() 2.OnBind()  methods When App-B tried to connect to the remote service, there were no hits. onCreate() would not be called, as the service is already

[android-developers] calling services from broad cast receiver

2011-06-30 Thread Sapna Srivastav
Hi all I need some help. In application,I need a service. The scenario is like this, my application runs after a specied time laps or interval as set by user through an alarm manager and do some recording of GPS and store upto 10 location and send to the server. But some time connection to server

Re: [android-developers] Binding to a Remote service

2011-06-30 Thread Suraj Gopalakrishnan
Yes onServiceConnected() is called from App-B. So this concludes that two applications cannot bind to the same remote service, doesn't it? On Thu, Jun 30, 2011 at 6:13 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Jun 30, 2011 at 8:35 AM, Suraj Gopalakrishnan suraj...@gmail.com wrote:

[android-developers] Re: Starting an app at BOOT

2011-06-30 Thread Paolo
Why? Just because I would give the user the possibility to decide it. -- 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

Re: [android-developers] Re: Starting an app at BOOT

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 8:49 AM, Paolo brand...@gmail.com wrote: Why? Just because I would give the user the possibility to decide it. If you do not need to start at boot time, do not start at boot time, because you will be adding no value for starting at boot time and only harming the user

Re: [android-developers] Binding to a Remote service

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 8:47 AM, Suraj Gopalakrishnan suraj...@gmail.com wrote: Yes onServiceConnected() is called from App-B. That means that you are bound. So this concludes that two applications cannot bind to the same remote service, doesn't it? onServiceConnected() means your service is

Re: [android-developers] calling services from broad cast receiver

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 8:46 AM, Sapna Srivastav sapna.ari...@gmail.com wrote: I need some help. In application,I need a service. The scenario is like this, my application runs after a specied time laps or interval as set by user through an alarm manager and do some recording of GPS and store

[android-developers] Re: Fireworks app

2011-06-30 Thread Ali Chousein
Do I need iPad? Actually you can watch it only on a system which has decent support of multitasking. If you have a super expensive, yet not that useful device with zillions of restrictions (and I'm not mentioning any names), I'm afraid you cannot enjoy it. -- Ali Chousein Geo-Filtered

[android-developers] Re: Trying to resolve application crash

2011-06-30 Thread James Wright
Ahh wow I didn't even think of that - thank you very much! On Jun 29, 5:31 pm, Kostya Vasilyev kmans...@gmail.com wrote: Your put and get operations use different keys: this.gameState.getClass().getName() // Can vary with the actual class of gameState and GameState.class.getName() //

[android-developers] Flash player access camera

2011-06-30 Thread kevin
Earlier of the year, I found out that flash player can not access camera and microphone in Android. So any cool flash site using camera and microphone can't be used on Android devices. Does anyone know when this will be available? Thanks, Kevin -- You received this message because you are

[android-developers] Re: AlarmManager - list of alarms set?

2011-06-30 Thread Neilz
One of the problems with setting the alarm immediately inside onReceive(), is that the time of the next alarm depends on the outcome of the task. So I could set a default one, but what happens if I set it twice? Does the second overwrite the first, or will I end up with two alarms? On Jun 30,

[android-developers] Re: Trying to resolve application crash

2011-06-30 Thread James Wright
Hrm, changed that but didn't seem to help. On Jun 29, 5:31 pm, Kostya Vasilyev kmans...@gmail.com wrote: Your put and get operations use different keys: this.gameState.getClass().getName() // Can vary with the actual class of gameState and GameState.class.getName() // Always GameState

[android-developers] Re: Trying to resolve application crash

2011-06-30 Thread James Wright
I actually do that in OnCreate, I think this should take care of it. if (bundle != null !bundle.isEmpty()) { gameState = (GameState) bundle.getParcelable(GameState.class .getName());

[android-developers] Re: Trying to resolve application crash

2011-06-30 Thread James Wright
Here is the exception - it actually seems like it's the isEmpty part of: if (bundle != null !bundle.isEmpty()) { although if that would throw a null pointer, then bundle!=null should evaluate to false and the right side shouldn't be evaluated, no? I did try removing the

Re: [android-developers] Re: AlarmManager - list of alarms set?

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 9:24 AM, Neilz neilhorn...@gmail.com wrote: One of the problems with setting the alarm immediately inside onReceive(), is that the time of the next alarm depends on the outcome of the task. So I could set a default one, but what happens if I set it twice? Does the

Re: [android-developers] Flash player access camera

2011-06-30 Thread Mark Murphy
That would be a fine question to ask Adobe, wherever Adobe has support for Flash development on Android. On Thu, Jun 30, 2011 at 9:17 AM, kevin kevin_x...@yahoo.com wrote: Earlier of the year, I found out that flash player can not access camera and microphone in Android. So any cool flash site

[android-developers] Re: Trying to resolve application crash

2011-06-30 Thread James Wright
Sorry, the easier to read version: E/AndroidRuntime( 3798): FATAL EXCEPTION: main E/AndroidRuntime( 3798): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jwright.montana/ com.jwright.montana.GameActivity}: java.lang.NullPointerException E/AndroidRuntime( 3798):at

Re: [android-developers] Binding to a Remote service

2011-06-30 Thread Kostya Vasilyev
The binder object returned by onBind is reused, and so it's only called once. If you need more rich service / app interaction, well, define your own interfaces with AIDL -- Kostya 30.06.2011 16:35, Suraj Gopalakrishnan пишет: When App-A bound to the remote service, it hit 1. OnCreate()

Re: [android-developers] Binding to a Remote service

2011-06-30 Thread Suraj Gopalakrishnan
1.When i first called bindService from App A, it showed logs from OnCreate, OnBind and OnServiceConnected 2.Then i called bindService from App B, it just displayed the logs from OnServiceConnected() Does this mean both are connected?? On Thu, Jun 30, 2011 at 6:30 PM, Mark Murphy

Re: [android-developers] Re: AlarmManager - list of alarms set?

2011-06-30 Thread Kostya Vasilyev
Yes, as long as the PendingIntent objects are the same, the alarm will be overwritten. 30.06.2011 17:24, Neilz пишет: One of the problems with setting the alarm immediately inside onReceive(), is that the time of the next alarm depends on the outcome of the task. So I could set a default one,

[android-developers] Re: Linking different object files created from crosstool with the current shared library created from ndk-build

2011-06-30 Thread David Turner
Archive your object files into a library (e.g. libfoo.a) Then declare a prebuilt static library in your Android.mk, as in include $(CLEAR_VARS) LOCAL_MODULE := libfoo_prebuilt LOCAL_SRC_FILES := /path/to/libfoo.a include $(PREBUILT_STATIC_LIBRARY) ... Then later reference it in the

Re: [android-developers] Binding to a Remote service

2011-06-30 Thread Suraj Gopalakrishnan
@Kostya I did define my own interface with AIDL. But i did not use the binder object returned by the OnBind() method (as it was not necessary), since i did not want to use any methods from the remote service. I just want to know whether 2 apps can be bound to a single remote service On Thu,

Re: [android-developers] Binding to a Remote service

2011-06-30 Thread Mark Murphy
On Thu, Jun 30, 2011 at 9:49 AM, Kostya Vasilyev kmans...@gmail.com wrote: The binder object returned by onBind is reused, and so it's only called once. Even if the Intents are different (e.g., different action strings)? If so, that would invalidate some advice that I have been providing to

[android-developers] takepicture hangs on Android 2.3.3

2011-06-30 Thread dingding dangdang
I have some codes of takeing picture working at Android 2.1 and 2.2. But these codes broke at Android 2.3. After spending a time to fix this issue in vain, I would like to ask for help here. My code flow to take picture is like this: 1. create a class Camlayer extends SurfaceView

[android-developers] Re: KML Layers on Google Maps

2011-06-30 Thread JP
I believe this has been asked a few times before, and the answer to my knowledge is that yes, you need to parse out the KML file and convert the content to objects which you draw on the map overlay. On Jun 30, 12:15 am, Slicc steven.liccia...@gmail.com wrote: Hello, I have a KML file

[android-developers] Hex Conversion

2011-06-30 Thread Si
Hi, Can anybody give me any hints on how to convert a Hex string into its ASCII equivalent characters using Android please? For example 0x41 = A 0x4E = N 0x44 = D 0x52 = R 0x4F = O 0x49 = I 0x44 = D Thanks in advance Si -- You received this message because you are subscribed to the Google

  1   2   3   >