Re: [android-developers] Text to speech

2013-08-10 Thread Fred Niggle
You would help yourself by adding debugging so you can double check things.

What permissions do you have set?
What device are you testing on?
When a call comes in what happens?


On 10 August 2013 21:28, shiva pendem pendem.shiv...@gmail.com wrote:

 HI every one,

 i would like to start a text to speech on a incoming call and i have tried
 the following method,
 private class CallStateListener extends PhoneStateListener implements
 TextToSpeech.OnInitListener{
  public TextToSpeech tts;
  @Override
 public void onCallStateChanged(int state, String incomingNumber) {
 boolean entered=false;
 tts = new TextToSpeech(ctx, new
 TextToSpeech.OnInitListener() {
 public void onInit(int status) {
 // TODO Auto-generated method stub
 if (status == TextToSpeech.SUCCESS) {
 int result = tts.setLanguage(Locale.US);
 if (result == TextToSpeech.LANG_MISSING_DATA|| result ==
 TextToSpeech.LANG_NOT_SUPPORTED) {
 Log.e(TTS, Language is not supported);
 } else {
 speakOut(Test);
 }
 } else {
 Log.e(TTS, Initilization Failed);
 }
 }
 });
 switch (state) {
 case TelephonyManager.CALL_STATE_RINGING:
 // called when someone is ringing to this phone
 String text=;
 if(!entered)
 {
 Log.v(Test,incomingNumber is +incomingNumber);
  tts.speak(Hello +getUserName()+ you have a call ,
 TextToSpeech.QUEUE_FLUSH, null);
 entered=!entered;
 }
 Toast.makeText(ctx,Incoming: +incomingNumber+
  +text,Toast.LENGTH_LONG).show();
 break;
 case TelephonyManager.CALL_STATE_OFFHOOK:
 if(entered)
 {
 entered=!entered;
 }
 break;
 }
 }
 public void onInit(int status) {
 // TODO Auto-generated method stub
 if (status == TextToSpeech.SUCCESS) {

 int result = tts.setLanguage(Locale.US);

 if (result == TextToSpeech.LANG_MISSING_DATA
 || result == TextToSpeech.LANG_NOT_SUPPORTED) {
 Log.e(TTS, Language is not supported);
 } else {
 speakOut(Test);
 }

 } else {
 Log.e(TTS, Initilization Failed);
 }
 }
 private void speakOut(String text) {
 tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
 }
 }

 I have initialized and used all the methods but unable to get the required
 output,

 Can any one tell me how can i overcome this issue and make the speech on a
 call with user defined message,

 If possible please advice me the jar that are used to convert text into
 speech with a simple method,while the phone was ringing,

 Thanks in advance,
 Shiva Shankar

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




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


Re: [android-developers] Re: Text to speech

2013-08-10 Thread Fred Niggle
Check this out :
http://www.codeproject.com/Tips/462145/Handling-Phone-Events-in-Android-Programs

Does it help?


On 10 August 2013 22:07, shiva pendem pendem.shiv...@gmail.com wrote:

 Hi,
 i have been debugging from past 3 days but unable to fine out the reason,

 As you have said i have added lot many permissions to make it run but it
 is not working fine,

 uses-permission android:name=android.permission.READ_PHONE_STATE /
 uses-permission android:name=android.permission.PROCESS_OUTGOING_CALLS
 /
 uses-permission android:name=android.permission.READ_CONTACTS /
 uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE
 /
 uses-permission android:name=android.permission.WRITE_SETTINGS
 /uses-permission
   uses-permission
 android:name=android.permission.CHANGE_CONFIGURATION /uses-permission
   uses-permission
 android:name=android.permission.MODIFY_AUDIO_SETTINGS /uses-permission

 these are the permissions added, and i am using, my phone samsung gt s6012
 model mobile phone,

 when i get a call i am not getting any voice from this speech and and no
 exception is also thrown for not getting the voice,

 Thanks
 Shiva Shankar

 On Sunday, August 11, 2013 1:58:36 AM UTC+5:30, shiva pendem wrote:

 HI every one,

 i would like to start a text to speech on a incoming call and i have
 tried the following method,
 private class CallStateListener extends PhoneStateListener implements
 TextToSpeech.OnInitListener{
  public TextToSpeech tts;
  @Override
 public void onCallStateChanged(int state, String incomingNumber) {
 boolean entered=false;
 tts = new TextToSpeech(ctx, new
 TextToSpeech.OnInitListener() {
 public void onInit(int status) {
 // TODO Auto-generated method stub
 if (status == TextToSpeech.SUCCESS) {
 int result = tts.setLanguage(Locale.US);
 if (result == TextToSpeech.LANG_MISSING_**DATA|| result ==
 TextToSpeech.LANG_NOT_**SUPPORTED) {
 Log.e(TTS, Language is not supported);
 } else {
 speakOut(Test);
 }
 } else {
 Log.e(TTS, Initilization Failed);
 }
 }
 });
 switch (state) {
 case TelephonyManager.CALL_STATE_**RINGING:
 // called when someone is ringing to this phone
 String text=;
 if(!entered)
 {
 Log.v(Test,incomingNumber is +incomingNumber);
  tts.speak(Hello +getUserName()+ you have a call ,
 TextToSpeech.QUEUE_FLUSH, null);
 entered=!entered;
 }
 Toast.makeText(ctx,Incoming: +incomingNumber+
  +text,Toast.LENGTH_LONG).**show();
 break;
 case TelephonyManager.CALL_STATE_**OFFHOOK:
 if(entered)
 {
 entered=!entered;
 }
 break;
 }
 }
 public void onInit(int status) {
 // TODO Auto-generated method stub
 if (status == TextToSpeech.SUCCESS) {

 int result = tts.setLanguage(Locale.US);

 if (result == TextToSpeech.LANG_MISSING_DATA
 || result == TextToSpeech.LANG_NOT_**SUPPORTED) {
 Log.e(TTS, Language is not supported);
 } else {
 speakOut(Test);
 }

 } else {
 Log.e(TTS, Initilization Failed);
 }
 }
 private void speakOut(String text) {
 tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
 }
 }

 I have initialized and used all the methods but unable to get the
 required output,

 Can any one tell me how can i overcome this issue and make the speech on
 a call with user defined message,

 If possible please advice me the jar that are used to convert text into
 speech with a simple method,while the phone was ringing,

 Thanks in advance,
 Shiva Shankar

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


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




Re: [android-developers] Seekbar Save state and restore

2013-07-14 Thread Fred Niggle
I think you mean save the position of the seekbar (eg users preference)
then you can use shared prefs .
this thus:
onCreate reads the shared prefs and sets the value of the seekbar
your 'save' function then writes the value to shared prefs.



On 14 July 2013 17:34, Keith Zettler leftcont...@gmail.com wrote:

 So we come full circle . How exactly can i save/restore this seekbar if
 user uses back button or activity is destroyed. Does anyone have a seekbar
 specific example ?

 On Saturday, July 13, 2013 12:32:01 AM UTC-4, TreKing wrote:


 On Fri, Jul 12, 2013 at 7:07 PM, Keith Zettler leftc...@gmail.comwrote:

 This activity is called via intent from the first activity. If i back
 button from this activity to the first activity the seekbar value returns
 to zero when i get back.


 http://developer.android.com/**training/basics/activity-**
 lifecycle/recreating.htmlhttp://developer.android.com/training/basics/activity-lifecycle/recreating.html

 --**--**
 --**---
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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






-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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




Re: [android-developers] Record phonecall over Bluetooth

2013-07-11 Thread Fred Niggle
for personal uses I have a script on a laptop which watches the android
device bluetooth name to change to INCALL(to start nearby laptop/desktop
recording audio) and i have an android app which changes the name during
call in progress - but yes actually recording both sides of a call from an
app that is receiving the call is very hit and miss.


On 11 July 2013 07:39, Piren gpi...@gmail.com wrote:

 He probably didn't notice he's recording the sound of the speaker...


 On Wednesday, July 10, 2013 9:12:03 PM UTC+3, Kristopher Micinski wrote:

 How do you record a phone call normally when no headsets are
 connected?  You shouldn't be able to do this, ...

 Kris

 On Wed, Jul 10, 2013 at 1:48 PM,  ame...@googlemail.com wrote:
  I want to record a phone call on Android when a Bluetooth headset is
  connected. I'm able to record a Phone call normally when no headsets
 are
  connected. When I connect a Bluetooth headset the API records the phone
 call
  but there is no audio. Do I need to route the call via Bluetooth and if
 yes
  how could this be done?
 
  --
  --
  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=enhttp://groups.google.com/group/android-developers?hl=en
  ---
  You received this message because you are subscribed to the Google
 Groups
  Android Developers group.
  To unsubscribe from this group and stop receiving emails from it, send
 an
  email to android-developers+**unsubscr...@googlegroups.com.
  For more options, visit 
  https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out.

 
 

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






-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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




Re: [android-developers] Make green usb wire high

2013-04-29 Thread Fred Niggle
Hi,
If your after a simple hookup for a personal project then id recommend
using the headset to route an audio tone to your nand gate circuit.
Another option is to use the vibrate class and connect to the vibrate motor
connections, however due to the multilayer nature of the pcb inside the
devices id recommend using conductive epoxy resin rather than attempt to
solder!
If your professional, then i suggest looking at along the lines of the IOIO
board, PIC chips, etc.
USB signal decoding with pure hardware is very problematic to say the
least, but thats not to say it cant be done.


On 26 April 2013 23:26, Adam Hale adamsamuelh...@gmail.com wrote:

  I'm trying to integrate an app with some hardware I'm making and I need
 to be able to send a signal to a NAND  gate through the usb  wire. How can
 I make this happen?

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





-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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




[android-developers] How to wake the device with wired headset play/pause button press

2013-04-21 Thread Fred Niggle
Before i begin : I have spent a lot of time trying to get my 2.1 device to
wake from sleep when i press the play/pause button on the wired headset
(the standard one that comes shipped with most phones)

I have an intent filter that collects the event IF the activity is
displayed on the 'awakened' device, but no when the device is in sleep.

if i use wakelock to keep the screen on , then naturally, the battery is
hammered, so the question is this:L

How can i register a wakelock for the headset action?

Thanks for any input folks,
Fred

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




Re: [android-developers]

2013-04-10 Thread Fred Niggle
First idea:

use ggogle and learn from tutorials and examples.




On 10 April 2013 09:54, Siva Kumar j.sivakumar...@gmail.com wrote:

 Dear All,

   How to run J2ME Jad/Jar in android device.
   All are welcome to give their ideas

 --
 *Thanks  Regards,
 SIVAKUMAR.J http://stackoverflow.com/users/385138/sivakumar-j
 *

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






-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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




Re: [android-developers] Google spreadsheet workaround

2013-02-03 Thread Fred Niggle
yes, install dropbox or other sync-able remote storage software on both
desktop and android, then open the spreadsheet with a suitable android app.

Your mileage will vary depending on spreadsheet suit used to create the
spreadsheet, and how much formating is used.
In some cases it is viable to 'port' a copy to a different format for
experimentation.


On 3 February 2013 16:59, leftcont...@gmail.com leftcont...@gmail.comwrote:

 http://support.google.com/drive/bin/answer.py?hl=enanswer=2761244

 Are there any known workarounds to having charts on my google drive
 spreadsheet display on android?

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






-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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




Re: [android-developers] Google spreadsheet workaround

2013-02-03 Thread Fred Niggle
On 4 February 2013 00:15, Fred Niggle fred.nig...@googlemail.com wrote:

 yes, install dropbox or other sync-able remote storage software on both
 desktop and android, then open the spreadsheet with a suitable android app.

 Your mileage will vary depending on spreadsheet suit used to create the
 spreadsheet, and how much formating is used.
 In some cases it is viable to 'port' a copy to a different format for
 experimentation.


*** Sorry forgot to copy this part into my reply:
To obtain graphs that are up to date there are scripts that can capture the
chart as an image file, so the chart can be viewed on the android device.
For windows there is autoitscript and other, and for linux
(ubuntu,debian,rPi,etc) there is xdotool.
I'd like to know of other ways.

Regards,
Fred



 On 3 February 2013 16:59, leftcont...@gmail.com leftcont...@gmail.comwrote:

 http://support.google.com/drive/bin/answer.py?hl=enanswer=2761244

 Are there any known workarounds to having charts on my google drive
 spreadsheet display on android?

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






 --
 Sent from an Ubuntu Desktop.

 Ubuntu Speech 
 inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
  now available on Google Play, along with Magnetic
 Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
 .




-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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




Re: [android-developers] How can I connect my Samsung Galaxy S Blaze to my Computer for testing?

2013-01-10 Thread Fred Niggle
hello,
a simple google search will lead you to the many tutorial that will guide
you to your answers,

best regards,
Fred


On 7 January 2013 20:09, Taylor Ringo taylorri...@gmail.com wrote:

 Hi I'm to mobile development(Android is my first platform), and I've been
 having trouble connecting my device for testing. So can someone explain to
 me in basic terms how to connect my android phone for Testing? I can't get
 my drivers installed and I don't know how to work the ADB

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




-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 detect input trough the audio jack?

2012-12-17 Thread Fred Niggle
Hello,

Yes this is possible.

First read here:
http://developer.android.com/reference/android/content/Intent.html#ACTION_HEADSET_PLUG


code samples are here :
http://www.gauntface.co.uk/blog/2010/04/14/using-android-headset-buttons-earphone-buttons/

Hope this help,
Fred

On 16 December 2012 22:50, Mark Murphy mmur...@commonsware.com wrote:

 I would assume that AudioRecord would handle that scenario, though I
 have not tried it:

 http://developer.android.com/reference/android/media/AudioRecord.html

 On Sun, Dec 16, 2012 at 5:40 PM, Caio Ricci caiaori...@gmail.com wrote:
  I've done a lot of research on this, but I still don't understand it
  completely. I want to use the audio jack to detect if this pedal, ( or
 any
  other of these on off pedals) is pressed or not. I tried it on my Linux
  machine and simply reading the sound card file I was able to see some
 input.
  But I don't know how to do that on the device. I assume that it's
 possible
  because i see things like the square reader(https://squareup.com/reader)
 and
  what i'm aiming for is much simpler than that.
 
  I just don't know how to begin. Any suggestions?
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

 Här kan du ställa och svara på frågor om applikationsutveckling på
 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




-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-17 Thread Fred Niggle
I am wondering why you are trying to maintain an idle connection?

Usually when my apps send data the socket connection is made, then the data
is sent, then the socket is closed.
This is the normal way of operating.

Regards,
Fred

On 17 December 2012 16:34, Goncalo Oliveira gonc...@minkan.net wrote:

 What if I don't have root access? Is there anything else I can do?


 On 17 December 2012 16:08, Robert Greenwalt rgreenw...@google.com wrote:

 If you have root you can alter the global settings database
 (DATA_STALL_ALARM_AGRESSIVE_DELAY_IN_MS,
 DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS).


 On Mon, Dec 17, 2012 at 4:22 AM, Goncalo Oliveira gonc...@minkan.netwrote:

 Robert, isn't there any way to override the data stall detector
 behavior? or at least change the default value?


 On 17 December 2012 12:02, Goncalo Oliveira gonc...@minkan.net wrote:

 Thanks again for the feedback Robert.

 I'm sending a heartbeat package but an answer is given. Though, I'm
 only sending the heartbeat every 30 minutes. Well, currently I'm doing less
 than that, but only as a workaround for this problem. For the test in case,
 I'm not even sending data. I'm just connecting and listening.
 More information that might be relevant - I ran the test again, but
 this time I'm not even making a connection. I'm just listening to the
 connectivity changes - I was suspecting someone else was causing this.
 Turns out that the same behavior occurs, so someone else is causing this?

 12-17 11:50:27.951   374   374 D GSM : [GsmDCT] cleanUpConnection:
 tearDown=true reason=pdpReset
 12-17 11:50:27.951   374   374 D GSM : [GsmDCT] cleanUpConnection:
 tearing down
 12-17 11:50:27.951   374  1486 D GSM : [GsmDC-1] DcActiveState
 msg.what=EVENT_DISCONNECT RefCount=0
 12-17 11:50:27.951   374  1486 D GSM : [GsmDC-1] tearDownData radio
 is on, call deactivateDataCall
 12-17 11:50:27.951   374  1486 D RILJ: [1903] DEACTIVATE_DATA_CALL
 1 2
 12-17 11:50:27.959   374   374 D GSM : [ApnContext] setState:
 DISCONNECTING for type default, previous state:CONNECTED
 12-17 11:50:27.959   374   374 D GSM : [ApnContext] set reason as
 pdpReset, for type mms,current state IDLE
 12-17 11:50:27.959   374   374 D GSM : [GsmDCT] cleanUpConnection:
 tearDown=true reason=pdpReset
 12-17 11:50:27.959   374   374 D GSM : [ApnContext] setState: IDLE
 for type mms, previous state:IDLE
 12-17 11:50:27.959   374   374 D GSM : [GsmDCT]
 isDataPossible(mms): possible=true isDataAllowed=true apnTypePossible=true
 apnContextisEnabled=false apnContextState()=IDLE
 12-17 11:50:27.959   374   374 D GSM : [GsmDCT] get active apn
 string for type:mms
 12-17 11:50:27.959   374   374 D GSM : [ApnContext] set reason as
 pdpReset, for type cbs,current state IDLE
 12-17 11:50:27.959   374   374 D GSM : [GsmDCT] cleanUpConnection:
 tearDown=true reason=pdpReset
 12-17 11:50:27.959   374   374 D GSM : [ApnContext] setState: IDLE
 for type cbs, previous state:IDLE
 12-17 11:50:27.959   374   374 D GSM : [GsmDCT]
 isDataPossible(cbs): possible=true isDataAllowed=true apnTypePossible=true
 apnContextisEnabled=false apnContextState()=IDLE
 12-17 11:50:27.959   374   374 D GSM : [GsmDCT] get active apn
 string for type:cbs
 12-17 11:50:27.959   374   374 D GSM : [GsmDCT] stopNetStatPoll
 12-17 11:50:28.006   374   374 D GSM : [GsmDCT] handleMessage msg={
 what=270368 when=-1ms arg1=1 }
 12-17 11:50:28.576   111   209 D RILClient: processUnsolicited():
 resp_id (11010), len(59)
 12-17 11:50:28.576   115   194 D RILClient: processUnsolicited():
 resp_id (11010), len(59)
 12-17 11:50:28.576   756   784 D RILS: Executing Am broadcast -a
 android.intent.action.PROXIMITY_CP --es cmd on
 12-17 11:50:30.576   374   496 D RILJ: [1903] DEACTIVATE_DATA_CALL

 Cheers


 On 14 December 2012 19:58, Robert Greenwalt rgreenw...@google.comwrote:

 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 
 rgreenw...@google.com 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 

Re: [android-developers] shoeboxed? wtf?

2012-12-17 Thread Fred Niggle
+1, now i filter out emails from that domain :)

On 17 December 2012 16:32, TreKing treking...@gmail.com wrote:

 On Mon, Dec 17, 2012 at 2:59 AM, Piren gpi...@gmail.com wrote:

 Am i the only one that keeps getting an email from some site named
 Shoeboxed every time i post to this group?


 Nope...


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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




-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-17 Thread Fred Niggle
Well, just to recap:

You know that android is not supposed to keep an idle connection open for
an extended period.
Also you have declined the option to  use of a heartbeat to keep the
connection open.

You also know that GCM (C2DM) have a way of keeping in touch.

At this point the main(only?) route to pursue is to look over the GCM libs
from google and see how they do it.

Best regards,
Fred

On 17 December 2012 16:49, Goncalo Oliveira gonc...@minkan.net wrote:

 Fred,

 I do understand that this is not a standard for most android apps.
 Therefore, there are a number of scenarios, like Mark pointed out. In this
 case, the connection is also used for data pushing. Polling would be much
 simpler, but it does not fit the required scenario.


 On 17 December 2012 16:43, Mark Murphy mmur...@commonsware.com wrote:

 On Mon, Dec 17, 2012 at 11:37 AM, Fred Niggle
 fred.nig...@googlemail.com wrote:
  I am wondering why you are trying to maintain an idle connection?

 You would do this for any sort of push delivery from the server:
 standard push notifications, VOIP for incoming calls, etc.

 So, for example, C2DM used to have this sort of heartbeat logic, and I
 presume GCM does too.

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




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




-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-16 Thread Fred Niggle
erm VPN?

On 16 December 2012 17:29, TreKing treking...@gmail.com wrote:

 On Sun, Dec 16, 2012 at 6:43 AM, Piren gpi...@gmail.com wrote:

 If its already on SVN, all you need to do to access it on the Laptop is
 just Checkout the code and thats it... then any update can be commited or
 merged easily (and still be available offline).


 My Repo is local and lives on my PC, not in the cloud. I can't commit,
 merge, or sync to it from the laptop if it's not connected to my home
 network. So the repo becomes useless when I'm siting at an airport. Hence
 making the repo itself a shared folder which can be accessed offline on the
 laptop. Then I can work to my hearts content remotely and sync back up when
 I get home. Make sense?

 Unless you know of a way of connecting to a repo on a PC from a laptop
 without being on the same network that I'm not aware of?


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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




-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-16 Thread Fred Niggle
ah, that makes more sense

On 16 December 2012 17:39, TreKing treking...@gmail.com wrote:

 On Sun, Dec 16, 2012 at 11:31 AM, Fred Niggle 
 fred.nig...@googlemail.comwrote:

 erm VPN?


 LOL - yeah. Should have added that does not require a network connection.



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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




-- 
Sent from an Ubuntu Desktop.

Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 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 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: android phones and bluetooth

2012-12-06 Thread Fred Niggle
Maybe he wants to log his position while driving... there are lots of
uses...

On 6 December 2012 15:19, bob b...@coolfone.comze.com wrote:

 What's the point of connecting to a GPS by Bluetooth when almost all
 Androids have GPS already?



 On Wednesday, December 5, 2012 7:19:30 PM UTC-6, dashman wrote:

 do most android phones support the bluetooth serial profile.

 specifically - gps data access.

 how would i know whether the phone supports it.

 i.e. look at the specs for the bluetooth version??


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Automate update every x secs get data from myUrl

2012-11-22 Thread Fred Niggle
No your not, i just ingore/mute him.

On 22 November 2012 08:46, Piren gpi...@gmail.com wrote:

 Am i the only one noticing that he keeps getting people to do pretty much
 all the programming he needs, step by step?


 On Thursday, November 22, 2012 1:40:42 AM UTC+2, TreKing wrote:

 On Wed, Nov 21, 2012 at 12:40 PM, Antonis Kanaris ant...@in.gr wrote:

 i want to convert to automatic update.How i make this?


 In a word: AlarmManager.

 --**--**
 --**---
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Am I at the right place?

2012-11-19 Thread Fred Niggle
Please check out android-...@googlegroups.com.

Hope this helps,
Fred

On 16 November 2012 20:51, Djarn Nicholas dnicholas...@gmail.com wrote:

 I'm interested in getting android on my devices, I have never done it
 before, I know programming etc.

 I am looking for the best forum that is useful for people wanting to get
 the actual OS on their devices, not the APPS.

 Is this the right place or can someone kindly direct me to a good spot?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] need client-server example

2012-11-19 Thread Fred Niggle
Not wishing to appear rude, but you'll find the answers to those question
via a simple google search: there are lots of tutorials/examples out there.

On 15 November 2012 12:41, Mohd Arshi Khan arshikha...@gmail.com wrote:

 hello


1. I need a client server example,
2. I am using eclipse and i have tomcat7.0 and wamp server in my PC,
3. I have a device (samsung mobile) that i want to use as
server/client and emulator(AVD) as client/server.
4. How to create a server side app in eclipse? please explain with all
steps.
5. How test / run app?

 Thank you

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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

2012-11-16 Thread Fred Niggle
adjust gravity of the layout to center...

On 16 November 2012 13:20, Live Happy livehap...@gmail.com wrote:



 I display emoji in EditText using spannable, but the problem is that the
 text appears in the bottom of the emoji picture, not in the middle of it
 (see picture).

 So, how to make it display in the middle?

 [image: Inline image 1]

 EditText
 android:id=@+id/et_tInput
 android:layout_width=0dip
 android:layout_height=match_parent
 android:layout_weight=1
 android:inputType=textCapSentences|textMultiLine
 android:maxLength=2000
 android:maxLines=4
 android:textColor=@android:color/black
 android:textCursorDrawable=@drawable/black_cursor/

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

Re: [android-developers] Text display in the bottom of emoji

2012-11-16 Thread Fred Niggle
android:gravity=center_horizontal

IF you find that the alignment will not work as you desire, then the next
move would be to use a table row and set the gravity for the table row -
with the use of either gravity and/or padding you will get the desired
effect.

Regards,
Fred

On 16 November 2012 14:03, Live Happy livehap...@gmail.com wrote:

 i tried it but it not work


 On Fri, Nov 16, 2012 at 3:45 PM, Fred Niggle 
 fred.nig...@googlemail.comwrote:

 adjust gravity of the layout to center...

 On 16 November 2012 13:20, Live Happy livehap...@gmail.com wrote:



 I display emoji in EditText using spannable, but the problem is that
 the text appears in the bottom of the emoji picture, not in the middle of
 it (see picture).

 So, how to make it display in the middle?

 [image: Inline image 1]

 EditText
 android:id=@+id/et_tInput
 android:layout_width=0dip
 android:layout_height=match_parent
 android:layout_weight=1
 android:inputType=textCapSentences|textMultiLine
 android:maxLength=2000
 android:maxLines=4
 android:textColor=@android:color/black
 android:textCursorDrawable=@drawable/black_cursor/

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
 inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
  now available on Google Play, along with Magnetic
 Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
 .

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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

Re: [android-developers] Re: Google cancelled this order. Reason: Other

2012-09-29 Thread Fred Niggle
I think this is a glitch on Googles side, they should be aware of it by now.
Perhaps one of Googles competitors is trying to cause problems with a
purchase/cancel campaign (i've seen it before).

Regards,
Fred

On 28 September 2012 18:22, Nathan nathan.d.mel...@gmail.com wrote:



 On Friday, September 28, 2012 9:18:21 AM UTC-7, Kostya Vasilyev wrote:



 This, I believe, can be useful sometimes:

 https://wallet.google.com/**manage/ https://wallet.google.com/manage/

 I had one user report that removing the credit card from his profile
 there, then adding it back, made his next attempt at ordering succeed.

 -- K


 I'll start with that and hope they fix what appears to be a systematic
 problem. Orders are up but successful orders are down.

 Nathan

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

2012-09-22 Thread Fred Niggle
univercity? really? Really?

On 22 September 2012 09:51, vaggos von karajan vaggo...@otenet.gr wrote:

 I have installed the application to my phone (ver 2.3.3) but when i'm
 calling someone nothing happens the app does not sending requests to my
 sip server (trixbox)..

 Although i can receive calls fine..

 Can anyboby help me...??? It is a project which i must finish for
 univercity purposes

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

Re: [android-developers] [android bind to AccessibilityService]

2012-09-17 Thread Fred Niggle
Try searching with google - you have to facilitate your own learning.

On 17 September 2012 17:17, Alvaro Enseat alvaro.ense...@gmail.com wrote:

 I have created an android service, which is an AccessibilityService. From
 my activity, I would like to bind to that service. Because i need to send
 information service to activity . I need example code please.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Explain the goemetrial concept behind this, please!!

2012-09-13 Thread Fred Niggle
Your post if very vague, at a guess i think your trying to ask someone to
explain the concepts of matrix's and image manipulation, and that is true
that this mailing list is not the place for such a question.

Regards,
Fred

On 13 September 2012 10:54, Andrea Pietroni andrea.pietr...@gmail.comwrote:

 Negative scale numbers mirror the image. It looks like it's drawing the
 picture half scaled 4 times:
 - first time at top left
 - then at its right, mirroring accordingly
 - etc

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] USSD request and response

2012-09-09 Thread Fred Niggle
Unstructured Supplementary Service Data (USSD) is a protocol used by GSM
cellular telephones to communicate with the service provider's computers.

USSD is not yet supported on Android. There is a feature request for it:
http://code.google.com/p/android/issues/detail?id=1285

Regards,
Fred

On 7 September 2012 14:59, gsiewruk gsiew...@gmail.com wrote:

 Hello,
 I work for telecommunication provider, and i'm creating a service that use
 USSD it works like - user send USSD code like (*xxx*xx*#) and
 there is action on server for every code that come in. Now i want to put
 string in message ( part of string) in almost every phone it is
 impossible to enter chracters in dialer. I was thinking about writing an
 android app which will send USSD requests and here is the question i want
 to ask you:

 Is there any API that allow me to send USSD message?


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: wife manager in android

2012-09-06 Thread Fred Niggle
I eagerly await the Ex-Wife manager :)

On 6 September 2012 14:02, Justin Anderson magouyaw...@gmail.com wrote:

 I wonder if the WifeManager class is used in this program:
 http://www.jamesshuggins.com/h/hum1/girl_to_wife.htm

 If that is the case then maybe you should consider the GirlfriendManager
 class instead... :-)

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Thu, Sep 6, 2012 at 4:46 AM, Calin Perebiceanu 
 calin.perebice...@gmail.com wrote:

 WifeManger


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 disable internet data traffic?

2012-09-03 Thread Fred Niggle
Well, i simply did a google search and found this:
http://stackoverflow.com/questions/3644144/how-to-disable-mobile-data-on-android

that should do it!

On 3 September 2012 12:02, ROBERTO ANGUITA MARTIN 
roberto.anguitamar...@gmail.com wrote:

 Hi
 How i can disable all data traffic in App for all phone? I'm try change
 APN , but the data transfer, has a reset and continue
 Kind Regards
 Roberto

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Annoying shutter click undermines scientific research.

2012-09-02 Thread Fred Niggle
IF all else fails : put a plug of blu-tack or similar firmly into the hole
the sounds comes from... it solved the proplem for myself, and its easy to
remove with a toothpick !

On 2 September 2012 22:02, Jeffrey Peacock jeffp.ea...@gmail.com wrote:


 I am involved in a project to use camera enabled Android devices to detect
 cosmic ray events (
 http://www.distributedsensorweb.org/wiki/index.php/DECO).  It is enjoying
 some modest funding from the American Physics Society and interest from
 Fermi Labs and Standford Univ.

 The intent of the app is to run while the phone is plugged in and
 charging, like while the user is sleeping.  As such the shutter sound must
 be defeated.  In fact, even if you were running it on your desk while
 working the shutter sound is so annoying as to inspire you to reach for a
 hammer.

 For most phones we have been able to make use of the mechanisms seen in
 previous posts:  mute streams and/or set volume to 0.  However, for a
 recent phone, the LG Optimus Elite (were using low cost Virgin Mobile
 devices as some of the test devices to reduce costs), none of the old
 tricks work:  the shutter sound always plays.  BUT!!!  I can download a
 camera app from the Google Play -- aptly named SilentCamera -- which will
 take pictures, well, silently.  And whatever solution it is employing is
 not using the MODIFY_AUDIO_SETTINGS permission.

 I have already burned several hours researching and trying a variety of
 things.  As I've indicated I have tried muting and setting volume to 0 for
 all streams, just before the camera.takePicture() call.  And have tried to
 do the same in onShutter().  What I have learned is (according to the logs)
 that the camera is playing the shutter sound BEFORE the onShutter() call.

 Obviously, I am hoping someone on the list can help.

 Thanks.

 /J

 Note:  The LG Optimus Elite is running 2.3.7

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Annoying shutter click undermines scientific research.

2012-09-02 Thread Fred Niggle
After reading this :
http://stackoverflow.com/questions/10383083/how-to-mute-camera-shutter-sound-on-android-phone

it seems you can best manage this by coding as best you can to disable the
shutter click, and perhaps providing a help screen of tips that will tip
the users on how to manage the problem themselves.

Personally, if I wanted such an app, and my device was noisy, I would find
a physical means to mute it...

On 2 September 2012 23:45, Kristopher Micinski krismicin...@gmail.comwrote:

 For that specific device, I'm guessing not, this sounds fairly
 targeted and (knowing most of the API) nothing stands out to me as a
 red flag about how it's done, I'd mess aroudn with the app for a while
 and decompile it if I couldn't figure it out..

 kris

 On Sun, Sep 2, 2012 at 5:42 PM, Jeffrey Peacock jeffp.ea...@gmail.com
 wrote:
 
  Each of those is possible.  Going through the front door channel might
  invoke more resistance as it would then be a kind-of official reply.  I
  was hoping s/he might be on this list.
 
  I'm also betting that someone here knows the answer.
 
  /J
 
 
  On 09/02/2012 02:49 PM, Kristopher Micinski wrote:
 
  Jeff,
 
  In the worst case scenario, you could just disassemble the app and
  reverse engineer it...
 
  In the best case scenario you should email the developer and ask him
  how he's doing it, citing your research as why you need it (providing
  proof you won't rip off his app, presumably)..
 
  kris
 
  On Sun, Sep 2, 2012 at 4:02 PM, Jeffrey Peacock jeffp.ea...@gmail.com
  wrote:
 
  I am involved in a project to use camera enabled Android devices to
  detect
  cosmic ray events (
  http://www.distributedsensorweb.org/wiki/index.php/DECO).  It is
 enjoying
  some modest funding from the American Physics Society and interest from
  Fermi Labs and Standford Univ.
 
  The intent of the app is to run while the phone is plugged in and
  charging,
  like while the user is sleeping.  As such the shutter sound must be
  defeated.  In fact, even if you were running it on your desk while
  working
  the shutter sound is so annoying as to inspire you to reach for a
 hammer.
 
  For most phones we have been able to make use of the mechanisms seen in
  previous posts:  mute streams and/or set volume to 0.  However, for a
  recent
  phone, the LG Optimus Elite (were using low cost Virgin Mobile devices
 as
  some of the test devices to reduce costs), none of the old tricks work:
  the
  shutter sound always plays.  BUT!!!  I can download a camera app from
 the
  Google Play -- aptly named SilentCamera -- which will take pictures,
  well,
  silently.  And whatever solution it is employing is not using the
  MODIFY_AUDIO_SETTINGS permission.
 
  I have already burned several hours researching and trying a variety of
  things.  As I've indicated I have tried muting and setting volume to 0
  for
  all streams, just before the camera.takePicture() call.  And have tried
  to
  do the same in onShutter().  What I have learned is (according to the
  logs)
  that the camera is playing the shutter sound BEFORE the onShutter()
 call.
 
  Obviously, I am hoping someone on the list can help.
 
  Thanks.
 
  /J
 
  Note:  The LG Optimus Elite is running 2.3.7
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Unable to move 3rd party apps to external sd card in Samsung Galaxy S3

2012-09-02 Thread Fred Niggle
Sorry, but this has nothing to do with Android Development.

On 31 August 2012 12:15, balaji velmurugan balaji.velmuru...@gmail.comwrote:

 Hi,
 I recently purchased Samsung Galaxy S3. i downloaded games and apps from
 play store and when i tried to move it to my external sd card. Am unable to
 move any of my 3rd party applications from phone memory to external sd. I
 have checked the application apk file and the install location is set as
 auto, still am not able to move.

 I have contacted samsung customer support and they updated me that moving
 apps to external sd card is an additional feature provided by samsung and
 the same is not provided to Samsung Galaxy S3. I just wanted to confirm
 that it is a core android feature?

 Thanks
 Balaji.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Stopping ADB server failed (code -1).

2012-09-02 Thread Fred Niggle
ADB (android debug bridge) is used for connecting a physical android device
to your computer for debugging apps - if your content to use the emulator
then this is no problem, else google the error and you'll find the solution
:)

On 2 September 2012 19:22, andromeda623 andromeda...@gmail.com wrote:

 I have another computer that I was Downloading and Installing the packages
 and some point it stop, adding the same to my other PC, and It work but
 this is what the logg says:
 Done loading packages.
 Preparing to install archives
 Downloading Android SDK Platform-tools, revision 14
 Installing Android SDK Platform-tools, revision 14
 Stopping ADB server failed (code -1).
 Installed Android SDK Platform-tools, revision 14
 Downloading Documentation for Android SDK, API 16, revision 2
 Installing Documentation for Android SDK, API 16, revision 2

 Should I worry about this??

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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

2012-09-02 Thread Fred Niggle
you need to google for button.settext...

On 31 August 2012 12:37, Madhuri Cherukuri ch.madhuri...@gmail.com wrote:

 Hello folks,

 I need a help me from you guys.

 ex:  Game type

 here  and  are two buttons and game type is text view,when i click
 on  button the text should be replace by another text like AI.
 this should be done in custom dialog box.

 please help me out.

 Thanks  Regards
 Ch.Madhuri


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

Re: [android-developers] ADT Plugin Installation

2012-09-02 Thread Fred Niggle
Since you have working development environment working fine on Ubuntu, why
bother with windows?

On 1 September 2012 16:07, Ryan Kelso deathmat...@gmail.com wrote:

 I am currently beginning a course on Android Application Development at my
 local community college, and have setup Eclipse with the ADT Plugin on my
 laptop (running Ubuntu Linux 12.04) with no problems. I am now attempting
 to set it up on my Windows 7 desktop and am having issues installing the
 ADT Plugin. I went to the Eclipse website but was referred back to here.
 The problem: When I do Install New Software and use https://
 dl-ssl.google.com/android/eclipse/ it will begin, hit 26% then after a
 period of time go to 49%, but after having waited over 25minutes with no
 change I eventually cancel and try again. After having done this a number
 of times I finally resolved to post here for a solution. I have tried
 making program exceptions in the firewall, gone into the DMZ to try getting
 things running, turning off my firewall, using HTTP instead of HTTPS.
 Nothing changes. Any ideas? Using Eclipse 4.2 Juno, Windows 7 64-bit.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Little Problem with converting a InputStream into a String.

2012-09-02 Thread Fred Niggle
You need to learn about debugging...

On 2 September 2012 21:06, TheSky mhenke...@googlemail.com wrote:

 Hey I am new to Java and developing apps for android.

 I tried without success to convert a InputStream into a String.

 public String Request(String url)
 {
 InputStream content = null;
 try {
 HttpGet httpGet = new HttpGet(url);
 HttpClient httpclient = new DefaultHttpClient();
 // Execute HTTP Get Request
 HttpResponse response = httpclient.execute(httpGet);
 content = response.getEntity().getContent();
 } catch (Exception e) {
 //handle the exception !
 }

 try {
 return convert(content);
 } catch (IOException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 return e.getMessage();
 }
 }

 public String convert(InputStream is) throws IOException
 {
 BufferedReader reader = new BufferedReader(new
 InputStreamReader(is));
 StringBuilder sb = new StringBuilder();
 String line = null;

 while ((line = reader.readLine()) != null) {
 sb.append(line);
 }

 is.close();

 return sb.toString();
 }

 If i use this Code my App crashes. The Website only contains the word
 Test, nothing more.

 I really hope you are able to help me.

 Thanks in advance.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: How Can I pass an ArrayList do another Activity?

2012-09-01 Thread Fred Niggle
a quick google search found this:
http://stackoverflow.com/questions/4030115/how-to-pass-arraylist-using-putstringarraylistextra

How did you NOT find it?


On 1 September 2012 16:51, dnkoutso dnkou...@gmail.com wrote:

 Typically when you are dealing with the same process it seems useless and
 slow to serialize (or parcel) your ArrayList between activities.I would use
 a singleton where I put the data in there and grab it from the next
 Activity.

 On Friday, August 31, 2012 12:59:51 PM UTC-7, Guilherme Bernardi wrote:

 Hi everyone.

 I'm developing an application that have a composition case.

 In the first activity there is an ListView, some fields and a button that
 call another activity. This activity will set an ArrayList and then pass to
 first activity the array it appears in the listview...

 Can anyone help me?

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Positive reviews being sold in spam email

2012-08-30 Thread Fred Niggle
Save your time and energy: ignore them.

On 29 August 2012 14:46, Rich Woods richwo...@gmail.com wrote:

 Hello Android developer community,

 I've just received an email from a company that I won't name here that is 
 offering
 positive Play store reviews for sale.  This service perverts the review
 system on the Play store and I'd like to report the business to Google.
  What would be the best way to report this?

 Rich Woods
 Exobyte games

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Power on phone when external power source becomes available

2012-08-24 Thread Fred Niggle
One quick-but-dirty way would be to have the androids make a notification
sound, for example a 100Hz tone (use audacity to generate the sound file),
and have an headset lead connected to the arduino input pin so  the
firmware can simply wait for the tone and connect the charger...

Best regards,
Fred

On 24 August 2012 11:51, Mark Murphy mmur...@commonsware.com wrote:

 Questions regarding modifying the Android OS and hardware to
 accomplish this is out of scope for this list. This list is for
 developing applications with the Android SDK.

 On Thu, Aug 23, 2012 at 8:32 AM, Sacha van Tienhoven
 sachavantienho...@gmail.com wrote:
  This problem is occurring on a research project:
 
  Hardware setup:
  I have a Samsung GT-S5380 phone connected to an Arduino board through
 which
  it is getting charged. The Arduino board is connected to a battery. The
  battery requires to be charged regularly.
 
  The trail participants forget to charge the battery, because of various
  reasons (sick, holiday, etc.)
 
  As a result the battery goes flat with participants that don't charge the
  battery in time, the phone (being switched on) runs out of power at some
  stage as well after the battery connected to the Arduino board has gone
  flat. As a result the Samsung GT-5380 phone shutsdown, as no power is
  available at some point in time.
 
  Now, when the battery connected to the Arduino board is being recharged
 and
  reconnected to the Arduino board (the battery requires to be charged by
  removing its connection from the Arduino board, using an external docking
  station, reconnect to Arduino board after being charged) I want the
 Android
  phone to automatically boot android (as it has a power source connected
  again).
 
  The phone is using Rom version CyanogenMod 7 with google apps version
  20110828.
 
  Any suggestions?
 
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

 Android Training in NYC: http://marakana.com/training/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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

2012-08-11 Thread Fred Niggle
A good effort.
Now you need to look into debugging to solve your problem.


On 11 August 2012 17:47, Ehsan Sadeghi esade...@gmail.com wrote:

 I create an activity
   activity
 android:name=.GetResponse

android:label=@string/title_activity_main
 android:launchMode=singleTask
 intent-filter
 action android:name=ir.smspeik.sms.getresponse /

 category android:name=android.intent.category.DEFAULT /
 /intent-filter
 /activity
that starts when a sms received. i write this code to
 display sms but nothing is shown :
 public class GetResponse extends Activity{
 IntentFilter intentFilter;
 private BroadcastReceiver intentReceiver = new BroadcastReceiver() {
 @Override
 public void onReceive(Context context, Intent intent) {
 //---display the SMS received in the TextView---
 //TextView SMSes = (TextView) findViewById(R.id.textView1);
 Toast.makeText(context, intent.getExtras().getString(sms) +
 Ehsan,
 Toast.LENGTH_SHORT).show();
 String[] sms = intent.getExtras().getString(sms).split(-);
 EditText smsNo = (EditText) findViewById(R.id.txtSmsNo);
 smsNo.setText(sms[0]);
 Toast.makeText(context,sms[0],
 Toast.LENGTH_SHORT).show();
 TextView smsBody = (TextView) findViewById(R.id.lblSmsBody);
 smsBody.setText(sms[1]);
 Toast.makeText(context,sms[1],Toast.LENGTH_SHORT).show();
 }
 };

  @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.getresponse);
   intentFilter = new IntentFilter();
 intentFilter.addAction(SMS_RECEIVED_ACTION);

 //---register the receiver---
 registerReceiver(intentReceiver, intentFilter);
 }
 }

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Accessing Android Transceiver Info.

2012-07-20 Thread Fred Niggle
Speaking from experience of attempting to develop an ultrasonic measurement
app, this is not possible.

Sonar is a marine application and it is simply not possible with a mobile
phone, not lest because mobile phones do not have a submersible active
sonar device, but also because surface noise generated by mobile phones
cannot penetrate deep enough into the water to be of any use.

Sorry to be the bearer of bad news, but I (and others) have tried, and its
fruitless.

Regards,
Fred

On 20 July 2012 04:16, Be Tox bill.tak...@gmail.com wrote:

 Does anyone know how to access the transceiver information (MIB?) on
 an Android phone in order to create a Sonar type App?

 Kind Regards, Be Tox

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

2012-07-07 Thread Fred Niggle
Hi everybody,
   can some one tell me that how to do image morphing in android,is it
possible or not if yes then how ?

*Yes it is possible.*

 pls help me.

*First* use google, locate some java programming tutorials and work through
them, *then* when you find something problematic post here with your code
and logcat dumps to gain guidance or advice.

*If* *any of the above is unclear please google search about.*

Best regards,
Fred

On 7 July 2012 20:21, Sadhna Upadhyay sadhna.braah...@gmail.com wrote:

 Hi everybody,
can some one tell me that how to do image morphing in android,is it
 possible or not if yes then how ? pls help me.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

2012-07-07 Thread Fred Niggle
Did you search google?

On 7 July 2012 20:19, Sadhna Upadhyay sadhna.braah...@gmail.com wrote:

 Hi everybody,
 can some one tell me how to add volume controller in android
 as it (volume controller)is in youtube.please help me if any one has any
 idea about this.

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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread Fred Niggle
as long as the .apk has the same name, i.e. com.my.app, then you wont lose
the preferences and database.

If the.apk is different then you will need to consider how to export the
sharedprefs/db from the current version (an update), to the sdcard, and
have an import function in the newer version.

Hope this helps,
Fred

On 30 June 2012 10:01, Mystique joven.ch...@gmail.com wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and use
 with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new app
 or how is it been normally done?

 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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread Fred Niggle
Hello,
I have never tried to publish to identical .apk's, but I do not think
google play will not allow 2 identical app names.

If I am wrong then I hope someone else will step in and correct me.

On 30 June 2012 11:08, Mystique joven.ch...@gmail.com wrote:

 Hi Fred,

 That is good to know.
 So Google play don't care if 2 Apps has the same apk/com.my.app is that
 right?

 Thanks.

 On Saturday, 30 June 2012 17:22:37 UTC+8, Fred Niggle wrote:

 as long as the .apk has the same name, i.e. com.my.app, then you wont
 lose the preferences and database.

 If the.apk is different then you will need to consider how to export the
 sharedprefs/db from the current version (an update), to the sdcard, and
 have an import function in the newer version.

 Hope this helps,
 Fred

 On 30 June 2012 10:01, Mystique joven.ch...@gmail.com wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and
 use with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new
 app or how is it been normally done?

 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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread Fred Niggle
Hello Raghav,

Thats a great tip about Content Providers!

Regards,
Fred

On 30 June 2012 16:15, Raghav Sood raghavs...@gmail.com wrote:

 Google Play will not allow you do upload two apps with the same package
 name. Due to this, there are only a few ways you can share the content.

 You can use Content Providers to serve it from the free app to the paid
 one.

 You can save it on the SD Card and allow everyone to read it.

 I *think* you can also do something with a shared user id, but I'm not
 sure on this one.

 Thanks


 On Sat, Jun 30, 2012 at 8:33 PM, Fred Niggle 
 fred.nig...@googlemail.comwrote:

 Hello,
 I have never tried to publish to identical .apk's, but I do not think
 google play will not allow 2 identical app names.

 If I am wrong then I hope someone else will step in and correct me.


 On 30 June 2012 11:08, Mystique joven.ch...@gmail.com wrote:

 Hi Fred,

 That is good to know.
 So Google play don't care if 2 Apps has the same apk/com.my.app is that
 right?

 Thanks.

 On Saturday, 30 June 2012 17:22:37 UTC+8, Fred Niggle wrote:

 as long as the .apk has the same name, i.e. com.my.app, then you wont
 lose the preferences and database.

 If the.apk is different then you will need to consider how to export
 the sharedprefs/db from the current version (an update), to the sdcard, and
 have an import function in the newer version.

 Hope this helps,
 Fred

 On 30 June 2012 10:01, Mystique joven.ch...@gmail.com wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and
 use with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new
 app or how is it been normally done?

 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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can I open my app with power button?

2012-06-27 Thread Fred Niggle
The best way to achieve this would be making your app start at boot.
Without modifying the firmware of users phone's there would be no way to
having the power button do anything else aside from power the device up.

I hope that if i have missed something here then other will pitch in and
correct me.

Regards,
Fred

On 25 June 2012 18:36, Andrea Fasciglione andreafa...@gmail.com wrote:

 It should be not clear, but how can i open my app with power button?
 I would add this option so in case of emergency a person can press
 (for example) three times the power button and my app opens.
 How can i do this? [I hope it was clear...]

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: getOrientation() method returns bad results

2012-06-27 Thread Fred Niggle
I suggest that you read this : http://en.wikipedia.org/wiki/Gimbal_lock

Although android devices use a electronic equivalent, the same principles
apply.

Regards,
Fred

On 26 June 2012 00:50, axesh ajmera ajmeraax...@gmail.com wrote:



 On Monday, April 23, 2012 10:35:31 AM UTC-7, Lukáš Sztefek wrote:

 I'm creating 3D Compass application.

 I'm using 
 getOrientationhttp://developer.android.com/reference/android/hardware/SensorManager.html#getOrientation%28float%5B%5D,%20float%5B%5D%29
  method
 to get orientation (almost same implementation like 
 herehttp://stackoverflow.com/questions/2963705/using-getrotationmatrix-and-getorientation-in-android-2-1).
 If I place phone on the table it works well, but when top of the phone
 points to the sky, getOrientation starts giving really bad results. It
 gives values for Z axis between 0 to 180 degrees in a few real degrees. Is
 there any way how to suppress this behavior? I created a little 
 videohttp://youtu.be/U1o5TsCKOd0 what
 describes problem (sorry for bad quality). You can download app 
 herehttp://lukassztefek.cz/android/3DCompass.apk.
 No permissions needed.

 Thanks in advance.

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] finding which application uses a port on the android device

2012-06-27 Thread Fred Niggle
I am unsure if i understand you question, it may be that programs
communicating with a server do not need to identify themselves to a server,
they merely send/receive data.

While some programs, such as browsers do identify themselves, this is not
always true.

I would suggest that you practice with a normal server setup, and once you
have a method that works you can begin to port that method for your app.

Regards,
Fred

On 24 June 2012 16:51, Ami Turgman ami.turg...@gmail.com wrote:

 Hi All,


 I have an android native application which hosts a web server inside it.

 I want to know which application makes requests before they are processed
 by my application.

 What I have is the port of the calling application.


 How can I find out which application is using this port?

 I've tried looking for all processes (cat /proc/net/tcp6), but the
 application with the port I have is not listed (on a rooted device it is).


 I need to find a way to find the calling application name on a regular
 device (not rooted).


 Any help is highly appriciated.


 Thanks!

 Ami.

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR

2012-06-27 Thread Fred Niggle
First,please turn your caps lock off, second post your code and we can take
a look (that does not mean you will get any answer, but we will look).

Regards,
Fred

On 24 June 2012 01:39, bradleyclare bradleycl...@gmail.com wrote:

 You probably defined the DisplayMessageActivity outside the original
 application tag in the manifest file.  It should go inside the existing
 application tag.  I made that same mistake the first time going through it.
  Good Luck.

 On Sunday, January 1, 2012 6:44:05 PM UTC-7, Vinayak wrote:

 HI,

 I DEVELOPED MY FIRST APP ON ANDROID IT COMPILES PROPERLY WITHOUT ANY
 ERROR, BUT WHEN I RUN IT IN EMULATOR OR PHONE IT CRASHES.

 CAN ANY ONE HELP ME .

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Need to create loop that will scan barcode until battery of device dies.

2012-06-27 Thread Fred Niggle
Start here:
http://www.coreservlets.com/android-tutorial/

Regards,
Fred

On 25 June 2012 13:23, eddieRay eddiespencer...@yahoo.com wrote:

 I need to create an app that will read a barcode continuously until it
 drains the battery to the point where the device shuts down. I will need to
 collect data of the barcode, the barcode type, the time duration it took to
 scan the barcode, as well as how long the battery lasted.
 I have never coded in Android before so I could use any help I can get.
 Thank you!

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

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

Re: [android-developers] Google Checkout order list

2012-06-17 Thread Fred Niggle
I think you mean merchant account?in any case a simple visit to your
relevant account page will provide you will all the information you need.

On 17 June 2012 09:57, Giuseppe porcelli.giuse...@gmail.com wrote:

 Dear All
 I would like to get info about orders from my Android checkout account.
 Any suggestion?
 thank you

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

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

Re: [android-developers] Google Checkout order list

2012-06-17 Thread Fred Niggle
WHY?

On 17 June 2012 22:13, Giuseppe Porcelli- FINM
porcelli.giuse...@gmail.comwrote:

 I need to do it by code and not by browser.

 ** **

 *Da:* android-developers@googlegroups.com [mailto:
 android-developers@googlegroups.com] *Per conto di *Fred Niggle
 *Inviato:* domenica 17 giugno 2012 22:58
 *A:* android-developers@googlegroups.com
 *Oggetto:* Re: [android-developers] Google Checkout order list

 ** **

 I think you mean merchant account?in any case a simple visit to your
 relevant account page will provide you will all the information you need.*
 ***

 On 17 June 2012 09:57, Giuseppe porcelli.giuse...@gmail.com wrote:

 Dear All

 I would like to get info about orders from my Android checkout account.***
 *

 Any suggestion?

 thank you

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



 

 ** **

 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play
 

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can i Implement the OTA Service in android

2012-06-16 Thread Fred Niggle
Not with out user interaction.

On 16 June 2012 07:40, Rajis rajeshrajar...@gmail.com wrote:

 Hi

 I want make the user to install my app by sending the OTA service message.
 Is it possible in Android? How can i Implement it.
 Thanks

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] parsing html code into andriod page

2012-06-16 Thread Fred Niggle
Since you are new, it is highly recommended that you work through java
programming tutorials - a simple google search will lead you to them.

Regards,
Fred

On 16 June 2012 12:32, prudhvi p n v prudhviraju1...@gmail.com wrote:

 hi guys ,

 i am new to android .can anyone give the example for  parsing an html page
 to android page



 thanks,
 Naga

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Building Forms - Best Approach?

2012-06-11 Thread Fred Niggle
other options are save into a database or a local file and read back later.

On 11 June 2012 19:05, Rpuccini renatoppucc...@gmail.com wrote:

 In case of apps that clients demand many input fields and later
 screens that shows results calculations from these inputs, what is the
 best way to arrange a form with those many fields on a limited screen
 as smartphones' ?

 1) I have thought of many fields straight on the same Activity/
 Fragment
 2) One field per Activity and next/back buttons until the form is
 completed
 3) Table layout (like excel) for displaying results of those inputs
 4) none of the above?

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: need to remove contact from group ..

2012-06-09 Thread Fred Niggle
Does this help?

http://stackoverflow.com/questions/2353015/issue-using-contact-group-delete-on-android

I'm suprised that you did not find this yourself IMO.

Regards,
Fred.

On 9 June 2012 10:58, ala hammad 3la2.7am...@gmail.com wrote:

 thanks for answers..
 asheesh arya your code doesn't work with me :(
 Fred Niggle i can add contact to specific group but i need to delete
 contact from group ..
 please help me ..

 On Saturday, 2 June 2012 15:19:44 UTC+3, ala hammad wrote:

 Hi Guys ,
 i need to remove an contact or more from specific group via coding .. any
 one can help me ??



 thanks for your help ..

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] you-tube video in web view

2012-06-09 Thread Fred Niggle
If you post your code of what you have tried so far you'll get a better
reception to your question.

On 9 June 2012 11:36, vaibs malviya vaibs.malviy...@gmail.com wrote:

 any one know, how to code to play a youtube ifream link in webview

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: need to remove contact from group ..

2012-06-09 Thread Fred Niggle
Its up to you, as much as it is up to me (and everyone else), to solve our
own problems and facilitate our own learning.

Myself and others here are willing to provide guidance but you have to
demonstrate your efforts: In other words post your code and we can take a
look.

On 9 June 2012 12:14, ala hammad 3la2.7am...@gmail.com wrote:

 thanks again for help but i got 0 why ?? i don't know ...
 any idea to remove contact ??

 On Saturday, 2 June 2012 15:19:44 UTC+3, ala hammad wrote:

 Hi Guys ,
 i need to remove an contact or more from specific group via coding .. any
 one can help me ??



 thanks for your help ..

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] you-tube video in web view

2012-06-09 Thread Fred Niggle
Just an observation, but when I tested the URL in StringPlay, appears to be
blank and of 0 seonds length. Try another URL (test on your pc first), and
see if the issue remains.


On 9 June 2012 12:32, vaibs malviya vaibs.malviy...@gmail.com wrote:

 ok here is  my code to opne a youtube video in webview
 plz have a look

 public void onCreate(Bundle savedInstanceState)
 {
  super.onCreate(savedInstanceState);
 setContentView(R.layout.youtubevedio);
 back=(Button) findViewById(R.id.back);
  myWebView = (WebView) findViewById(R.id.web);
  myWebView.getSettings().setJavaScriptEnabled(true);
  myWebView.getSettings().setPluginState(PluginState.ON);
 myWebView.getSettings().setLoadWithOverviewMode(true);
  myWebView.getSettings().setPluginsEnabled(true);
 myWebView.getSettings().setUseWideViewPort(true);
  myWebView.getSettings().setSaveFormData(true);
 myWebView.getSettings().setBuiltInZoomControls(true);
   String Play = htmlbody bgcolor=+#00+iframe width=\320\
 height=\400\ src=\http://www.youtube.com/embed/g6-8zkbCjl8\;
 frameborder=\0\ allowfullscreen/iframe/body/html;

 myWebView.loadData(Play, text/html, utf-8);


 When i click on to the video it's some time load and black screen is
 display


 On Sat, Jun 9, 2012 at 4:29 PM, Fred Niggle fred.nig...@googlemail.comwrote:

 If you post your code of what you have tried so far you'll get a better
 reception to your question.

 On 9 June 2012 11:36, vaibs malviya vaibs.malviy...@gmail.com wrote:

 any one know, how to code to play a youtube ifream link in webview

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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: need to remove contact from group ..

2012-06-09 Thread Fred Niggle
Ok, from
http://stackoverflow.com/questions/8352843/i-want-to-delete-contact-groupcreated-at-installation-time-at-the-time-of-my-a?rq=1

ContentValues values = new ContentValues();
values.put(ContactsContract.Groups._ID, );
getContentResolver().delete(ContactsContract.Groups.CONTENT_URI,values.toString(),null);




On 9 June 2012 12:32, ala hammad 3la2.7am...@gmail.com wrote:

 ok mr this is my code but this remove contact from groups and from contact
 in other word it delete account ..
 and i need to remove just from group .. please i need your help ..
 public static int removeFromGroup(Context ctx, String personId, long
 groupId) {
 Uri 
 uri=Uri.withAppendedPath(**ContactsContract.Contacts.**CONTENT_URI,
 personId);

 return ctx.getContentResolver().**delete(uri, ContactsContract.**
 CommonDataKinds.**GroupMembership.GROUP_ROW_ID+**=+groupId, null);
 }

 On Saturday, 2 June 2012 15:19:44 UTC+3, ala hammad wrote:

 Hi Guys ,
 i need to remove an contact or more from specific group via coding .. any
 one can help me ??



 thanks for your help ..

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Find path between 2 pairs of lat and long

2012-06-05 Thread Fred Niggle
No thanks, I think you can find it the same way I did: Google it!

On 5 June 2012 08:21, Mini agrawal itsmin...@gmail.com wrote:

 so can you please just share that link.

 Thanks

 On Mon, Jun 4, 2012 at 7:14 PM, Fred Niggle fred.nig...@googlemail.comwrote:

 I can you there IS a tutorial about this - just google it.


 On 4 June 2012 14:35, Mini agrawal itsmin...@gmail.com wrote:

 I didn't find any help on Google .

 On Mon, Jun 4, 2012 at 6:33 PM, Fred Niggle 
 fred.nig...@googlemail.comwrote:

 What did a google search  tell you?

 On 2 June 2012 13:19, ala hammad 3la2.7am...@gmail.com wrote:

 Hi Guys ,
 i need to remove an contact or more from specific group via coding ..
 any one can help me ??



 thanks for your help ..

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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play


 On 4 June 2012 12:45, Mini agrawal itsmin...@gmail.com wrote:

  HI,

 I have a 2 sets of latitude and longitude pairs. I want to find
 path between these 2 pairs of lat and long and then show it on Google map.
 How can I find the path for android?

 Thanks in advance !

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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] CalendarView need help

2012-06-04 Thread Fred Niggle
First work through tutorials, then demonstrate a resonable effort before
posting a question. Nobody here will do your work for you.


On 4 June 2012 05:56, vamshi ch vamshi0...@gmail.com wrote:



 hi ,

 I need help on CalendarView... the requirement like day,weak,month *view*and 
 making appointments,
 notes, schedule and notification if anyone have any Idea or sample code
 or examples pls let me know...plz help me on this...


 Thanks in advance



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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 the WifiManager.startScan() method requires permission CHANGE_WIFI_STATE

2012-06-04 Thread Fred Niggle
It works that way because the OS has no way of knowing your intentions :)
That permission is needed so you COULD change the settings.


On 3 June 2012 08:22, Kiral kiral.c...@gmail.com wrote:

 The thing that worries me is that the startScan() method also requires
 permission android.permission.CHANGE_WIFI_STATE.

 If you just do a scan, and will not change the wifi settings.

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] need to remove contact from group ..

2012-06-04 Thread Fred Niggle
What did a google search about blocking a contact tell you?

On 2 June 2012 13:19, ala hammad 3la2.7am...@gmail.com wrote:

 Hi Guys ,
 i need to remove an contact or more from specific group via coding .. any
 one can help me ??



 thanks for your help ..

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Updating part of a XML file in android

2012-06-04 Thread Fred Niggle
I'd go for creating a multi-part copy of the originals, and then parsing
the parts.


On 2 June 2012 21:10, Alex Deering deeri...@gmail.com wrote:

 I have XML files that store data, parts of the file store recorded
 information.  I have no control over the files as they are from other
 programs.  What Im trying to do is update just a single tag text and not
 have to go through and write an entirely new file.  These files can get
 especially long so rewriting the file causes memory issues in extreme
 cases.

 Currently I am using a pullparser and xmlserializer to read the file and
 write it again, modifying the parts I want to change as I reach them.  This
 works great for normal sized files, but for the larger ones I have gotten
 memory issues reported.  Any help on a way to do this better to update only
 1 tag at a time?

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 populate checkedTextView

2012-06-04 Thread Fred Niggle
I recommend that you work through some tutorials and demonstrate some
effort into solving this issue yourself before posting a question here.

Nobody is going to do you work for you, and you will get a better reception
to your question if show a reasonable effort.

-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play


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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play


On 4 June 2012 03:46, Amit Gupta amitgupta...@gmail.com wrote:

 Hi,

 I am new to andriod programming and needs help in population of
 checkedTextView for strings in array. Could you please help me?

 Regards,

 Amit Gupta

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problem refreshing a fragment edittext view from a dialogFragment after rotation

2012-06-04 Thread Fred Niggle
If you post up the relevant code it will help.

On 4 June 2012 11:41, Bluemercury joao.ro...@gmail.com wrote:

 Hi! Seems replying directly from gmail doesnt refresh this page. so im
 posting again, i changed the property like you said but if i call the
 dialogfragment, rotate the phone and press ok, it wont refresh the
 editext.Only if i call it again, dont rotate, and press ok. The problem
 happens when i rotate with the dialogfragment being visible, if the
 edittext has any value, before i rotate, by default it will show the values
 after rotation correctly , so the issue here lies when i rotate while
 showing the dialogfragment, seems the edittext i pass to it looses the
 connection with the view layout

 regards,


 On Sunday, June 3, 2012 3:14:16 PM UTC+1, Fred Niggle wrote:

 This is caused by the contents of the edittext not being saved when
 rotated.
 If the edittext is defined via xml then set

  android:freezesText=true

 to stop the edittext from loosing its contents upon rotation.

 Hope this help,
 Fred

 On 3 June 2012 01:09, Bluemercury joao.ro...@gmail.com wrote:

 So im adapting my DateTimePickerDialog implementation to a
 DialogFragment, and right now it works well, i press the button to show the
 dialogfragment choose a date/time value, press ok and it will show on the
 fragment's edit text view.
 The problem is, if i press the button to show the dialog, then rotate,
 everything seems to work well except when i press ok to fill the edittext
 view it wont fill it with the choosen value. If i do this again it will
 work. Seems the problem is when i rotate the edittext seems to loose the
 view relation?
 Here's the frapgment that calls the dialog:

 public class MainFragment extends Fragment {

   Button button;

  TextView tv;

@Override

  public View onCreateView(LayoutInflater inflater, ViewGroup container,

  Bundle savedInstanceState) {

   this.setRetainInstance(true);

   View view= inflater.inflate(R.layout.**main_fragment,
 container,false);

   button= (Button) view.findViewById(R.id.**button1);

  tv=(TextView) view.findViewById(R.id.**editText1);

  button.setOnClickListener(new OnClickListener() {

   @Override

  public void onClick(View v) {

  FragmentManager fm = getActivity().**getSupportFragmentManager();

  
 DateTimePickerDialog.**newInstance(**DateTimePickerDialog.DATETIME_**PICKER,tv).show(fm,
 dialog);

   }

  });

  return view;

  }

 }


 Here's the DateTimePickerDialog main methods:

 public static DateTimePickerDialog newInstance(int type,View view) {

  DateTimePickerDialog f = new DateTimePickerDialog();

  f.dialogType=type;

  f.currCal=Calendar.**getInstance();

  f.element=view;


  Logger.write(**DateTimePickerDialog, newInstance, Logger.INFO);

  return f;

  }


  public DateTimePickerDialog() {}



  @Override

  public View onCreateView(LayoutInflater inflater, ViewGroup container,

  Bundle savedInstanceState) {


  this.setRetainInstance(true);


  this.getDialog().**requestWindowFeature(STYLE_NO_**TITLE);

  this.setCancelable(false);


  type = null;


  switch(dialogType){


  case DATE_PICKER:

  type =inflater.inflate(R.layout.**custom_date_picker_dialog,
 container, false);

  type.findViewById(R.id.**imagelogo).**setBackgroundResource(R.**
 drawable.ico_popup_data);

  //fillDialogHeader();

  dateDialog();

  break;

  case TIME_PICKER:

  type =inflater.inflate(R.layout.**custom_time_picker_dialog,
 container, false);

  type.findViewById(R.id.**imagelogo).**setBackgroundResource(R.**
 drawable.ico_popup_hora);

  //fillDialogHeader();

  timeDialog();

  break;

  case DATETIME_PICKER:

  type =inflater.inflate(R.layout.**custom_datetime_picker_dialog,
 container, false);

  type.findViewById(R.id.**imagelogo).**setBackgroundResource(R.**
 drawable.ico_popup_datahora);

  //fillDialogHeader();

  dateTimeDialog();

  }


  fillDialogHeader();

  //button clicks

  ok=(Button)type.findViewById(**R.id.btn_change_date_ok);

  ok.setOnClickListener(this);

  clean=(Button)type.**findViewById(R.id.btn_change_**date_clean);

  clean.setOnClickListener(this)**;

  cancel=(Button)type.**findViewById(R.id.btn_change_**date_cancel);

  cancel.setOnClickListener(**this);


  Logger.write(**DateTimePickerDialog, onCreateView, Logger.INFO);

  return type;

  }


 Is the problem associated with passing the edittext view element?

 regards,






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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id

Re: [android-developers] Find path between 2 pairs of lat and long

2012-06-04 Thread Fred Niggle
What did a google search  tell you?

On 2 June 2012 13:19, ala hammad 3la2.7am...@gmail.com wrote:

 Hi Guys ,
 i need to remove an contact or more from specific group via coding .. any
 one can help me ??



 thanks for your help ..

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play


On 4 June 2012 12:45, Mini agrawal itsmin...@gmail.com wrote:

 HI,

 I have a 2 sets of latitude and longitude pairs. I want to find
 path between these 2 pairs of lat and long and then show it on Google map.
 How can I find the path for android?

 Thanks in advance !

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

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

2012-06-04 Thread Fred Niggle
Did you search google?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Find path between 2 pairs of lat and long

2012-06-04 Thread Fred Niggle
I can you there IS a tutorial about this - just google it.

On 4 June 2012 14:35, Mini agrawal itsmin...@gmail.com wrote:

 I didn't find any help on Google .

 On Mon, Jun 4, 2012 at 6:33 PM, Fred Niggle fred.nig...@googlemail.comwrote:

 What did a google search  tell you?

 On 2 June 2012 13:19, ala hammad 3la2.7am...@gmail.com wrote:

 Hi Guys ,
 i need to remove an contact or more from specific group via coding ..
 any one can help me ??



 thanks for your help ..

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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play


 On 4 June 2012 12:45, Mini agrawal itsmin...@gmail.com wrote:

  HI,

 I have a 2 sets of latitude and longitude pairs. I want to find
 path between these 2 pairs of lat and long and then show it on Google map.
 How can I find the path for android?

 Thanks in advance !

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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problem refreshing a fragment edittext view from a dialogFragment after rotation

2012-06-03 Thread Fred Niggle
This is caused by the contents of the edittext not being saved when rotated.
If the edittext is defined via xml then set

 android:freezesText=true

to stop the edittext from loosing its contents upon rotation.

Hope this help,
Fred

On 3 June 2012 01:09, Bluemercury joao.ro...@gmail.com wrote:

 So im adapting my DateTimePickerDialog implementation to a DialogFragment,
 and right now it works well, i press the button to show the dialogfragment
 choose a date/time value, press ok and it will show on the fragment's edit
 text view.
 The problem is, if i press the button to show the dialog, then rotate,
 everything seems to work well except when i press ok to fill the edittext
 view it wont fill it with the choosen value. If i do this again it will
 work. Seems the problem is when i rotate the edittext seems to loose the
 view relation?
 Here's the frapgment that calls the dialog:

 public class MainFragment extends Fragment {

  Button button;

 TextView tv;

  @Override

 public View onCreateView(LayoutInflater inflater, ViewGroup container,

 Bundle savedInstanceState) {

  this.setRetainInstance(true);

  View view= inflater.inflate(R.layout.main_fragment, container,false);

  button= (Button) view.findViewById(R.id.button1);

 tv=(TextView) view.findViewById(R.id.editText1);

 button.setOnClickListener(new OnClickListener() {

  @Override

 public void onClick(View v) {

 FragmentManager fm = getActivity().getSupportFragmentManager();

 DateTimePickerDialog.newInstance(DateTimePickerDialog.DATETIME_PICKER,tv).show(fm,
 dialog);

  }

 });

 return view;

 }

 }


 Here's the DateTimePickerDialog main methods:

 public static DateTimePickerDialog newInstance(int type,View view) {

 DateTimePickerDialog f = new DateTimePickerDialog();

 f.dialogType=type;

 f.currCal=Calendar.getInstance();

 f.element=view;


 Logger.write(DateTimePickerDialog, newInstance, Logger.INFO);

 return f;

 }


 public DateTimePickerDialog() {}



 @Override

 public View onCreateView(LayoutInflater inflater, ViewGroup container,

 Bundle savedInstanceState) {


 this.setRetainInstance(true);


 this.getDialog().requestWindowFeature(STYLE_NO_TITLE);

 this.setCancelable(false);


 type = null;


 switch(dialogType){


 case DATE_PICKER:

 type =inflater.inflate(R.layout.custom_date_picker_dialog, container,
 false);


 type.findViewById(R.id.imagelogo).setBackgroundResource(R.drawable.ico_popup_data);

 //fillDialogHeader();

 dateDialog();

 break;

 case TIME_PICKER:

 type =inflater.inflate(R.layout.custom_time_picker_dialog, container,
 false);


 type.findViewById(R.id.imagelogo).setBackgroundResource(R.drawable.ico_popup_hora);

 //fillDialogHeader();

 timeDialog();

 break;

 case DATETIME_PICKER:

 type =inflater.inflate(R.layout.custom_datetime_picker_dialog, container,
 false);


 type.findViewById(R.id.imagelogo).setBackgroundResource(R.drawable.ico_popup_datahora);

 //fillDialogHeader();

 dateTimeDialog();

 }


 fillDialogHeader();

 //button clicks

 ok=(Button)type.findViewById(R.id.btn_change_date_ok);

 ok.setOnClickListener(this);

 clean=(Button)type.findViewById(R.id.btn_change_date_clean);

 clean.setOnClickListener(this);

 cancel=(Button)type.findViewById(R.id.btn_change_date_cancel);

 cancel.setOnClickListener(this);


 Logger.write(DateTimePickerDialog, onCreateView, Logger.INFO);

 return type;

 }


 Is the problem associated with passing the edittext view element?

 regards,






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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: get the text in edit text on button click

2012-06-03 Thread Fred Niggle
The best advice is to work through as many tutorials as you can find.
If you simply dive into android programming without a good grip of its
aspects then you will constantly run into trouble.

Hope this helps, and good luck.

On 3 June 2012 06:46, Raghavendra Rao raghu1...@gmail.com wrote:

 Yes i tried, but am not able to get the logic behind tht, am new to this
 kindly help me


 On 2 June 2012 23:36, Raghavendra Rao raghu1...@gmail.com wrote:

 hi,

 how can i get the text entered by the user in the Edit Text on button
 click, kindly do help me on this


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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Adding markers with different drawables on google map in android

2012-06-02 Thread Fred Niggle
Why are you multiplying by 100.0?
Also have you ensured that latitude and longitude are not transposed?
(I had an issue when creating a KML output file: I thought that because my
label said latitude it was correct, and the bug only threw itself into
light when the point appeared over the sea!)

On 2 June 2012 07:33, mehedi hasan khan mehedi.mail...@gmail.com wrote:

 Here are some of the points I am plotting:
 latitude:30.2782345,longitude:-82.1603470
 latitude:30.2768497,longitude:-82.1673126
 latitude:30.2713966,longitude:-82.1601944
 latitude:30.2767563,longitude:-82.1324768
 latitude:30.2897949,longitude:-82.1278839
 latitude:30.2755909,longitude:-82.1269608
 latitude:30.2761593,longitude:-82.1239471

 These are obtained from a webservice.I am multiplying each lat/lng value
 with 100.0 while creating GeoPoint with them.

 On Sat, Jun 2, 2012 at 1:58 AM, James Black planiturth...@gmail.comwrote:

 Do you use modified latitude and longitude coordinates?

 Can you give an example of what points you are plotting to?
  On Jun 1, 2012 3:37 PM, mehedi hasan khan mehedi.mail...@gmail.com
 wrote:

 I've zoomed it manually and searched for the pins.still can't see
 any other pin than the source and the last added one.Zoomed the map as far
 as the zoom controlls allow.I'll recheck if the points are accurate.

 On Sat, Jun 2, 2012 at 12:13 AM, TreKing treking...@gmail.com wrote:

 On Fri, Jun 1, 2012 at 12:26 PM, mehedi hasan khan 
 mehedi.mail...@gmail.com wrote:

 will u plz explain?


 You know the word is spelled please, right? The 'z' doesn't even make
 sense ... :-)
 Sorry, pet peeve ... anyway ...


  I've used
 mapView.getController().zoomToSpan(sourcemarker.getLatSpanE6(),
 sourcemarker.getLonSpanE6());  won't that do the zooming?


 I mean literally, physically zoom the map out yourself, with your
 finger, using the zoom controls on the map. Go looking for your markers to
 make sure they didn't up in Zimbabwe or something. When I started with
 adding a map to my app, I was trying to plot a bus stop in downtown Chicago
 but ended up placing it in the middle of the Atlantic Ocean. It happens -
 all it takes is one wrong digit ...



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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




 --
 *Mehedi*
 CSE'07,BUET
 মহাবিশ্বের কোন কোণে,ইতিহাসের কোন ক্ষণে, আমিও ছিলাম...
 আমায় যেন পড়ে মনে,সে প্রয়াসে সঙ্গোপনে,পদচিহ্ন রেখে যেতে আমিও চেয়েছিলাম।।

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




 --
 *Mehedi*
 CSE'07,BUET
 মহাবিশ্বের কোন কোণে,ইতিহাসের কোন ক্ষণে, আমিও ছিলাম...
 আমায় যেন পড়ে মনে,সে প্রয়াসে সঙ্গোপনে,পদচিহ্ন রেখে যেতে আমিও চেয়েছিলাম।।

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] get the text in edit text on button click

2012-06-02 Thread Fred Niggle
did you try the google search for this?
On 2 Jun 2012 19:07, Raghavendra Rao raghu1...@gmail.com wrote:

 hi,

 how can i get the text entered by the user in the Edit Text on button
 click, kindly do help me on this

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

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

2012-06-02 Thread Fred Niggle
what to do indeed have you worked through a few service tutorials?
On 2 Jun 2012 11:54, Bhavin alertsavemyl...@gmail.com wrote:

 Dear sir,

 I am having following scenario:

 Service class
 .
 .
 .
 .(Extends) Class1
 .
 .
 .
 .
  (Extends) Class2


 Now i wanted to start class2 as a service.

 what to do?

 Thanks in advance
 :)

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] AwesomePlayer - on video lag update

2012-06-01 Thread Fred Niggle
What format is the video? Was it a recording from your phone, is it
transcoded from another format. Does it play ok in other apps and other
phones.
More information is needed so we can fault/bug trace. (source/logcat/etc)


On 1 June 2012 14:39, bob b...@coolfone.comze.com wrote:

 AwesomePlayer isn't but the movie player app is.  It's based on the
 VideoView sample in apidemos.


 On Thursday, May 31, 2012 5:46:59 PM UTC-5, Fred Niggle wrote:

 Is this an app you wrote?


 On 31 May 2012 16:31, bob b...@coolfone.comze.com wrote:

 I have a Samsung Galaxy Tab, and I'm playing back some video on it.

 It is very laggy, and I'm seeing this in the log:

 AwesomePlayer - on video lag update

 Can someone help me understand what is going on here?

 The video I'm playing is nothing special, and I don't see why it should
 lag.


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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Svg to hdpi, mdpi, ldpi

2012-06-01 Thread Fred Niggle
If your running Ubuntu there is a magic little program in the software
center called Phatch which will batch edit images - simply start with a
large hi-res version of the icon, and run phatch with the actions set as
you need - it saves a lot of time.


On 1 June 2012 23:37, Kostya Vasilyev kmans...@gmail.com wrote:

  On 06/02/2012 02:31 AM, Jeremy Villalobos wrote:

 It would be nice to have a folder for svg's on the Android project
 (Eclipse), and have a tool that automatically creates the icons for each
 screen based on the svg provided by the designer.

  On build, the plugin creates the png's from the svg's, but the svgs are
 not added to the release package.

  Is there such a tool ?


 FWIW, I save my artwork as PNGs at -xhdpi resolution and then run a script
 to update the lower-res versions:

 http://kmansoft.com/2012/05/23/scale-android-drawables-with-a-script/

 Supposedly you can do svg to png conversion with ImageMagick, or with
 Inkscape:


 http://stackoverflow.com/questions/9530524/imagemagick-convert-svg-to-transparent-png-with-antialiasing

 So, with just a little scripting, it should be possible to do what you're
 after.

 -- K

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] AwesomePlayer - on video lag update

2012-05-31 Thread Fred Niggle
Is this an app you wrote?


On 31 May 2012 16:31, bob b...@coolfone.comze.com wrote:

 I have a Samsung Galaxy Tab, and I'm playing back some video on it.

 It is very laggy, and I'm seeing this in the log:

 AwesomePlayer - on video lag update

 Can someone help me understand what is going on here?

 The video I'm playing is nothing special, and I don't see why it should
 lag.


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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Setting up email app with android emulators

2012-05-31 Thread Fred Niggle
Now that is handy, many thanks for sharing :)

On 31 May 2012 06:17, asheesh arya asheesharya...@gmail.com wrote:

 juzz go through this link might be it will helpful for you

 http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_%28no_Intents%29_in_Android

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

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

2012-05-30 Thread Fred Niggle
If you selected 'download api examples' when you setup eclipse, then
there will be examples you can use in the
'/home/.../android-sdks/samples' directory.


On 30 May 2012 10:44, asheesh arya asheesharya...@gmail.com wrote:
 what you have tried so far??

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] After Adding header to list view, on List item click is selecting next index from the click.

2012-05-30 Thread Fred Niggle
why not simply subtract 1 from the index?

On 30 May 2012 12:03, Lokesh R loks...@gmail.com wrote:

 After Adding header to list view, on List item click is selecting next
 index from the click.

 Do i Have to handle anything additionally in adapter after adding list
 header.

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

2012-03-08 Thread Fred Niggle
no thankyou.

On Thursday, 8 March 2012, deepu wrote:

 hi dudes i want to take a backup of my contacts ,give some src

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@googlegroups.comjavascript:_e({}, 'cvml', 
 'android-developers@googlegroups.com');
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:_e({},
 'cvml', 'android-developers%2bunsubscr...@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] Extreme battery life

2011-11-25 Thread Fred Niggle
May i suggest that if your set on doing this then you'll need to
explore solar charging.
Regards,
Fred

On 25 November 2011 07:40, Kristopher Micinski krismicin...@gmail.com wrote:


 On Tue, Nov 22, 2011 at 4:26 PM, Bret Foreman bret.fore...@gmail.com
 wrote:

 I'm looking to put a phone in a remote location off the grid to report
 back some sensor data once a day. I can buy after-market extended-life
 batteries for many popular phones and I'm wondering what kind of life
 I might get from this arrangement. The big batteries hold about
 4000mAh. I'd like the whole rig to run for 4 months - about 2400
 hours. That implies getting the average phone draw well below 2mA.

 If my app keeps the phone in airplane mode except once a day to fire
 up and send data, and if the rest of the wireless networking is turned
 off, and if the screen is never on, does this sound feasible?


 Out of sheer curiosity, why not do this using some cheap wireless sensor
 network node?  It's a lot cheaper than a phone, and can get a lot better
 battery life.  I assume the reason is that there is some sensor on the phone
 you need?  Or perhaps that you want to use the telephony capabilities of the
 phone for something or another?
 kris

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

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


Re: [android-developers] Re: How to convert voice to text

2011-09-06 Thread Fred Niggle
If you naviagte to /ECLIPSE/android-sdk-linux_x86/samples, you'll find
the API demos.
create a new project in eclipse from the samples, and you'll be able
to fins the speech to text demo.

Hope this helps,
Fred

On 6 September 2011 08:18, ko5tik kpriblo...@yahoo.com wrote:


 On Sep 6, 7:56 am, HariRam hariram1...@gmail.com wrote:
 Thanks for previous replies,

               Is it possible to convert voice as a text. i searched through
 website, there is more guidance for text to speech but none for voice to
 text. if anyone have idea for how to transmit voice to text pls guide me.

 There are libraries which can do speech recognition, but I doubt  thet
 there are free and open source libraries
 to do this.   SoI would propose that you learn some math,  and start
 reading scientifical publications -  there should be something from
 IEEE

 regards,

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Need some math assistance please

2011-09-04 Thread Fred Niggle
Many thanks for your reply, but as this is not an iOS list
I've been having trouble deciding on what type of variable should be
used when converting the formulea from javascript to android java, and
I could really use some pointers.

On 4 September 2011 02:08, lbendlin l...@bendlin.us wrote:
 in iOS the manual function is faster than the built-in one, but on Android
 the difference is negligible.  here's the Objective-C version

 //spherical distance in meters
 - (CGFloat) sphericalDistanceFromLat1:(CGFloat)lat1 Lon1:(CGFloat)lon1
 toLat2:(CGFloat)lat2 Lon2:(CGFloat)lon2 {
     return acos(sin(lat1 * 0.0174533) * sin(lat2 * 0.0174533) + cos(lat1 *
 0.0174533) * cos(lat2 * 0.0174533) * cos((lon2-lon1) * 0.0174533)) *
 6371000;
 }

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Need some math assistance please

2011-09-04 Thread Fred Niggle
Yea, about that...

Solved :-)

private double gpsDistance(float current_lat, float current_lng,
float prev_lat, float prev_long) {

float K = (float) (180/3.14169);

float a = current_lat / K;
float b = current_lng / K;
float c = prev_lat / K;
float d = prev_long / K;

float ndsa =
FloatMath.cos(a)*FloatMath.cos(b)*FloatMath.cos(c)*FloatMath.cos(d);
float ndsb =
FloatMath.cos(a)*FloatMath.sin(b)*FloatMath.cos(c)*FloatMath.sin(d);
float ndsc = FloatMath.sin(a)*FloatMath.sin(c);
double myTempResult = Math.acos(ndsa + ndsb + ndsc);



return myTempResult*6366000;

}



On 4 September 2011 22:48, Christopher Van Kirk
christopher.vank...@gmail.com wrote:
 It just boggles the mind.

 Try floats or doubles.

 On 9/5/2011 5:27 AM, Fred Niggle wrote:

 Many thanks for your reply, but as this is not an iOS list
 I've been having trouble deciding on what type of variable should be
 used when converting the formulea from javascript to android java, and
 I could really use some pointers.

 On 4 September 2011 02:08, lbendlinl...@bendlin.us  wrote:

 in iOS the manual function is faster than the built-in one, but on
 Android
 the difference is negligible.  here's the Objective-C version

 //spherical distance in meters
 - (CGFloat) sphericalDistanceFromLat1:(CGFloat)lat1 Lon1:(CGFloat)lon1
 toLat2:(CGFloat)lat2 Lon2:(CGFloat)lon2 {
     return acos(sin(lat1 * 0.0174533) * sin(lat2 * 0.0174533) + cos(lat1
 *
 0.0174533) * cos(lat2 * 0.0174533) * cos((lon2-lon1) * 0.0174533)) *
 6371000;
 }

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Need some math assistance please

2011-09-03 Thread Fred Niggle
Hello,

I'm trying to work out the distance moved between 2 points with GPS coordinates.

I have found the haversine function, but I'm not sure how to convert
it to run within androids java.

Can anyone help?

JavaScript: 

var R = 6371; // km
var dLat = (lat2-lat1).toRad();
var dLon = (lon2-lon1).toRad();
var lat1 = lat1.toRad();
var lat2 = lat2.toRad();

var a = Math.sin(dLat/2) * Math.sin(dLat/2) +
Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(lat1) * Math.cos(lat2);
var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
var d = R * c;

Regards,
Fred

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Need some math assistance please

2011-09-03 Thread Fred Niggle
Thanks for your reply - I was not aware of the static method!

2011/9/3 Kostya Vasilyev kmans...@gmail.com:
 Location (IIRC) has a static method to calculate distance.

 --
 Kostya Vasilyev

 03.09.2011 16:08 пользователь Fred Niggle fred.nig...@googlemail.com
 написал:
 Hello,

 I'm trying to work out the distance moved between 2 points with GPS
 coordinates.

 I have found the haversine function, but I'm not sure how to convert
 it to run within androids java.

 Can anyone help?

 JavaScript:

 var R = 6371; // km
 var dLat = (lat2-lat1).toRad();
 var dLon = (lon2-lon1).toRad();
 var lat1 = lat1.toRad();
 var lat2 = lat2.toRad();

 var a = Math.sin(dLat/2) * Math.sin(dLat/2) +
 Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(lat1) * Math.cos(lat2);
 var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
 var d = R * c;

 Regards,
 Fred

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] performing a activity on the click of the BT headset button or A2DP (wired) button press

2011-08-03 Thread Fred Niggle
Yes, simply google for headset example and you'll find source code you
can modify.

On 03/08/2011, Ankit Maheshwari lkoan...@gmail.com wrote:
 Hi ,
 We see that when we press the button on the A2DP headphone
 automatically the music player launches , is it possible to fire any
 other application using it ,or can we control thic clicks action when
 are application is running .

 the scenario is that i am using speech recognition i want to put that
 in sleep mode and as soon as the user click the headset
 button(bluetooth or A2DP) the voice recognition activity is fired  .
 is it possible ??  any kinda help will be really appreciated .


 Thnx
 Ankit

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] hi how to attach a file in own gmail function

2011-08-02 Thread Fred Niggle
I had a spot of trouble getting this to work, the root of the problem
is the path to the file you attach.

My solution is:

String dir=   root.getAbsolutePath();

emailIntent.putExtra(Intent.EXTRA_STREAM,
Uri.parse(file://+dir+/+csvFname));

hope this helps,
Fred

On 02/08/2011, aparna rani indela@gmail.com wrote:
 hii i am implement the one gmail function for sending file
 public void addAttachment(String filename) throws Exception {
BodyPart messageBodyPart = new MimeBodyPart();
   DataSource source = new FileDataSource(filename);
   messageBodyPart.setDataHandler(new DataHandler(source));
   messageBodyPart.setFileName(filename);
   _multipart.addBodyPart(messageBodyPart);

   BodyPart messageBodyPart2 = new MimeBodyPart();
   messageBodyPart2.setText(subject);

   _multipart.addBodyPart(messageBodyPart2);
   }
 public synchronized void sendMail(String subject, String body, String
 sender, String recipients) throws Exception {
 try{
 MimeMessage message = new MimeMessage(session);
 DataHandler handler = new DataHandler(new
 ByteArrayDataSource(body.getBytes(), text/csv));
 addAttachment(/sdcard/BarcodeScanner/Purchase/indela.csv);
 message.setSender(new InternetAddress(sender));
 message.setSubject(subject);
 message.setContent(_multipart);
 message.setDataHandler(handler);
 message.setContent(_multipart);
 if (recipients.indexOf(',')  0)
 message.setRecipients(Message.RecipientType.TO,
 InternetAddress.parse(recipients));
 else
 message.setRecipient(Message.RecipientType.TO, new
 InternetAddress(recipients));
 Transport.send(message);
 }catch(Exception e){

 }
 }

 with out attachment its working fine.
 with attachment it take file. that file name is noname.
 in side file content is this is body
 please help me what is wrong in my project.
 this project i am testing in samsung galaxy fit s5670.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] About Python?

2011-08-01 Thread Fred Niggle
search for SL4A, which is the Python environment for android... you
can download and install it on your device, and has lots of sample
code to get you going, thre is also some tutorials about creating an
actual .apk app that include the python script... you just need to
google to get going.

Hope this helps,
Fred

On 30/07/2011, WinuX sadecea...@gmail.com wrote:
 hi all ;

 i am new here with you.. i wanna develop some apps 4 android. but i
 know nothing about JAVA. i can code in python as OOPL.. So what can i
 do? if there is a option like this for us ; what about editor?  as i
 know ; the dwnload links r about java.. and how i can upload my app?

 thank you..

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

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


[android-developers] Which is more battery friendly: using the compass or accelerometer?

2011-08-01 Thread Fred Niggle
Has anyone found out if either the compass or the accelerometer is
more battery friendly than the other, in context of detecting user
motion?

Regards,
Fred

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Service or Thread for accelerometer monitoring?

2011-08-01 Thread Fred Niggle
Hello,

I am stuck with making a decision and I could use some expert help.

I have a need to monitor motion, either with the compass or
accelerometer to ensure that someone is safe.

I have code which works really well when using the accelerometer, BUT
it can suck a battery flat in around 30 minutes.

To help mitigate this i am considering a 'duty-cycle- of 1 minute on,
and 1 minute off - so should straight away be on to a 50% increase in
battery life, and later I'll refine this.

Im developing for api 7 (2.1 eclair) and while I have some programming
experience, i need guidance on which route to follow to enable the
duty-cycle usage of the accelerometer.

One avenue of research indicates that using threads is the way to go -
however since threads can be killed off with the main UI (screen goes
to sleep, etc), so i'm leaning towards using a service which can I can
START_STICKY.

Which route do you recommend?
Thread or Service?

Regards,
Fred

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Service or Thread for accelerometer monitoring?

2011-08-01 Thread Fred Niggle
Thank you for your reply,

It appeared to be a decision because I was without the facts.
Now I am informed I can now continue.

Best Regards,
Fred

On 01/08/2011, Dianne Hackborn hack...@android.com wrote:
 Thread or service is not generally a decision -- they are two different
 things, for different purposes.  A thread lets you do work off of the main
 UI thread.  A service lets you tell the system to try to keep your process
 around instead of killing it in the background.

 On Mon, Aug 1, 2011 at 2:08 PM, Fred Niggle
 fred.nig...@googlemail.comwrote:

 Hello,

 I am stuck with making a decision and I could use some expert help.

 I have a need to monitor motion, either with the compass or
 accelerometer to ensure that someone is safe.

 I have code which works really well when using the accelerometer, BUT
 it can suck a battery flat in around 30 minutes.

 To help mitigate this i am considering a 'duty-cycle- of 1 minute on,
 and 1 minute off - so should straight away be on to a 50% increase in
 battery life, and later I'll refine this.

 Im developing for api 7 (2.1 eclair) and while I have some programming
 experience, i need guidance on which route to follow to enable the
 duty-cycle usage of the accelerometer.

 One avenue of research indicates that using threads is the way to go -
 however since threads can be killed off with the main UI (screen goes
 to sleep, etc), so i'm leaning towards using a service which can I can
 START_STICKY.

 Which route do you recommend?
 Thread or Service?

 Regards,
 Fred

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




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] links to good messenger services wanted please

2011-07-25 Thread Fred Niggle
Hello,

Thanks for taking the time to read this.

I'm wanting to learn about services, more importantly, bi-directional
communication between services and Activities.

do you have any links that helped you to get a grasp on this?

Best regards,
Fred

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get a service to either return a string or start a function in main activity?

2011-07-22 Thread Fred Niggle
Thanks for your reply.

I guess my initial question can therefore be reduced to: How can an
activity know when a service has performed a task?

On 21/07/2011, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Jul 21, 2011 at 6:33 PM, Fred Niggle fred.nig...@googlemail.com
 wrote:
 What I am writing is a meds reminder app, which has the option of
 letting a career know if the app is not acknowledged and responded to.

 The idea is that when the alarm event fires it triggered a sound
 (alert) to be played (notify user to take meds), and if the alert is
 not cancelled inside of a given time, then an sms is sent to inform
 the carer.

 I have most of the code nicely nailed down, except spawning a screen
 or alert dialogue which has the Cancel button on it, and it is with
 this matter that I seek help.

 As you note in your reply, it is how to Bind the code from the
 .alarmservice to trigger the alert dialogue or screen in which I am
 lacking understanding and would hugely appreciate assistance.

 You don't Bind the code from the .alarmservice to trigger the alert
 dialogue or screen. You just start an activity or raise a
 Notification from the service. If you wish to start an activity, use
 startActivity() like you would anywhere else.

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

 _Android Programming Tutorials_ Version 3.5 Available!

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get a service to either return a string or start a function in main activity?

2011-07-22 Thread Fred Niggle
Thanks for your reply.

I found the information about setting flags with startActivity() to be
extremely useful.

However my original question remains unanswered: How can an activity
know when a service has performed a task?

Regards,
Fred

On 22/07/2011, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Jul 22, 2011 at 9:05 AM, Fred Niggle fred.nig...@googlemail.com
 wrote:
 Thanks for your reply.

 I guess my initial question can therefore be reduced to: How can an
 activity know when a service has performed a task?

 You have no activity. That's the point.

 Most medication dosing is on a 24-hour basis -- you take the
 pills/drops/leeches once per day. The odds of your activity existing
 at the point in time the 24-hour alarm goes off are negligible. Even
 if the user had been visiting your application relatively recently,
 Android terminates processes to free up RAM as it goes along. You must
 not assume that you have an activity.

 Hence, when the alarm goes off, if you want to pop up an activity, you
 need to start one with startActivity(). If you are concerned about
 there then possibly being *two* instances of your activity, add
 FLAG_ACTIVITY_CLEAR_TOP and FLAG_ACTIVITY_SINGLE_TOP to the Intent you
 use with startActivity(). If you do have an existing instance of this
 activity, it will come to the foreground and be called with
 onNewIntent(); otherwise, a new instance will be created as normal.

 I recommend that you also give the user an option for a Notification
 instead of popping up an activity.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 get a service to either return a string or start a function in main activity?

2011-07-22 Thread Fred Niggle
Thank you, thats just the tip I needed.

On 22/07/2011, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Jul 22, 2011 at 10:24 AM, Fred Niggle
 fred.nig...@googlemail.com wrote:
 However my original question remains unanswered: How can an activity
 know when a service has performed a task?

 Use a broadcast Intent.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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


  1   2   >