[android-developers] Re: Advice for a strategic game map

2012-11-12 Thread Martin
If a 2D map is required i'd suggest you look at using OSMDroid and creating 
a custom tile layer for the galaxy background:
http://code.google.com/p/osmdroid/

You can then use the OSMDroid classes to add planets and spaceships etc.
And you can detect taps and long taps on these planets and spaceships.

Pros: You'll benefit from the existing OSMDroid API.

Cons: Your custom tile layer could well be many MBs in size causing your 
APK to become very large.
You could workaround this by separating the tile layer from the APK, maybe 
use an expansion file for the tile layer?

Martin.

On Monday, November 12, 2012 1:31:27 AM UTC, Nobu Games wrote:
>
> If you want to use 3D graphics then you need to brush up your OpenGL 
> knowledge and optionally use one of the available game engines out there 
> that also support Android.
>
> If it's 2D and performance is not a big concern then you can write your 
> own custom View for that map (you also could create your 2D game in OpenGL 
> by the way).
>
> Your custom map view would:
>
>- respond to touch gestures through View.onTouchEvent
>   - Pinch-to-zoom
>   - panning
>   - touching game objects for interaction
>- have an internal representation of the game map
>   - ...which could be composed of a grid of X * Y tiles
>   - Or it could be one big space image
>  - Preferably also split in tiles so you can stay compatible with 
>  older Android version that don't have 
> android.graphics.BitmapRegionDecoder
>   - have an internal representation of all game objects and their 
>positions:
>   - ships, planets etc.
>   - have an internal zoom factor
>- x/y coordinates of the current map translation
>- This is the point you are looking at right now on your map
>- implement onDraw to:
>   - render the currently visible part of the map by:
>  - draw the background first
>  - draw the game object 
>  - draw the UI in the end
>  
> On
>  Saturday, November 10, 2012 10:44:07 AM UTC-6, tlegras wrote:
>>
>> Hi, 
>> I am starting the development of a strategy game. For that I would like 
>> to develop an interactive galaxy map with objects (basically planets, 
>> spaceships). Note this would NOT be a real time game, but a turn by turn 
>> game. 
>> What is the best way to start knowing I would like a typical mapview 
>> touch controls (scroll, zoom) but of course with my own map content :)
>> - ViewGroup and I develop everything? 
>> - Custom MapView?
>> - Some higher level android or google class 
>> - third party open source toolkit
>>
>> Any suggestion welcome
>> Thierry.
>>  
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Is is possible to have 2 settings files in a live wallpaper?

2012-11-12 Thread MobileVisuals
So it is not possible to have 2 settings files in a live wallpaper?

On Saturday, November 10, 2012 1:34:23 PM UTC+1, 庞绪瑞 wrote:
>
>
>
> 2012/11/10 MobileVisuals >
>
>> Is there any way to have 2 settings.xml files in a live wallpaper? Is it 
>> then possible to switch between these settings files in any way?
>>
>>  -- sorry i don't have idea!
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Is is possible to have 2 settings files in a live wallpaper?

2012-11-12 Thread Harri Smått
Hi,

I would say no.

--
H

On Nov 12, 2012, at 10:06 AM, MobileVisuals  wrote:

> So it is not possible to have 2 settings files in a live wallpaper?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Handling Strange Phones

2012-11-12 Thread pistol
I have just seen one of these for phone model=IM-A730S.

Not sure of the best way to handle it as I don't think the user will 
understand or appreciate me saying their phone shouldn't do it.
Also I don't want to add the permission as then some users won't download 
my app since it looks like I have unnecessary permissions.

On Sunday, January 2, 2011 11:27:22 PM UTC, Yuv wrote:
>
> For some odd reason, this phone "SKY IM-A630K" wants the
> READ_PHONE_STATE permission just to send an SMS message. So how would 
> you guys handle this? I guess I should wrap sendTextMessage with a try 
> catch and somehow notify the user that this failed because their phone 
> is buggy. Is that it? 
>
> package_name=com.emergency.button, package_version=1.2, 
> phone_model=SKY IM-A630K, android_version=2.1-update1, 
>
> stacktrace= 
> java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 
> 10089 nor current process has android.permission.READ_PHONE_STATE. 
>at android.os.Parcel.readException(Parcel.java:1218) 
>at android.os.Parcel.readException(Parcel.java:1206) 
>at com.android.internal.telephony.IPhoneSubInfo$Stub 
> $Proxy.getLine1Number(IPhoneSubInfo.java:223) 
>at 
> android.telephony.TelephonyManager.getLine1Number(TelephonyManager.java: 
> 764) 
>at android.telephony.SmsManager.sendTextMessage(SmsManager.java: 
> 129) 
>at android.telephony.SmsManager.sendTextMessage(SmsManager.java: 
> 108) 
>at com.emergency.button.SMSSender.safeSendSMS(SMSSender.java: 
> 91) 
>at com.emergency.button.EmergencyActivity 
> $EmergencyThread.sendSMS(EmergencyActivity.java:294) 
>at com.emergency.button.EmergencyActivity 
> $EmergencyThread.sendMessages(EmergencyActivity.java:386) 
>at com.emergency.button.EmergencyActivity 
> $EmergencyThread.run(EmergencyActivity.java:266) 
>
> If you want to see how exactly sendTextMessage was invoked: 
>
> http://code.google.com/p/emergencybutton/source/browse/trunk/src/com/emergency/button/SMSSender.java?r=24
>  
>
> Any help would be appreciated, 
>
>
> --Yuv

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Handling Strange Phones

2012-11-12 Thread Stu
You could release another version of your app called "My App (for Pantech)" 
that has this permission, then notify the user that they have the wrong 
version, either when they try to send a message, or on home activity 
startup.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] After the device has just started, I met a wrong layout id problem.

2012-11-12 Thread fycd
hi all:

After the device has just started, I met a wrong layout id problem.

my app get all kinds of broadcast and then send a notification.
but some times, after devices has just started, my app receives the first 
broadcast and then send a notification with wrong layout id.
and it cause my app crash for"Couldn't expand RemoteViews for".
I have checked my code that the notification's layout id never be changed.
but why it change to another id, and It only happens after the device has 
just started.

Are there any clues can help me find the root cause?
All are welcome to give your ideas :)

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: XMPP file Transfer

2012-11-12 Thread Juned Khan
Hi all,

I am developing the same application and i just stuck with this file 
transfer. Chatting is work fine but i want to add the feature of file 
transfer. Anyone succeeded in that ??

Thanks & Regards
Juned

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] bluetooth PAN issue

2012-11-12 Thread Harsh Vardhan
Hi.
I think this might be an accepted bug for ICS (Assuming you are using that).
This  might help
you.

- Best


On Mon, Nov 12, 2012 at 12:31 PM, Robin Gujjar wrote:

> Hi All ,
>
>
> I am trying to setup the bluetoooth PAN on my devlopment board( Client
> PANU).  Master is running on a Ubuntu PC 12.04 .
> Master is working fine as i am able to access interbet on another ubuntu
> PC .
>
> But on my android development board i am not able to start a connection, i
> have done the below steps :
>
> On my android board :
>
> W/ProcessStats( 1665): Skipping unknown process pid 2239
> W/ThrottleService( 1665): unable to find stats for iface rmnet0
> I/pand( 2254): Bluetooth PAN daemon version 4.93
> I/pand( 2254): Connecting to 74:E5:43:51:8C:E6
> I/pand( 2254): bnep0 connected
>
> root@android:/ # pand -l
> bnep0 E6:8C:51:43:E5:74 PANU
>
> method 1:
> Static IP setting :
> ifconfig bnep0 172.22.22.10 netmask 255.255.255.0
> route add default gw 172.22.22.1 dev bnep0
> setprop net.dns1 198.95.1.1
>
>
> 130|root@android:/ # netcfg
> lo   UP
> **   127.0.0.1/8   0x0049 00:00:00:00:00:00
> sit0 DOWN  ** 0.0.0.0/0   0x0080
> 00:00:00:00:00:00
> ip6tnl0  DOWN  ** 0.0.0.0/0   0x0080
> 00:00:00:00:00:00
> bnep0UP**172.22.22.10/24  0x1043
> 00:02:72:bc:01:47
>
> Method2 :
> I also tried the dhcp :
>
> 1|root@android:/ # dhcpcd -d bnep0 **
>
> dhcpcd[2346]: version 5.2.10 starting
> dhcpcd[2346]: bnep0: using hwaddr 00:02:72:bc:01:47
> dhcpcd[2346]: bnep0: executing `/system/etc/dhcpcd/dhcpcd-**run-hooks',
> reason PREINIT
> dhcpcd[2346]: bnep0: executing `/system/etc/dhcpcd/dhcpcd-**run-hooks',
> reason CARRIER
> dhcpcd[2346]: host does not support a monotonic clock - timing can skew
> dhcpcd[2346]: bnep0: reading lease `/data/misc/dhcp/dhcpcd-bnep0.**lease'
> dhcpcd[2346]: bnep0: checking for 169.254.159.45
> dhcpcd[2346]: bnep0: sending ARP probe (1 of 3), next in 1.11 seconds
> dhcpcd[2346]: bnep0: sending ARP probe (2 of 3), next in 1.81 seconds
> dhcpcd[2346]: bnep0: sending ARP probe (3 of 3), next in 2.00 seconds
> dhcpcd[2346]: bnep0: using IPv4LL address 169.254.159.45
> dhcpcd[2346]: bnep0: adding IP address 169.254.159.45/16
> dhcpcd[2346]: bnep0: adding route to 169.254.0.0/16
> dhcpcd[2346]: bnep0: writing lease `/data/misc/dhcp/dhcpcd-bnep0.**lease'
> dhcpcd[2346]: bnep0: executing `/system/etc/dhcpcd/dhcpcd-**run-hooks',
> reason IPV4LL
> dhcpcd[2346]: forking to background
> dhcpcd[2346]: forked to background, child pid 2370
>
>
> =
> None of them works for me:  i can not ping my master form android client.
> am i missing any other step ?
> Please give me soem pointers ?
>
> thanks
> Robin Singh
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Regards
Harsh Vardhan

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] proguard.cfg assumenosideeffects options

2012-11-12 Thread android.makilette
Im japanese programer.


What I want to describe how it is when you delete proguard.cfg
"System.out.print" and "System.out.println" of code using the option of
assumenosideeffects proguard?


thanks.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Drawing complex shapes with hollow parts

2012-11-12 Thread Simon Giddings
I am needing to draw shapes which will have hollow regions.
To simplify the idea, take an ampersand sign : &
This is just to illustrate the kind of task I need to do.

I can create the outline by using a path.
However, I have not been able to see how to create the two "holes" such 
that when the paths are painted, they will appear as ... holes.

Can anyone guide me with this one ?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Drawing complex shapes with hollow parts

2012-11-12 Thread Piren
http://stackoverflow.com/questions/11337679/porterduffxfermode-clear-a-section-of-a-bitmap

On Monday, November 12, 2012 12:16:17 PM UTC+2, Simon Giddings wrote:
>
> I am needing to draw shapes which will have hollow regions.
> To simplify the idea, take an ampersand sign : &
> This is just to illustrate the kind of task I need to do.
>
> I can create the outline by using a path.
> However, I have not been able to see how to create the two "holes" such 
> that when the paths are painted, they will appear as ... holes.
>
> Can anyone guide me with this one ?
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Drawing complex shapes with hollow parts

2012-11-12 Thread Simon Giddings
Thank you for this.
One thing I am not clear with is the problem with hardware acceleration.
Some people say that this will not work with hardware acceleration ON, 
whilst others say that this is precisely what is needed when it is ON.

Is there some definitive answer for this aspect ?

On Monday, 12 November 2012 11:58:07 UTC+1, Piren wrote:
>
>
> http://stackoverflow.com/questions/11337679/porterduffxfermode-clear-a-section-of-a-bitmap
>
> On Monday, November 12, 2012 12:16:17 PM UTC+2, Simon Giddings wrote:
>>
>> I am needing to draw shapes which will have hollow regions.
>> To simplify the idea, take an ampersand sign : &
>> This is just to illustrate the kind of task I need to do.
>>
>> I can create the outline by using a path.
>> However, I have not been able to see how to create the two "holes" such 
>> that when the paths are painted, they will appear as ... holes.
>>
>> Can anyone guide me with this one ?
>>
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: AndroidHttpClient and SocketTimeoutException on some configuration

2012-11-12 Thread Thomas Bouron
Hi!
I still cannot understand how to handle properly chuncked encoding. It 
seems that AndroidHttpClient do that automatically but it still does not 
work on some configurations...

If anyone have a clue, i'll take it with pleasure.

On Wednesday, November 7, 2012 11:25:02 AM UTC+1, Thomas Bouron wrote:
>
> Oh wait! You're right, the JSON reponses > 8KB are chuncked encoding!
> I didn't notice that before!
>
> So how to handle that properly?
>
> On Wednesday, November 7, 2012 10:26:57 AM UTC+1, Nikolay Elenkov wrote:
>>
>> On Wed, Nov 7, 2012 at 5:39 PM, Thomas Bouron  wrote: 
>> > Hi. 
>> > 
>> > Thank you very much for giving me your code! Unfortunately, I got the 
>> same 
>> > behavior which is: 
>> > 
>> > For JSON reponse < 8KB: It works 
>> > For JSON reponse > 8KB: It doesn't work. To be more accurate, it 
>> returns me 
>> > a response with a statusCode = 200 but the entity.gertContentLenght() = 
>> -1 
>> > and when i try to read the InputStream, it throws me an 
>> > SocketTimeoutException after a while (well, the defined timeout) 
>> > 
>> > I seriously don't understand what is going on... 
>> > 
>>
>> Chunked encoding? How do captured responses look in the two cases? 
>>
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] count down UI control

2012-11-12 Thread and_dev
hi
 
I am looking for a custom component which will behave like a wheel.
actually I have to show the some number, which will start with zero and 
goes upto particular value (say from 0 - 1000).
In detail it should work like this.
upto 1000 I have to show 4 images and on the top of it I have to show 1 
digit per image programmatically.
whe we start with 0 that time only one image is visible, the movement my 
count reaches 10 it should make another image visible and on reaching 100 
it should make another image visible and so on ant by the time my counter 
should keep on increasing.
This control should look something like this. I have attached the screen 
shot of the control how it should look likr.
 
Need urgent help on this
 
 

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en<>

[android-developers] TinCan

2012-11-12 Thread Sadhna Upadhyay
Hi everyone,
 can some one tell me something about TinCan,what is this and how to do
code for this in android.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Application onCreate called more than once?

2012-11-12 Thread Craig
I don't have any process attributes in my manifest.xml... here it is:


http://schemas.android.com/apk/res/android";
package="com.comp.duh.rm" android:versionCode="1"
android:versionName="@string/versionName">
















 


 


 


















 

































On Sunday, November 11, 2012 5:17:28 PM UTC-5, Nobu Games wrote:
>
> Post your manifest.xml. I assume that you have your broadcastreceiver or 
> some service running in a separate process. That would cause 
> Application.onCreate to be called multiple times.
>
> On Saturday, November 10, 2012 3:32:42 PM UTC-6, Craig wrote:
>>
>> I received an error because I'm doing something (init'ing ACRA) in my 
>> overridden Application class' onCreate, and I expected this method to be 
>> called only once. I think I have a clue as to what is happening - I see 
>> multiple logcat lines like: "Force stopping package " for my package 
>> close together, for example:
>> 11-09 11:53:40.394
>> 11-09 11:53:40.744
>> 11-09 11:53:41.364
>>
>> I am using a Service, but only through onHandleIntent, and I did not 
>> register it to run in a separate process. 
>>
>> My theory is that I'm holding onto some reference which is preventing my 
>> app from being stopped (and garbage collected).
>>
>> Does this make sense? If it does, is there a good way to track down what 
>> reference or references could be causing this? My app is rather large 
>> (about a dozen activities, a handful of async tasks, a few 
>> broadcasters/receivers, etc.), so I was really hoping for a good way to 
>> track these down. 
>>
>>
>>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Application onCreate called more than once?

2012-11-12 Thread Craig
Thanks - I read that post; it seems to be stuck in the same place I am. 

I suspect a memory leak that is keeping some app state alive across app 
shutdown and restart, and what I'd really like is some easy way to analyze 
what memory isn't being reclaimed when Android closes my app. 



On Sunday, November 11, 2012 9:18:37 PM UTC-5, Nikolay Elenkov wrote:
>
> On Mon, Nov 12, 2012 at 7:17 AM, Nobu Games 
> > 
> wrote: 
> > Post your manifest.xml. I assume that you have your broadcastreceiver or 
> > some service running in a separate process. That would cause 
> > Application.onCreate to be called multiple times. 
> > 
>
> ACRA keeps track of initialization using a static variable, so with 
> multiple processes 
> this should not happen. I've seen this too in error reports, still no 
> idea why it happens. 
> Here's a related issue: 
>
> https://github.com/ACRA/acra/issues/3 
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: AndroidHttpClient and SocketTimeoutException on some configuration

2012-11-12 Thread Nikolay Elenkov
On Mon, Nov 12, 2012 at 8:18 PM, Thomas Bouron  wrote:
> Hi!
> I still cannot understand how to handle properly chuncked encoding. It seems
> that AndroidHttpClient do that automatically but it still does not work on
> some configurations...

There was a bug filed for this on the emulator, when used with a proxy.
Search on http://b.android.com.

Does it happen on all devices, only on a certain device, only on the emulator?
If you are hitting a but in the framework (of which HttpClient is a part of)
on some particular version , the only way to avoid is to bundle a
newer version in
your app, or use HttpUrlConnection or some other HTTP client library.

And yes, unless you are doing something special, chunked encoding should be
handled automatically.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Drawing complex shapes with hollow parts

2012-11-12 Thread Piren
I haven't had any issues with hardware acceleration using porter duff, at 
least not under the circumstances i had to use it in.

just try it and see how it goes.

On Monday, November 12, 2012 1:06:04 PM UTC+2, Simon Giddings wrote:
>
> Thank you for this.
> One thing I am not clear with is the problem with hardware acceleration.
> Some people say that this will not work with hardware acceleration ON, 
> whilst others say that this is precisely what is needed when it is ON.
>
> Is there some definitive answer for this aspect ?
>
> On Monday, 12 November 2012 11:58:07 UTC+1, Piren wrote:
>>
>>
>> http://stackoverflow.com/questions/11337679/porterduffxfermode-clear-a-section-of-a-bitmap
>>
>> On Monday, November 12, 2012 12:16:17 PM UTC+2, Simon Giddings wrote:
>>>
>>> I am needing to draw shapes which will have hollow regions.
>>> To simplify the idea, take an ampersand sign : &
>>> This is just to illustrate the kind of task I need to do.
>>>
>>> I can create the outline by using a path.
>>> However, I have not been able to see how to create the two "holes" such 
>>> that when the paths are painted, they will appear as ... holes.
>>>
>>> Can anyone guide me with this one ?
>>>
>>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Application onCreate called more than once?

2012-11-12 Thread Streets Of Boston
The onCreate of an Application (subclass) is called exactly *once *for each 
instance of a DalvikVM. 

If Android kills your app's process, it stops the DalvikVM instance as 
well. There is no way to 'hold on' to any reference, since you DalvikVM 
instance that was running your app no longer exists.

Your app can, however, use more than one process. I don't know if the ACRA 
code runs in its own process and not liking being used by two or more 
processes running the same package (your app).  

More info is needed to figure this one out.


On Saturday, November 10, 2012 4:32:42 PM UTC-5, Craig wrote:
>
> I received an error because I'm doing something (init'ing ACRA) in my 
> overridden Application class' onCreate, and I expected this method to be 
> called only once. I think I have a clue as to what is happening - I see 
> multiple logcat lines like: "Force stopping package " for my package 
> close together, for example:
> 11-09 11:53:40.394
> 11-09 11:53:40.744
> 11-09 11:53:41.364
>
> I am using a Service, but only through onHandleIntent, and I did not 
> register it to run in a separate process. 
>
> My theory is that I'm holding onto some reference which is preventing my 
> app from being stopped (and garbage collected).
>
> Does this make sense? If it does, is there a good way to track down what 
> reference or references could be causing this? My app is rather large 
> (about a dozen activities, a handful of async tasks, a few 
> broadcasters/receivers, etc.), so I was really hoping for a good way to 
> track these down. 
>
>
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Photo effect

2012-11-12 Thread Goutom
Hi
I want to put effect on my photos as instragram do.Is there any third party
library available to do this task?

Regards
Goutom Roy

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: breakpoints ignored

2012-11-12 Thread bob
 

Ok.  Seems like the editor should not let me place it there though?

On Sunday, November 11, 2012 4:13:01 AM UTC-6, Piren wrote:
>
> Because you can't... breakpoints need to be placed on code that actually 
> runs.. either the first line of the function or the call to that function.
>
>
> On Friday, November 9, 2012 12:34:07 AM UTC+2, bob wrote:
>>
>>
>>
>> On Thursday, November 8, 2012 4:31:52 PM UTC-6, Sunghun wrote:
>>>
>>> Did you put your break-point just on the method declaration?
>>
>>
>> Yes, I did.
>>  
>>
>>> I hope it is not true.
>>>
>>
>> Why?
>>  
>>
>>>
>>> On Thursday, November 8, 2012 3:28:04 AM UTC+11, bob wrote:

 Ok, I am having some more issues with breakpoints that the compiler is 
 ignoring.

 Here is the code in question:

 static Handler handler = new Handler() {

 @Override
 public void handleMessage(Message msg) {
 Log.d("hmmm","hmmmok"); 
 }
 };

 What I did was I put a method breakpoint on this line:

 public void handleMessage(Message msg) {

 It did not get triggered when that method was called.

 However, when I put a breakpoint here:

 Log.d("hmmm","hmmmok"); 

 It breaks as it should.

 Can someone please help me understand this?



-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Requited: Front End Developer at Waltham, MA

2012-11-12 Thread Munawar Ali
Hi Partner,

Hope you are doing fine. Please let me know if you have someone with you
available for the below mentioned requirement...
Please send profiles to m...@tekenergyusa.com

*Position: Front End Developer*
*Duration: 3-6 Months*
*Location: Waltham, MA*
*Rate: Open*


Strong Front End Devs- Javascript, CSS, HTML and HTML5.

*Skills-*
- Minimum 4 years of software development experience
- Minimum 2 years experience in javascript libaries (e.g. dojo,
backbone.js, or ember.js, etc)
- Experience programming on a modern web server technologies (RoR, Python,
Groovy/Grails, Scala, Java etc.)
- A solid understanding of design concepts and design patterns
- BS or MS in Computer Science or Engineering
- Experience developing cloud software services and an understanding of
design for scalability, performance and reliability.
- Development experience defining, developing and maintaining REST based
interfaces


Thanks & Regards,

Munawar Ali
Technical Recruiter
TEKenergy LLC
m...@tekenergyusa.com
www.tekenergyusa.com

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: count down UI control

2012-11-12 Thread bob
 

You will want to subclass View and override the onDraw method.


You may also need another thread to increment the count.  Also, use a 
floating point for the count.


That way you can use 10.5 and the last digit will be halfway between 0 and 
1.




On Monday, November 12, 2012 6:19:55 AM UTC-6, and_dev wrote:
>
> hi
>  
> I am looking for a custom component which will behave like a wheel.
> actually I have to show the some number, which will start with zero and 
> goes upto particular value (say from 0 - 1000).
> In detail it should work like this.
> upto 1000 I have to show 4 images and on the top of it I have to show 1 
> digit per image programmatically.
> whe we start with 0 that time only one image is visible, the movement my 
> count reaches 10 it should make another image visible and on reaching 100 
> it should make another image visible and so on ant by the time my counter 
> should keep on increasing.
> This control should look something like this. I have attached the screen 
> shot of the control how it should look likr.
>  
> Need urgent help on this
>  
>  
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Question About Form Design

2012-11-12 Thread bob
 

It is ok to have text on the left and a field on the right.

On Saturday, November 10, 2012 4:49:58 PM UTC-6, Mark Phillips wrote:
>
> Is it considered poor design to make a form in two columns, with a test 
> field identifier on the left and an empty field on the right? EditTexts 
> have a handy hint, but the hint is not needed if there us a TextField next 
> to the EditText. However, Spinners don't have anything like a hint, so they 
> need something to tell the user what the selection is all about, as it may 
> not be obvious. 
>
> I am making a form with several EditText fields, some spinners, and some 
> radio buttons. Just curious if my design (labels on the left, controls on 
> the right) is a little out dated for the modern Andorid world. I would hate 
> to show my age with and outmoded design. ;)
>
> Thanks,
>
> Mark
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Drawing complex shapes with hollow parts

2012-11-12 Thread Simon Giddings
Great, thanks for this

On Monday, 12 November 2012 15:27:32 UTC+1, Piren wrote:
>
> I haven't had any issues with hardware acceleration using porter duff, at 
> least not under the circumstances i had to use it in.
>
> just try it and see how it goes.
>
> On Monday, November 12, 2012 1:06:04 PM UTC+2, Simon Giddings wrote:
>>
>> Thank you for this.
>> One thing I am not clear with is the problem with hardware acceleration.
>> Some people say that this will not work with hardware acceleration ON, 
>> whilst others say that this is precisely what is needed when it is ON.
>>
>> Is there some definitive answer for this aspect ?
>>
>> On Monday, 12 November 2012 11:58:07 UTC+1, Piren wrote:
>>>
>>>
>>> http://stackoverflow.com/questions/11337679/porterduffxfermode-clear-a-section-of-a-bitmap
>>>
>>> On Monday, November 12, 2012 12:16:17 PM UTC+2, Simon Giddings wrote:

 I am needing to draw shapes which will have hollow regions.
 To simplify the idea, take an ampersand sign : &
 This is just to illustrate the kind of task I need to do.

 I can create the outline by using a path.
 However, I have not been able to see how to create the two "holes" such 
 that when the paths are painted, they will appear as ... holes.

 Can anyone guide me with this one ?

>>>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Can dynamic broadcastreceiver receiver intent from other apps?

2012-11-12 Thread Jin
Hi,

I encountered a problem with dynamic broadcastreceiver.
I send an intent using sendBroadcast from App B, and it can be received in 
App B by both static receiver and dynamic receiver. 
However, when it comes to App A, it can only be received by static receiver.

I find on developer site that "registerReceiver (BroadcastReceiver 
receiver, IntentFilter filter)" is to "Register a BroadcastReceiver to be 
run in the main activity thread. The receiver will be called with any 
broadcast Intent that matches filter, in the main application thread."

So, does this mean that dynamic broadcastreceiver can only receive intent 
in its own "main application thread", and cannot receive intent from other 
apps?

Thanks

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Can dynamic broadcastreceiver receives intent from other apps

2012-11-12 Thread Jin
Hi,

I encountered a problem with dynamic broadcastreceiver.
I send an intent using sendBroadcast from App B, and it can be received in 
App B by both static receiver and dynamic receiver. 
However, when it comes to App A, it can only be received by static receiver.

I find on developer site that "registerReceiver (BroadcastReceiver 
receiver, IntentFilter filter)" is to "Register a BroadcastReceiver to be 
run in the main activity thread. The receiver will be called with any 
broadcast Intent that matches filter, in the main application thread."

So, does this mean that dynamic broadcastreceiver can only receive intent 
in its own "main application thread", and cannot receive intent from other 
apps?

Thanks

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Can dynamic broadcastreceiver receives intent from other apps

2012-11-12 Thread Mark Murphy
On Mon, Nov 12, 2012 at 12:53 PM, Jin  wrote:
> So, does this mean that dynamic broadcastreceiver can only receive intent in
> its own "main application thread", and cannot receive intent from other
> apps?

No.

You can see a dynamic-registered BroadcastReceiver receiving
broadcasts from other processes in many places, such as this sample of
receiving ACTION_BATTERY_CHANGED:

https://github.com/commonsguy/cw-omnibus/tree/master/SystemEvents/OnBattery

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Photo effect

2012-11-12 Thread Harri Smått
Hi,

I played around with the idea some time ago. You can find the source code at;
https://github.com/harism/android_instacam

Also LightBox PhotoProcessing project might be of your interest;
https://github.com/lightbox/PhotoProcessing

--
H

On Nov 12, 2012, at 5:11 PM, Goutom  wrote:

> Hi 
> I want to put effect on my photos as instragram do.Is there any third party 
> library available to do this task?
> 
> Regards
> Goutom Roy

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Can dynamic broadcastreceiver receives intent from other apps

2012-11-12 Thread Jin
Hi Mark

Yes. It did receive from other apps. I made a mistake...

Thanks a lot

On Monday, November 12, 2012 1:04:51 PM UTC-5, Mark Murphy (a Commons Guy) 
wrote:
>
> On Mon, Nov 12, 2012 at 12:53 PM, Jin > 
> wrote: 
> > So, does this mean that dynamic broadcastreceiver can only receive 
> intent in 
> > its own "main application thread", and cannot receive intent from other 
> > apps? 
>
> No. 
>
> You can see a dynamic-registered BroadcastReceiver receiving 
> broadcasts from other processes in many places, such as this sample of 
> receiving ACTION_BATTERY_CHANGED: 
>
> https://github.com/commonsguy/cw-omnibus/tree/master/SystemEvents/OnBattery 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> _The Busy Coder's Guide to Android Development_ Version 4.3 Available! 
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to use a OnClickListener in Fragment

2012-11-12 Thread Miral Desai
Can you provide an example? I'm trying to declare OnClicks in my Fragments 
however I keep coming up against Force close errors.

On Thursday, October 25, 2012 11:55:53 PM UTC+1, Max Dell'Orco wrote:
>
> This doesnt work at all.
> You should create a method in the FragmentActivity that recall the method 
> inside your Fragment.
> Declaring a Fragment ref inside your FragmentActivity.
>
> Il giorno giovedì 13 ottobre 2011 15:28:18 UTC+2, Streets Of Boston ha 
> scritto:
>>
>> In your onCreateView callback of your fragment, you could do something 
>> like this:
>>
>> *Button myButton = (Button)view.findViewByid(R.id.mybutton);*
>> *myButton.setOnClickListener(new OnClickListener() {*
>> *  public void onClick(View view) {*
>> *// put some code here that handles the click event.*
>> *...*
>> *  }*
>> *});*
>>
>> Just like you could do in an Activity. Registering onClickListeners in 
>> Fragments is no different.
>>
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Samsung not in SDK manager list

2012-11-12 Thread Simon Giddings
I am using Eclipse Indigo service release 2.
The version of the ADK is 20.0.3.v201208082019-427395.

When I open the SDK Manager, I noticed that there is no mention of anything 
from Samsung.
Looking into the Add-on sites, Samsung is not there and the User Defined 
Sites is empty.

Are we able to get SDK and device stuff from Samsung via this method any 
more ?
If so, what do I need to put into the user defined sites to get this to 
work ?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Heap size driving me crazy

2012-11-12 Thread iQue
Hi!

Im making a game for android, Im about halfway trough (its my first real 
game that Im planning to release) and I just started using DDMS, and 
realised that my heap-size was at around 30 000, with a leak on around 3000 
every time I changed level. So I created a method that loaded my bitmaps 
with only 3 colors, and this reduced my heap-size down to 20 000, and I 
suspect that the memory leak is because the menu I have in between levels 
(with score etc) is a new activity started in realtime, Im gonna change 
this to a dialog-box so I never have to leave the main-activity in 
realtime. 

But obviously 20 000 heap size is still to much! I need to get down to 16 
000, and like I said, I'm only halfway done. I Only have 5-6 different 
bitmaps onScreen at a time, sure there is around 5-6 enemies on screen that 
are using the same bitmap, aswell as several bullets using the same bitmap. 

So after all that, my question is, is there any common mistakes that 
beginners do that increases heap-size that I might have done? I've been 
reading about it for weeks and watched a couple of google-lectures on 
youtube. But nothing that really helps. Ive been trying to isolate the 
problem by removing 1 class at a time, then starting my game, but dosnt 
seem to go down. Going crazy! Been working for 6-7 months and now it might 
end up in the trash =/. 

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Heap size driving me crazy

2012-11-12 Thread Lew
iQue wrote:
>
> Im making a game for android, Im about halfway trough (its my first real 
> game that Im planning to release) and I just started using DDMS, and 
> realised that my heap-size was at around 30 000, with a leak on around 3000 
> every time I changed level. So I created a method that loaded my bitmaps 
> with only 3 colors, and this reduced my heap-size down to 20 000, and I 
> suspect that the memory leak is because the menu I have in between levels 
> (with score etc) is a new activity started in realtime, Im gonna change 
> this to a dialog-box so I never have to leave the main-activity in 
> realtime. 
>
> But obviously 20 000 heap size is still to much! I need to get down to 16 
> 000, and like I said, I'm only halfway done. I Only have 5-6 different 
> bitmaps onScreen at a time, sure there is around 5-6 enemies on screen that 
> are using the same bitmap, aswell as several bullets using the same bitmap. 
>
> So after all that, my question is, is there any common mistakes that 
> beginners do that increases heap-size that I might have done? I've been 
> reading about it for weeks and watched a couple of google-lectures on 
> youtube. But nothing that really helps. Ive been trying to isolate the 
> problem by removing 1 class at a time, then starting my game, but dosnt 
> seem to go down. Going crazy! Been working for 6-7 months and now it might 
> end up in the trash =/. 
>

Removing a class is not a solution to heap issues. It's not even related to 
heap issues.

The most common issue with heap exhaustion is packratting, the failure to 
release references.

Consider an instance created an added to a 'Set':

  Set foos = new HashSet();
  foos.add(new Foo());

Now the collection 'foos' holds a reference to that new 'Foo'. Unless that 
element is removed 
from the collection, that instance cannot be garbage collected ("GCed").

ANother common error is to allocate an instance for too long a lifetime:

  Foo foo = new Foo();
  while (someCondition()) 
  {
setAttributesFromResource(foo);
doSomethingWith(foo);
  }

The instance pointed to by 'foo' will live as long as the loop takes. 

  while (someCondition()) 
  {
Foo foo = new Foo();
setAttributesFromResource(foo);
doSomethingWith(foo);
  }

Each 'Foo' instance will go out of scope at the end of each loop iteration, 
and can be GCed then.

This is dangerous if there's a 'foos.add(foo)' inside that loop, for the 
aforementioned reason - each 
'foo' will be referenced by the collection and cannot be GCed until the 
collection releases it.

Another problem is objects that use lots of resources, like native memory, 
if they don't release those 
resources in a timely fashion. 

The bigger the object's heap footprint, the worse the problem.

So make sure object references go out of scope or are otherwise removed the 
instant they 
aren't needed.

-- 
Lew

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Heap size driving me crazy

2012-11-12 Thread iQue
Great tips, thank you!

this line: "So make sure object references go out of scope or are otherwise 
removed the instant they 
 aren't needed."  how would I go about checking this? how do I find the 
object that is causing problems? Cus I do have arrayLists and use 
arrayList.add(enemy/bullet). So that might be the problem, had no idea that 
used alot of heap.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Heap size driving me crazy

2012-11-12 Thread iQue
also, is there a preffered method to remove objects after using 
arrayList.add()? should I just use arrayList.remove(index) when they die/ 
bullets dissapear from screen?

Den måndagen den 12:e november 2012 kl. 23:07:53 UTC+1 skrev iQue:
>
> Great tips, thank you!
>
> this line: "So make sure object references go out of scope or are 
> otherwise removed the instant they 
>  aren't needed."  how would I go about checking this? how do I find the 
> object that is causing problems? Cus I do have arrayLists and use 
> arrayList.add(enemy/bullet). So that might be the problem, had no idea that 
> used alot of heap.
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Tegra

2012-11-12 Thread bob
 

How can you tell easily if an Android device is a Tegra 2 or Tegra 3?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] TinCan

2012-11-12 Thread TreKing
On Mon, Nov 12, 2012 at 6:50 AM, Sadhna Upadhyay
wrote:

>  can some one tell me something about TinCan,what is this and how to do
> code for this in android.


http://justfuckinggoogleit.com/

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Heap size driving me crazy

2012-11-12 Thread RichardC
Have a careful look at the source code for this game Replica Island:
http://code.google.com/p/replicaisland/

Specifically the all the Objects that extend:
http://code.google.com/p/replicaisland/source/browse/trunk/src/com/replica/replicaisland/AllocationGuard.java

When the game is running almost no dynamic objects are allocated, they are 
mostly pre-allocated and held on "free" lists and re-used.  This is to try 
and avoid a GC during a level which could seriously affect the feel of the 
game.  It also gives finer control of the amount of memory used in the game.

See also:
http://replicaisland.net/
http://replicaisland.blogspot.co.uk/


On Monday, November 12, 2012 10:10:36 PM UTC, iQue wrote:
>
> also, is there a preffered method to remove objects after using 
> arrayList.add()? should I just use arrayList.remove(index) when they die/ 
> bullets dissapear from screen?
>
> Den måndagen den 12:e november 2012 kl. 23:07:53 UTC+1 skrev iQue:
>>
>> Great tips, thank you!
>>
>> this line: "So make sure object references go out of scope or are 
>> otherwise removed the instant they 
>>  aren't needed."  how would I go about checking this? how do I find the 
>> object that is causing problems? Cus I do have arrayLists and use 
>> arrayList.add(enemy/bullet). So that might be the problem, had no idea that 
>> used alot of heap.
>>
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] HLS Stream with Discontinuities reports incorrect position (4.0.x)

2012-11-12 Thread Rick Gavin
When using an HLS playlist with multiple segments of content spliced 
together ( separated by EXT-X-DISCONTINUITY tags ), 
MediaPlayer.getCurrentPosition() doesn't return the correct position.  In 
this scenario, each piece of content has its timestamps starting from zero. 
  So for example, if at the 4 minute mark, there is a Discontinuity flag 
followed by a new piece of content, getCurrentPosition() reports the time 
as going back to 00:00 instead of 04:01  

Does anyone know a work around?   

Just a note that MediaPlayer.getDuration() does correctly return the full 
duration of all the content combined.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] TinCan

2012-11-12 Thread Παύλος-Πέτρος Τουρνάρης
http://tincanapi.com/ if you mean this



On Tue, Nov 13, 2012 at 12:33 AM, TreKing  wrote:

> On Mon, Nov 12, 2012 at 6:50 AM, Sadhna Upadhyay <
> sadhna.braah...@gmail.com> wrote:
>
>>  can some one tell me something about TinCan,what is this and how to do
>> code for this in android.
>
>
> http://justfuckinggoogleit.com/
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Tegra

2012-11-12 Thread Joel Wirāmu Pauling
$cat /proc/cpuinfo


On 13 November 2012 11:17, bob  wrote:

> How can you tell easily if an Android device is a Tegra 2 or Tegra 3?
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Heap size driving me crazy

2012-11-12 Thread iQue
thanks for the tips! will use the second link, the source dosnt help me 
that much since I've never worked with GL. I use canvas. And like I said, 
Im a beginner so dont know anything about gl. :)any more tips is 
appriciated!

Den måndagen den 12:e november 2012 kl. 23:43:45 UTC+1 skrev RichardC:
>
> Have a careful look at the source code for this game Replica Island:
> http://code.google.com/p/replicaisland/
>
> Specifically the all the Objects that extend:
>
> http://code.google.com/p/replicaisland/source/browse/trunk/src/com/replica/replicaisland/AllocationGuard.java
>
> When the game is running almost no dynamic objects are allocated, they are 
> mostly pre-allocated and held on "free" lists and re-used.  This is to try 
> and avoid a GC during a level which could seriously affect the feel of the 
> game.  It also gives finer control of the amount of memory used in the game.
>
> See also:
> http://replicaisland.net/
> http://replicaisland.blogspot.co.uk/
>
>
> On Monday, November 12, 2012 10:10:36 PM UTC, iQue wrote:
>>
>> also, is there a preffered method to remove objects after using 
>> arrayList.add()? should I just use arrayList.remove(index) when they die/ 
>> bullets dissapear from screen?
>>
>> Den måndagen den 12:e november 2012 kl. 23:07:53 UTC+1 skrev iQue:
>>>
>>> Great tips, thank you!
>>>
>>> this line: "So make sure object references go out of scope or are 
>>> otherwise removed the instant they 
>>>  aren't needed."  how would I go about checking this? how do I find the 
>>> object that is causing problems? Cus I do have arrayLists and use 
>>> arrayList.add(enemy/bullet). So that might be the problem, had no idea that 
>>> used alot of heap.
>>>
>>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Nexus 7 USB Host - Not able to enumerate device

2012-11-12 Thread Kiran Karra
Hi,
You are correct.  I downloaded the App that you mentioned and my mouse did
not show up in the Android column.  However, my USB sensor that I want to
interface did, so the code worked.

Thanks for the App suggestion, it really helped.

Kiran


On Mon, Oct 29, 2012 at 4:06 AM, al  wrote:

> HI,
>
> first: USB-Host including the USB-Host api works for me on the Nexus 7 -
> no root required.
>
> You could try an app like "USB Device Info" to validate your hardware
> setup (usb adapter etc.).
>
> I have setup intents and filters, but I also assume they are not necessary
> if you scan for devices yourself.
> As I understand it, you just tried a mouse and a phone? I just made a test
> with a mouse and though "USB Device Info" saw it on the "linux" tab, it did
> not see it on the "android" tab. My app also did not see the mouse. I
> assume since android handles the mouse itself, it does not make it visible
> to the app.
>
> I.e. try another usb device. If you can see it on the Android tab in "USB
> Device Info", you probably should see it in your app.
>
> Am Sonntag, 28. Oktober 2012 23:41:04 UTC+1 schrieb Kiran:
>
>> Hi All,
>> I recently bought a Nexus 7 for USB development.  I would like to use the
>> USB Host functionality provided by the new Android OS.  I was following the
>> USB Host Tutorial at the link: http://developer.**
>> android.com/guide/topics/**connectivity/usb/host.html
>> .
>>
>> My program is very simple, and here are the relevant parts of the code:
>>
>> *private UsbManager manager;
>> *
>> * *
>> *public void onCreate(Bundle savedInstanceState) {*
>> *super.onCreate(savedInstanceState);*
>> *setContentView(R.layout.activity_main);*
>> **
>> *Log.i(TAG, "in onCreate()");*
>> *manager = (UsbManager) getSystemService(Context.USB_SERVICE);*
>> *if(manager==null) {*
>> *Log.i(TAG, "USB Manager is NULL");*
>> *}*
>> *else {*
>> *Log.i(TAG, "USB Manager = " + manager);*
>> *}*
>> *}*
>> **
>> *public void enumerateUSBDevices() {*
>> *HashMap deviceList = manager.getDeviceList();*
>> *Collection deviceCollection = deviceList.values();*
>> *Iterator deviceIterator = deviceCollection.iterator();*
>> *Log.i(TAG, "Number of connected USB Devices = " +
>> deviceCollection.size());*
>> *while(deviceIterator.hasNext()){*
>> *UsbDevice device = deviceIterator.next();*
>> *Log.i(TAG, device.getDeviceName());*
>> *}*
>> *}*
>>
>>
>> When the enumerateUSBDevices function is called, it reports that the
>> number of connected USB Devices = 0.  I am using a USB OTG cable, and I
>> know that the Nexus 7 is powering the connected USB Device because I
>> plugged in a USB Mouse, and it works properly.  I also plugged in another
>> Android phone, and the Nexus 7 was confirmed to be powering the device.
>>  However, in both of these instances, the Android program says that there
>> are no USB devices connected.  I am unsure what is going wrong in my code.
>>  In my Android manifest, I have the following line:
>>
>> **
>>
>> My manifest does not have any intent filters associated with any USB
>> devices.  My understanding based on reading the tutorials is that the
>> intent filters need to be in the Manifest only if you want the APP to be
>> notified when the USB device is connected after the App is running?
>>
>> Can anybody shed light into what I may be doing wrong?  Do I need to root
>> my device?
>>
>> Thanks,
>> Kiran
>>
>  --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Getting java.lang.ClassNotFoundException (Unable to instantiate activity ComponentInfo)

2012-11-12 Thread TreKing
On Mon, Nov 12, 2012 at 9:23 PM, Jerrell Mardis wrote:

> Any ideas on what could possibly be causing this exception?


This has been brought up a few times before. We've all seen crazy
exceptions that should not happen, but they do. You can probably safely
ignore these. Unless they're in an exceedingly high volume ... ?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] android JSON

2012-11-12 Thread nageswara rao Rajana
Hi,

In my application i am sending JSON object request to WCF web service.

But the way i added the Key,value pair is not similar in the request format.

Please help me

Regards,
nageswararao.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Getting java.lang.ClassNotFoundException (Unable to instantiate activity ComponentInfo)

2012-11-12 Thread Jerrell Mardis
I would love to ignore them but it gives the user a bad impression of the
dev if the app crashes out of Mo where. I get a few of these exceptions a
day.

-- Jerrell
On Nov 12, 2012 10:00 PM, "TreKing"  wrote:

> On Mon, Nov 12, 2012 at 9:23 PM, Jerrell Mardis 
> wrote:
>
>> Any ideas on what could possibly be causing this exception?
>
>
> This has been brought up a few times before. We've all seen crazy
> exceptions that should not happen, but they do. You can probably safely
> ignore these. Unless they're in an exceedingly high volume ... ?
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] android JSON

2012-11-12 Thread TreKing
On Mon, Nov 12, 2012 at 9:55 PM, nageswara rao Rajana  wrote:

> Please help me
>

With what? You didn't really ask a question.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Getting java.lang.ClassNotFoundException (Unable to instantiate activity ComponentInfo)

2012-11-12 Thread Jerrell Mardis
All except one has come from a Nexus device (Nexus S, Galaxy Nexus). The
other one could have been running stock Android ROM but I'm not sure.
On Nov 12, 2012 10:21 PM, "TreKing"  wrote:

> Any commonalities you're noticing with the exceptions? Like device or
> Android version where it happens?
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
> On Mon, Nov 12, 2012 at 10:03 PM, Jerrell Mardis  > wrote:
>
>> I would love to ignore them but it gives the user a bad impression of the
>> dev if the app crashes out of Mo where. I get a few of these exceptions a
>> day.
>>
>> -- Jerrell
>> On Nov 12, 2012 10:00 PM, "TreKing"  wrote:
>>
>>> On Mon, Nov 12, 2012 at 9:23 PM, Jerrell Mardis <
>>> jerrell.mar...@gmail.com> wrote:
>>>
 Any ideas on what could possibly be causing this exception?
>>>
>>>
>>> This has been brought up a few times before. We've all seen crazy
>>> exceptions that should not happen, but they do. You can probably safely
>>> ignore these. Unless they're in an exceedingly high volume ... ?
>>>
>>>
>>> -
>>> TreKing  - Chicago
>>> transit tracking app for Android-powered devices
>>>
>>>  --
>>> 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, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>  --
>> 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, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Network error IOException while trying to Sync Data From SQL Server

2012-11-12 Thread Aadi Rockzz
Hi, 

I'm trying to fetch data from my Local-Server Using an Android App. I 
established this using jtds.jdbc Connection. In Emulator It's working fine 
and fetching Data. While tried to connect using Android device through USB 
it's Giving the Following Error. 

07-05 06:05:32.790: W/Error connection(4660): Network error 
IOException: failed to connect to /194.178.100.3 (port 1433): connect 
failed: ENETUNREACH (Network is unreachable)

Here is the code which i'm using to connect SQL-Server Database

Connection conn = 
DriverManager.getConnection("jdbc:jtds:sqlserver://194.178.100.3:1433/MyDB",
"sa", "password");

I have Some Proxy Setting in My System i Doubt is that Blocking me while 
trying to access Server-Database. While syncing From USB device from my 
Computer.
My Operating System is Windows 7 Professional, Service Pack 1

Please Help me to Solve this issue.

Best Regards
Aadi

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Connecting 2 real android devices to PC

2012-11-12 Thread Archana
Hi,

I m trying to connect 2 real android devices to my PC(both are getting 
charged from USB). However, I m unable to view them in adb devices. Please 
let me know, if I can do the same.

Thank you! 

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re:[android-developers] Connecting 2 real android devices to PC

2012-11-12 Thread lokesh gupta
Chk for drivers.. Both cn b detected at the samevtime..

Sent from Samsung mobile
On Nov 13, 2012 12:49 PM, "Archana"  wrote:

> Hi,
>
> I m trying to connect 2 real android devices to my PC(both are getting
> charged from USB). However, I m unable to view them in adb devices. Please
> let me know, if I can do the same.
>
> Thank you!
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Connecting 2 real android devices to PC

2012-11-12 Thread ramesh aravelli
u need to install usb driver for ur device. if u r using samsung mobile
download samsung kies and install in ur pc. thats it..
On Nov 13, 2012 12:50 PM, "Archana"  wrote:

> Hi,
>
> I m trying to connect 2 real android devices to my PC(both are getting
> charged from USB). However, I m unable to view them in adb devices. Please
> let me know, if I can do the same.
>
> Thank you!
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Samsung not in SDK manager list

2012-11-12 Thread Zsolt Vasvari
As far as I know, you could never get Samsung add-ons via the SDK Manager.

On Tuesday, November 13, 2012 3:17:04 AM UTC+8, Simon Giddings wrote:
>
> I am using Eclipse Indigo service release 2.
> The version of the ADK is 20.0.3.v201208082019-427395.
>
> When I open the SDK Manager, I noticed that there is no mention of 
> anything from Samsung.
> Looking into the Add-on sites, Samsung is not there and the User Defined 
> Sites is empty.
>
> Are we able to get SDK and device stuff from Samsung via this method any 
> more ?
> If so, what do I need to put into the user defined sites to get this to 
> work ?
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Application onCreate called more than once?

2012-11-12 Thread Zsolt Vasvari
>  Post your manifest.xml. I assume that you have your broadcastreceiver or 
some service running in a separate process. That would cause 
Application.onCreate to be called multiple times.

It would?  Please provide a source for this piece of tidbit.


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Connecting 2 real android devices to PC

2012-11-12 Thread Archana
Thanks all .. I did not enable the usb debugging mode in 1 of the phones.. 
After that, it is working fine :)

On Tuesday, November 13, 2012 9:26:44 AM UTC+2, aravelli wrote:
>
> u need to install usb driver for ur device. if u r using samsung mobile 
> download samsung kies and install in ur pc. thats it..
> On Nov 13, 2012 12:50 PM, "Archana" > 
> wrote:
>
>> Hi,
>>
>> I m trying to connect 2 real android devices to my PC(both are getting 
>> charged from USB). However, I m unable to view them in adb devices. Please 
>> let me know, if I can do the same.
>>
>> Thank you! 
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Equivelant of NavUtils when not using the support library

2012-11-12 Thread Simon Giddings
I am starting to build an application which will only be distributed on 
tablets running Honeycomb or later.
I created my project specifying this and yet it still imports the support 
library.
So, I have been "cleaning" out all references to this and have come to a 
stop.

What am I to use to replace the support library class NavUtils ?
Can anyone help me with this ?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Connecting 2 real android devices to PC

2012-11-12 Thread lokesh gupta
Dhyan rkha karo yaar choti se bat the ye toh

Sent from Samsung mobile
On Nov 13, 2012 1:20 PM, "Archana"  wrote:

> Thanks all .. I did not enable the usb debugging mode in 1 of the phones..
> After that, it is working fine :)
>
> On Tuesday, November 13, 2012 9:26:44 AM UTC+2, aravelli wrote:
>>
>> u need to install usb driver for ur device. if u r using samsung mobile
>> download samsung kies and install in ur pc. thats it..
>> On Nov 13, 2012 12:50 PM, "Archana"  wrote:
>>
>>> Hi,
>>>
>>> I m trying to connect 2 real android devices to my PC(both are getting
>>> charged from USB). However, I m unable to view them in adb devices. Please
>>> let me know, if I can do the same.
>>>
>>> Thank you!
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-d...@**googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en
>>
>>  --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en