[android-developers] Re: can NFC read the RFID tag?

2012-12-14 Thread Michael Roland
Hi,

i have wonder on web to find the answer can android-NFC can read RFID tag 
> data or not  


That depends on what type of RFID tag you want to read. NFC devices can 
read a subset of RFID tags.

br,
Michael

-- 
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] Old versions still being downloaded from Google Play?

2012-12-14 Thread Bram Stolk


On Friday, December 14, 2012 11:34:46 PM UTC-8, Bram Stolk wrote:
>
> However, it is not the case.
> I have not changed the Manifest, since the original publication of the 
> first release.
>
>
See this screen grab:
Yesterday, at least four different versions got installed by users, even 
though most of these versions are weeks old.




  Bram

-- 
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] Old versions still being downloaded from Google Play?

2012-12-14 Thread Bram Stolk


On Friday, December 14, 2012 11:24:35 PM UTC-8, Jacky Alciné wrote:
>
> On Dec 14, 2012 3:36 PM, "TreKing" > 
> wrote:
> >
> > If you made changes to the app that would prevent it from being 
> available to older devices (like you changed minSDK to 2.1), users with 
> those devices stop getting updates, but the old version of the app is still 
> available, and this is what they see and download.
> >
> > I THINK.
>
> That's a valid assumption and the most logical.
>
However, it is not the case.
I have not changed the Manifest, since the original publication of the 
first release.

 Bram

 

-- 
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] Old versions still being downloaded from Google Play?

2012-12-14 Thread Jacky Alciné
On Dec 14, 2012 3:36 PM, "TreKing"  wrote:
>
> On Fri, Dec 14, 2012 at 2:14 PM, Bram Stolk  wrote:
>>
>> It is a free app.
>
>
> If you made changes to the app that would prevent it from being available
to older devices (like you changed minSDK to 2.1), users with those devices
stop getting updates, but the old version of the app is still available,
and this is what they see and download.
>
> I THINK.

That's a valid assumption and the most logical.
>
>
>
-
> TreKing - Chicago transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: In App Billing Error

2012-12-14 Thread Ajmer Singh
Here is the attached Screen Shot.

On Sat, Dec 15, 2012 at 11:24 AM, Ajmer Singh wrote:

> Hi All
>
> I am implementing In app billing(Version 3) in android app.
>
>1. I had put the Signed apk on the Play Store.
>2. Also had a managed Product Activated.
>3. Using a Signed apk for testing on phone.
>4. Managed Product is also showing up in my Query for the inventory.
>5. Also created and using a Google account for Testing In app Billing.
>
>
> Still getting the "Item Unavailable" and "User is not eligible for this
> purchase" , Please refer to attached Screen shot for more details ,Please
> anybody here who has got this type of error please help.
>
> --
> Thanks and Regards
> Ajmer Singh
>



-- 
Thanks and Regards
Ajmer Singh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en<>

[android-developers] In App Billing Error

2012-12-14 Thread Ajmer Singh
Hi All

I am implementing In app billing(Version 3) in android app.

   1. I had put the Signed apk on the Play Store.
   2. Also had a managed Product Activated.
   3. Using a Signed apk for testing on phone.
   4. Managed Product is also showing up in my Query for the inventory.
   5. Also created and using a Google account for Testing In app Billing.


Still getting the "Item Unavailable" and "User is not eligible for this
purchase" , Please refer to attached Screen shot for more details ,Please
anybody here who has got this type of error please help.

-- 
Thanks and Regards
Ajmer Singh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Get the selected word tagname in webview android

2012-12-14 Thread Ravi
i am working with webview in android here i am selecting a word and i want 
to get the selected with with its tag name and id and want to store in list 
and whenever i click on list it will search and move to that particular 
word ,

and if possible please tell me why the getSelection() of javascript not 
returning anything in android please send me some use ful code or link.

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Cipher.wrap() not working in Android 4.2?

2012-12-14 Thread Matthew Fleming

>
>
> You can also try deriving the wrap key separately with something like: 
>
>  KeySpec keySpec = new PBEKeySpec(password.toCharArray(), salt, 
> ITERATION_COUNT, KEY_LENGTH); 
> SecretKeyFactory keyFactory = SecretKeyFactory 
> .getInstance("PBKDF2WithHmacSHA1"); 
> SecretKey key = keyFactory.generateSecret(keySpec); 
>
> And initialize the Cipher in WRAP mode with this SecretKey. 
>

Good thought, but it also does not work. The problem is the same: 
java.lang.UnsupportedOperationException, when I try to wrap the key. This 
only happens in Android 4.2. Everything works fine in 4.1 and every other 
previous version I've tested.

Matthew 

-- 
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 create new PreferenceFragment from XML

2012-12-14 Thread Jim Duda
On 12/13/2012 11:03 PM, Jim Duda wrote:
> I want to launch a new preference screen from my main preference screen.
> 
> My main preference.xml is this:
> 
> 
> http://schemas.android.com/apk/res/android";>
>android:title="@string/pref_settings_title" >
>  android:key="settingsMute"
>   android:title="@string/pref_muteAudio"
>   android:summary="@string/pref_muteAudio_summ"
>   android:defaultValue="false" />
>  android:key="settingsObjectFilter"
>   android:title="@string/pref_enableObjectFilters"
>   android:summary="@string/pref_enableObjectFilters_summ"
>   android:defaultValue="false" />
>  android:key="settingsNoStateFilter"
>   android:title="@string/pref_filterObjectsNoState"
>   android:summary="@string/pref_filterObjectsNoState_summ"
>   android:defaultValue="false" />
>  android:key="settingsEnableService"
>   android:title="@string/pref_enableService"
>   android:summary="@string/pref_enableService_summ"
>   android:defaultValue="false" />
>  
> 
> android:fragment="com.example.android.misterhouse.activity.SettingsActivity$HostsFragment"
>  android:title="@string/pref_hosts_title"
>  android:summary="@string/pref_hosts_title" >
>  
>android:title="@string/pref_version_title"
>  android:summary="@string/about_current"
>  android:selectable="false" />
> 
> 
> When selecting the "pref_hosts_title", I want the 
> SettingsActivity$HostsFragment to display.
> This new fragment does display, however, it doesn't replace the original 
> fragment, it
> instead overlays the original fragment.  The two fragments display at the 
> same time.
> 
> What might I be doing wrong?

When I select the android:fragment, I've found out that what happens is an 
entire new
SettingActivity is started.  I was only expecting a new HostsFragment to be 
created.
I'm obviously missing something fundamental about the PresenceFragment life 
cycle.
I'm reading the docs, but I just don't see my misunderstanding.

Thanks for any help you can offer,

Jim

> 
> The activity which uses these XML are as follows:
> 
> public class SettingsActivity extends PreferenceActivity  {
> 
> 
>   public static class SettingsFragment extends PreferenceFragment {   
> 
>   public static final String TAG = "SettingsFragment";
> 
>   @Override
>   public void onCreate(Bundle savedInstanceState) {
>   Log.v(TAG,"onCreate");
>   super.onCreate(savedInstanceState);
> 
>   // Load the preferences from an XML resource
>   addPreferencesFromResource(R.xml.preferences);
>   getPreferenceManager( 
> ).setSharedPreferencesMode(MODE_MULTI_PROCESS);
>   }
>   
>   }
>   
>   public static class HostsFragment extends PreferenceFragment {  
> 
>   public static final String TAG = "HostsFragment";
> 
>   @Override
>   public void onCreate(Bundle savedInstanceState) {
>   Log.v(TAG,"onCreate");
>   super.onCreate(savedInstanceState);
> 
>   // Load the preferences from an XML resource
>   addPreferencesFromResource(R.xml.hosts);
>   }
>   
> 
>   }
>   
>  
>  @Override
>   protected void onCreate(Bundle savedInstanceState) {
>   Log.v(TAG,"onCreate");
>   super.onCreate(savedInstanceState);
> 
>   // Load the preferences from an XML resource
>   //addPreferencesFromResource(R.xml.preferences);
> 
>   // Display the fragment as the main content.
>   if (android.os.Build.VERSION.SDK_INT >= 11) {
>   Log.v(TAG,"Building SettingsFragment");
>   getFragmentManager().beginTransaction()
>   .replace(android.R.id.content, new SettingsFragment())
>   .commit();
>   }
>   }
> 
> }
> 
> Any advice appreciated.
> 
> Regards,
> 
> Jim
> 


-- 
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 Activity with Theme.Dialog modal?

2012-12-14 Thread Mark Murphy
On Fri, Dec 14, 2012 at 5:49 PM, Blake B.  wrote:
> Try this in your manifest.  When I set them both to 8, the behavior goes
> away:
>
>  android:minSdkVersion="8"
> android:targetSdkVersion="16" />

Bingo. An android:targetSdkVersion of 11 or higher gives the dismiss
behavior; 10 or lower does not.

Thanks!

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

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
sobre desenvolvimento de aplicações para Android:
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] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
Try this in your manifest.  When I set them both to 8, the behavior goes 
away:



Blake


On Friday, December 14, 2012 4:19:07 PM UTC-6, Mark Murphy (a Commons Guy) 
wrote:
>
> On Fri, Dec 14, 2012 at 4:59 PM, Blake B. > 
> wrote: 
> > I'd be curious to know if you still don't see it.  Maybe there is 
> something 
> > else I'm doing. 
>
> No, still no change -- taps outside the dialog-themed activity have no 
> effect. android:windowCloseOnTouchOutside is having no effect, true or 
> false, so for the moment I am chalking this up to a flawed scrap app 
> that I am trying this out with. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas 
> sobre desenvolvimento de aplicações para Android: 
> 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: vignette formula

2012-12-14 Thread bob
 

Here is the equation in a simpler form:






On Thursday, December 13, 2012 3:30:54 PM UTC-6, bob wrote:
>
> I noticed the vignette effect on Android looks really good.
>
> In the code, it boils down to this surprising formula:
>
> float lumen = shade / (1.0 + exp((dist * inv_max_dist - range) * slope)) + 
> (1.0 - shade);
>
> Anyone know where this formula comes from?  I was definitely surprised to 
> see a cameo from the irrational number e.
>
>

-- 
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] tessellation shaders

2012-12-14 Thread Romain Guy
Tesselation shaders do not exist in OpenGL ES 2.0.


On Fri, Dec 14, 2012 at 2:25 PM, bob  wrote:

> Anyone know if Android supports tessellation shaders?
>
> I can't find the constant for this.  Something like
> GLES20.GL_FRAGMENT_SHADER is what I'm looking for.
>
>  --
> 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




-- 
Romain Guy
Android framework engineer
romain...@android.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] tessellation shaders

2012-12-14 Thread bob
Anyone know if Android supports tessellation shaders?

I can't find the constant for this.  Something like 
GLES20.GL_FRAGMENT_SHADER is what I'm looking for.

-- 
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 Activity with Theme.Dialog modal?

2012-12-14 Thread Mark Murphy
On Fri, Dec 14, 2012 at 4:59 PM, Blake B.  wrote:
> I'd be curious to know if you still don't see it.  Maybe there is something
> else I'm doing.

No, still no change -- taps outside the dialog-themed activity have no
effect. android:windowCloseOnTouchOutside is having no effect, true or
false, so for the moment I am chalking this up to a flawed scrap app
that I am trying this out with.

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

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
sobre desenvolvimento de aplicações para Android:
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] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
Odd.  May be related to my use of a drawable.xml for the dialog window 
background:

*AndroidManifest.xml entry:*



*styles.xml entry:*

@drawable/rounded
false  


*rounded.xml:*

http://schemas.android.com/apk/res/android"; >











I'd be curious to know if you still don't see it.  Maybe there is something 
else I'm doing.


On Friday, December 14, 2012 3:45:32 PM UTC-6, Mark Murphy (a Commons Guy) 
wrote:
>
> On Fri, Dec 14, 2012 at 4:32 PM, Blake B. > 
> wrote: 
> > Well, this may not be a problem on older APIs after all.  I was testing 
> on 
> > 4.x devices (Moto Xoom and Samsung GSIII) and touch events outside of 
> the 
> > dialog (the Activity using Theme.Dialog) cause the dialog activity to be 
> > cancelled and the events do get passed back to the background activity. 
>
> Curiously, I can't reproduce that behavior on a 4.1 emulator, or a 
> Nexus S, or a Galaxy Nexus. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas 
> sobre desenvolvimento de aplicações para Android: 
> 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] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Mark Murphy
On Fri, Dec 14, 2012 at 4:32 PM, Blake B.  wrote:
> Well, this may not be a problem on older APIs after all.  I was testing on
> 4.x devices (Moto Xoom and Samsung GSIII) and touch events outside of the
> dialog (the Activity using Theme.Dialog) cause the dialog activity to be
> cancelled and the events do get passed back to the background activity.

Curiously, I can't reproduce that behavior on a 4.1 emulator, or a
Nexus S, or a Galaxy Nexus.

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

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
sobre desenvolvimento de aplicações para Android:
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] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
Mark, thanks for the quick reply.

Well, this may not be a problem on older APIs after all.  I was testing on 
4.x devices (Moto Xoom and Samsung GSIII) and touch events outside of the 
dialog (the Activity using Theme.Dialog) cause the dialog activity to be 
cancelled and the events do get passed back to the background activity. 
 Adding the "android:windowCloseOnTouchOutside" in the style definition 
prevents this in API 11 and higher devices.

However, it appears that in older devices (I've tested on emulators using 
2.2 and 2.3.3), the touch events do NOT get passed back by default, so 
there may not an issue for me here.  This default behavior may have changed 
in new versions of Android.

One exception I have seen is for the original Kindle Fire, running 2.3.4 (I 
have not tested on the newer Kindle devices).  It handles a touch outside 
the dialog as a "back" button press.  In the logcat I see this message: 
"Simulating 
back button on press outside dialog" followed by the call to 
onKeyDown(keyCode, KeyEvent), which is simple to override and ignore for 
keyCode 
== KeyEvent.KEYCODE_BACK.

So, I believe between these 3 different behaviors, I am able to prevent the 
issue in my original post.  Hopefully this is helpful to others along the 
way!

Regards,
Blake 


On Friday, December 14, 2012 3:05:39 PM UTC-6, Mark Murphy (a Commons Guy) 
wrote:
>
> On Fri, Dec 14, 2012 at 3:54 PM, Mark Murphy 
> > 
> wrote: 
> > On Fri, Dec 14, 2012 at 3:41 PM, Blake B. > 
> wrote: 
> >> I have an Activity that is using the Theme.Dialog theme to present a 
> dialog 
> >> to the user.  By default however, when the user touches outside of the 
> >> dialog window, the touch event is passed to the views of the Activity 
> in the 
> >> background. 
> > 
> > AFAIK, it should not do that. Do you have a sample app that 
> > demonstrates this behavior? 
>
> I just tossed together a quick scrap app, with a regular Activity 
> launching a Theme.Dialog activity. Nothing special, and on a 2.2 
> emulator, touch events outside the dialog are not delivered to the 
> visible regular activity. Leastways, the buttons I try tapping on in 
> the non-foreground activity do not respond. 
>
> So, if you can reproduce your findings in something we can look at, 
> that would be very interesting. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas 
> sobre desenvolvimento de aplicações para Android: 
> 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] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Mark Murphy
On Fri, Dec 14, 2012 at 3:54 PM, Mark Murphy  wrote:
> On Fri, Dec 14, 2012 at 3:41 PM, Blake B.  wrote:
>> I have an Activity that is using the Theme.Dialog theme to present a dialog
>> to the user.  By default however, when the user touches outside of the
>> dialog window, the touch event is passed to the views of the Activity in the
>> background.
>
> AFAIK, it should not do that. Do you have a sample app that
> demonstrates this behavior?

I just tossed together a quick scrap app, with a regular Activity
launching a Theme.Dialog activity. Nothing special, and on a 2.2
emulator, touch events outside the dialog are not delivered to the
visible regular activity. Leastways, the buttons I try tapping on in
the non-foreground activity do not respond.

So, if you can reproduce your findings in something we can look at,
that would be very interesting.

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

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
sobre desenvolvimento de aplicações para Android:
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] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Mark Murphy
On Fri, Dec 14, 2012 at 3:41 PM, Blake B.  wrote:
> I have an Activity that is using the Theme.Dialog theme to present a dialog
> to the user.  By default however, when the user touches outside of the
> dialog window, the touch event is passed to the views of the Activity in the
> background.

AFAIK, it should not do that. Do you have a sample app that
demonstrates this behavior?

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

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
sobre desenvolvimento de aplicações para Android:
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] Using a logo instead of icon in a SearchView and postioning of a ViewSwitcher

2012-12-14 Thread farble1670
sorry for the "me too" post, but me too. i'd really like to understand 
what's going on with the launcher vs. logo. 

On Monday, September 24, 2012 2:30:37 AM UTC-7, Martijn van Mechelen wrote:
>
> Does anyone know how to show a custom logo instead of the laucher app in 
> the SearchView ?
>
> Thanks,
>
> Martijn
>
> Op donderdag 20 september 2012 09:22:43 UTC+2 schreef Martijn van Mechelen 
> het volgende:
>>
>> Hi Kostya,
>>
>> Your suggested solution seems to solve the second problem (the incorrect 
>> positioning of the ViewSwitcher). Do you also know a solution for the first 
>> problem (the displayment of the laucher app icon instead of custom logo in 
>> the SearchView)?
>>
>> Thanks,
>>
>> Martijn
>>
>> Op dinsdag 18 september 2012 13:30:13 UTC+2 schreef Kostya Vasilyev het 
>> volgende:
>>>
>>> The answer at SO uses this:
>>>
>>> actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME);
>>>
>>> Since your action bar has different content, you might want to try this:
>>>
>>> actionBar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TiTLE);
>>>
>>> or just this:
>>>
>>> actionBar.setDisplayShowTitleEnabled(false);
>>>
>>> -- K
>>>
>>> 2012/9/18 Martijn van Mechelen 
>>>
 Hi all,

 Recentely we've published a Android app which is developed according to 
 the Android design guidelines:
 https://play.google.com/store/apps/details?id=nl.jip.benzineapp

 This app uses a logo instead of the launcher icon. In the app a search 
 function is present in the ActionBar. There is also ViewSwitcher present 
 in 
 the ActionBar.

 Now we have two problems with the ActionBar.


1. We aren't able to show the custom logo instead of the laucher 
app icon in the SearchView, see attachment. This should be possible, 
 this 
is accomplished in the YouTube app for example. Any suggestions how to 
accomplish this?

2. When the user navigates between the default ActionBar and the 
SearchView the positioning of the ViewSwitcher becomes incorrect, see 
attachment. Apparently this is a known problem: 

 http://stackoverflow.com/questions/12115372/android-margin-between-actionbar-icon-and-navigation-dropdown-menu-changes-when
When we apply the suggested solution the custom logo is replaced by 
the laucher icon. Any suggestions how to avoid this?


 Thanks,

 Martijn van Mechelen

 -- 
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to android-d...@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
I have an Activity that is using the Theme.Dialog theme to present a dialog 
to the user.  By default however, when the user touches outside of the 
dialog window, the touch event is passed to the views of the Activity in 
the background.  For API level 11 devices and higher, I can use the 
following attribute in the Theme's style definition:

   false

but of course this does not work on older (2.x) devices.  I have also tried 
these calls in onCreate():

   getWindow().setFlags(LayoutParams.FLAG_NOT_TOUCH_MODAL, 
LayoutParams.FLAG_NOT_TOUCH_MODAL);
   getWindow().setFlags(LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH, 
LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH);

Although these will notify my dialog Activity a onTouchEvent() call with 
a ACTION_OUTSIDE action, the event still gets passed back to the background 
activity and views.  How can I make my Theme.Dialog Activity modal without 
using a Dialog class explicitly?

Blake

-- 
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] Old versions still being downloaded from Google Play?

2012-12-14 Thread TreKing
On Fri, Dec 14, 2012 at 2:14 PM, Bram Stolk  wrote:

> It is a free app.


If you made changes to the app that would prevent it from being available
to older devices (like you changed minSDK to 2.1), users with those devices
stop getting updates, but the old version of the app is still available,
and this is what they see and download.

*I THINK*.

-
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] Old versions still being downloaded from Google Play?

2012-12-14 Thread Bram Stolk
It is a free app.

-- 
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] Mobile network idle sockets disconnected

2012-12-14 Thread Robert Greenwalt
oops..  I truncated a sentence..

updateDataStallInfo logs show what's going on when a stall is detected.  In
your log you can see that 21 packets have been sent since you last received
a packet.


On Fri, Dec 14, 2012 at 11:49 AM, Robert Greenwalt wrote:

> The data stall detector is watching for outgoing packets with no
> corresponding return.  If it sees this for X (6 minute default) it tries a
> bunch of things and one of those steps is to tear down and rebuild the
> connection.  That's what you're seeing.  I believe UDP packets may get
> ignored, thus my tcp/udp question.  You can see some log lines in the radio
> log like "updateDataStallInfo: OUT send=..." that show what'
>
> What are you doing in your keepalive pings?  Sending a char with no
> response, or echoing a response back?  That could cause the problem because
> there'd be outgoing traffic but no incoming traffic.  If there were NO
> outgoing the data stall detector shouldn't fire.  If you change your
> keep-alive to send both ways you should be fine.
>
> This makes me wonder what your other test device is doing - the one that
> doesn't show this problem.  Are you using rooted devices?  They would allow
> you to use tcpdump and look at the network traffic..
>
>
>
>
> On Fri, Dec 14, 2012 at 11:28 AM, Robert Greenwalt 
> wrote:
>
>> Interesting.
>>
>> Maybe it is an android bug!
>>
>> What kind of traffic are you sending?  tcp?  udp?
>>
>>
>> On Fri, Dec 14, 2012 at 11:23 AM, Goncalo Oliveira wrote:
>>
>>> Got the radio logs...
>>>
>>> http://pastebin.com/754wJ2jd
>>>
>>> This seems to be it
>>> GSM : [GsmDCT] onReceive:
>>> action=com.android.internal.telephony.gprs-data-stall
>>>
>>>
>>> On 14 December 2012 18:25, Robert Greenwalt wrote:
>>>
 3319 is fine.  It's just the tethering code noting an interface is
 going away.

 Can you get radio logs?  This is the system log - there are several log
 buffers.  A bugreport (adb bugreport > mybug.txt) would get them all.  Then
 you can match the connectivityservice dropout with what happened in the
 radio.

 I don't think you should open a bug: this is not an android issue, but
 rather it's a samsung issue.

 I have opened an internal issue to expand CTS to check for this - any
 device wanting to claim to be an android device would not be allowed to do
 such a thing in the future.


 On Fri, Dec 14, 2012 at 10:08 AM, Goncalo Oliveira 
 wrote:

> Robert,
>
> Thanks again for the feedback. I traced the logs from samsung with a
> simple app to reproduce this behavior. Same thing, 6/7 minutes and it 
> drops.
> I posted the logs here: http://pastebin.com/FcPPbq3V
> On line 3323 you can see ConnectivityService disconnecting. What I
> can't understand is what's causing it. Line 3319 is suspicious as I don't
> have tethering on, but other than that I can't really determine what 
> causes
> this. Should I open a bug for this?
>
> Cheers
>
>
> On 14 December 2012 16:50, Robert Greenwalt wrote:
>
>> Is it possible something else on the device is occasionally sending
>> data and reseting your window?
>>
>> I would look in the log for the timestamp of the ConnectivityChanged
>> broadcast and then check the radio log and see what's going on.
>>
>> I suspect there is an unsolicited data call list notification coming
>> from the radio showing that the data call has gone away.  Perhaps just
>> before that there may be something explaining why.
>>
>> You may have to contact samsung if you're sure that other devices
>> have longer connection times on the same carrier.
>>
>>
>> On Fri, Dec 14, 2012 at 8:30 AM, Goncalo Oliveira > > wrote:
>>
>>> Hi Robert,
>>>
>>> Thanks for the reply. If I send a packet every 5/6 minutes the
>>> connectivity is maintained yes. Only if connection is idle for longer 
>>> than
>>> that. The weird thing is that it's not an exact timer, even though the
>>> average is very close. Sometimes it lasts 7 minutes, sometimes 8 or 9. I
>>> even saw this happening with a 4 minute interval, though very rarely. On
>>> the other device, I can most of the times maintain higher idle times.
>>> I'll try to look at the logs more carefully to see if there's
>>> something else. Is there anything in particular that I should look for?
>>>
>>> Cheers
>>>
>>>
>>> On 14 December 2012 16:16, Robert Greenwalt 
>>> wrote:
>>>
 Android is not supposed to do this, though there is no guarantee of
 connectivity.  It sounds like something samsung is doing, either
 accidentally or on purpose.

 If you send a packet every 6 minutes does that keep the device from
 pulsing connectivity?

 Can you take a bugreport - the radio log may have some indication
 of why it's ha

Re: [android-developers] Mobile network idle sockets disconnected

2012-12-14 Thread Robert Greenwalt
The data stall detector is watching for outgoing packets with no
corresponding return.  If it sees this for X (6 minute default) it tries a
bunch of things and one of those steps is to tear down and rebuild the
connection.  That's what you're seeing.  I believe UDP packets may get
ignored, thus my tcp/udp question.  You can see some log lines in the radio
log like "updateDataStallInfo: OUT send=..." that show what'

What are you doing in your keepalive pings?  Sending a char with no
response, or echoing a response back?  That could cause the problem because
there'd be outgoing traffic but no incoming traffic.  If there were NO
outgoing the data stall detector shouldn't fire.  If you change your
keep-alive to send both ways you should be fine.

This makes me wonder what your other test device is doing - the one that
doesn't show this problem.  Are you using rooted devices?  They would allow
you to use tcpdump and look at the network traffic..




On Fri, Dec 14, 2012 at 11:28 AM, Robert Greenwalt wrote:

> Interesting.
>
> Maybe it is an android bug!
>
> What kind of traffic are you sending?  tcp?  udp?
>
>
> On Fri, Dec 14, 2012 at 11:23 AM, Goncalo Oliveira wrote:
>
>> Got the radio logs...
>>
>> http://pastebin.com/754wJ2jd
>>
>> This seems to be it
>> GSM : [GsmDCT] onReceive:
>> action=com.android.internal.telephony.gprs-data-stall
>>
>>
>> On 14 December 2012 18:25, Robert Greenwalt wrote:
>>
>>> 3319 is fine.  It's just the tethering code noting an interface is going
>>> away.
>>>
>>> Can you get radio logs?  This is the system log - there are several log
>>> buffers.  A bugreport (adb bugreport > mybug.txt) would get them all.  Then
>>> you can match the connectivityservice dropout with what happened in the
>>> radio.
>>>
>>> I don't think you should open a bug: this is not an android issue, but
>>> rather it's a samsung issue.
>>>
>>> I have opened an internal issue to expand CTS to check for this - any
>>> device wanting to claim to be an android device would not be allowed to do
>>> such a thing in the future.
>>>
>>>
>>> On Fri, Dec 14, 2012 at 10:08 AM, Goncalo Oliveira 
>>> wrote:
>>>
 Robert,

 Thanks again for the feedback. I traced the logs from samsung with a
 simple app to reproduce this behavior. Same thing, 6/7 minutes and it 
 drops.
 I posted the logs here: http://pastebin.com/FcPPbq3V
 On line 3323 you can see ConnectivityService disconnecting. What I
 can't understand is what's causing it. Line 3319 is suspicious as I don't
 have tethering on, but other than that I can't really determine what causes
 this. Should I open a bug for this?

 Cheers


 On 14 December 2012 16:50, Robert Greenwalt wrote:

> Is it possible something else on the device is occasionally sending
> data and reseting your window?
>
> I would look in the log for the timestamp of the ConnectivityChanged
> broadcast and then check the radio log and see what's going on.
>
> I suspect there is an unsolicited data call list notification coming
> from the radio showing that the data call has gone away.  Perhaps just
> before that there may be something explaining why.
>
> You may have to contact samsung if you're sure that other devices have
> longer connection times on the same carrier.
>
>
> On Fri, Dec 14, 2012 at 8:30 AM, Goncalo Oliveira 
> wrote:
>
>> Hi Robert,
>>
>> Thanks for the reply. If I send a packet every 5/6 minutes the
>> connectivity is maintained yes. Only if connection is idle for longer 
>> than
>> that. The weird thing is that it's not an exact timer, even though the
>> average is very close. Sometimes it lasts 7 minutes, sometimes 8 or 9. I
>> even saw this happening with a 4 minute interval, though very rarely. On
>> the other device, I can most of the times maintain higher idle times.
>> I'll try to look at the logs more carefully to see if there's
>> something else. Is there anything in particular that I should look for?
>>
>> Cheers
>>
>>
>> On 14 December 2012 16:16, Robert Greenwalt wrote:
>>
>>> Android is not supposed to do this, though there is no guarantee of
>>> connectivity.  It sounds like something samsung is doing, either
>>> accidentally or on purpose.
>>>
>>> If you send a packet every 6 minutes does that keep the device from
>>> pulsing connectivity?
>>>
>>> Can you take a bugreport - the radio log may have some indication of
>>> why it's happening.
>>>
>>>
>>> On Fri, Dec 14, 2012 at 2:24 AM, Goncalo Oliveira <
>>> gonc...@minkan.net> wrote:
>>>
 Hi all,

 Seems that Android is dropping idle sockets when under a mobile
 network. Usually, no socket is kept alive for more than 7 minutes of
 inactivity. I am using a SIM card with a particular APN, that allows 
 idle
 sock

Re: [android-developers] How to sync development projects?

2012-12-14 Thread Latimerius
On Fri, Dec 14, 2012 at 8:02 PM, TreKing  wrote:

> On Fri, Dec 14, 2012 at 12:52 PM, Jungle Jim wrote:
>
>> Does anyone know of a utility that will easily sync the updates to the
>> files like the xml and src betwee the two PCs?
>
>
> I don't know about "utility", but what I do is make my SVN repository
> shareable on my home network, then make it available offline on my laptop.
> Work anywhere you want, make any changes, then get back to your network and
> synchronize the folder, and update your PC to the latest changes. Only
> caveat is you have to make sure you only make changes in one place, or
> conflicts arise that are difficult to resolve (in my experience).
>

Yes, I do the same, except with Git.

-- 
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] LocationManager minDistance settings question

2012-12-14 Thread Kristopher Micinski
FYI minDistance cannot be guaranteed to work the way you want: it may
fire sooner (or perhaps later), it's more of a guide than a hard
parameter.  (In fact, before additional CTS testing, I believe it was
sometimes disregarded entirely, because of a bug in some devices, this
was for certain with minTime...)

I'm not sure what you mean by "most efficient?"  If you app is
listening for updates, it's going to be alive, which means it's going
to take memory.  It's a sort of misconception that requesting updates
less frequently dramatically reduces your energy footprint, this isn't
quite the case (given only my playing around with things, though).

Keep in mind that your app could just die after a while.

kris

On Fri, Dec 14, 2012 at 2:07 PM, g...@deanblakely.com
 wrote:
> I'm converting some of my Windows Phone apps to Android.  The apps all
> revolve around movement tracking.  In WP7 the location watcher has a
> "MovementThreshold" property that sets how much movement is necessary for
> the GPS to trigger a movement event.  Typically we want a lower threshold
> when walking and a higher one when in a jet airplane.  It can be throttled
> with code like this that changes it every time we get movement if the speed
> changes.
>  if (mph < 7) watcher.MovementThreshold = 5;
> else if (mph < 15) watcher.MovementThreshold = 20;
> else if (mph < 30) watcher.MovementThreshold = 100;
> else if (mph < 50) watcher.MovementThreshold = 400;
> else if (mph < 100) watcher.MovementThreshold = 800;
> else if (mph < 120) watcher.MovementThreshold = 1200;
> else if (mph < 200) watcher.MovementThreshold = 2400;
> else if (mph < 400) watcher.MovementThreshold = 4800;
> else watcher.MovementThreshold = 9000;
>
> Currently in my Android version of my app I make the following call one time
> when my location service starts...
> locMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locLstnr);
>
> That 3rd parameter is minDistance (now set to zero) which sounds very much
> like MovementThreshold in WP7.
>
> My first question is: Can I throttle minDistance in my Android app the same
> way I throttle MovementThreshold in my WP7 app?
> My second question is: What kind of call would be most efficient to do the
> throtting?  - would I just repeat the above requestLocationUpdates call
> changing the minDistance parameter?
> Thanks, Gary
>
> --
> 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] Mobile network idle sockets disconnected

2012-12-14 Thread Goncalo Oliveira
Maybe it's some other service that is stalling?
The SIM card uses a specific APN that only allows it to connect to our
servers. Maybe GTalk service or fota?

On 14 December 2012 19:32, Goncalo Oliveira  wrote:

> TCP
>
>
> On 14 December 2012 19:28, Robert Greenwalt  wrote:
>
>> Interesting.
>>
>> Maybe it is an android bug!
>>
>> What kind of traffic are you sending?  tcp?  udp?
>>
>>
>> On Fri, Dec 14, 2012 at 11:23 AM, Goncalo Oliveira wrote:
>>
>>> Got the radio logs...
>>>
>>> http://pastebin.com/754wJ2jd
>>>
>>> This seems to be it
>>> GSM : [GsmDCT] onReceive:
>>> action=com.android.internal.telephony.gprs-data-stall
>>>
>>>
>>> On 14 December 2012 18:25, Robert Greenwalt wrote:
>>>
 3319 is fine.  It's just the tethering code noting an interface is
 going away.

 Can you get radio logs?  This is the system log - there are several log
 buffers.  A bugreport (adb bugreport > mybug.txt) would get them all.  Then
 you can match the connectivityservice dropout with what happened in the
 radio.

 I don't think you should open a bug: this is not an android issue, but
 rather it's a samsung issue.

 I have opened an internal issue to expand CTS to check for this - any
 device wanting to claim to be an android device would not be allowed to do
 such a thing in the future.


 On Fri, Dec 14, 2012 at 10:08 AM, Goncalo Oliveira 
 wrote:

> Robert,
>
> Thanks again for the feedback. I traced the logs from samsung with a
> simple app to reproduce this behavior. Same thing, 6/7 minutes and it 
> drops.
> I posted the logs here: http://pastebin.com/FcPPbq3V
> On line 3323 you can see ConnectivityService disconnecting. What I
> can't understand is what's causing it. Line 3319 is suspicious as I don't
> have tethering on, but other than that I can't really determine what 
> causes
> this. Should I open a bug for this?
>
> Cheers
>
>
> On 14 December 2012 16:50, Robert Greenwalt wrote:
>
>> Is it possible something else on the device is occasionally sending
>> data and reseting your window?
>>
>> I would look in the log for the timestamp of the ConnectivityChanged
>> broadcast and then check the radio log and see what's going on.
>>
>> I suspect there is an unsolicited data call list notification coming
>> from the radio showing that the data call has gone away.  Perhaps just
>> before that there may be something explaining why.
>>
>> You may have to contact samsung if you're sure that other devices
>> have longer connection times on the same carrier.
>>
>>
>> On Fri, Dec 14, 2012 at 8:30 AM, Goncalo Oliveira > > wrote:
>>
>>> Hi Robert,
>>>
>>> Thanks for the reply. If I send a packet every 5/6 minutes the
>>> connectivity is maintained yes. Only if connection is idle for longer 
>>> than
>>> that. The weird thing is that it's not an exact timer, even though the
>>> average is very close. Sometimes it lasts 7 minutes, sometimes 8 or 9. I
>>> even saw this happening with a 4 minute interval, though very rarely. On
>>> the other device, I can most of the times maintain higher idle times.
>>> I'll try to look at the logs more carefully to see if there's
>>> something else. Is there anything in particular that I should look for?
>>>
>>> Cheers
>>>
>>>
>>> On 14 December 2012 16:16, Robert Greenwalt 
>>> wrote:
>>>
 Android is not supposed to do this, though there is no guarantee of
 connectivity.  It sounds like something samsung is doing, either
 accidentally or on purpose.

 If you send a packet every 6 minutes does that keep the device from
 pulsing connectivity?

 Can you take a bugreport - the radio log may have some indication
 of why it's happening.


 On Fri, Dec 14, 2012 at 2:24 AM, Goncalo Oliveira <
 gonc...@minkan.net> wrote:

> Hi all,
>
> Seems that Android is dropping idle sockets when under a mobile
> network. Usually, no socket is kept alive for more than 7 minutes of
> inactivity. I am using a SIM card with a particular APN, that allows 
> idle
> sockets for at least 30 minutes - this was tested using another kind 
> of
> device, also communicating with GSM, and there are no drops, so 
> problem
> isn't the SIM card.
>
> After a few searches in the web, I tried a few approaches to work
> around this, but until now, no success. I tried using a partial wake 
> lock
> after connecting, releasing only when disconnected - didn't work. Also
> tried using only a 2G network, as some said that changing from 
> network type
> could impact on this - same outcome.

Re: [android-developers] Mobile network idle sockets disconnected

2012-12-14 Thread Goncalo Oliveira
TCP

On 14 December 2012 19:28, Robert Greenwalt  wrote:

> Interesting.
>
> Maybe it is an android bug!
>
> What kind of traffic are you sending?  tcp?  udp?
>
>
> On Fri, Dec 14, 2012 at 11:23 AM, Goncalo Oliveira wrote:
>
>> Got the radio logs...
>>
>> http://pastebin.com/754wJ2jd
>>
>> This seems to be it
>> GSM : [GsmDCT] onReceive:
>> action=com.android.internal.telephony.gprs-data-stall
>>
>>
>> On 14 December 2012 18:25, Robert Greenwalt wrote:
>>
>>> 3319 is fine.  It's just the tethering code noting an interface is going
>>> away.
>>>
>>> Can you get radio logs?  This is the system log - there are several log
>>> buffers.  A bugreport (adb bugreport > mybug.txt) would get them all.  Then
>>> you can match the connectivityservice dropout with what happened in the
>>> radio.
>>>
>>> I don't think you should open a bug: this is not an android issue, but
>>> rather it's a samsung issue.
>>>
>>> I have opened an internal issue to expand CTS to check for this - any
>>> device wanting to claim to be an android device would not be allowed to do
>>> such a thing in the future.
>>>
>>>
>>> On Fri, Dec 14, 2012 at 10:08 AM, Goncalo Oliveira 
>>> wrote:
>>>
 Robert,

 Thanks again for the feedback. I traced the logs from samsung with a
 simple app to reproduce this behavior. Same thing, 6/7 minutes and it 
 drops.
 I posted the logs here: http://pastebin.com/FcPPbq3V
 On line 3323 you can see ConnectivityService disconnecting. What I
 can't understand is what's causing it. Line 3319 is suspicious as I don't
 have tethering on, but other than that I can't really determine what causes
 this. Should I open a bug for this?

 Cheers


 On 14 December 2012 16:50, Robert Greenwalt wrote:

> Is it possible something else on the device is occasionally sending
> data and reseting your window?
>
> I would look in the log for the timestamp of the ConnectivityChanged
> broadcast and then check the radio log and see what's going on.
>
> I suspect there is an unsolicited data call list notification coming
> from the radio showing that the data call has gone away.  Perhaps just
> before that there may be something explaining why.
>
> You may have to contact samsung if you're sure that other devices have
> longer connection times on the same carrier.
>
>
> On Fri, Dec 14, 2012 at 8:30 AM, Goncalo Oliveira 
> wrote:
>
>> Hi Robert,
>>
>> Thanks for the reply. If I send a packet every 5/6 minutes the
>> connectivity is maintained yes. Only if connection is idle for longer 
>> than
>> that. The weird thing is that it's not an exact timer, even though the
>> average is very close. Sometimes it lasts 7 minutes, sometimes 8 or 9. I
>> even saw this happening with a 4 minute interval, though very rarely. On
>> the other device, I can most of the times maintain higher idle times.
>> I'll try to look at the logs more carefully to see if there's
>> something else. Is there anything in particular that I should look for?
>>
>> Cheers
>>
>>
>> On 14 December 2012 16:16, Robert Greenwalt wrote:
>>
>>> Android is not supposed to do this, though there is no guarantee of
>>> connectivity.  It sounds like something samsung is doing, either
>>> accidentally or on purpose.
>>>
>>> If you send a packet every 6 minutes does that keep the device from
>>> pulsing connectivity?
>>>
>>> Can you take a bugreport - the radio log may have some indication of
>>> why it's happening.
>>>
>>>
>>> On Fri, Dec 14, 2012 at 2:24 AM, Goncalo Oliveira <
>>> gonc...@minkan.net> wrote:
>>>
 Hi all,

 Seems that Android is dropping idle sockets when under a mobile
 network. Usually, no socket is kept alive for more than 7 minutes of
 inactivity. I am using a SIM card with a particular APN, that allows 
 idle
 sockets for at least 30 minutes - this was tested using another kind of
 device, also communicating with GSM, and there are no drops, so problem
 isn't the SIM card.

 After a few searches in the web, I tried a few approaches to work
 around this, but until now, no success. I tried using a partial wake 
 lock
 after connecting, releasing only when disconnected - didn't work. Also
 tried using only a 2G network, as some said that changing from network 
 type
 could impact on this - same outcome.

 After digging a bit more and by analyzing logcat, I watched that a 
 CONNECTIVITY_CHANGE
 is sent after some idle time, disabling the data transfer availability
 (active network is mobile, no connectivity) and another one is sent
 enabling it again (active network is mobile, connectivity). This cuts 
 off
 all live so

Re: [android-developers] Regarding webservices

2012-12-14 Thread Larry Meadors
On Fri, Dec 14, 2012 at 12:17 PM, rambabu mareedu
 wrote:
> Can anyone tell me is webservices comes under android

If you can't write an email, android development is likely going to crush you.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Mobile network idle sockets disconnected

2012-12-14 Thread Robert Greenwalt
Interesting.

Maybe it is an android bug!

What kind of traffic are you sending?  tcp?  udp?


On Fri, Dec 14, 2012 at 11:23 AM, Goncalo Oliveira wrote:

> Got the radio logs...
>
> http://pastebin.com/754wJ2jd
>
> This seems to be it
> GSM : [GsmDCT] onReceive:
> action=com.android.internal.telephony.gprs-data-stall
>
>
> On 14 December 2012 18:25, Robert Greenwalt  wrote:
>
>> 3319 is fine.  It's just the tethering code noting an interface is going
>> away.
>>
>> Can you get radio logs?  This is the system log - there are several log
>> buffers.  A bugreport (adb bugreport > mybug.txt) would get them all.  Then
>> you can match the connectivityservice dropout with what happened in the
>> radio.
>>
>> I don't think you should open a bug: this is not an android issue, but
>> rather it's a samsung issue.
>>
>> I have opened an internal issue to expand CTS to check for this - any
>> device wanting to claim to be an android device would not be allowed to do
>> such a thing in the future.
>>
>>
>> On Fri, Dec 14, 2012 at 10:08 AM, Goncalo Oliveira wrote:
>>
>>> Robert,
>>>
>>> Thanks again for the feedback. I traced the logs from samsung with a
>>> simple app to reproduce this behavior. Same thing, 6/7 minutes and it drops.
>>> I posted the logs here: http://pastebin.com/FcPPbq3V
>>> On line 3323 you can see ConnectivityService disconnecting. What I can't
>>> understand is what's causing it. Line 3319 is suspicious as I don't have
>>> tethering on, but other than that I can't really determine what causes
>>> this. Should I open a bug for this?
>>>
>>> Cheers
>>>
>>>
>>> On 14 December 2012 16:50, Robert Greenwalt wrote:
>>>
 Is it possible something else on the device is occasionally sending
 data and reseting your window?

 I would look in the log for the timestamp of the ConnectivityChanged
 broadcast and then check the radio log and see what's going on.

 I suspect there is an unsolicited data call list notification coming
 from the radio showing that the data call has gone away.  Perhaps just
 before that there may be something explaining why.

 You may have to contact samsung if you're sure that other devices have
 longer connection times on the same carrier.


 On Fri, Dec 14, 2012 at 8:30 AM, Goncalo Oliveira 
 wrote:

> Hi Robert,
>
> Thanks for the reply. If I send a packet every 5/6 minutes the
> connectivity is maintained yes. Only if connection is idle for longer than
> that. The weird thing is that it's not an exact timer, even though the
> average is very close. Sometimes it lasts 7 minutes, sometimes 8 or 9. I
> even saw this happening with a 4 minute interval, though very rarely. On
> the other device, I can most of the times maintain higher idle times.
> I'll try to look at the logs more carefully to see if there's
> something else. Is there anything in particular that I should look for?
>
> Cheers
>
>
> On 14 December 2012 16:16, Robert Greenwalt wrote:
>
>> Android is not supposed to do this, though there is no guarantee of
>> connectivity.  It sounds like something samsung is doing, either
>> accidentally or on purpose.
>>
>> If you send a packet every 6 minutes does that keep the device from
>> pulsing connectivity?
>>
>> Can you take a bugreport - the radio log may have some indication of
>> why it's happening.
>>
>>
>> On Fri, Dec 14, 2012 at 2:24 AM, Goncalo Oliveira > > wrote:
>>
>>> Hi all,
>>>
>>> Seems that Android is dropping idle sockets when under a mobile
>>> network. Usually, no socket is kept alive for more than 7 minutes of
>>> inactivity. I am using a SIM card with a particular APN, that allows 
>>> idle
>>> sockets for at least 30 minutes - this was tested using another kind of
>>> device, also communicating with GSM, and there are no drops, so problem
>>> isn't the SIM card.
>>>
>>> After a few searches in the web, I tried a few approaches to work
>>> around this, but until now, no success. I tried using a partial wake 
>>> lock
>>> after connecting, releasing only when disconnected - didn't work. Also
>>> tried using only a 2G network, as some said that changing from network 
>>> type
>>> could impact on this - same outcome.
>>>
>>> After digging a bit more and by analyzing logcat, I watched that a 
>>> CONNECTIVITY_CHANGE
>>> is sent after some idle time, disabling the data transfer availability
>>> (active network is mobile, no connectivity) and another one is sent
>>> enabling it again (active network is mobile, connectivity). This cuts 
>>> off
>>> all live socket connections.
>>>
>>> Investigating a little bit more, I also observed that this behavior
>>> is not consistent through all Android versions, or maybe (even worse)
>>> through different hardware. Connectivi

Re: [android-developers] Regarding webservices

2012-12-14 Thread Kristopher Micinski
https://www.google.com/search?q=webservices+and+android

?


On Fri, Dec 14, 2012 at 2:17 PM, rambabu mareedu
 wrote:
> Can anyone tell me is webservices comes under 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


Re: [android-developers] Why does my Hello World app require three permissions?

2012-12-14 Thread Andrew Pennebaker
Min sdk of 7 is sufficient. Thanks all.

https://github.com/mcandre/hello-android/blob/master/AndroidManifest.xml


On Fri, Dec 14, 2012 at 2:08 PM, Kristopher Micinski  wrote:

> These were added early on..., I believe around 1.5?  You can check,
> but I'd just set my minSdk to be as low as possible, probably 2.2.
> (So, 8.)
>
> In general, you will take the lowest feature set you need and set your
> API level at that.  If you're using ActionBar you might run into
> problems, but there are generally compatability libraries for earlier
> API levels (e.g., ActionBarSherlock...)
>
> kris
>
> On Fri, Dec 14, 2012 at 2:02 PM, Andrew Pennebaker
>  wrote:
> > What's the lowest SDK veraion that gets rid of these permissions? I'd
> like
> > to support Gingerbread without any extra permissions if possible.
> >
> > On Dec 14, 2012 1:56 PM, "Kristopher Micinski" 
> > wrote:
> >>
> >> Just bump up your min SDK level up..
> >>
> >>  >>   android:targetSdkVersion="integer"
> >>   android:maxSdkVersion="integer" />
> >>
> >> On Fri, Dec 14, 2012 at 1:50 PM, Andrew Pennebaker
> >>  wrote:
> >> > Thank you, that's a good explanation. How exactly should I edit
> >> > AndroidManifest to remove these permissions?
> >> >
> >> > On Dec 14, 2012 1:28 PM, "Mark Murphy" 
> wrote:
> >> >>
> >> >> On Fri, Dec 14, 2012 at 1:22 PM, Andrew Pennebaker
> >> >>  wrote:
> >> >> > The SDK docs say that by default, Android apps do not request any
> >> >> > permissions. However, when I generated a Hello World app, it
> requires
> >> >> > three
> >> >> > permissions:
> >> >> >
> >> >> > android.permission.READ_EXTERNAL_STORAGE
> >> >> > android.permission.READ_PHONE_STATE
> >> >> > android.permission.WRITE_EXTERNAL_STORAGE
> >> >> >
> >> >> > I have not asked for any of these. They do not appear in my
> >> >> > AndroidManifest.xml, nor do they show up when I grep my project.
> How
> >> >> > are
> >> >> > these silly permissions getting into my APK?
> >> >>
> >> >> Because you failed to put in a  element, or you have your
> >> >> android:minSdkVersion set very low, most likely. This is one of the
> >> >> reasons why the Eclipse new-project wizard sets up a reasonable
> >> >> default  element.
> >> >>
> >> >> What you are seeing are permissions that were added after Android 1.0
> >> >> shipped and are "grandfathered in" for apps written to support
> Android
> >> >> 1.0.
> >> >>
> >> >> --
> >> >> Mark Murphy (a Commons Guy)
> >> >> http://commonsware.com | http://github.com/commonsguy
> >> >> http://commonsware.com/blog | http://twitter.com/commonsguy
> >> >>
> >> >> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
> >> >> sobre desenvolvimento de aplicações para Android:
> >> >> 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
> >> >
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to
> android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> > http://groups.google.com/group/android-developers?hl=en
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to
> android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >> http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Cheers,

Andrew Pennebaker
www.yellosoft.us

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to th

Re: [android-developers] Mobile network idle sockets disconnected

2012-12-14 Thread Goncalo Oliveira
Got the radio logs...

http://pastebin.com/754wJ2jd

This seems to be it
GSM : [GsmDCT] onReceive:
action=com.android.internal.telephony.gprs-data-stall


On 14 December 2012 18:25, Robert Greenwalt  wrote:

> 3319 is fine.  It's just the tethering code noting an interface is going
> away.
>
> Can you get radio logs?  This is the system log - there are several log
> buffers.  A bugreport (adb bugreport > mybug.txt) would get them all.  Then
> you can match the connectivityservice dropout with what happened in the
> radio.
>
> I don't think you should open a bug: this is not an android issue, but
> rather it's a samsung issue.
>
> I have opened an internal issue to expand CTS to check for this - any
> device wanting to claim to be an android device would not be allowed to do
> such a thing in the future.
>
>
> On Fri, Dec 14, 2012 at 10:08 AM, Goncalo Oliveira wrote:
>
>> Robert,
>>
>> Thanks again for the feedback. I traced the logs from samsung with a
>> simple app to reproduce this behavior. Same thing, 6/7 minutes and it drops.
>> I posted the logs here: http://pastebin.com/FcPPbq3V
>> On line 3323 you can see ConnectivityService disconnecting. What I can't
>> understand is what's causing it. Line 3319 is suspicious as I don't have
>> tethering on, but other than that I can't really determine what causes
>> this. Should I open a bug for this?
>>
>> Cheers
>>
>>
>> On 14 December 2012 16:50, Robert Greenwalt wrote:
>>
>>> Is it possible something else on the device is occasionally sending data
>>> and reseting your window?
>>>
>>> I would look in the log for the timestamp of the ConnectivityChanged
>>> broadcast and then check the radio log and see what's going on.
>>>
>>> I suspect there is an unsolicited data call list notification coming
>>> from the radio showing that the data call has gone away.  Perhaps just
>>> before that there may be something explaining why.
>>>
>>> You may have to contact samsung if you're sure that other devices have
>>> longer connection times on the same carrier.
>>>
>>>
>>> On Fri, Dec 14, 2012 at 8:30 AM, Goncalo Oliveira wrote:
>>>
 Hi Robert,

 Thanks for the reply. If I send a packet every 5/6 minutes the
 connectivity is maintained yes. Only if connection is idle for longer than
 that. The weird thing is that it's not an exact timer, even though the
 average is very close. Sometimes it lasts 7 minutes, sometimes 8 or 9. I
 even saw this happening with a 4 minute interval, though very rarely. On
 the other device, I can most of the times maintain higher idle times.
 I'll try to look at the logs more carefully to see if there's something
 else. Is there anything in particular that I should look for?

 Cheers


 On 14 December 2012 16:16, Robert Greenwalt wrote:

> Android is not supposed to do this, though there is no guarantee of
> connectivity.  It sounds like something samsung is doing, either
> accidentally or on purpose.
>
> If you send a packet every 6 minutes does that keep the device from
> pulsing connectivity?
>
> Can you take a bugreport - the radio log may have some indication of
> why it's happening.
>
>
> On Fri, Dec 14, 2012 at 2:24 AM, Goncalo Oliveira 
> wrote:
>
>> Hi all,
>>
>> Seems that Android is dropping idle sockets when under a mobile
>> network. Usually, no socket is kept alive for more than 7 minutes of
>> inactivity. I am using a SIM card with a particular APN, that allows idle
>> sockets for at least 30 minutes - this was tested using another kind of
>> device, also communicating with GSM, and there are no drops, so problem
>> isn't the SIM card.
>>
>> After a few searches in the web, I tried a few approaches to work
>> around this, but until now, no success. I tried using a partial wake lock
>> after connecting, releasing only when disconnected - didn't work. Also
>> tried using only a 2G network, as some said that changing from network 
>> type
>> could impact on this - same outcome.
>>
>> After digging a bit more and by analyzing logcat, I watched that a 
>> CONNECTIVITY_CHANGE
>> is sent after some idle time, disabling the data transfer availability
>> (active network is mobile, no connectivity) and another one is sent
>> enabling it again (active network is mobile, connectivity). This cuts off
>> all live socket connections.
>>
>> Investigating a little bit more, I also observed that this behavior
>> is not consistent through all Android versions, or maybe (even worse)
>> through different hardware. Connectivity break is occurring in a
>> Galaxy Tab 7 with Android 4.0.4. The same isn't occurring in an Unitech 
>> TB
>> 100 with Android 3.2.
>>
>> Does anyone know where I can get more information and/or I can work
>> around this? I would really like to avoid sending heartbeats every 6/7
>>>

Re: [android-developers] Why does my Hello World app require three permissions?

2012-12-14 Thread Kristopher Micinski
There's also an android-beginners group that accepts these questions
more openly..

kris

On Fri, Dec 14, 2012 at 2:15 PM, rambabu mareedu
 wrote:
> don't waste android-developers time ...do R&D in Google not in google group
>
>
> On Sat, Dec 15, 2012 at 12:38 AM, Kristopher Micinski
>  wrote:
>>
>> These were added early on..., I believe around 1.5?  You can check,
>> but I'd just set my minSdk to be as low as possible, probably 2.2.
>> (So, 8.)
>>
>> In general, you will take the lowest feature set you need and set your
>> API level at that.  If you're using ActionBar you might run into
>> problems, but there are generally compatability libraries for earlier
>> API levels (e.g., ActionBarSherlock...)
>>
>> kris
>>
>> On Fri, Dec 14, 2012 at 2:02 PM, Andrew Pennebaker
>>  wrote:
>> > What's the lowest SDK veraion that gets rid of these permissions? I'd
>> > like
>> > to support Gingerbread without any extra permissions if possible.
>> >
>> > On Dec 14, 2012 1:56 PM, "Kristopher Micinski" 
>> > wrote:
>> >>
>> >> Just bump up your min SDK level up..
>> >>
>> >> > >>   android:targetSdkVersion="integer"
>> >>   android:maxSdkVersion="integer" />
>> >>
>> >> On Fri, Dec 14, 2012 at 1:50 PM, Andrew Pennebaker
>> >>  wrote:
>> >> > Thank you, that's a good explanation. How exactly should I edit
>> >> > AndroidManifest to remove these permissions?
>> >> >
>> >> > On Dec 14, 2012 1:28 PM, "Mark Murphy" 
>> >> > wrote:
>> >> >>
>> >> >> On Fri, Dec 14, 2012 at 1:22 PM, Andrew Pennebaker
>> >> >>  wrote:
>> >> >> > The SDK docs say that by default, Android apps do not request any
>> >> >> > permissions. However, when I generated a Hello World app, it
>> >> >> > requires
>> >> >> > three
>> >> >> > permissions:
>> >> >> >
>> >> >> > android.permission.READ_EXTERNAL_STORAGE
>> >> >> > android.permission.READ_PHONE_STATE
>> >> >> > android.permission.WRITE_EXTERNAL_STORAGE
>> >> >> >
>> >> >> > I have not asked for any of these. They do not appear in my
>> >> >> > AndroidManifest.xml, nor do they show up when I grep my project.
>> >> >> > How
>> >> >> > are
>> >> >> > these silly permissions getting into my APK?
>> >> >>
>> >> >> Because you failed to put in a  element, or you have your
>> >> >> android:minSdkVersion set very low, most likely. This is one of the
>> >> >> reasons why the Eclipse new-project wizard sets up a reasonable
>> >> >> default  element.
>> >> >>
>> >> >> What you are seeing are permissions that were added after Android
>> >> >> 1.0
>> >> >> shipped and are "grandfathered in" for apps written to support
>> >> >> Android
>> >> >> 1.0.
>> >> >>
>> >> >> --
>> >> >> Mark Murphy (a Commons Guy)
>> >> >> http://commonsware.com | http://github.com/commonsguy
>> >> >> http://commonsware.com/blog | http://twitter.com/commonsguy
>> >> >>
>> >> >> Aqui estão alguns sites onde você pode perguntar ou responder
>> >> >> dúvidas
>> >> >> sobre desenvolvimento de aplicações para Android:
>> >> >> 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
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups "Android Developers" group.
>> >> > To post to this group, send email to
>> >> > android-developers@googlegroups.com
>> >> > To unsubscribe from this group, send email to
>> >> > android-developers+unsubscr...@googlegroups.com
>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/android-developers?hl=en
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups "Android Developers" group.
>> >> To post to this group, send email to
>> >> android-developers@googlegroups.com
>> >> To unsubscribe from this group, send email to
>> >> android-developers+unsubscr...@googlegroups.com
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/android-developers?hl=en
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr.

[android-developers] Regarding webservices

2012-12-14 Thread rambabu mareedu
Can anyone tell me is webservices comes under 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

Re: [android-developers] Why does my Hello World app require three permissions?

2012-12-14 Thread rambabu mareedu
don't waste android-developers time ...do R&D in Google not in google group


On Sat, Dec 15, 2012 at 12:38 AM, Kristopher Micinski <
krismicin...@gmail.com> wrote:

> These were added early on..., I believe around 1.5?  You can check,
> but I'd just set my minSdk to be as low as possible, probably 2.2.
> (So, 8.)
>
> In general, you will take the lowest feature set you need and set your
> API level at that.  If you're using ActionBar you might run into
> problems, but there are generally compatability libraries for earlier
> API levels (e.g., ActionBarSherlock...)
>
> kris
>
> On Fri, Dec 14, 2012 at 2:02 PM, Andrew Pennebaker
>  wrote:
> > What's the lowest SDK veraion that gets rid of these permissions? I'd
> like
> > to support Gingerbread without any extra permissions if possible.
> >
> > On Dec 14, 2012 1:56 PM, "Kristopher Micinski" 
> > wrote:
> >>
> >> Just bump up your min SDK level up..
> >>
> >>  >>   android:targetSdkVersion="integer"
> >>   android:maxSdkVersion="integer" />
> >>
> >> On Fri, Dec 14, 2012 at 1:50 PM, Andrew Pennebaker
> >>  wrote:
> >> > Thank you, that's a good explanation. How exactly should I edit
> >> > AndroidManifest to remove these permissions?
> >> >
> >> > On Dec 14, 2012 1:28 PM, "Mark Murphy" 
> wrote:
> >> >>
> >> >> On Fri, Dec 14, 2012 at 1:22 PM, Andrew Pennebaker
> >> >>  wrote:
> >> >> > The SDK docs say that by default, Android apps do not request any
> >> >> > permissions. However, when I generated a Hello World app, it
> requires
> >> >> > three
> >> >> > permissions:
> >> >> >
> >> >> > android.permission.READ_EXTERNAL_STORAGE
> >> >> > android.permission.READ_PHONE_STATE
> >> >> > android.permission.WRITE_EXTERNAL_STORAGE
> >> >> >
> >> >> > I have not asked for any of these. They do not appear in my
> >> >> > AndroidManifest.xml, nor do they show up when I grep my project.
> How
> >> >> > are
> >> >> > these silly permissions getting into my APK?
> >> >>
> >> >> Because you failed to put in a  element, or you have your
> >> >> android:minSdkVersion set very low, most likely. This is one of the
> >> >> reasons why the Eclipse new-project wizard sets up a reasonable
> >> >> default  element.
> >> >>
> >> >> What you are seeing are permissions that were added after Android 1.0
> >> >> shipped and are "grandfathered in" for apps written to support
> Android
> >> >> 1.0.
> >> >>
> >> >> --
> >> >> Mark Murphy (a Commons Guy)
> >> >> http://commonsware.com | http://github.com/commonsguy
> >> >> http://commonsware.com/blog | http://twitter.com/commonsguy
> >> >>
> >> >> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
> >> >> sobre desenvolvimento de aplicações para Android:
> >> >> 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
> >> >
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to
> android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> > http://groups.google.com/group/android-developers?hl=en
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to
> android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >> http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards
Rambabu Mareedu
9581411199

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email 

Re: [android-developers] Why does my Hello World app require three permissions?

2012-12-14 Thread Kristopher Micinski
These were added early on..., I believe around 1.5?  You can check,
but I'd just set my minSdk to be as low as possible, probably 2.2.
(So, 8.)

In general, you will take the lowest feature set you need and set your
API level at that.  If you're using ActionBar you might run into
problems, but there are generally compatability libraries for earlier
API levels (e.g., ActionBarSherlock...)

kris

On Fri, Dec 14, 2012 at 2:02 PM, Andrew Pennebaker
 wrote:
> What's the lowest SDK veraion that gets rid of these permissions? I'd like
> to support Gingerbread without any extra permissions if possible.
>
> On Dec 14, 2012 1:56 PM, "Kristopher Micinski" 
> wrote:
>>
>> Just bump up your min SDK level up..
>>
>> >   android:targetSdkVersion="integer"
>>   android:maxSdkVersion="integer" />
>>
>> On Fri, Dec 14, 2012 at 1:50 PM, Andrew Pennebaker
>>  wrote:
>> > Thank you, that's a good explanation. How exactly should I edit
>> > AndroidManifest to remove these permissions?
>> >
>> > On Dec 14, 2012 1:28 PM, "Mark Murphy"  wrote:
>> >>
>> >> On Fri, Dec 14, 2012 at 1:22 PM, Andrew Pennebaker
>> >>  wrote:
>> >> > The SDK docs say that by default, Android apps do not request any
>> >> > permissions. However, when I generated a Hello World app, it requires
>> >> > three
>> >> > permissions:
>> >> >
>> >> > android.permission.READ_EXTERNAL_STORAGE
>> >> > android.permission.READ_PHONE_STATE
>> >> > android.permission.WRITE_EXTERNAL_STORAGE
>> >> >
>> >> > I have not asked for any of these. They do not appear in my
>> >> > AndroidManifest.xml, nor do they show up when I grep my project. How
>> >> > are
>> >> > these silly permissions getting into my APK?
>> >>
>> >> Because you failed to put in a  element, or you have your
>> >> android:minSdkVersion set very low, most likely. This is one of the
>> >> reasons why the Eclipse new-project wizard sets up a reasonable
>> >> default  element.
>> >>
>> >> What you are seeing are permissions that were added after Android 1.0
>> >> shipped and are "grandfathered in" for apps written to support Android
>> >> 1.0.
>> >>
>> >> --
>> >> Mark Murphy (a Commons Guy)
>> >> http://commonsware.com | http://github.com/commonsguy
>> >> http://commonsware.com/blog | http://twitter.com/commonsguy
>> >>
>> >> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
>> >> sobre desenvolvimento de aplicações para Android:
>> >> 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
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] LocationManager minDistance settings question

2012-12-14 Thread g...@deanblakely.com
I'm converting some of my Windows Phone apps to Android.  The apps all 
revolve around movement tracking.  In WP7 the location watcher has a 
"MovementThreshold" property that sets how much movement is necessary for 
the GPS to trigger a movement event.  Typically we want a lower threshold 
when walking and a higher one when in a jet airplane.  It can be throttled 
with code like this that changes it every time we get movement if the speed 
changes.
 if (mph < 7) watcher.MovementThreshold = 5;
else if (mph < 15) watcher.MovementThreshold = 20;
else if (mph < 30) watcher.MovementThreshold = 100;
else if (mph < 50) watcher.MovementThreshold = 400;
else if (mph < 100) watcher.MovementThreshold = 800;
else if (mph < 120) watcher.MovementThreshold = 1200;
else if (mph < 200) watcher.MovementThreshold = 2400;
else if (mph < 400) watcher.MovementThreshold = 4800;
else watcher.MovementThreshold = 9000;

Currently in my Android version of my app I make the following call one 
time when my location service starts...
locMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locLstnr);

That 3rd parameter is minDistance (now set to zero) which sounds very much 
like MovementThreshold in WP7.

My first question is: Can I throttle minDistance in my Android app the same 
way I throttle MovementThreshold in my WP7 app?
My second question is: What kind of call would be most efficient to do the 
throtting?  - would I just repeat the above requestLocationUpdates call 
changing the minDistance parameter?
Thanks, Gary

-- 
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 sync development projects?

2012-12-14 Thread TreKing
On Fri, Dec 14, 2012 at 12:52 PM, Jungle Jim  wrote:

> Does anyone know of a utility that will easily sync the updates to the
> files like the xml and src betwee the two PCs?


I don't know about "utility", but what I do is make my SVN repository
shareable on my home network, then make it available offline on my laptop.
Work anywhere you want, make any changes, then get back to your network and
synchronize the folder, and update your PC to the latest changes. Only
caveat is you have to make sure you only make changes in one place, or
conflicts arise that are difficult to resolve (in my experience).

-
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] Why does my Hello World app require three permissions?

2012-12-14 Thread Andrew Pennebaker
What's the lowest SDK veraion that gets rid of these permissions? I'd like
to support Gingerbread without any extra permissions if possible.
On Dec 14, 2012 1:56 PM, "Kristopher Micinski" 
wrote:

> Just bump up your min SDK level up..
>
>android:targetSdkVersion="integer"
>   android:maxSdkVersion="integer" />
>
> On Fri, Dec 14, 2012 at 1:50 PM, Andrew Pennebaker
>  wrote:
> > Thank you, that's a good explanation. How exactly should I edit
> > AndroidManifest to remove these permissions?
> >
> > On Dec 14, 2012 1:28 PM, "Mark Murphy"  wrote:
> >>
> >> On Fri, Dec 14, 2012 at 1:22 PM, Andrew Pennebaker
> >>  wrote:
> >> > The SDK docs say that by default, Android apps do not request any
> >> > permissions. However, when I generated a Hello World app, it requires
> >> > three
> >> > permissions:
> >> >
> >> > android.permission.READ_EXTERNAL_STORAGE
> >> > android.permission.READ_PHONE_STATE
> >> > android.permission.WRITE_EXTERNAL_STORAGE
> >> >
> >> > I have not asked for any of these. They do not appear in my
> >> > AndroidManifest.xml, nor do they show up when I grep my project. How
> are
> >> > these silly permissions getting into my APK?
> >>
> >> Because you failed to put in a  element, or you have your
> >> android:minSdkVersion set very low, most likely. This is one of the
> >> reasons why the Eclipse new-project wizard sets up a reasonable
> >> default  element.
> >>
> >> What you are seeing are permissions that were added after Android 1.0
> >> shipped and are "grandfathered in" for apps written to support Android
> >> 1.0.
> >>
> >> --
> >> Mark Murphy (a Commons Guy)
> >> http://commonsware.com | http://github.com/commonsguy
> >> http://commonsware.com/blog | http://twitter.com/commonsguy
> >>
> >> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
> >> sobre desenvolvimento de aplicações para Android:
> >> 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
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Why does my Hello World app require three permissions?

2012-12-14 Thread Kristopher Micinski
Just bump up your min SDK level up..



On Fri, Dec 14, 2012 at 1:50 PM, Andrew Pennebaker
 wrote:
> Thank you, that's a good explanation. How exactly should I edit
> AndroidManifest to remove these permissions?
>
> On Dec 14, 2012 1:28 PM, "Mark Murphy"  wrote:
>>
>> On Fri, Dec 14, 2012 at 1:22 PM, Andrew Pennebaker
>>  wrote:
>> > The SDK docs say that by default, Android apps do not request any
>> > permissions. However, when I generated a Hello World app, it requires
>> > three
>> > permissions:
>> >
>> > android.permission.READ_EXTERNAL_STORAGE
>> > android.permission.READ_PHONE_STATE
>> > android.permission.WRITE_EXTERNAL_STORAGE
>> >
>> > I have not asked for any of these. They do not appear in my
>> > AndroidManifest.xml, nor do they show up when I grep my project. How are
>> > these silly permissions getting into my APK?
>>
>> Because you failed to put in a  element, or you have your
>> android:minSdkVersion set very low, most likely. This is one of the
>> reasons why the Eclipse new-project wizard sets up a reasonable
>> default  element.
>>
>> What you are seeing are permissions that were added after Android 1.0
>> shipped and are "grandfathered in" for apps written to support Android
>> 1.0.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
>> sobre desenvolvimento de aplicações para Android:
>> 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
>
> --
> 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] How to sync development projects?

2012-12-14 Thread rambabu mareedu
maintain workspace in cloud


On Sat, Dec 15, 2012 at 12:22 AM, Jungle Jim  wrote:

> I am developing apps using the Android SDK and Eclipse with both my
> desktop PC and laptop.
>
> Does anyone know of a utility that will easily sync the updates to the
> files like the xml and src betwee the two PCs?
>
> 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




-- 
Regards
Rambabu Mareedu
9581411199

-- 
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] Why does my Hello World app require three permissions?

2012-12-14 Thread rambabu mareedu
Test your app in real device 


On Sat, Dec 15, 2012 at 12:20 AM, Andrew Pennebaker <
andrew.penneba...@gmail.com> wrote:

> Thank you, that's a good explanation. How exactly should I edit
> AndroidManifest to remove these permissions?
> On Dec 14, 2012 1:28 PM, "Mark Murphy"  wrote:
>
>> On Fri, Dec 14, 2012 at 1:22 PM, Andrew Pennebaker
>>  wrote:
>> > The SDK docs say that by default, Android apps do not request any
>> > permissions. However, when I generated a Hello World app, it requires
>> three
>> > permissions:
>> >
>> > android.permission.READ_EXTERNAL_STORAGE
>> > android.permission.READ_PHONE_STATE
>> > android.permission.WRITE_EXTERNAL_STORAGE
>> >
>> > I have not asked for any of these. They do not appear in my
>> > AndroidManifest.xml, nor do they show up when I grep my project. How are
>> > these silly permissions getting into my APK?
>>
>> Because you failed to put in a  element, or you have your
>> android:minSdkVersion set very low, most likely. This is one of the
>> reasons why the Eclipse new-project wizard sets up a reasonable
>> default  element.
>>
>> What you are seeing are permissions that were added after Android 1.0
>> shipped and are "grandfathered in" for apps written to support Android
>> 1.0.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
>> sobre desenvolvimento de aplicações para Android:
>> 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
>>
>  --
> 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
Rambabu Mareedu
9581411199

-- 
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 sync development projects?

2012-12-14 Thread Jungle Jim
I am developing apps using the Android SDK and Eclipse with both my desktop 
PC and laptop.

Does anyone know of a utility that will easily sync the updates to the 
files like the xml and src betwee the two PCs?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Why does my Hello World app require three permissions?

2012-12-14 Thread Andrew Pennebaker
Thank you, that's a good explanation. How exactly should I edit
AndroidManifest to remove these permissions?
On Dec 14, 2012 1:28 PM, "Mark Murphy"  wrote:

> On Fri, Dec 14, 2012 at 1:22 PM, Andrew Pennebaker
>  wrote:
> > The SDK docs say that by default, Android apps do not request any
> > permissions. However, when I generated a Hello World app, it requires
> three
> > permissions:
> >
> > android.permission.READ_EXTERNAL_STORAGE
> > android.permission.READ_PHONE_STATE
> > android.permission.WRITE_EXTERNAL_STORAGE
> >
> > I have not asked for any of these. They do not appear in my
> > AndroidManifest.xml, nor do they show up when I grep my project. How are
> > these silly permissions getting into my APK?
>
> Because you failed to put in a  element, or you have your
> android:minSdkVersion set very low, most likely. This is one of the
> reasons why the Eclipse new-project wizard sets up a reasonable
> default  element.
>
> What you are seeing are permissions that were added after Android 1.0
> shipped and are "grandfathered in" for apps written to support Android
> 1.0.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
> sobre desenvolvimento de aplicações para Android:
> 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
>

-- 
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] Old versions still being downloaded from Google Play?

2012-12-14 Thread TreKing
On Fri, Dec 14, 2012 at 12:33 PM, Bram Stolk  wrote:

> However, downloads of old versions continue to this day, even the ones
> that have not been current for over a month.


Free or paid app?

-
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] Old versions still being downloaded from Google Play?

2012-12-14 Thread Bram Stolk
Hi,

In the Google Developer Console, when I look at my app statistics for 
'Daily downloads' I see something weird.
Most versions downloaded on the last day are currently available version.
However, downloads of old versions continue to this day, even the ones that 
have not been current for over a month.
What's up with that?
How come not every Google Play customer gets the current APK?

thx,

  Bram

-- 
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] Why does my Hello World app require three permissions?

2012-12-14 Thread Mark Murphy
On Fri, Dec 14, 2012 at 1:22 PM, Andrew Pennebaker
 wrote:
> The SDK docs say that by default, Android apps do not request any
> permissions. However, when I generated a Hello World app, it requires three
> permissions:
>
> android.permission.READ_EXTERNAL_STORAGE
> android.permission.READ_PHONE_STATE
> android.permission.WRITE_EXTERNAL_STORAGE
>
> I have not asked for any of these. They do not appear in my
> AndroidManifest.xml, nor do they show up when I grep my project. How are
> these silly permissions getting into my APK?

Because you failed to put in a  element, or you have your
android:minSdkVersion set very low, most likely. This is one of the
reasons why the Eclipse new-project wizard sets up a reasonable
default  element.

What you are seeing are permissions that were added after Android 1.0
shipped and are "grandfathered in" for apps written to support Android
1.0.

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

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
sobre desenvolvimento de aplicações para Android:
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] Mobile network idle sockets disconnected

2012-12-14 Thread Robert Greenwalt
3319 is fine.  It's just the tethering code noting an interface is going
away.

Can you get radio logs?  This is the system log - there are several log
buffers.  A bugreport (adb bugreport > mybug.txt) would get them all.  Then
you can match the connectivityservice dropout with what happened in the
radio.

I don't think you should open a bug: this is not an android issue, but
rather it's a samsung issue.

I have opened an internal issue to expand CTS to check for this - any
device wanting to claim to be an android device would not be allowed to do
such a thing in the future.


On Fri, Dec 14, 2012 at 10:08 AM, Goncalo Oliveira wrote:

> Robert,
>
> Thanks again for the feedback. I traced the logs from samsung with a
> simple app to reproduce this behavior. Same thing, 6/7 minutes and it drops.
> I posted the logs here: http://pastebin.com/FcPPbq3V
> On line 3323 you can see ConnectivityService disconnecting. What I can't
> understand is what's causing it. Line 3319 is suspicious as I don't have
> tethering on, but other than that I can't really determine what causes
> this. Should I open a bug for this?
>
> Cheers
>
>
> On 14 December 2012 16:50, Robert Greenwalt  wrote:
>
>> Is it possible something else on the device is occasionally sending data
>> and reseting your window?
>>
>> I would look in the log for the timestamp of the ConnectivityChanged
>> broadcast and then check the radio log and see what's going on.
>>
>> I suspect there is an unsolicited data call list notification coming from
>> the radio showing that the data call has gone away.  Perhaps just before
>> that there may be something explaining why.
>>
>> You may have to contact samsung if you're sure that other devices have
>> longer connection times on the same carrier.
>>
>>
>> On Fri, Dec 14, 2012 at 8:30 AM, Goncalo Oliveira wrote:
>>
>>> Hi Robert,
>>>
>>> Thanks for the reply. If I send a packet every 5/6 minutes the
>>> connectivity is maintained yes. Only if connection is idle for longer than
>>> that. The weird thing is that it's not an exact timer, even though the
>>> average is very close. Sometimes it lasts 7 minutes, sometimes 8 or 9. I
>>> even saw this happening with a 4 minute interval, though very rarely. On
>>> the other device, I can most of the times maintain higher idle times.
>>> I'll try to look at the logs more carefully to see if there's something
>>> else. Is there anything in particular that I should look for?
>>>
>>> Cheers
>>>
>>>
>>> On 14 December 2012 16:16, Robert Greenwalt wrote:
>>>
 Android is not supposed to do this, though there is no guarantee of
 connectivity.  It sounds like something samsung is doing, either
 accidentally or on purpose.

 If you send a packet every 6 minutes does that keep the device from
 pulsing connectivity?

 Can you take a bugreport - the radio log may have some indication of
 why it's happening.


 On Fri, Dec 14, 2012 at 2:24 AM, Goncalo Oliveira 
 wrote:

> Hi all,
>
> Seems that Android is dropping idle sockets when under a mobile
> network. Usually, no socket is kept alive for more than 7 minutes of
> inactivity. I am using a SIM card with a particular APN, that allows idle
> sockets for at least 30 minutes - this was tested using another kind of
> device, also communicating with GSM, and there are no drops, so problem
> isn't the SIM card.
>
> After a few searches in the web, I tried a few approaches to work
> around this, but until now, no success. I tried using a partial wake lock
> after connecting, releasing only when disconnected - didn't work. Also
> tried using only a 2G network, as some said that changing from network 
> type
> could impact on this - same outcome.
>
> After digging a bit more and by analyzing logcat, I watched that a 
> CONNECTIVITY_CHANGE
> is sent after some idle time, disabling the data transfer availability
> (active network is mobile, no connectivity) and another one is sent
> enabling it again (active network is mobile, connectivity). This cuts off
> all live socket connections.
>
> Investigating a little bit more, I also observed that this behavior is
> not consistent through all Android versions, or maybe (even worse) through
> different hardware. Connectivity break is occurring in a Galaxy Tab 7
> with Android 4.0.4. The same isn't occurring in an Unitech TB 100 with
> Android 3.2.
>
> Does anyone know where I can get more information and/or I can work
> around this? I would really like to avoid sending heartbeats every 6/7
> minutes.
>
>
> Cheers
>
> --
> 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...@g

[android-developers] Re: DDMS in Eclipse returning 0.0 in getBearing

2012-12-14 Thread g...@deanblakely.com
Bob,
Since I'm using DDMS you know that I'm running in the emulator on my dev 
box which, in my case, is a desktop computer.  The computer plus the 
monitor weigh quite a bit and I don't have a very long extension coord. 
 So, I don't think running is the solution.

BTW, you wouldn't happen to know the answer to my question, would you? 
hint: Bearing doesn't work in the emulator - always feeds 0.0.
Gary

On Friday, December 14, 2012 10:42:06 AM UTC-7, bob wrote:
>
> bearing |ˈbe(ə)riNG|
> noun
>
> 6 the direction or position of something, or the *direction of movement*, 
> relative to a fixed point
>
>
> Try running real fast in one direction.  Then call getBearing while 
> running.
>
>
> On Friday, December 14, 2012 11:24:55 AM UTC-6, ga...@deanblakely.comwrote:
>>
>> I've been successfully using a KML file and DDMS to drive my app testing 
>> that uses LocationListener. So far I've just been using latitude and 
>> longitude which works well. But now I'm trying to use .getBearing and it's 
>> always returing 0.0 !!
>>
>> Is this a bug in LocationListener? Is it a bug in DDMS? Is there a fix 
>> for it?
>>
>> thanks, Gary
>>
>>

-- 
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] Why does my Hello World app require three permissions?

2012-12-14 Thread Andrew Pennebaker
The SDK 
docssay 
that by default, Android apps do not request any permissions. However, 
when I generated a Hello World 
app, 
it requires three permissions:


   - android.permission.READ_EXTERNAL_STORAGE
   - android.permission.READ_PHONE_STATE
   - android.permission.WRITE_EXTERNAL_STORAGE

I have not asked for any of these. They do not appear in my 
AndroidManifest.xml,
 
nor do they show up when I grep my project. How are these silly permissions 
getting into my APK?

-- 
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] Mobile network idle sockets disconnected

2012-12-14 Thread Goncalo Oliveira
Robert,

Thanks again for the feedback. I traced the logs from samsung with a simple
app to reproduce this behavior. Same thing, 6/7 minutes and it drops.
I posted the logs here: http://pastebin.com/FcPPbq3V
On line 3323 you can see ConnectivityService disconnecting. What I can't
understand is what's causing it. Line 3319 is suspicious as I don't have
tethering on, but other than that I can't really determine what causes
this. Should I open a bug for this?

Cheers


On 14 December 2012 16:50, Robert Greenwalt  wrote:

> Is it possible something else on the device is occasionally sending data
> and reseting your window?
>
> I would look in the log for the timestamp of the ConnectivityChanged
> broadcast and then check the radio log and see what's going on.
>
> I suspect there is an unsolicited data call list notification coming from
> the radio showing that the data call has gone away.  Perhaps just before
> that there may be something explaining why.
>
> You may have to contact samsung if you're sure that other devices have
> longer connection times on the same carrier.
>
>
> On Fri, Dec 14, 2012 at 8:30 AM, Goncalo Oliveira wrote:
>
>> Hi Robert,
>>
>> Thanks for the reply. If I send a packet every 5/6 minutes the
>> connectivity is maintained yes. Only if connection is idle for longer than
>> that. The weird thing is that it's not an exact timer, even though the
>> average is very close. Sometimes it lasts 7 minutes, sometimes 8 or 9. I
>> even saw this happening with a 4 minute interval, though very rarely. On
>> the other device, I can most of the times maintain higher idle times.
>> I'll try to look at the logs more carefully to see if there's something
>> else. Is there anything in particular that I should look for?
>>
>> Cheers
>>
>>
>> On 14 December 2012 16:16, Robert Greenwalt wrote:
>>
>>> Android is not supposed to do this, though there is no guarantee of
>>> connectivity.  It sounds like something samsung is doing, either
>>> accidentally or on purpose.
>>>
>>> If you send a packet every 6 minutes does that keep the device from
>>> pulsing connectivity?
>>>
>>> Can you take a bugreport - the radio log may have some indication of why
>>> it's happening.
>>>
>>>
>>> On Fri, Dec 14, 2012 at 2:24 AM, Goncalo Oliveira wrote:
>>>
 Hi all,

 Seems that Android is dropping idle sockets when under a mobile
 network. Usually, no socket is kept alive for more than 7 minutes of
 inactivity. I am using a SIM card with a particular APN, that allows idle
 sockets for at least 30 minutes - this was tested using another kind of
 device, also communicating with GSM, and there are no drops, so problem
 isn't the SIM card.

 After a few searches in the web, I tried a few approaches to work
 around this, but until now, no success. I tried using a partial wake lock
 after connecting, releasing only when disconnected - didn't work. Also
 tried using only a 2G network, as some said that changing from network type
 could impact on this - same outcome.

 After digging a bit more and by analyzing logcat, I watched that a 
 CONNECTIVITY_CHANGE
 is sent after some idle time, disabling the data transfer availability
 (active network is mobile, no connectivity) and another one is sent
 enabling it again (active network is mobile, connectivity). This cuts off
 all live socket connections.

 Investigating a little bit more, I also observed that this behavior is
 not consistent through all Android versions, or maybe (even worse) through
 different hardware. Connectivity break is occurring in a Galaxy Tab 7
 with Android 4.0.4. The same isn't occurring in an Unitech TB 100 with
 Android 3.2.

 Does anyone know where I can get more information and/or I can work
 around this? I would really like to avoid sending heartbeats every 6/7
 minutes.


 Cheers

 --
 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
>>>
>>
>>
>>
>> --
>> Gonçalo Oliveira
>>
>> --
>> 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 uns

[android-developers] Re: DDMS in Eclipse returning 0.0 in getBearing

2012-12-14 Thread bob
bearing |ˈbe(ə)riNG|
noun

6 the direction or position of something, or the *direction of movement*, 
relative to a fixed point


Try running real fast in one direction.  Then call getBearing while running.


On Friday, December 14, 2012 11:24:55 AM UTC-6, ga...@deanblakely.com wrote:
>
> I've been successfully using a KML file and DDMS to drive my app testing 
> that uses LocationListener. So far I've just been using latitude and 
> longitude which works well. But now I'm trying to use .getBearing and it's 
> always returing 0.0 !!
>
> Is this a bug in LocationListener? Is it a bug in DDMS? Is there a fix for 
> it?
>
> thanks, Gary
>
>

-- 
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: SharedPreferences no work

2012-12-14 Thread bob


On Friday, December 14, 2012 2:23:46 AM UTC-6, Antonis Kanaris wrote:
>
>
>
> Τη Παρασκευή, 14 Δεκεμβρίου 2012 9:15:12 π.μ. UTC+2, ο χρήστης Antonis 
> Kanaris έγραψε:



*That's Greek to me*

 

> Hello.I make an apk with two activities and use SharedPreferences for 
>> store user values but no workthe string url no store this is my 
>> code...Need something extra to manifest for work SharedPreferences?
>>
>> public class MainActivity extends Activity {
>>
>> @Override
>> public void onCreate(Bundle savedInstanceState) {
>> super.onCreate(savedInstanceState);
>> setContentView(R.layout.activity_main);
>> 
>>
>>
>> if (savedInstanceState != null)
>> {
>>   String strValue = savedInstanceState.getString("Url");
>>   if (strValue != null)
>>   {
>>   TextView text = (TextView) findViewById(R.id.text);
>>   
>>   //Sets the new text to TextView (runtime click event)
>>   text.setText(strValue);
>>   }
>> }
>> 
>> }
>> 
>> public void Save(View view) {
>> 
>>  SharedPreferences preferences = getPreferences(MODE_PRIVATE);
>>   SharedPreferences.Editor editor = preferences.edit();  // Put 
>> the values from the UI
>>   
>>   EditText txtUrl = (EditText)findViewById(R.id.txtUrl);
>>   String strUrl = txtUrl.getText().toString();
>>   
>>   
>>   
>>   editor.putString("Url", strUrl); // value to store
>> 
>>   // Commit to storage
>>   editor.commit();
>> 
>> Intent myIntent = new Intent(view.getContext(), Activity2.class);
>> startActivityForResult(myIntent, 0);
>> }
>>
>>
>> public class Activity2 extends Activity {
>>
>> /** Called when the activity is first created. */
>> public void onCreate(Bundle savedInstanceState) {
>> super.onCreate(savedInstanceState);
>> setContentView(R.layout.activity2);
>>
>> if (savedInstanceState != null)
>> {
>>   String strValue = savedInstanceState.getString("Url");
>>   if (strValue != null)
>>   {
>>   TextView text = (TextView) findViewById(R.id.texturl);
>>   
>>   //Sets the new text to TextView (runtime click event)
>>   text.setText(strValue);
>>   }
>> }
>>  
>> }
>> 
>> public void Setup(View view) {
>> Intent intent = new Intent();
>> setResult(RESULT_OK, intent);
>> finish();
>> }
>>
>

-- 
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] DDMS in Eclipse returning 0.0 in getBearing

2012-12-14 Thread g...@deanblakely.com
I've been successfully using a KML file and DDMS to drive my app testing 
that uses LocationListener. So far I've just been using latitude and 
longitude which works well. But now I'm trying to use .getBearing and it's 
always returing 0.0 !!

Is this a bug in LocationListener? Is it a bug in DDMS? Is there a fix for 
it?

thanks, Gary

-- 
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] Mobile network idle sockets disconnected

2012-12-14 Thread Robert Greenwalt
Is it possible something else on the device is occasionally sending data
and reseting your window?

I would look in the log for the timestamp of the ConnectivityChanged
broadcast and then check the radio log and see what's going on.

I suspect there is an unsolicited data call list notification coming from
the radio showing that the data call has gone away.  Perhaps just before
that there may be something explaining why.

You may have to contact samsung if you're sure that other devices have
longer connection times on the same carrier.


On Fri, Dec 14, 2012 at 8:30 AM, Goncalo Oliveira wrote:

> Hi Robert,
>
> Thanks for the reply. If I send a packet every 5/6 minutes the
> connectivity is maintained yes. Only if connection is idle for longer than
> that. The weird thing is that it's not an exact timer, even though the
> average is very close. Sometimes it lasts 7 minutes, sometimes 8 or 9. I
> even saw this happening with a 4 minute interval, though very rarely. On
> the other device, I can most of the times maintain higher idle times.
> I'll try to look at the logs more carefully to see if there's something
> else. Is there anything in particular that I should look for?
>
> Cheers
>
>
> On 14 December 2012 16:16, Robert Greenwalt  wrote:
>
>> Android is not supposed to do this, though there is no guarantee of
>> connectivity.  It sounds like something samsung is doing, either
>> accidentally or on purpose.
>>
>> If you send a packet every 6 minutes does that keep the device from
>> pulsing connectivity?
>>
>> Can you take a bugreport - the radio log may have some indication of why
>> it's happening.
>>
>>
>> On Fri, Dec 14, 2012 at 2:24 AM, Goncalo Oliveira wrote:
>>
>>> Hi all,
>>>
>>> Seems that Android is dropping idle sockets when under a mobile network.
>>> Usually, no socket is kept alive for more than 7 minutes of inactivity. I
>>> am using a SIM card with a particular APN, that allows idle sockets for at
>>> least 30 minutes - this was tested using another kind of device, also
>>> communicating with GSM, and there are no drops, so problem isn't the SIM
>>> card.
>>>
>>> After a few searches in the web, I tried a few approaches to work around
>>> this, but until now, no success. I tried using a partial wake lock after
>>> connecting, releasing only when disconnected - didn't work. Also tried
>>> using only a 2G network, as some said that changing from network type could
>>> impact on this - same outcome.
>>>
>>> After digging a bit more and by analyzing logcat, I watched that a 
>>> CONNECTIVITY_CHANGE
>>> is sent after some idle time, disabling the data transfer availability
>>> (active network is mobile, no connectivity) and another one is sent
>>> enabling it again (active network is mobile, connectivity). This cuts off
>>> all live socket connections.
>>>
>>> Investigating a little bit more, I also observed that this behavior is
>>> not consistent through all Android versions, or maybe (even worse) through
>>> different hardware. Connectivity break is occurring in a Galaxy Tab 7
>>> with Android 4.0.4. The same isn't occurring in an Unitech TB 100 with
>>> Android 3.2.
>>>
>>> Does anyone know where I can get more information and/or I can work
>>> around this? I would really like to avoid sending heartbeats every 6/7
>>> minutes.
>>>
>>>
>>> Cheers
>>>
>>> --
>>> 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
>>
>
>
>
> --
> Gonçalo Oliveira
>
> --
> 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] Mobile network idle sockets disconnected

2012-12-14 Thread Goncalo Oliveira
Hi Robert,

Thanks for the reply. If I send a packet every 5/6 minutes the connectivity
is maintained yes. Only if connection is idle for longer than that. The
weird thing is that it's not an exact timer, even though the average is
very close. Sometimes it lasts 7 minutes, sometimes 8 or 9. I even saw this
happening with a 4 minute interval, though very rarely. On the other
device, I can most of the times maintain higher idle times.
I'll try to look at the logs more carefully to see if there's something
else. Is there anything in particular that I should look for?

Cheers


On 14 December 2012 16:16, Robert Greenwalt  wrote:

> Android is not supposed to do this, though there is no guarantee of
> connectivity.  It sounds like something samsung is doing, either
> accidentally or on purpose.
>
> If you send a packet every 6 minutes does that keep the device from
> pulsing connectivity?
>
> Can you take a bugreport - the radio log may have some indication of why
> it's happening.
>
>
> On Fri, Dec 14, 2012 at 2:24 AM, Goncalo Oliveira wrote:
>
>> Hi all,
>>
>> Seems that Android is dropping idle sockets when under a mobile network.
>> Usually, no socket is kept alive for more than 7 minutes of inactivity. I
>> am using a SIM card with a particular APN, that allows idle sockets for at
>> least 30 minutes - this was tested using another kind of device, also
>> communicating with GSM, and there are no drops, so problem isn't the SIM
>> card.
>>
>> After a few searches in the web, I tried a few approaches to work around
>> this, but until now, no success. I tried using a partial wake lock after
>> connecting, releasing only when disconnected - didn't work. Also tried
>> using only a 2G network, as some said that changing from network type could
>> impact on this - same outcome.
>>
>> After digging a bit more and by analyzing logcat, I watched that a 
>> CONNECTIVITY_CHANGE
>> is sent after some idle time, disabling the data transfer availability
>> (active network is mobile, no connectivity) and another one is sent
>> enabling it again (active network is mobile, connectivity). This cuts off
>> all live socket connections.
>>
>> Investigating a little bit more, I also observed that this behavior is
>> not consistent through all Android versions, or maybe (even worse) through
>> different hardware. Connectivity break is occurring in a Galaxy Tab 7
>> with Android 4.0.4. The same isn't occurring in an Unitech TB 100 with
>> Android 3.2.
>>
>> Does anyone know where I can get more information and/or I can work
>> around this? I would really like to avoid sending heartbeats every 6/7
>> minutes.
>>
>>
>> Cheers
>>
>> --
>> 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
>



-- 
Gonçalo Oliveira

-- 
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] Mobile network idle sockets disconnected

2012-12-14 Thread Robert Greenwalt
Android is not supposed to do this, though there is no guarantee of
connectivity.  It sounds like something samsung is doing, either
accidentally or on purpose.

If you send a packet every 6 minutes does that keep the device from pulsing
connectivity?

Can you take a bugreport - the radio log may have some indication of why
it's happening.


On Fri, Dec 14, 2012 at 2:24 AM, Goncalo Oliveira wrote:

> Hi all,
>
> Seems that Android is dropping idle sockets when under a mobile network.
> Usually, no socket is kept alive for more than 7 minutes of inactivity. I
> am using a SIM card with a particular APN, that allows idle sockets for at
> least 30 minutes - this was tested using another kind of device, also
> communicating with GSM, and there are no drops, so problem isn't the SIM
> card.
>
> After a few searches in the web, I tried a few approaches to work around
> this, but until now, no success. I tried using a partial wake lock after
> connecting, releasing only when disconnected - didn't work. Also tried
> using only a 2G network, as some said that changing from network type could
> impact on this - same outcome.
>
> After digging a bit more and by analyzing logcat, I watched that a 
> CONNECTIVITY_CHANGE
> is sent after some idle time, disabling the data transfer availability
> (active network is mobile, no connectivity) and another one is sent
> enabling it again (active network is mobile, connectivity). This cuts off
> all live socket connections.
>
> Investigating a little bit more, I also observed that this behavior is not
> consistent through all Android versions, or maybe (even worse) through
> different hardware. Connectivity break is occurring in a Galaxy Tab 7
> with Android 4.0.4. The same isn't occurring in an Unitech TB 100 with
> Android 3.2.
>
> Does anyone know where I can get more information and/or I can work around
> this? I would really like to avoid sending heartbeats every 6/7 minutes.
>
>
> Cheers
>
> --
> 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] give uniform variables an initial value

2012-12-14 Thread bob
The code is more like this:

int intensity_Handle; 

*…*

intensity_Handle = GLES20.glGetUniformLocation(mProgram, "intensity");

*…*

GLES20.glUniform1f(intensity_Handle, 0.5f);




On Thursday, December 13, 2012 7:14:14 PM UTC-6, Lew wrote:
>
> bob wrote:
>
>> Thanks.
>>
>> This is pretty much what I did…
>>
>> int intensity_Handle; 
>> intensity_Handle = GLES20.glGetUniformLocation(mProgram, "intensity");
>> GLES20.glUniform1f(intensity_Handle, 0.5f);
>>
>> Seems to work.
>>
>>> 
>>>
>>>
> This is just a nit, and not germane to the main question, but how come you 
> split up the declaration
> of 'intensity_Handle' (a non-Java-compliant variable name, btw) and its 
> assignment? My guess is that 
> you extracted it from some longer block of code.
>
> -- 
> 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] problem display all data sharedpreference

2012-12-14 Thread Antonis Kanaris

 I save data url,device name but when call getstring display only device 
name...this is my functionfor one string work ok

  public void Save(View view) {

 SharedPreferences preferences = 
getSharedPreferences("dataioweb.txt" , MODE_PRIVATE);
  SharedPreferences.Editor editor = preferences.edit();  // Put the 
values from the UI
  EditText txtUrl = (EditText)findViewById(R.id.txtUrl);
  String strUrl = txtUrl.getText().toString();
  
  EditText txtDevName = (EditText)findViewById(R.id.txtDevName);
  String strDevName = txtDevName.getText().toString();
  
  //CheckBox chkTandC = (CheckBox)findViewById(R.id.chkTandC);
  //boolean blnTandC = chkTandC.isChecked();
  
  editor.putString("Url", strUrl); // value to store
  editor.putString("DevName", strDevName); // value to store
  //editor.putBoolean("TandC", blnTandC); // value to store
  // Commit to storage
  editor.commit();

  String strValue = preferences.getString("Url","");
  TextView text = (TextView) findViewById(R.id.text);  
  text.setText(strValue);
  String strValue2 = preferences.getString("DevName","");
  TextView text2 = (TextView) findViewById(R.id.textDevName);  
  text.setText(strValue2);

}

-- 
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] Mobile network idle sockets disconnected

2012-12-14 Thread Goncalo Oliveira
Hi Fred,

Thanks for the feedback. I'm currently implementing something like that, by
sending a heartbeat every 5 minutes (so far the safest interval on tested
devices). But this is not an optimal solution, as the data transfer plan is
a very tight one (particularly those including roaming). That's why our
agreement with the network operator allows idle connections at least for 30
minutes. Sending a heartbeat every 30 minutes is way better than every 5,
because even though the heartbeat is only one byte long, TCP overhead adds
another 66. That's at least 67 bytes every 5 minutes, at least 8h a day.

Cheers.

On 14 December 2012 15:10, Fred Niggle  wrote:

> Hi,
> I also experienced this problem, and found the solution was to use a timer
> to send a character to the server every few seconds when idle.
>
> I was lucky that i was also writing the server code sp i could work around
> this.
> Im not sure if this solves the problem your having, but just thought id
> let you know of *a* solution.
>
> Im flagging this in case i learn something new :)
>
> regards,
> Fred
>
>
> On 14 December 2012 10:24, Goncalo Oliveira  wrote:
>
>> Hi all,
>>
>> Seems that Android is dropping idle sockets when under a mobile network.
>> Usually, no socket is kept alive for more than 7 minutes of inactivity. I
>> am using a SIM card with a particular APN, that allows idle sockets for at
>> least 30 minutes - this was tested using another kind of device, also
>> communicating with GSM, and there are no drops, so problem isn't the SIM
>> card.
>>
>> After a few searches in the web, I tried a few approaches to work around
>> this, but until now, no success. I tried using a partial wake lock after
>> connecting, releasing only when disconnected - didn't work. Also tried
>> using only a 2G network, as some said that changing from network type could
>> impact on this - same outcome.
>>
>> After digging a bit more and by analyzing logcat, I watched that a 
>> CONNECTIVITY_CHANGE
>> is sent after some idle time, disabling the data transfer availability
>> (active network is mobile, no connectivity) and another one is sent
>> enabling it again (active network is mobile, connectivity). This cuts off
>> all live socket connections.
>>
>> Investigating a little bit more, I also observed that this behavior is
>> not consistent through all Android versions, or maybe (even worse) through
>> different hardware. Connectivity break is occurring in a Galaxy Tab 7
>> with Android 4.0.4. The same isn't occurring in an Unitech TB 100 with
>> Android 3.2.
>>
>> Does anyone know where I can get more information and/or I can work
>> around this? I would really like to avoid sending heartbeats every 6/7
>> minutes.
>>
>>
>> Cheers
>>
>> --
>> 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
>
>
>
>
> --
> Ubuntu Speech 
> inputis
>  now available on Google Play, along with Magnetic
> Door Alarm 
> app
> .
>
> --
> 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
>



-- 
Gonçalo Oliveira

-- 
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] Mobile network idle sockets disconnected

2012-12-14 Thread Fred Niggle
Hi,
I also experienced this problem, and found the solution was to use a timer
to send a character to the server every few seconds when idle.

I was lucky that i was also writing the server code sp i could work around
this.
Im not sure if this solves the problem your having, but just thought id let
you know of *a* solution.

Im flagging this in case i learn something new :)

regards,
Fred

On 14 December 2012 10:24, Goncalo Oliveira  wrote:

> Hi all,
>
> Seems that Android is dropping idle sockets when under a mobile network.
> Usually, no socket is kept alive for more than 7 minutes of inactivity. I
> am using a SIM card with a particular APN, that allows idle sockets for at
> least 30 minutes - this was tested using another kind of device, also
> communicating with GSM, and there are no drops, so problem isn't the SIM
> card.
>
> After a few searches in the web, I tried a few approaches to work around
> this, but until now, no success. I tried using a partial wake lock after
> connecting, releasing only when disconnected - didn't work. Also tried
> using only a 2G network, as some said that changing from network type could
> impact on this - same outcome.
>
> After digging a bit more and by analyzing logcat, I watched that a 
> CONNECTIVITY_CHANGE
> is sent after some idle time, disabling the data transfer availability
> (active network is mobile, no connectivity) and another one is sent
> enabling it again (active network is mobile, connectivity). This cuts off
> all live socket connections.
>
> Investigating a little bit more, I also observed that this behavior is not
> consistent through all Android versions, or maybe (even worse) through
> different hardware. Connectivity break is occurring in a Galaxy Tab 7
> with Android 4.0.4. The same isn't occurring in an Unitech TB 100 with
> Android 3.2.
>
> Does anyone know where I can get more information and/or I can work around
> this? I would really like to avoid sending heartbeats every 6/7 minutes.
>
>
> Cheers
>
> --
> 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




-- 
Ubuntu Speech 
inputis
now available on Google Play, along with Magnetic
Door Alarm 
app
.

-- 
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] Required: SAP Basis Consultant at Phoenix, AZ

2012-12-14 Thread Munawar Ali
Hi There,

Hope you are doing good. Please let me know if you have someone for the
below mention requirement…
Please send resumes on m...@tekenergyusa.com

*Position: SAP Basis Consultant*
*Location: Arizona*
*Duration: 4 Months Contract*

We are looking for a *Basis Consultant* with *BW 7.0 to 7.3* upgrade
experience.
- Consultant must have BW BW 7.0 to 7.3 upgrade experience.





Thanks & Regards,

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Starting an actvity from Notifications

2012-12-14 Thread Kristopher Micinski
Look at the intent flags:

http://developer.android.com/guide/components/tasks-and-back-stack.html

Kris

On Fri, Dec 14, 2012 at 8:17 AM, dashman  wrote:
> My app starts on activity A and can navigate to activity B.
>
> I also have a background service and creates a notification.
>
> Once the user taps on the notification, it calls A and then i create
> a new activity B.
>
> the problem is that if the user taps on the notification after the
> user has navigated from A  to B - it creates a new instance of B.
>
> So I have A B B.
>
> Like to avoid that.
>
> When activity A is activated by the notification tap - is there a way
> I can detect that B is the top activity currently - so that i don't
> create a new instance.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Starting an actvity from Notifications

2012-12-14 Thread dashman
My app starts on activity A and can navigate to activity B.

I also have a background service and creates a notification.

Once the user taps on the notification, it calls A and then i create
a new activity B.

the problem is that if the user taps on the notification after the
user has navigated from A  to B - it creates a new instance of B.

So I have A B B.

Like to avoid that.

When activity A is activated by the notification tap - is there a way
I can detect that B is the top activity currently - so that i don't
create a new instance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] can NFC read the RFID tag?

2012-12-14 Thread Prish goyal
i have wonder on web to find the answer can android-NFC can read RFID tag 
data or not  

-- 
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 get the cursor position on webview? (about the text selection)

2012-12-14 Thread Ravi
 i also need this thing if you finished please help me to get selected word 
tag name and id

-- 
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: make app compatible on 1024*720 px

2012-12-14 Thread skink


vani reddy wrote:
> ok,I mean   I created 2 layout folders , but both devices are referring to
> the same layout folder.By this I am only device of 1280*752 px works fine,
> but in 1024*720 px device app gets distracted..
>
> On Fri, Dec 14, 2012 at 4:05 PM, skink  wrote:
>
> >
> >
> > vani reddy wrote:
> > > Hi friends,
> > >
> > > I have developed an app in a tablet of resolution 1280*752px  of 160 dpi,
> > >
> > > I want to make this application work on a tablet of resolution
> >  1024*720px
> > >  of 160dpi.
> > > I  referred the below link
> > >
> > >
> > http://stackoverflow.com/questions/5633792/android-app-support-for-multiple-tablet-screen-resolutions
> > > and  I created 2 layout folders.
> > >
> > >
> >
> > you created 2 layout
> > folders, and what ...?
> >
> > nobody has a crystal ball  to read your thoughts...
> >
> > 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,
> Vani Reddy

http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts

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] give uniform variables an initial value

2012-12-14 Thread Latimerius
On Fri, Dec 14, 2012 at 2:14 AM, Lew  wrote:

> of 'intensity_Handle' (a non-Java-compliant variable name, btw) and its
> assignment?
>

Also just out of curiosity, and since you keep mentioning this kind of
stuff - can you point me to the part of "The Java Language Specification"
that makes a name like 'intensity_Handle' non-compliant?  I just skimmed
through it again but could not find anything.  I mean, it doesn't start
with a number or contain white space, right?

-- 
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: make app compatible on 1024*720 px

2012-12-14 Thread skink


vani reddy wrote:
> Hi friends,
>
> I have developed an app in a tablet of resolution 1280*752px  of 160 dpi,
>
> I want to make this application work on a tablet of resolution  1024*720px
>  of 160dpi.
> I  referred the below link
>
> http://stackoverflow.com/questions/5633792/android-app-support-for-multiple-tablet-screen-resolutions
> and  I created 2 layout folders.
>
>

you created 2 layout
folders, and what ...?

nobody has a crystal ball  to read your thoughts...

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] Mobile network idle sockets disconnected

2012-12-14 Thread Goncalo Oliveira


Hi all,

Seems that Android is dropping idle sockets when under a mobile network. 
Usually, no socket is kept alive for more than 7 minutes of inactivity. I 
am using a SIM card with a particular APN, that allows idle sockets for at 
least 30 minutes - this was tested using another kind of device, also 
communicating with GSM, and there are no drops, so problem isn't the SIM 
card.

After a few searches in the web, I tried a few approaches to work around 
this, but until now, no success. I tried using a partial wake lock after 
connecting, releasing only when disconnected - didn't work. Also tried 
using only a 2G network, as some said that changing from network type could 
impact on this - same outcome.

After digging a bit more and by analyzing logcat, I watched that a 
CONNECTIVITY_CHANGE 
is sent after some idle time, disabling the data transfer availability 
(active network is mobile, no connectivity) and another one is sent 
enabling it again (active network is mobile, connectivity). This cuts off 
all live socket connections.

Investigating a little bit more, I also observed that this behavior is not 
consistent through all Android versions, or maybe (even worse) through 
different hardware. Connectivity break is occurring in a Galaxy Tab 7 with 
Android 4.0.4. The same isn't occurring in an Unitech TB 100 with Android 
3.2.

Does anyone know where I can get more information and/or I can work around 
this? I would really like to avoid sending heartbeats every 6/7 minutes.


Cheers

-- 
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] make app compatible on 1024*720 px

2012-12-14 Thread vani reddy
Hi friends,

I have developed an app in a tablet of resolution 1280*752px  of 160 dpi,

I want to make this application work on a tablet of resolution  1024*720px
 of 160dpi.
I  referred the below link

http://stackoverflow.com/questions/5633792/android-app-support-for-multiple-tablet-screen-resolutions
and  I created 2 layout folders.

Can you please tell me how  am I supposed to go ahead with this. since
deadlines are nearing.


-- 
Regards,
Vani Reddy

-- 
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: onConfigurationChanged() is not called when flipping between landscape and reverse landscape?

2012-12-14 Thread RS
Hi Dianne, your answer isn't good enough. 
On flipping, the activity isn't informed through onConfigurationChanged 
(since Honeycomb, I suppose). This saves an unnecessary onSurfaceChange, 
texture loading, etc. Cool.

But in that case sensor manager too must provide values as in previous 
orientation. 
*Unfortunately it is mangled in accordance to the new orientation.*
In NDK, raw sensor vectors aren't officially available in sensor.h.

We use remapCoordinateSystem()[1] when away from default orientation.

We call this on config change to remember the new orientation and 
compensate for sensor value mangling. 
int rotation = activity.getWindowManager().getDefaultDisplay().getRotation()

Even without JNI such a call must be avoided except on config change event.

It is a overkill to (JNI-)call that on each frame just because the 
framework hides it from the activity but uses the new orientation in sensor 
value mangling. 

Framework must inform the activity of the change if it chooses to alter 
sensor values by the new (flipped) orientation. 

Thanks,
RS
[1] 
http://developer.android.com/reference/android/hardware/SensorManager.html#remapCoordinateSystem(float[],
 
int, int, float[])
ps: This is specific to flip... there is no switch between 
landscape<->portrait but just flipped as in landscape to reverse-landscape 
or portrait to reverse-portrait.

-- 
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: SharedPreferences no work

2012-12-14 Thread laxman k
public boolean save(String strurl ,Context context)
{
pref= context.getSharedPreferences("MyPref",Context.MODE_PRIVATE);
editor = pref.edit();
editor.putBoolean("URL", strurl);
editor.commit();
return true;
}

<---saving value>

save(strurl,getApplicationContext());

<--geting values--->
url=getURL(getApplicationContext());


public String GetURL(Context context)
{
pref= context.getSharedPreferences("MyPref",Context.MODE_PRIVATE);
String url=pref.getString("URL", null);
return url;
}

-- 
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: SharedPreferences no work

2012-12-14 Thread Antonis Kanaris


Τη Παρασκευή, 14 Δεκεμβρίου 2012 9:15:12 π.μ. UTC+2, ο χρήστης Antonis 
Kanaris έγραψε:
>
> Hello.I make an apk with two activities and use SharedPreferences for 
> store user values but no workthe string url no store this is my 
> code...Need something extra to manifest for work SharedPreferences?
>
> public class MainActivity extends Activity {
>
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity_main);
> 
>
>
> if (savedInstanceState != null)
> {
>   String strValue = savedInstanceState.getString("Url");
>   if (strValue != null)
>   {
>   TextView text = (TextView) findViewById(R.id.text);
>   
>   //Sets the new text to TextView (runtime click event)
>   text.setText(strValue);
>   }
> }
> 
> }
> 
> public void Save(View view) {
> 
>  SharedPreferences preferences = getPreferences(MODE_PRIVATE);
>   SharedPreferences.Editor editor = preferences.edit();  // Put 
> the values from the UI
>   
>   EditText txtUrl = (EditText)findViewById(R.id.txtUrl);
>   String strUrl = txtUrl.getText().toString();
>   
>   
>   
>   editor.putString("Url", strUrl); // value to store
> 
>   // Commit to storage
>   editor.commit();
> 
> Intent myIntent = new Intent(view.getContext(), Activity2.class);
> startActivityForResult(myIntent, 0);
> }
>
>
> public class Activity2 extends Activity {
>
> /** Called when the activity is first created. */
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity2);
>
> if (savedInstanceState != null)
> {
>   String strValue = savedInstanceState.getString("Url");
>   if (strValue != null)
>   {
>   TextView text = (TextView) findViewById(R.id.texturl);
>   
>   //Sets the new text to TextView (runtime click event)
>   text.setText(strValue);
>   }
> }
>  
> }
> 
> public void Setup(View view) {
> Intent intent = new Intent();
> setResult(RESULT_OK, intent);
> finish();
> }
>

-- 
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: SharedPreferences no work

2012-12-14 Thread skink


Antonis Kanaris wrote:
> Hello.I make an apk with two activities and use SharedPreferences for store
> user values but no work

"but no work..." - you are extremely verbose in describing your
problem

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