Re: [android-developers] lifecycle through onConfigurationChanged()

2013-10-09 Thread Piren
lol

On Tuesday, October 8, 2013 9:02:25 PM UTC+3, TreKing wrote:

  

 Thank you very much for your corporations.


 You've taken our corporations!?!?!?


 -
 TreKing http://sites.google.com/site/rezmobileapps/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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] When running under Android 4.3 in a user profiles (not restricted), my app goes nuts!

2013-10-09 Thread bjv
I have an application that works fine from pre-gingerbread through 4.2. In 
fact, it also works fine on 4.3 as well as long as it is run in the system 
user's context (the default user). If I create a user profile (not a 
restricted profile) and install my app in that user context, my app fails 
under a series of strange behaviors.

First, a bit about the app. It has 4 activities, 2 of which switch back and 
forth frequently as the user moves between a series of tasks. The 
activities are started explicitly to switch between each other at the 
appropriate times. So Activity A starts Activity B which then starts 
Activity A again later, which then starts B. It uses 
FLAG_ACTIVITY_REORDER_TO_FRONT to keep the activity stack sane (it is 
always A B or B A). I also have a button that will bring up Activity C from 
Activity A and another that brings up Activity D from Activity B. (C and D 
aren't at play when things go wrong).

As I said, when run on any version other than 4.3 in a user profile, it 
works just fine. When run in a separate user profile, I see the following 
behavior out of my Activity A:

   - The activity is created just fine, onStart, onResume, etc along the 
   Android lifecycle.
   - It never re-orients any longer. If a change the physical orientation 
   of the device, it used to stop and then recreate the activity in the new 
   orientation. Now, it just sits there. No onPause, onStop, onDestroy, 
   onCreate, onStart, onResume chain of calls.
   - When Activity A calls startActivity for B, I see that Activity B gets 
   its onResume call (and even an onCreate for the first one) but I never see 
   a call to onStart. I see that Activity A gets its onPause and 
   onUserLeaveHint calls, but never receives an onStop call. I never see 
   Activity B show up on the screen. Activity A just sits there on top of 
   Activity B. I presume this is because of the missing onStop and onStart 
   calls
   - If I leave my app while stuck in Activity A via the home button and 
   re-enter it via the Recents button, I re-enter on Activity B. I see the 
   onStop
   - Once I re-enter Activity B, I click on a button and try to go to 
   Activity A but it gets hung in much the same way - Activity B's 
   onUserLeaveHint and onPause are called and Activity B's onResume is called. 
   No onStop or onStart for B and A respectively.

It would seem that the activity lifecycle is messed up - I'm not seeing the 
onStart and onStop calls to my Activities when they are supposed to be 
switching.

But I wish I were done here. If I were to go back to my main user profile 
(the default/system user) and install my application in it in addition to 
the installation in the second user profile, switch back to the second 
profile, and restart my application, it all works just fine. No issues at 
all. To be clear, I have now installed my app twice - once in the default 
system user context and one in the user profile I created - and it now 
works.

So while I do have a work around, does any one have any idea what may be 
going on? Is there some incompatibility that I am tripping on that is 
overcome by installing the app in both user profiles? I do see other apps 
that seem to work fine in that user profile, but as I think about it, most 
of them are installed in both places. That said, I can't imagine this is 
common (but I could be surprised). 

Does anyone have any idea what may be going wrong?

Brian


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Upgrading Apk

2013-10-09 Thread Rahul Kaushik
Hello ,
 i have lost my old keystore signing file for the older version of apk,when
i try to upload new apk with new keystore signing file i get the below
error:

You uploaded an APK that is signed with a different certificate to your
previous APKs. You must use the same certificate. Your existing APKs are
signed with the certificate(s) with fingerprint(s):

[ SHA1: BD:C5:13:57:EF:75:00:DE:AC:E7:19:21:FE:64:2B:B9:93:CF:90:2A ]

and the certificate(s) used to sign the APK you uploaded have
fingerprint(s):

[ SHA1: A4:6D:AC:EE:47:DA:1F:8A:20:E9:64:64:21:40:85:3F:56:03:BA:12 ]

Please suggest

Thanks
RK

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Upgrading Apk

2013-10-09 Thread Isuru Madusanka
You must need old keystore file, unless u won't able to upload, because
android play market need you to sign with same key file.
On Oct 9, 2013 10:36 AM, Rahul Kaushik rahulkaushi...@gmail.com wrote:

 Hello ,
  i have lost my old keystore signing file for the older version of
 apk,when i try to upload new apk with new keystore signing file i get the
 below error:

 You uploaded an APK that is signed with a different certificate to your
 previous APKs. You must use the same certificate. Your existing APKs are
 signed with the certificate(s) with fingerprint(s):

 [ SHA1: BD:C5:13:57:EF:75:00:DE:AC:E7:19:21:FE:64:2B:B9:93:CF:90:2A ]

 and the certificate(s) used to sign the APK you uploaded have
 fingerprint(s):

 [ SHA1: A4:6D:AC:EE:47:DA:1F:8A:20:E9:64:64:21:40:85:3F:56:03:BA:12 ]

 Please suggest

 Thanks
 RK

  --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Regarding distance measuring api

2013-10-09 Thread sourabh sahu
Is there any API provided by Google to measure the distance between two
point radially and through physical routes.

Thanks,
Sourabh

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Show Glyph outside Unicode Range ? label:Android

2013-10-09 Thread Ingo Klein
Hi guys,
i would like to show a Glyph (GlyphID 932) of a Font that i use in my app.
The Glyph isn't specified in the Unicode therefor is doesn't have and 
UnicodeID.
Its a special redrawn 1 inside this Font.
Under Photoshop you can acces it via OpenType- Format variants (or sort 
of, i use the German Version) 
and it will display the correct Character.
I also tried to copy it directly in the Source but only got a squared 
Questionmark.

Any ideas ?

Code below :

Typeface tf = Typeface.createFromAsset(this.getActivity().getAssets(), 
fonts/thesansextra.otf);
TextView tv = (TextView) view.findViewById(R.id.txt_sub);
tv.setText(1);
tv.getPaint().setAntiAlias(true);
tv.setTypeface(tf);




-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Show Glyph outside Unicode Range ? label:Android

2013-10-09 Thread Nobu Games
I don't think that Android's typeface component or TextView allows 
switching to different variants. If your font does not have a mapping from 
that glyph to a Unicode code point then you probably won't be able to 
render it.

If you have a font editing application you could extract that glyph and 
assign it to an ordinary 1 :-/



On Wednesday, October 9, 2013 7:32:17 AM UTC-5, Ingo Klein wrote:

 Hi guys,
 i would like to show a Glyph (GlyphID 932) of a Font that i use in my app.
 The Glyph isn't specified in the Unicode therefor is doesn't have and 
 UnicodeID.
 Its a special redrawn 1 inside this Font.
 Under Photoshop you can acces it via OpenType- Format variants (or sort 
 of, i use the German Version) 
 and it will display the correct Character.
 I also tried to copy it directly in the Source but only got a squared 
 Questionmark.

 Any ideas ?

 Code below :

 Typeface tf = Typeface.createFromAsset(this.getActivity().getAssets(), 
 fonts/thesansextra.otf);
 TextView tv = (TextView) view.findViewById(R.id.txt_sub);
 tv.setText(1);
 tv.getPaint().setAntiAlias(true);
 tv.setTypeface(tf);






-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Upgrading Apk

2013-10-09 Thread Nobu Games
There is no fix and no workaround. Even if Google Play would allow you to 
upload your APK signed with a different key, Android devices would refuse 
to install your update because of that mismatch. If you are really sure 
that you cannot find your old keystore then you have to publish your update 
as a new app with a different package name.

On Wednesday, October 9, 2013 4:30:39 AM UTC-5, rahul kaushik wrote:

 Hello ,
  i have lost my old keystore signing file for the older version of 
 apk,when i try to upload new apk with new keystore signing file i get the 
 below error:

 You uploaded an APK that is signed with a different certificate to your 
 previous APKs. You must use the same certificate. Your existing APKs are 
 signed with the certificate(s) with fingerprint(s):

 [ SHA1: BD:C5:13:57:EF:75:00:DE:AC:E7:19:21:FE:64:2B:B9:93:CF:90:2A ]

 and the certificate(s) used to sign the APK you uploaded have 
 fingerprint(s):

 [ SHA1: A4:6D:AC:EE:47:DA:1F:8A:20:E9:64:64:21:40:85:3F:56:03:BA:12 ] 

 Please suggest

 Thanks
 RK



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: When running under Android 4.3 in a user profiles (not restricted), my app goes nuts!

2013-10-09 Thread bjv
One more update. I tried this same thing on a 4.2.1 tablet and its 
multi-user support and see exactly the same thing. So it is not a problem 
with just 4.3, but with the user profile feature introduced in 4.2 and the 
problem still exists in 4.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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Stop watch functionality in Android

2013-10-09 Thread Abhilash baddam
Hi,

I want to implement something like Stopwatch functionality.,
When the user clicks on a Start button, I want to start the stopwatch which
shows the hr:min:sec in textview and keep on updates it,
and when the user clickis on button Stop, then timer needs to be stop.
Even if the user starts the Stopwatch and keep the application in
background by pressing home, after sometime if
the user comes to application eventhough the timer should keep run until
the user clicks on Stop button.

Can anyone give me suggestions or best approach to implement this
functionality.

I tried with Timer and TimerTask but when I click on Home after some time
If I comeback to app the timer text is not updating and its showing as
empty.


Timer  travelTimer = new Timer();

travelTimer.schedule(new TimerTask() {
@SuppressLint(SimpleDateFormat)
@Override
public void run() {

-

   }
 }, 0, 1000);


Is the reason when the app goes to background, the android system is
killing the Timer.. ?

Please give me the suggestion.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Correcting the style of a drop down spinner in ActionBar

2013-10-09 Thread Simon Giddings
I am using the following theme : Theme.Holo.Light.DarkActionBar
My application targets a minimum SDK of v14 and I am inserting a spinner to 
enable selection of items - ie this is NOT navigation.

I have been searching for the correct way to correct the styling of the 
spinner so that it is visible within the actionbar - at present it is dark 
on dark.

How do I assign the correct, existing, system, holo styles to the spinner 
to get it to display correctly ?
I would prefer to not have to re-create the styles and have to copy 
resources from the SDK files if possible.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Correcting the styles of a drop down spinner in the ActionBar

2013-10-09 Thread Simon Giddings
I am using the following theme : Theme.Holo.Light.DarkActionBar
My application targets a minimum SDK of v14 and I am inserting a spinner to 
enable selection of items - ie this is NOT navigation.

I have been searching for the correct way to correct the styling of the 
spinner so that it is visible within the actionbar - at present it is dark 
on dark.

How do I assign the correct, existing, system, holo styles to the spinner 
to get it to display correctly ?
I would prefer to not have to re-create the styles and have to copy 
resources from the SDK files if possible.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: Upgrading Apk

2013-10-09 Thread Raghavendra Rao
If you open the project using eclipse with the same workspace, most of the
time when you try to generate signed apk, it will automatically
autopopulate with the path where you previously stored. Try doing this.
Hope this will help.

All the best.


On 9 October 2013 20:35, Nobu Games dev.nobu.ga...@gmail.com wrote:

 There is no fix and no workaround. Even if Google Play would allow you to
 upload your APK signed with a different key, Android devices would refuse
 to install your update because of that mismatch. If you are really sure
 that you cannot find your old keystore then you have to publish your update
 as a new app with a different package name.


 On Wednesday, October 9, 2013 4:30:39 AM UTC-5, rahul kaushik wrote:

 Hello ,
  i have lost my old keystore signing file for the older version of
 apk,when i try to upload new apk with new keystore signing file i get the
 below error:

 You uploaded an APK that is signed with a different certificate to your
 previous APKs. You must use the same certificate. Your existing APKs are
 signed with the certificate(s) with fingerprint(s):

 [ SHA1: BD:C5:13:57:EF:75:00:DE:AC:E7:**19:21:FE:64:2B:B9:93:CF:90:2A ]

 and the certificate(s) used to sign the APK you uploaded have
 fingerprint(s):

 [ SHA1: A4:6D:AC:EE:47:DA:1F:8A:20:E9:**64:64:21:40:85:3F:56:03:BA:12 ]

 Please suggest

 Thanks
 RK

  --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Stop watch functionality in Android

2013-10-09 Thread TreKing
On Wed, Oct 9, 2013 at 12:57 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Is the reason when the app goes to background, the android system is
 killing the Timer.. ?


Yes. Review the app life cycle and the documentation on saving and
restoring state.

-
TreKing http://sites.google.com/site/rezmobileapps/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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Hax freeze

2013-10-09 Thread bob
Has anyone gotten Intel Hax working on a Macbook Pro or other Apple machine?

I've got it installed on my Macbook Pro, but my entire computer freezes 
when I launch the Android Virtual Device that uses the Hax.

Has anyone else seen this?

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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Stop watch functionality in Android

2013-10-09 Thread Abhilash baddam
Hi,
Thanks for the reply.

Otherwise shall I use the service so that android system doesn't kill the
service..?

Is there any other better approach for this...??




On Thursday, October 10, 2013, TreKing treking...@gmail.com wrote:

 On Wed, Oct 9, 2013 at 12:57 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Is the reason when the app goes to background, the android system is
killing the Timer.. ?

 Yes. Review the app life cycle and the documentation on saving and
restoring state.


-
 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 unsubscribe from this group and stop receiving emails from it, send an
email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: Stop watch functionality in Android

2013-10-09 Thread TreKing
On Wed, Oct 9, 2013 at 9:41 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Otherwise shall I use the service so that android system doesn't kill the
 service..?


Android will kill your Service if need be. This is not a solution.


 Is there any other better approach for this...??


Yes. Read the documentation. Review the app lifecycle. Pay particular
attention to the documentation on saving and restoring state.

-
TreKing http://sites.google.com/site/rezmobileapps/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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] lifecycle through onConfigurationChanged()

2013-10-09 Thread Hiko
Hello, TreKing,

2013年10月9日水曜日 3時02分25秒 UTC+9 TreKing:


 On Tue, Oct 8, 2013 at 8:04 AM, Hiko hikos...@gmail.com javascript:wrote:

 Why before rotating screen?
 Because I need to store how much scrolled is the page in pixel before 
 rotating to compare with before and after.


 Try onSaveInstanceState.

Thank you.
I will try that. 

  

 You should clarify what you're trying to do to get the best advice.
 Sorry, I have to keep the secret in details because of the business 
 application implementing.


 That's irrelevant. You should be able to explain what you're trying to 
 accomplish technically without revealing a single thing about the actual 
 application you're developing.

Yes, That's true.
Sorry, I cannot distinguish between public and secret on our technical 
point of view.

  

 Thank you very much for your corporations.


 You've taken our corporations!?!?!?

I have got mistyping...
Thanks you very much for your cooperations.
 


 -
 TreKing http://sites.google.com/site/rezmobileapps/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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Stop watch functionality in Android

2013-10-09 Thread Abhilash baddam
Hi Trekking,

If I use onrestoreinstance state then if I started timer say at 00:00:00 it
started n its running, and presses on home then I will store the timer
value. after some time, for ex  I go back to app at 00:56:45 sec if the
timer gets killed then I don't get the latest or upated value from restore
instance state,if I am not wrong..?

On Thursday, October 10, 2013, TreKing treking...@gmail.com wrote:

 On Wed, Oct 9, 2013 at 9:41 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Otherwise shall I use the service so that android system doesn't kill
the service..?

 Android will kill your Service if need be. This is not a solution.


 Is there any other better approach for this...??

 Yes. Read the documentation. Review the app lifecycle. Pay particular
attention to the documentation on saving and restoring state.


-
 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 unsubscribe from this group and stop receiving emails from it, send an
email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: Stop watch functionality in Android

2013-10-09 Thread TreKing
On Wed, Oct 9, 2013 at 10:26 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 If I use onrestoreinstance state then if I started timer say at 00:00:00
 it started n its running, and presses on home then I will store the timer
 value.


Don't store timer value - store the start time. Then figure out the current
value from that.


 after some time, for ex  I go back to app at 00:56:45 sec if the timer
 gets killed then I don't get the latest or upated value from restore
 instance state,if I am not wrong..?


Yes, you should get the value back that you saved, and from that you can
figure out what the elapsed time is.

-
TreKing http://sites.google.com/site/rezmobileapps/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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Bluetooth Low Energy Encrypted Characteristic Read Write

2013-10-09 Thread Ashwini
If I set write type WRITE_TYPE_SIGNED, I get status code as 135 and write 
fails. However when I used write type as WRITE_TYPE_NO_RESPONSE I getsuccess 
status code.
My device advertises WRITE_NO_RESPONSE as property of characteristic which 
I am trying to write.

What else I can try for this?

On Wednesday, September 25, 2013 1:53:58 PM UTC+5:30, gjs wrote:

 Hi,

 So far I've only used BLE successfully with devices that don't need to use 
 encryption, however the docs seem to infer that BluetoothGattCharacteristic 
 requires setWriteType (int writeType) where writeType is WRITE_TYPE_SIGNED 
 - Write characteristic including authentication signature -  prior to 
 performing encrypted write operations ?

 See 
 http://developer.android.com/reference/android/bluetooth/BluetoothGattCharacteristic.html#setWriteType(int)

 Also as far as I know there is no need to explicitly pair with BLE 
 devices, it just happens automagically. You just scan for available devices 
 and connect with the ones your interested in using.

 Hope that helps.

 Regards
  

 On Tuesday, September 24, 2013 9:28:40 PM UTC+10, Ashwini wrote:

 I am developeing an application which can talk to few smart(bluetooth 
 4.0) devices. I tested the code on Nexus 4 running Android OS version 4.3. 

 The application is able to connect to nordic chip programmed as heart 
 rate monitor. For this device, I am able to read services, characteristics 
 and even get updates for heart rate values.
 However, when I programmed the same chip for encrypted characteristics, I 
 am facing some issues.

- Connection drops sometimes after write characteristic descriptor is 
performed.
- The devices once paired with phone can not be un-paired. (This is 
known issue and confirmed the same from android issue tracker).
- Getting following statement in logs quite often but not able to 
understand the status code - 133.

 D/BluetoothGatt(1780): onClientConnectionState() - status=133 clientIf=4 
 device=CC:F3:A5:4D:CB:3F


- The phone also logs this statement for state change.

In stable state, received invalid newState: 10



 I do not seem to find a way to instruct the phone to get paired with the 
 chip. Also there is no way to specify that we want to perform *encrypted 
 read-write operations*.

 Any help is appreciated.




-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.