[android-developers] Games and their data

2012-12-27 Thread Pranav
Hi,

I am starting on my first game on Android and would like to know about 
where do games like Angry Birds, Temple Run, etc... store their data. For 
high scores and similar data I guess SQLite is OK  but what if I want to 
store and fetch data constantly during game-play? SQLite and File IO are 
out of picture because of their overhead. So where and how do games on 
Android store their data, and yet make sure that the game-play is smooth. 

-- 
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] Check the Status of VPN

2012-12-27 Thread Asheesh Arya
http://stackoverflow.com/questions/3461967/get-vpn-connection-status-on-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] Check the Status of VPN

2012-12-27 Thread Priyanka
Hello All,

Is there a  system wide capability to check the status of VPN on Android 
device ?

Currently in my app the status of VPN connectivity is checked by hitting 
the url & getting response from the server if the site is available. 
However,
it could be the case that the site is temporarily down but there is 
availability of VPN. So how do I get this status in application.

Regards,
Priyanka



-- 
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 memory usage API (USS/PSS) Vs smem report

2012-12-27 Thread Anthony Prieur
Reading how to mesure accurately a process memory usage 
(http://elinux.org/Android_Memory_Usage), I've been using USS provided 
by PrivateDirty: 
http://developer.android.com/reference/android/os/Debug.MemoryInfo.html

Per D. Hackborn comment 
(http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/2299813#2299813),
 
USS reported by the Android API is PrivateDirty.

However when using smem (http://www.selenic.com/smem/), I noticed that USS 
reported by smem is actually PrivateDirty + PrivateClean, so I was 
wondering why this difference and what's more accurate ? 

-- 
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] How to make Text unselectable in EditText

2012-12-27 Thread Jim Graham
On Thu, Dec 27, 2012 at 07:38:32PM -0800, monty wrote:
> my means is that no one can select the text which is inside the 
> edittext..but user can edit it...
> example: I have field USER NAME - "india" ,if user double click or long 
> press in edittext to select this text "india",he should not able to do 
> that..but he wants to change USER NAME i.e "HelloUser"..he can do..so 
> edittext can be edited but no selectable.

So basically, your goal is to royally piss off your incredibly short-term
users?  What *SANE* reason do you think you have for doing this?  Please
let us know what the name of the app will be so we can all avoid it like
the plague (even if you can't get this to work, it's likely the rest
of the app will suck, anyways.  The second I saw something like that, I'd
uninstall it

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running Mac OS X Lion >
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

"sigh, once upon a time T-1 was fast"
   --seen in alt.sysadmin.net-abuse.email

-- 
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] How to make Text unselectable in EditText

2012-12-27 Thread monty
my means is that no one can select the text which is inside the 
edittext..but user can edit it...
example: I have field USER NAME - "india" ,if user double click or long 
press in edittext to select this text "india",he should not able to do 
that..but he wants to change USER NAME i.e "HelloUser"..he can do..so 
edittext can be edited but no selectable.

On Friday, December 28, 2012 6:41:34 AM UTC+5:30, TreKing wrote:
>
> On Thu, Dec 27, 2012 at 4:24 AM, monty 
> > wrote:
>
>> example:- in my EditText there is a Text "HelloAndroid",so i want no one 
>> can select this text. only the user can edit it.
>>
>>
> What's the point of this?
>
>
> -
> 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: New OpenGL ES 2.0 Game Engine Option

2012-12-27 Thread bob
Looks interesting.  What 3d model formats does it support?


On Thursday, December 27, 2012 5:24:59 PM UTC-6, Robert Green wrote:
>
> Hi All,
>
> I'm a long time contributor of this group (over 400 posts I think), 
> developer of Deadly Chambers, Antigen and several other Android games and 
> just wanted to, in good will, let you know about the game engine that we've 
> been developing for the past 2 years.  It's called BatteryTech Engine and 
> is available at http://www.batterytechsdk.com .  It's full OpenGL ES 2.0 
> and was designed around Android so that it would work really well across 
> over 1000 devices, maybe more.  It's free to develop but does require a 
> license to deploy.  The license gets you full engine source code which is 
> something you don't see often from comparable engines.  We completely 
> integrated Box2D and everything is bound to Lua to make it really easy to 
> script out game logic.  You can also deploy on other platforms, but it 
> works great specifically for Android too.
>
> Please let me know what you think, either here, privately or otherwise. 
>  Would love feedback and am always happy to support.
>
> Thanks everyone!!
>

-- 
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 start again if some third party task killer has killed my app ?

2012-12-27 Thread Indicator Veritatis
The link you give is all very good background on tasks and the activity 
stack (a.k.a. 'back stack), but how does that help the OP understand what 
is different in third-party task killers and why it has such a different 
effect on his program? If the third party task killer does it by killing 
the hosting Linux process (as it is rumored they do), then he cannot even 
count on onStop() or onDestroy() being called. Unless he can count on the 
user running Honeycomb or later, in which case he can count on onStop().

Or are you guessing that the "force close" is due to a null pointer? That 
is a very common cause, but not the only one. But in any case, the OP 
should look in the logs to see what exception immediately preceded the 
force close. Perhaps after reading the link you gave;)

On Wednesday, December 26, 2012 10:22:22 PM UTC-8, djhacktor wrote:
>
> Read this 
>
> http://developer.android.com/guide/components/tasks-and-back-stack.html
>
> On Thursday, 27 December 2012 11:32:06 UTC+5:30, Amit Dwivedi wrote:
>>
>> In my App I have several activities which are obviously related to each 
>> other. Whenever I am on some activity and the user kills my app by using 
>> any task killer. I want to do two things
>>
>>
>>1. Clear the Notification which I added when the user logged in..
>>2. finish all the activities other than the first Activity i.e. Login 
>>Activity
>>
>> Now if user starts again my app either from the recent tasks or from 
>> launcher I want to start from the first activity i.e. Login Activity...
>>
>> Presently my code works absolutely fine if I use android *manage process* 
>> and 
>> end the activity or force close the app from *android task manager*. But 
>> if I am using some other task killer app i.e. Advanced task killer, after 
>> closing the app when I relaunch the App from recent apps the it tries to 
>> restart from the last used Activity instead of Login Activty and gives an 
>> ugly force close error and when I click close it redirects me back to Login 
>> Activity... The Notification is also not cleared when in this case.
>>
>> How do I handle third party task killers ?
>>
>> I have read several threads on SO but couldn't get the pointers, few of 
>> them are ...
>>
>

-- 
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] ADT Rev.2.0.1->Rev.2.0.0

2012-12-27 Thread Jacky Alciné
Return to the older version? Do what you just did.
Uninstall 2.0.1 and then install 2.0.0

On Thu, Dec 27, 2012 at 1:40 PM, RVM  wrote:

> I installed the ADT Rev. 2.0.1. Now I want return the ADT Rev. 2.0.0. How
> to do 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
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Jacky Alcine
Blog  | Launchpad

-- 
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] How to make Text unselectable in EditText

2012-12-27 Thread TreKing
On Thu, Dec 27, 2012 at 4:24 AM, monty  wrote:

> example:- in my EditText there is a Text "HelloAndroid",so i want no one
> can select this text. only the user can edit it.
>
>
What's the point of this?

-
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] TV broadcast signal on android app

2012-12-27 Thread Mark Murphy
On Thu, Dec 27, 2012 at 6:36 PM, Paulo Coutinho  wrote:
> I saw that android has a Camera api to access device cams and I'd like to
> know if it's possible to "open" a external USB TV Tuner or Video Capture
> Device by using the Camera API.

Only if you make your own version of Android that makes that possible.
Please visit http://source.android.com to learn more about how to
customize your own version of Android for deployment to your own
devices.

> I'm asking that because I'm also evaluating
> the Adobe Flash as another option to do what I want and in Flash you can
> access video capturing devices with its Camera API (of course you have to
> install its drivers on windows).

Adobe Flash is no longer available for Android.

> Are there "drivers" of such devices for android?

This is off-topic for this list, which is for developing apps with the
Android SDK. Please visit http://source.android.com for driver-level
questions.

> Is there any way to show video from any capturing device?

This is off-topic for this list, which is for developing apps with the
Android SDK. Please visit http://source.android.com for hardware-level
questions.

> Is there any way to plug a AV output to a android device?

Some devices have HDMI out. Some do not. What HDMI-out gets you will
vary by device, especially before Android 3.0. Android 4.2 seems to be
standardizing this behavior some, but I have not yet had a chance play
around with that particular portion of the SDK.

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

Localized Android Question-and-Answer Sites: http://www.andglobe.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] TV broadcast signal on android app

2012-12-27 Thread Paulo Coutinho
Hello, I'm new on android and I'm checking if I can do what I want on 
android. I'm looking for any way to get the TV broadcast signal into my 
app. I saw that android has a Camera api to access device cams and I'd like 
to know if it's possible to "open" a external USB TV Tuner or Video Capture 
Device by using the Camera API. I'm asking that because I'm also evaluating 
the Adobe Flash as another option to do what I want and in Flash you can 
access video capturing devices with its Camera API (of course you have to 
install its drivers on windows).

Are there "drivers" of such devices for android?
Is there any way to show video from any capturing device?
Is there any way to plug a AV output to a android device?
Is there any other way to do what I want?

Thanks a lot

-- 
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] New OpenGL ES 2.0 Game Engine Option

2012-12-27 Thread Robert Green
Hi All,

I'm a long time contributor of this group (over 400 posts I think), 
developer of Deadly Chambers, Antigen and several other Android games and 
just wanted to, in good will, let you know about the game engine that we've 
been developing for the past 2 years.  It's called BatteryTech Engine and 
is available at http://www.batterytechsdk.com .  It's full OpenGL ES 2.0 
and was designed around Android so that it would work really well across 
over 1000 devices, maybe more.  It's free to develop but does require a 
license to deploy.  The license gets you full engine source code which is 
something you don't see often from comparable engines.  We completely 
integrated Box2D and everything is bound to Lua to make it really easy to 
script out game logic.  You can also deploy on other platforms, but it 
works great specifically for Android too.

Please let me know what you think, either here, privately or otherwise. 
 Would love feedback and am always happy to support.

Thanks everyone!!

-- 
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: Apache License

2012-12-27 Thread Lew
RichardC wrote:

> Two points:
>
>1. You are asking for legal advice, it will be worth as much as you 
>are paying for it; and
>2. What evidence do you have that your app is a "Derivative Work"?
>
>
> bob wrote:
>>
>> I was looking at the Apache License, and it says:
>>
>> *You must give any other recipients of the Work or Derivative Works a 
>> copy of this License;* and
>>
>> How does this work when you are making an app?
>>
>> How does an app usually contain the "copy of this license"?
>>
>
How does an app disseminate any license information?

Where did you find the license you were reading?

What do projects that use that license do?

What does an online search reveal to you?

-- 
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: Apache License

2012-12-27 Thread RichardC
Two points:

   1. You are asking for legal advice, it will be worth as much as you are 
   paying for it; and
   2. What evidence do you have that your app is a "Derivative Work"?
   

On Thursday, December 27, 2012 8:10:58 PM UTC, bob wrote:
>
> I was looking at the Apache License, and it says:
>
> *You must give any other recipients of the Work or Derivative Works a 
> copy of this License;* and
>
> How does this work when you are making an app?
>
> How does an app usually contain the "copy of this license"?
>
>

-- 
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] Emulators limited to 1280x800?

2012-12-27 Thread Mark Murphy
On Thu, Dec 27, 2012 at 4:22 PM, jtoolsdev  wrote:
> Of course after I posted the topic I remembered I wanted to try launching
> the emulator with with "Use Host GPU" checked and the Nexus 10 emulator
> launched.  Same with the 1080p (probably should be 1200p or double 960x600).

Ah. So those of us lacking host GPU capability
(http://code.google.com/p/android/issues/detail?id=34233) are out of
luck for the time being, I guess. Needing host GPU support for
high-resolution emulator images makes sense, though.

Thanks for the update!

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

Localized Android Question-and-Answer Sites: http://www.andglobe.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


Re: [android-developers] Emulators limited to 1280x800?

2012-12-27 Thread jtoolsdev
Of course after I posted the topic I remembered I wanted to try launching 
the emulator with with "Use Host GPU" checked and the Nexus 10 emulator 
launched.  Same with the 1080p (probably should be 1200p or double 
960x600).  

On Thursday, December 27, 2012 1:03:31 PM UTC-8, Mark Murphy (a Commons 
Guy) wrote:
>
> The last time I tried, I ran into much the same trouble. I just tried 
> it again with a 1080p resolution, and it seems stuck. I've been 
> assuming the emulator cannot handle those resolutions. 
>
> CC'ing adt-dev on this in case somebody over there can confirm our 
> theory or provide instructions for high-resolution emulator images. 
>
> On Thu, Dec 27, 2012 at 3:50 PM, jtoolsdev > 
> wrote: 
> > I've tried to create an emulator device definition for the Nexus 10 
> which 
> > double 1280x800 or 2560x1600.  It won't run and logcat seems to show it 
> in a 
> > loop.  I tried a 1920x1080 device and it did the same thing.  I need to 
> test 
> > some bitmap scaling for my tablet app but am not able to do so with the 
> > emulator.  In fact when reloading virtual device manager it shows these 
> AVDs 
> > created from the definitions as broken.  Is the emulator limited to just 
> > 1280x800 as maximum screen size? 
> > 
> > -- 
> > 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 
>
>
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Localized Android Question-and-Answer Sites: http://www.andglobe.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

Re: [android-developers] Emulators limited to 1280x800?

2012-12-27 Thread Mark Murphy
The last time I tried, I ran into much the same trouble. I just tried
it again with a 1080p resolution, and it seems stuck. I've been
assuming the emulator cannot handle those resolutions.

CC'ing adt-dev on this in case somebody over there can confirm our
theory or provide instructions for high-resolution emulator images.

On Thu, Dec 27, 2012 at 3:50 PM, jtoolsdev  wrote:
> I've tried to create an emulator device definition for the Nexus 10 which
> double 1280x800 or 2560x1600.  It won't run and logcat seems to show it in a
> loop.  I tried a 1920x1080 device and it did the same thing.  I need to test
> some bitmap scaling for my tablet app but am not able to do so with the
> emulator.  In fact when reloading virtual device manager it shows these AVDs
> created from the definitions as broken.  Is the emulator limited to just
> 1280x800 as maximum screen size?
>
> --
> 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



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

Localized Android Question-and-Answer Sites: http://www.andglobe.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] Emulators limited to 1280x800?

2012-12-27 Thread jtoolsdev
I've tried to create an emulator device definition for the Nexus 10 which 
double 1280x800 or 2560x1600.  It won't run and logcat seems to show it in 
a loop.  I tried a 1920x1080 device and it did the same thing.  I need to 
test some bitmap scaling for my tablet app but am not able to do so with 
the emulator.  In fact when reloading virtual device manager it shows these 
AVDs created from the definitions as broken.  Is the emulator limited to 
just 1280x800 as maximum screen size?

-- 
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] Apache License

2012-12-27 Thread bob
I was looking at the Apache License, and it says:

*You must give any other recipients of the Work or Derivative Works a copy 
of this License;* and

How does this work when you are making an app?

How does an app usually contain the "copy of this license"?

-- 
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: Can two applications that run in the same process have different STATIC object values?

2012-12-27 Thread Kristopher Micinski
Yes, this trick is commonly used to share things (resources, code, shared
memory) between apps by a common author.
On Dec 26, 2012 6:53 PM, "Lew"  wrote:

> Lew wrote:
>
>>  Erik wrote:
>>
>>>  Lew wrote:

 I'm confused by your use of the terms "application" and "process" as
 different things. Each Android app runs in its own process.
>>>
>>>
>>> This is incorrect. Applications are allowed to share processes. See
>>> http://developer.android.com/**guide/components/fundamentals.**html
>>> .
>>>
>>>
>> Thank you for that.
>>
>
> I see from that link that I was thinking of the common case only:
> "By default, every application runs in its own Linux process."
>
> --
> 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

-- 
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: Location Listener Question

2012-12-27 Thread Mark Murphy
On Thu, Dec 27, 2012 at 1:25 PM, Jake Colman  wrote:
> Initially you said that the service should not
> be destroyed so quickly.

What I wrote was:

"The only reason a service would be destroyed within that short a
period of time is if somebody stops it. For example, an IntentService
calls stopSelf() when onHandleIntent() ends (if there is no more work
queued up)."

> I didn't realize that you were distinguishing
> between an Intent Service and a regular service.

I am uncertain how much more plain I can make what I wrote above. I am
up for suggestions.

> Is it acceptable practice to have my AppWidgetProvider start a regular
> service to handle this kind of work?

So long as that service shuts itself down once it has the location
data, that's perfectly reasonable, and that's what LocationPoller
does.

> What about leaving everything as is but track location updates via an
> Intent instead of a listener?

I presume that you mean via a PendingIntent. I have not experimented
with that portion of the location API. I would presume that it is
designed for this sort of scenario, but I do not know all of the
relevant characteristics (e.g., do we need a WakeLock?). This is on my
short list to work on in early 2013.

> I imagine that would be abusive since an
> AppWidgetProvider shouldn't be handling a potentially continuous stream
> of intents such as could be fired from the location updates.

Well, as with your existing listener-based logic, you could remove
updates once you got your desired fix.

Part of what I need to figure out is how well stuff like minTime work
with the PendingIntent stuff, to see how much power is consumed while
our location request is registered. For example, it is possible that,
in your scenario, you could specify a minTime of 1 hour, and Android
would be smart enough to let the device (and GPS, if applicable) fall
asleep between checks. Since minTime used to be a hint, and not a hard
requirement, I never trusted it, but the docs suggest that minTime is
more "real" now... :-)

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

Localized Android Question-and-Answer Sites: http://www.andglobe.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] ADT Rev.2.0.1->Rev.2.0.0

2012-12-27 Thread RVM


I installed the ADT Rev. 2.0.1. Now I want return the ADT Rev. 2.0.0. How 
to do 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How i remove my old apk and publish update on google play market?

2012-12-27 Thread Michael Banzon
You should be able to upload the new one and activate it. Never mind about
the old one.


On Thu, Dec 27, 2012 at 4:56 PM, Antonis Kanaris  wrote:

>
>
> How i remove my old apk and publish update on google play market?I publish
> my apk but i put something extra to my code...I make unpublish...but how i
> delete the old and upload new?
>
> --
> 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




-- 
Michael Banzon
http://michaelbanzon.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: Location Listener Question

2012-12-27 Thread Jake Colman
> "MM" == Mark Murphy  writes:

   MM> On Thu, Dec 27, 2012 at 12:22 PM, Jake Colman  wrote:

   >> H.  The service's onHandleIntent is basically a set of
   >> 'if/else' clauses for the intents I am looking for with a final
   >> 'else' for any unrecognized intent.  After that final 'else' there
   >> is no other code.

   MM> Which means your service will be destroyed a handful of
   MM> microseconds after that final else. Using an IntentService for
   MM> location tracking is a no-no.

   >> In my logcat I see that the code for determining the location has
   >> been triggered (I have debug statements showing me the available
   >> and best providers) but then I immediately see the service's
   >> onDestroy method logging that it was called.

   MM> That is precisely what I am telling you is supposed to happen.

   >> Either way, how do I make sure I stay alive long enough for my
   >> Listener to get an update?

   MM> Stop using an IntentService. Use a regular Service, one for which
   MM> you control the lifecycle.


Sorry, I misunderstood.  Initially you said that the service should not
be destroyed so quickly. I didn't realize that you were distinguishing
between an Intent Service and a regular service.

Is it acceptable practice to have my AppWidgetProvider start a regular
service to handle this kind of work?  If that's the case there's not
much that would likely need to change in my overall code.

What about leaving everything as is but track location updates via an
Intent instead of a listener?  I imagine that would be abusive since an
AppWidgetProvider shouldn't be handling a potentially continuous stream
of intents such as could be fired from the location updates.


-- 
Jake Colman -- Android Tinkerer

-- 
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: Location Listener Question

2012-12-27 Thread Mark Murphy
On Thu, Dec 27, 2012 at 12:22 PM, Jake Colman  wrote:
> H.  The service's onHandleIntent is basically a set of 'if/else'
> clauses for the intents I am looking for with a final 'else' for any
> unrecognized intent.  After that final 'else' there is no other code.

Which means your service will be destroyed a handful of microseconds
after that final else. Using an IntentService for location tracking is
a no-no.

> In my logcat I see that the code for determining the location has been
> triggered (I have debug statements showing me the available and best
> providers) but then I immediately see the service's onDestroy method
> logging that it was called.

That is precisely what I am telling you is supposed to happen.

> Either way, how do I make sure I stay
> alive long enough for my Listener to get an update?

Stop using an IntentService. Use a regular Service, one for which you
control the lifecycle.

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

Localized Android Question-and-Answer Sites: http://www.andglobe.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: Location Listener Question

2012-12-27 Thread Jake Colman
> "MM" == Mark Murphy  writes:

   MM> On Thu, Dec 27, 2012 at 10:39 AM, Jake Colman  wrote:

   >> I think I know why my listener is not always firing but I'm not
   >> sure what to do about it.  The request for location updates is
   >> coming from a Service that is periodically updating a widget.
   >> Looking the logcat, it looks like the service gets destroyed
   >> before I received the update.  If the service is destroyed, the
   >> listener object is gone too!
   >> 
   >> How does one typically deal with this situation?

   MM> The only reason a service would be destroyed within that short a
   MM> period of time is if somebody stops it. For example, an
   MM> IntentService calls stopSelf() when onHandleIntent() ends (if
   MM> there is no more work queued up).

H.  The service's onHandleIntent is basically a set of 'if/else'
clauses for the intents I am looking for with a final 'else' for any
unrecognized intent.  After that final 'else' there is no other code.

In my logcat I see that the code for determining the location has been
triggered (I have debug statements showing me the available and best
providers) but then I immediately see the service's onDestroy method
logging that it was called.  My test phone is a vanilla HTC EVO 4G
running CM7 with nothing extra installed on it.

Is there anything else that can cause the service to be destroyed?  In
case it matters, the service is being started from the onReceive method
of an AppWidgetProvider.  Is it possible that the service's life cycle
is shortened in that instance?  Either way, how do I make sure I stay
alive long enough for my Listener to get an update?

   MM> Handling periodic locations, triggered by alarms, is tricky, not
   MM> only in the location handling but in making sure the WakeLock and
   MM> everything is behaving as expected. I tossed together a simple
   MM> LocationPoller to demonstrate the sort of stuff that's required:

   MM> https://github.com/commonsguy/cwac-locpoll

Thanks for this code.  Now I need to study it!

-- 
Jake Colman -- Android Tinkerer

-- 
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: Location Listener Question

2012-12-27 Thread Mark Murphy
On Thu, Dec 27, 2012 at 10:39 AM, Jake Colman  wrote:
> I think I know why my listener is not always firing but I'm not sure
> what to do about it.  The request for location updates is coming from a
> Service that is periodically updating a widget.  Looking the logcat, it
> looks like the service gets destroyed before I received the update.  If
> the service is destroyed, the listener object is gone too!
>
> How does one typically deal with this situation?

The only reason a service would be destroyed within that short a
period of time is if somebody stops it. For example, an IntentService
calls stopSelf() when onHandleIntent() ends (if there is no more work
queued up).

Handling periodic locations, triggered by alarms, is tricky, not only
in the location handling but in making sure the WakeLock and
everything is behaving as expected. I tossed together a simple
LocationPoller to demonstrate the sort of stuff that's required:

https://github.com/commonsguy/cwac-locpoll

--
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.4 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] How i remove my old apk and publish update on google play market?

2012-12-27 Thread Antonis Kanaris
   
   
How i remove my old apk and publish update on google play market?I publish 
my apk but i put something extra to my code...I make unpublish...but how i 
delete the old and upload new?

-- 
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: Location Listener Question

2012-12-27 Thread Jake Colman
> "Jake" == Jake Colman  writes:

   Jake> Yes, I know that there are a million resources out there that
   Jake> deal with the best way to obtain a location and I did google
   Jake> quite a bit before making this post.  If someone can point me
   Jake> to something I missed, I'd appreciate it.

   Jake> Having said this my needs (for the purpose of this question)
   Jake> are quite simple: Once an hour I want to obtain my location
   Jake> from the Network.

   Jake> Here is what I did:

   Jake> 1) Created an alarm to trigger once an hour.
   Jake> 2) Invoke LocationManager.removeUpdates().
   Jake> 3) Request location updates, specifying a listener.  I am
   Jake>specifying minTime and minDistance values of 0.
   Jake> 4) As soon as the listener is fired, save the location and
   Jake>invoke LocationManager.removeUpdates().

   Jake> I see a few issues with this:

   Jake> 1) I am shutting down the listener as soon as I get an update.
   Jake>But I should probably wait for a few updates in order to
   Jake>allow it to zero in on the location (I already have code
   Jake>that figures out best location from those available).

   Jake> 2) The listener does not seem to fire consistently.  My
   Jake>location is not always getting updated and it looks like the
   Jake>listener is simply not getting called.

   Jake> I ran some tests where I never remove updates.  With the above
   Jake> settings my listener is being called appx every 45 seconds.  So
   Jake> I know that my overall code is written correctly.

   Jake> What is the canonical "best" way to do what I want?  Should I
   Jake> collect updates in my Listener for, say, 2 minutes and use an
   Jake> alarm (set to trigger two minutes after my hourly alarm is
   Jake> triggered) to remove updates?  Is there a better way to solve
   Jake> this problem?

I think I know why my listener is not always firing but I'm not sure
what to do about it.  The request for location updates is coming from a
Service that is periodically updating a widget.  Looking the logcat, it
looks like the service gets destroyed before I received the update.  If
the service is destroyed, the listener object is gone too!

How does one typically deal with this situation?

-- 
Jake Colman -- Android Tinkerer

-- 
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] Location Listener Question

2012-12-27 Thread Jake Colman

Yes, I know that there are a million resources out there that deal with
the best way to obtain a location and I did google quite a bit before
making this post.  If someone can point me to something I missed, I'd
appreciate it.

Having said this my needs (for the purpose of this question) are quite
simple: Once an hour I want to obtain my location from the Network.

Here is what I did:

1) Created an alarm to trigger once an hour.
2) Invoke LocationManager.removeUpdates().
3) Request location updates, specifying a listener.  I am specifying
   minTime and minDistance values of 0.
4) As soon as the listener is fired, save the location and invoke
   LocationManager.removeUpdates().

I see a few issues with this:

1) I am shutting down the listener as soon as I get an update.  But I
   should probably wait for a few updates in order to allow it to zero
   in on the location (I already have code that figures out best
   location from those available).

2) The listener does not seem to fire consistently.  My location is not
   always getting updated and it looks like the listener is simply not
   getting called.

I ran some tests where I never remove updates.  With the above settings
my listener is being called appx every 45 seconds.  So I know that my
overall code is written correctly.

What is the canonical "best" way to do what I want?  Should I collect
updates in my Listener for, say, 2 minutes and use an alarm (set to
trigger two minutes after my hourly alarm is triggered) to remove
updates?  Is there a better way to solve this problem?

-- 
Jake Colman -- Android Tinkerer

-- 
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: Camera app bombs, using Android Docs examples.

2012-12-27 Thread Mark Murphy
Please continue past the point of the crash, to allow a real stack
trace to be logged to LogCat.

On Thu, Dec 27, 2012 at 8:13 AM, JDog  wrote:
>
>
> As far as it bombing, the application comes up on android then gives message
> "the application has stopped working" and exits."  under debug it comes up
> but is not operable.
>
> I have this warning in eclipse problems window, everything else it lists is
> about unused import types.
> DescriptionResourcePathLocationType
> Custom view com/tcs/video/CameraPreview is missing constructor used by
> tools: (Context) or (Context,AttributeSet) or (Context,AttributeSet,int)
> CameraPreview.java/VideoComponent/src/com/tcs/videoline 1Android
> Lint Problem
>
>
> this is stack, from debug. Seems odd it would list VideoComponent 2 times at
> start. Not sure if thats normal.
>
> VideoComponent [Android Application]
> VideoComponent [Android Application]
> DalvikVM[localhost:8600]
> Thread [<1> main] (Suspended (exception RuntimeException))
> 
>
> ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord,
> Intent) line: 1880
>
> ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord,
> Intent) line: 1981
> ActivityThread.access$600(ActivityThread,
> ActivityThread$ActivityClientRecord, Intent) line: 123
> ActivityThread$H.handleMessage(Message) line: 1147
> ActivityThread$H(Handler).dispatchMessage(Message) line: 99
> Looper.loop() line: 137
> ActivityThread.main(String[]) line: 4424
> Method.invokeNative(Object, Object[], Class, Class[], Class,
> int, boolean) line: not available [native method]
> Method.invoke(Object, Object...) line: 511
> ZygoteInit$MethodAndArgsCaller.run() line: 812
> ZygoteInit.main(String[]) line: 579
> NativeStart.main(String[]) line: not available [native method]
> Thread [<10> Binder Thread #2] (Running)
> Thread [<9> Binder Thread #1] (Running)
> Daemon Thread [<8> FinalizerWatchdogDaemon] (Running)
> Daemon Thread [<7> FinalizerDaemon] (Running)
> Daemon Thread [<6> ReferenceQueueDaemon] (Running)
>
> thanks again.
>
> --
> 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



-- 
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.4 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 zoom VideoView

2012-12-27 Thread bob
 

You will want to play the video in a TextureView and set the matrix 
accordingly.



On Thursday, December 27, 2012 3:02:49 AM UTC-6, Dilip Kumar Chaudhary 
wrote:
>
> Hi all,I want to zoom video view like image on pinch.I have already worked 
> on Image zoom and same logic using for videoView zoom but found that there 
> is not mothod for set matrix in videoview so i'm unable to zoom this.If any 
> know please suggest me how to solve this problem.
>
> -- 
> *Thanks & Regards*
> Dilip Kumar Chaudhary
> My Linkedin 
> Profile 
> My Development Blog 
>  

-- 
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: google play store reply comments

2012-12-27 Thread bob
You could also create a blog and respond to comments there:

https://sites.google.com/site/rezmobileapps/treking/blogs/response-to-comments-free


On Wednesday, December 26, 2012 3:46:39 AM UTC-6, Salih Gündüz wrote:
>
> Why I can not reply comments to my app in store? Is there anyway to reply?

-- 
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: getting exception while connecting to server via bluetooth

2012-12-27 Thread bob
 

Try it without Reflection.



On Thursday, December 27, 2012 5:43:16 AM UTC-6, Ananda Krishna wrote:
>
> Hi,
> I am trying to connect to a server in order to receive a file from the 
> server.. with the help of bluetooth..
> *The code is as shown below:*
>
> private void connectServer() {
> if(mBluetoothAdapter.isEnabled()){
>   try{
>   boolean startDiscovery = mBluetoothAdapter.startDiscovery();
>   if(true == startDiscovery ){
> device = 
> BluetoothAdapter.getDefaultAdapter().getRemoteDevice(SERVER_MAC_ID);
> Method m = device.getClass().getMethod("createRfcommSocket", new Class[] { 
> int.class });
> btSocket = (BluetoothSocket) m.invoke(device,Integer.valueOf(1));
> mBluetoothAdapter.cancelDiscovery();
>  btSocket.connect();
> Toast.makeText(this,"Connected,Waiting to Receive 
> Files...",Toast.LENGTH_LONG).show();
>   } 
>   }catch(Exception ex){
>   Toast.makeText(this,"Connection 
> Error:"+ex.getLocalizedMessage(),Toast.LENGTH_LONG).show();
>   }finally{
> try {
> btSocket.close();
> }catch (IOException e) {
> Toast.makeText(this,"Connection Error:" + 
> e.getLocalizedMessage(),Toast.LENGTH_LONG).show();
> }
>   }
> }
> }
>
> I am getting the following exception at the highlighted line..
> *java.io.IOException: [JSR82] connect: Connection is not created (failed 
> or aborted).*
> *
> *
> What is the mistake that i am doing...Any help in this regard will be 
> appreciated.
> Regards,
> AnandaKrishna S
>
>

-- 
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] Printing PDF in Android

2012-12-27 Thread Priyanka
Can u plz mention wht solution u have found... ?

On Saturday, 16 June 2012 12:11:31 UTC+5:30, Rajis wrote:
>
> Yes, Thank you all. I got the solution
>
>

-- 
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: Camera app bombs, using Android Docs examples.

2012-12-27 Thread JDog


As far as it bombing, the application comes up on android then gives 
message "the application has stopped working" and exits."  under debug it 
comes up but is not operable. 

I have this warning in eclipse problems window, everything else it lists is 
about unused import types. 
DescriptionResourcePathLocationType
Custom view com/tcs/video/CameraPreview is missing constructor used by 
tools: (Context) or (Context,AttributeSet) or (Context,AttributeSet,int)
CameraPreview.java/VideoComponent/src/com/tcs/videoline 1
Android Lint Problem


this is stack, from debug. Seems odd it would list VideoComponent 2 times 
at start. Not sure if thats normal.   

VideoComponent [Android Application]
VideoComponent [Android Application]
DalvikVM[localhost:8600]
Thread [<1> main] (Suspended (exception RuntimeException))


ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, 
Intent) line: 1880

ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, 
Intent) line: 1981
ActivityThread.access$600(ActivityThread, 
ActivityThread$ActivityClientRecord, Intent) line: 123
ActivityThread$H.handleMessage(Message) line: 1147
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 137
ActivityThread.main(String[]) line: 4424
Method.invokeNative(Object, Object[], Class, Class[], Class, 
int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 511
ZygoteInit$MethodAndArgsCaller.run() line: 812
ZygoteInit.main(String[]) line: 579
NativeStart.main(String[]) line: not available [native 
method]
Thread [<10> Binder Thread #2] (Running)
Thread [<9> Binder Thread #1] (Running)
Daemon Thread [<8> FinalizerWatchdogDaemon] (Running)
Daemon Thread [<7> FinalizerDaemon] (Running)
Daemon Thread [<6> ReferenceQueueDaemon] (Running)

thanks again. 

-- 
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] OTA is not updating secure database

2012-12-27 Thread jaiju Yesudasan
Hi all,

I changed the network_preference value in defaults.xml
(/frameworks
/base 
/packages
/SettingsProvider
/res
/values
/) file , but the changes are not getting updated in the OTA build.
Could you suggest if i am missing any thing.

 Thanks in advance

-- 
Regards
Jaiju

-- 
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: Can two applications that run in the same process have different STATIC object values?

2012-12-27 Thread AndroidCompile
Thanks, tried it and it works...


On Thursday, December 27, 2012 11:53:51 AM UTC+2, Massycat wrote:
>
> From the second app, you can create a Context that is the same as that of 
> the first app using createPackageContext(), 
> http://developer.android.com/reference/android/content/Context.html#createPackageContext(java.lang.String,
>  
> int)
> This Context will give access to the ClassLoader used by the first app 
> (call getClassLoader() on the Context) if you include 
> the CONTEXT_INCLUDE_CODE flag in the createPackageContext() call. Since 
> both the apps are running in the same process the createPackageContext() 
> call will not throw a SecurityException.
> Within the second app, loading the common class through the acquired 
> ClassLoader will give both apps access to the same static fields.
>
>

-- 
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: Identifying HTTP Get requests in Android

2012-12-27 Thread skink


Archana r wrote:
> The link contains code where a separate thread is started for each request.
> Can I use it?
>
>

yes

pskink

-- 
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] getting exception while connecting to server via bluetooth

2012-12-27 Thread Ananda Krishna
Hi,
I am trying to connect to a server in order to receive a file from the 
server.. with the help of bluetooth..
*The code is as shown below:*

private void connectServer() {
if(mBluetoothAdapter.isEnabled()){
  try{
  boolean startDiscovery = mBluetoothAdapter.startDiscovery();
  if(true == startDiscovery ){
device = 
BluetoothAdapter.getDefaultAdapter().getRemoteDevice(SERVER_MAC_ID);
Method m = device.getClass().getMethod("createRfcommSocket", new Class[] { 
int.class });
btSocket = (BluetoothSocket) m.invoke(device,Integer.valueOf(1));
mBluetoothAdapter.cancelDiscovery();
 btSocket.connect();
Toast.makeText(this,"Connected,Waiting to Receive 
Files...",Toast.LENGTH_LONG).show();
  } 
  }catch(Exception ex){
  Toast.makeText(this,"Connection 
Error:"+ex.getLocalizedMessage(),Toast.LENGTH_LONG).show();
  }finally{
try {
btSocket.close();
}catch (IOException e) {
Toast.makeText(this,"Connection Error:" + 
e.getLocalizedMessage(),Toast.LENGTH_LONG).show();
}
  }
}
}

I am getting the following exception at the highlighted line..
*java.io.IOException: [JSR82] connect: Connection is not created (failed or 
aborted).*
*
*
What is the mistake that i am doing...Any help in this regard will be 
appreciated.
Regards,
AnandaKrishna S

-- 
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: Identifying HTTP Get requests in Android

2012-12-27 Thread Archana r
The link contains code where a separate thread is started for each request.
Can I use it?

Can you please explain your comment?

Thanks!

On Thu, Dec 27, 2012 at 1:33 PM, skink  wrote:

>
>
> Archana wrote:
> > Hi,
> >
> > Does the server in the
> >
> hc.apache.org/httpcomponents-core-ga/httpcore/examples/org/apache/http/examples/ElementalHttpServer.javawork
> > in Android?
> >
> > When I try to use the constructor,
> >
> > HttpService(HttpProcessor processor, ConnectionReuseStrategy
> connStrategy, HttpResponseFactory responseFactory,
> HttpRequestHandlerResolver handlerResolver, HttpParams params)
> >
> >
> > Eclipse says constructor is not defined. Eclipse gives a quick fix to
> > change the constructor as:
> >
> > HttpService(HttpProcessor proc, ConnectionReuseStrategy connStrategy,
> HttpResponseFactory responseFactory)
> >
> > How will I register the handler for my requests in this case?
> >
> > Thanks in advance!
> >
> >
> > On Wednesday, December 19, 2012 2:18:04 PM UTC+2, skink wrote:
> > >
> > >
> > >
> > > Archana wrote:
> > > > Hi,
> > > > I m implementing threads first. Can I use Basic HTTP server from the
> > > > link http://hc.apache.org/httpcomponents-core-ga/examples.html ?
> > > >
> > > > Can you please let me know the difference between handling blocking
> > > > requests and blocking IO(as specified in the link).
> > > >
> > > > Thanks!
> > > >
> > > >
> > > >
> > >
> > > after two minute googling I got this:
> > >
> > > http://www.oracle.com/technetwork/java/socket-140484.html
> > >
> > > why don't you use Google for a basic socket stuff that has nothing to
> > > do with android?
> > >
> > > pskink
> > >
>
> you had a working single threaded serverthat started like this:
>
> while(true){
> socket =
> serverSocket.accept();
>
> why don't you change it to the multi threaded one?
>
> pskink
>
> --
> 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,
Archana

-- 
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: Identifying HTTP Get requests in Android

2012-12-27 Thread skink


Archana wrote:
> Hi,
>
> Does the server in the
> hc.apache.org/httpcomponents-core-ga/httpcore/examples/org/apache/http/examples/ElementalHttpServer.java
>  work
> in Android?
>
> When I try to use the constructor,
>
> HttpService(HttpProcessor processor, ConnectionReuseStrategy connStrategy, 
> HttpResponseFactory responseFactory, HttpRequestHandlerResolver 
> handlerResolver, HttpParams params)
>
>
> Eclipse says constructor is not defined. Eclipse gives a quick fix to
> change the constructor as:
>
> HttpService(HttpProcessor proc, ConnectionReuseStrategy connStrategy, 
> HttpResponseFactory responseFactory)
>
> How will I register the handler for my requests in this case?
>
> Thanks in advance!
>
>
> On Wednesday, December 19, 2012 2:18:04 PM UTC+2, skink wrote:
> >
> >
> >
> > Archana wrote:
> > > Hi,
> > > I m implementing threads first. Can I use Basic HTTP server from the
> > > link http://hc.apache.org/httpcomponents-core-ga/examples.html ?
> > >
> > > Can you please let me know the difference between handling blocking
> > > requests and blocking IO(as specified in the link).
> > >
> > > Thanks!
> > >
> > >
> > >
> >
> > after two minute googling I got this:
> >
> > http://www.oracle.com/technetwork/java/socket-140484.html
> >
> > why don't you use Google for a basic socket stuff that has nothing to
> > do with android?
> >
> > pskink
> >

you had a working single threaded serverthat started like this:

while(true){
socket =
serverSocket.accept();

why don't you change it to the multi threaded one?

pskink

-- 
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] google play store reply comments

2012-12-27 Thread Salih Gündüz
thanks .the second way is sensible for me. :)

On Thu, Dec 27, 2012 at 1:10 AM, TreKing  wrote:

> feature becomes available for us mere mortals

-- 
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: Identifying HTTP Get requests in Android

2012-12-27 Thread Archana
Hi, 

Does the server in the 
hc.apache.org/httpcomponents-core-ga/httpcore/examples/org/apache/http/examples/ElementalHttpServer.java
 work 
in Android? 

When I try to use the constructor,

HttpService(HttpProcessor processor, ConnectionReuseStrategy connStrategy, 
HttpResponseFactory responseFactory, HttpRequestHandlerResolver 
handlerResolver, HttpParams params)


Eclipse says constructor is not defined. Eclipse gives a quick fix to 
change the constructor as:

HttpService(HttpProcessor proc, ConnectionReuseStrategy connStrategy, 
HttpResponseFactory responseFactory) 

How will I register the handler for my requests in this case? 

Thanks in advance!


On Wednesday, December 19, 2012 2:18:04 PM UTC+2, skink wrote:
>
>
>
> Archana wrote: 
> > Hi, 
> > I m implementing threads first. Can I use Basic HTTP server from the 
> > link http://hc.apache.org/httpcomponents-core-ga/examples.html ? 
> > 
> > Can you please let me know the difference between handling blocking 
> > requests and blocking IO(as specified in the link). 
> > 
> > Thanks! 
> > 
> > 
> > 
>
> after two minute googling I got this: 
>
> http://www.oracle.com/technetwork/java/socket-140484.html 
>
> why don't you use Google for a basic socket stuff that has nothing to 
> do with android? 
>
> pskink 
>

-- 
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] Galaxy S3, a rotation animation is shown when going from a normal portrait activity to camera activity and coming back.

2012-12-27 Thread Ansh
Hi guys,

In my app i am trying to take a pic from camera and displaying it in the 
imageview.Everything works fine but when i took pic from samsung galaxy s3 
, it changed the orientation and displays the camera activity andonActivity 
result 
it displayed the pic in the imageView but in a fraction of seconds it 
changed the orientation again removed the pic from imageview.Its very weird 
how can i resolve this issue?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send 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] How to make Text unselectable in EditText

2012-12-27 Thread monty
Hello,
Is there any way that user can not select the text inside 
EditText.


example:- in my EditText there is a Text "HelloAndroid",so i want no one 
can select this text. only the user can edit it.



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] Re: Can two applications that run in the same process have different STATIC object values?

2012-12-27 Thread Massycat
>From the second app, you can create a Context that is the same as that of 
the first app using createPackageContext(), 
http://developer.android.com/reference/android/content/Context.html#createPackageContext(java.lang.String,
 
int)
This Context will give access to the ClassLoader used by the first app 
(call getClassLoader() on the Context) if you include 
the CONTEXT_INCLUDE_CODE flag in the createPackageContext() call. Since 
both the apps are running in the same process the createPackageContext() 
call will not throw a SecurityException.
Within the second app, loading the common class through the acquired 
ClassLoader will give both apps access to the same static fields.

-- 
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] How to zoom VideoView

2012-12-27 Thread Dilip Kumar Chaudhary
Hi all,I want to zoom video view like image on pinch.I have already worked
on Image zoom and same logic using for videoView zoom but found that there
is not mothod for set matrix in videoview so i'm unable to zoom this.If any
know please suggest me how to solve this problem.

-- 
*Thanks & Regards*
Dilip Kumar Chaudhary
My Linkedin Profile
My Development Blog 

-- 
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 query from two unrelated tables and display data in same listview

2012-12-27 Thread skink


On 27 Gru, 06:46, Vijay Krishnan  wrote:
> Hi skink,
>
>           cursors point to different tables and tables have different
> column names.How do i know that this cursor points to this table?
>          How do i display data from different tables?
> Regards,
> vijay.k
>
>
>

if the data in both tables is the same but differs only in column
names (for example you have a column fname in the first table and
first_name in the second) you could try set the column name in the
select statement:

select something as newColumnName...

if the data is totally different you have to override getView in your
adapter

pskink

-- 
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