[android-developers] Who decided the new SMS API in 4.4 was a good thing!??

2013-11-10 Thread BTJ
I have several app on Play that is specialized SMS apps, i.e. they use SMS 
services provided by others..
Like I have one app that uses the SMS services provided by banks to ask for 
current amount on an account, transfer money between accounts, etc... 
All this is done sending SMS and parsing SMS response... And this app is 
very user friendly and does all the needed SMS handling..
But now with the new 4.4 API, the app no longer can operate without 
cluttering up the Inbox and Sent box of the SMS application...
Why on earth would a user need to save the sent messages for such an app?? 
And also, before I could stop the response from being written to the inbox, 
this is no longer possible.. 
And in the text from Google about this API change it says: this will 
create a better user experience How on earth is this going to be a 
better user experience for my users!!???
Now my users have to manually open the default SMS app and delete all the 
messages that should not have been written to the SMS provider...

Question: Can my app delete messages that have been written to the SMS 
provider without being the default SMS app?


Regards,

BTJ

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

2013-11-10 Thread skooter500
Hi 

My Nexus 5 arrived today, however I have noticed a bug that causes my app 
(Tunepal) to hang. It is very simple to reproduce. Just call:

AudioRecord.getMinBufferSize(22050, AudioFormat.CHANNEL_CONFIGURATION_MONO, 
AudioFormat.ENCODING_PCM_16BIT);

Changing the sample ate has no effect either

What the hell Google?! Dont you test stuff before you release it?

Here is the full code for a simple app to reproduce this:

https://github.com/skooter500/MinBufferSizeBug

BTW This code does not cause a hang on my Galaxy Nexus, Nexus 7, HTC 
Desire, HTC Desire HD etc etc.

I'm investigating a workaround

Bryan

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


[android-developers] Re: AudioRecord.getMinBufferSize hangs on KitKat

2013-11-10 Thread skooter500
Follow up... All audio record API's cause this!

For example, this call also hangs:

audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, 
AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, 
totalBytes);

Is there something special Im supposed to do on Android 4.4??

Bryan

On Sunday, 10 November 2013 12:19:41 UTC, skooter500 wrote:

 Hi 

 My Nexus 5 arrived today, however I have noticed a bug that causes my app 
 (Tunepal) to hang. It is very simple to reproduce. Just call:

 AudioRecord.getMinBufferSize(22050, 
 AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT);

 Changing the sample ate has no effect either

 What the hell Google?! Dont you test stuff before you release it?

 Here is the full code for a simple app to reproduce this:

 https://github.com/skooter500/MinBufferSizeBug

 BTW This code does not cause a hang on my Galaxy Nexus, Nexus 7, HTC 
 Desire, HTC Desire HD etc etc.

 I'm investigating a workaround

 Bryan


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

2013-11-10 Thread Παύλος-Πέτρος Τουρνάρης
Maybe the new way that Nexus 5 uses to tunnel the Audio causes this problem!


On Sun, Nov 10, 2013 at 2:54 PM, skooter500 skooter...@gmail.com wrote:

 Follow up... All audio record API's cause this!

 For example, this call also hangs:

 audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate,
 AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT,
 totalBytes);

 Is there something special Im supposed to do on Android 4.4??

 Bryan

 On Sunday, 10 November 2013 12:19:41 UTC, skooter500 wrote:

 Hi

 My Nexus 5 arrived today, however I have noticed a bug that causes my app
 (Tunepal) to hang. It is very simple to reproduce. Just call:

 AudioRecord.getMinBufferSize(22050, AudioFormat.CHANNEL_CONFIGURATION_MONO,
 AudioFormat.ENCODING_PCM_16BIT);

 Changing the sample ate has no effect either

 What the hell Google?! Dont you test stuff before you release it?

 Here is the full code for a simple app to reproduce this:

 https://github.com/skooter500/MinBufferSizeBug

 BTW This code does not cause a hang on my Galaxy Nexus, Nexus 7, HTC
 Desire, HTC Desire HD etc etc.

 I'm investigating a workaround

 Bryan

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

   - *http://goo.gl/TsJ8u http://goo.gl/TsJ8u*
   - *http://acschedule.org http://acschedule.org*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Who decided the new SMS API in 4.4 was a good thing!??

2013-11-10 Thread Steve Gabrilowitz
I totally agree with you on this one but its not for us to say and we
probably can't do anything about it besides trying to devise workarounds.
I don't know about deleting messages from the SMS provider but maybe you
can prevent them from being stored in the first place:  give your receiver
a ridiculously high priority to try and get it first in line to get the
broadcast message, then call abort_broadcast() to keep the default SMS app
from ever getting it!  Granted this approach won't work with certain SMS
apps such as Handcent but I suspect you already have that issue anyhow!
On Nov 10, 2013 5:55 AM, BTJ bt.johan...@gmail.com wrote:

 I have several app on Play that is specialized SMS apps, i.e. they use SMS
 services provided by others..
 Like I have one app that uses the SMS services provided by banks to ask
 for current amount on an account, transfer money between accounts, etc...
 All this is done sending SMS and parsing SMS response... And this app is
 very user friendly and does all the needed SMS handling..
 But now with the new 4.4 API, the app no longer can operate without
 cluttering up the Inbox and Sent box of the SMS application...
 Why on earth would a user need to save the sent messages for such an app??
 And also, before I could stop the response from being written to the inbox,
 this is no longer possible..
 And in the text from Google about this API change it says: this will
 create a better user experience How on earth is this going to be a
 better user experience for my users!!???
 Now my users have to manually open the default SMS app and delete all the
 messages that should not have been written to the SMS provider...

 Question: Can my app delete messages that have been written to the SMS
 provider without being the default SMS app?


 Regards,

 BTJ

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Who decided the new SMS API in 4.4 was a good thing!??

2013-11-10 Thread BTJ
Yes, I have that problem with Handcent... :-|
But your suggestion won't work because there is no priority anymore in 
4.4.. The documenation I found says the following..:

Note that—beginning with Android 4.4—any attempt by your app to abort the 
SMS_RECEIVED_ACTION broadcast will be ignored so all apps interested have 
the chance to receive it.

And according to the same documentation, non-default app can not do write 
operations agains the SMS provider, ala delete, etc... :-|

This is starting to remind me of the iOS API, sigh..


BTJ

On Sunday, November 10, 2013 5:28:59 PM UTC+1, Steve Gabrilowitz wrote:

 I totally agree with you on this one but its not for us to say and we 
 probably can't do anything about it besides trying to devise workarounds.  
 I don't know about deleting messages from the SMS provider but maybe you 
 can prevent them from being stored in the first place:  give your receiver 
 a ridiculously high priority to try and get it first in line to get the 
 broadcast message, then call abort_broadcast() to keep the default SMS app 
 from ever getting it!  Granted this approach won't work with certain SMS 
 apps such as Handcent but I suspect you already have that issue anyhow!
 On Nov 10, 2013 5:55 AM, BTJ bt.jo...@gmail.com javascript: wrote:

 I have several app on Play that is specialized SMS apps, i.e. they use 
 SMS services provided by others..
 Like I have one app that uses the SMS services provided by banks to ask 
 for current amount on an account, transfer money between accounts, etc... 
 All this is done sending SMS and parsing SMS response... And this app is 
 very user friendly and does all the needed SMS handling..
 But now with the new 4.4 API, the app no longer can operate without 
 cluttering up the Inbox and Sent box of the SMS application...
 Why on earth would a user need to save the sent messages for such an 
 app?? And also, before I could stop the response from being written to the 
 inbox, this is no longer possible.. 
 And in the text from Google about this API change it says: this will 
 create a better user experience How on earth is this going to be a 
 better user experience for my users!!???
 Now my users have to manually open the default SMS app and delete all the 
 messages that should not have been written to the SMS provider...

 Question: Can my app delete messages that have been written to the SMS 
 provider without being the default SMS app?


 Regards,

 BTJ

  -- 
 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.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.



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


[android-developers] Chromecast

2013-11-10 Thread tman
How to do the Screen Mirroring on Galaxy Tab 3  7 ( 4.1.2 ) using 
Chromecast

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

2013-11-10 Thread skooter500
Update:

Shazam also hangs... Google Now hangs the device intermittently and wont 
record...

Bryan

On Sunday, 10 November 2013 14:06:31 UTC, Paul-Peter Tournaris wrote:

 Maybe the new way that Nexus 5 uses to tunnel the Audio causes this 
 problem!


 On Sun, Nov 10, 2013 at 2:54 PM, skooter500 skoot...@gmail.comjavascript:
  wrote:

 Follow up... All audio record API's cause this!

 For example, this call also hangs:

 audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, 
 AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, 
 totalBytes);

 Is there something special Im supposed to do on Android 4.4??

 Bryan

 On Sunday, 10 November 2013 12:19:41 UTC, skooter500 wrote:

 Hi 

 My Nexus 5 arrived today, however I have noticed a bug that causes my 
 app (Tunepal) to hang. It is very simple to reproduce. Just call:

 AudioRecord.getMinBufferSize(22050, AudioFormat.CHANNEL_CONFIGURATION_MONO, 
 AudioFormat.ENCODING_PCM_16BIT);

 Changing the sample ate has no effect either

 What the hell Google?! Dont you test stuff before you release it?

 Here is the full code for a simple app to reproduce this:

 https://github.com/skooter500/MinBufferSizeBug

 BTW This code does not cause a hang on my Galaxy Nexus, Nexus 7, HTC 
 Desire, HTC Desire HD etc etc.

 I'm investigating a workaround

 Bryan

  -- 
 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.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




 -- 
 *Παύλος-Πέτρος Τουρνάρης*
 *Android   Software Developer*

- *http://goo.gl/TsJ8u http://goo.gl/TsJ8u*
- *http://acschedule.org http://acschedule.org*

 

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

2013-11-10 Thread skooter500
Update:

Sometimes the call to:

AudioRecord.getMinBufferSize(22050, AudioFormat.CHANNEL_CONFIGURATION_MONO, 
AudioFormat.ENCODING_PCM_16BIT);

will succeed only to hang when you go to create the AudioRecord object:

new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, 
AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, 
totalBytes);

Subsequently Shazam wont work and Google Now voice recording stops 
working...

Bryan

On Sunday, 10 November 2013 14:06:31 UTC, Paul-Peter Tournaris wrote:

 Maybe the new way that Nexus 5 uses to tunnel the Audio causes this 
 problem!


 On Sun, Nov 10, 2013 at 2:54 PM, skooter500 skoot...@gmail.comjavascript:
  wrote:

 Follow up... All audio record API's cause this!

 For example, this call also hangs:

 audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, 
 AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, 
 totalBytes);

 Is there something special Im supposed to do on Android 4.4??

 Bryan

 On Sunday, 10 November 2013 12:19:41 UTC, skooter500 wrote:

 Hi 

 My Nexus 5 arrived today, however I have noticed a bug that causes my 
 app (Tunepal) to hang. It is very simple to reproduce. Just call:

 AudioRecord.getMinBufferSize(22050, AudioFormat.CHANNEL_CONFIGURATION_MONO, 
 AudioFormat.ENCODING_PCM_16BIT);

 Changing the sample ate has no effect either

 What the hell Google?! Dont you test stuff before you release it?

 Here is the full code for a simple app to reproduce this:

 https://github.com/skooter500/MinBufferSizeBug

 BTW This code does not cause a hang on my Galaxy Nexus, Nexus 7, HTC 
 Desire, HTC Desire HD etc etc.

 I'm investigating a workaround

 Bryan

  -- 
 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.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




 -- 
 *Παύλος-Πέτρος Τουρνάρης*
 *Android   Software Developer*

- *http://goo.gl/TsJ8u http://goo.gl/TsJ8u*
- *http://acschedule.org http://acschedule.org*

 

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

2013-11-10 Thread Evan Ruff
Hey Guys,

Just updated my application and noticed that the Nexus 5 isn't on the list 
of compatible devices. Could someone point me in the direction of what 
changes I need to make to the manifest to get it to show up?

Thanks,

E

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


[android-developers] Re: AndroidPushNotification

2013-11-10 Thread janvi
hello all

I need urgent help here

I got push notification successfully from the server.It is an error code 
which is sent by external server to the GCM.

What if the error is fixed and the same message is communicated to the GCM 
then in such case notification displayed in the APP must disappear 


Is there any API to cross check with the GCM whether the notification is 
still active or not??

Any other approach to handle this

Thanks in advance

On Thursday, November 7, 2013 12:00:24 PM UTC+5:30, janvi wrote:

 I have implemented and working fine...

 One more query here is Notifications from the server keep on coming three 
 times for every 10 seconds

 Can any body tell me what is going wrong here???
 I have used wakeFull BroadCast receiver

 Plz its urgent



 On Thursday, October 24, 2013 6:40:25 PM UTC+5:30, Piren wrote:

 you need to use the PendingIntent.FLAG_UPDATE_CURRENT flag when you're 
 creating the pending intent.
 Also notice that if your activity is in a singleInstance or singleTop 
 then you need to use the event onNewIntent to get the new one.

 On Thursday, October 24, 2013 3:36:33 PM UTC+3, janvi wrote:

 Hi piren 

 than you :)

 Using the following code Iam able to go to next activity and 
 alertdialogue.



Intent notificationIntent = new Intent(this, 
 NotificationReceiverActivity.class);

  //data received from the push notification is placed in bundle and 
 extracted later
notificationIntent.putExtra(check, hello test);
   
  notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | 
 Intent.FLAG_ACTIVITY_SINGLE_TOP);
 PendingIntent pintent 
 =PendingIntent.getActivity(getApplicationContext(), 0, notificationIntent, 
 0);
 notification.setLatestEventInfo(getApplicationContext(), title, 
 hello test, pintent);
 notification.flags |= Notification.FLAG_AUTO_CANCEL;
 notificationManager.notify(0, notification);

I have put the data retrived from push notification in the 
 intent(putextra) and trying to extract it in the next activity and here iam 
 getting the bundle data as null

Do Iam I missing something

 Plz help Iam stuck here


 On Thursday, October 24, 2013 5:16:42 PM UTC+5:30, Piren wrote:

 push notification can do whatever you want, i assume you've added a 
 notification when the push got in. So add an intent to the notification 
 that launches an activity which will have a dialog (or look like a dialog).

 Regarding count, you can have a count on the notification icon, but not 
 on the launch screen icon.

 On Thursday, October 24, 2013 2:08:16 PM UTC+3, janvi wrote:

 Hello All,

 Iam new to pushNotification I have few doubts here.

 I have implemented push Notification feature.Now if I want to open an 
 alert dialogue when the user clicks on push notification 

 I don't know how to open the alert dialogue here???any ideas

 One more question is as follows

 How to show the pushNotification count on the AppIcon as IOS does(i,e 
 badge count)

 Can we do this in android???



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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 setup pppoe-client on android 4.3 with usb-to-ethernet adapter?

2013-11-10 Thread Surjya Padhi
hi friends,

Following is my setup.
1. Nexus 7(first generation) tablet with usb-to-ethernet adapter. I am able 
to access internet through this.
2. I have one ubuntu 12.04 LTS linux machine where I am running pppoe 
server by installing package rp-pppoe package. The server works fine, I 
tested from another computer with mac os.

I want to make my Nexus 7 as pppoe-client and linux pc as server and try to 
connect these two. But don't know how to proceed. What are things I need on 
my Nexus to run pppoe-client.

Do I need to enable kernel module or any app is available? Everywhere I 
found only the pppoe over wifi only. But could not find for pppoe over 
usb-to-ethernet adapter.

Please advice.

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


[android-developers] Re: Jelly bean swiping task away from task list kills service

2013-11-10 Thread Rob
As this issue is still present, I've tracked it down further into the 
broadcast receiver code.  When the broadcast is being delivered it removes 
the service from foreground state and then kills it.

Info added here, since the workaround is not good.

https://code.google.com/p/android/issues/detail?id=53313#c3



On Thursday, July 19, 2012 5:19:22 PM UTC-4, Andy dev wrote:

 I've got a service running (an accessibility service called 
 MainRunningService) and also use an alarmmanager within my app.
  
 On ICS when a user pulled up the task list and swiped the app away the 
 service kept running, but the user interface was cleared from the stack.
  
 On jelly bean I'm finding this to be a little different. It seems like it 
 kills off the service and then restarts it even if I've got an icon in the 
 notification bar and I've got the app set to run in the foreground. This is 
 killing off all my current app state and causing it to stop working.
  
 I'm seeing this in the logs
  
 07-19 21:47:42.213: I/ActivityManager(307): Killing 
 834:com.example.android.appname/u0a72: remove task
 07-19 21:47:42.236: W/AudioService(307):   AudioFocus   audio focus client 
 died
 07-19 21:47:42.236: I/AudioService(307):  AudioFocus  abandonAudioFocus(): 
 removing entry for 
 android.media.AudioManager@41a42020com.example.android.appname.service.MainRunningService$1@41963ec0javascript:
 07-19 21:47:42.244: W/ActivityManager(307): Scheduling restart of crashed 
 service com.rageconsulting.android.appname/.service.MainRunningService in 
 5000ms
  
 For the persistent Icon I'm doing the following:
 Notification foregroundNotification;
 foregroundNotification = new Notification(R.drawable.iconx,Example 
 starting notification,System.currentTimeMillis());
 Intent i=new Intent(this, MainUIActivity.class);
 i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_SINGLE_TOP);
 foregroundNotification.flags|=Notification.FLAG_NO_CLEAR;
 startForeground(9642, foregroundNotification);

  

 Is there something I'm doing wrong? I've never had a problem in the past 
 with this code, but it's not very good on jelly bean.

  


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

2013-11-10 Thread Rob
As this issue is still present, I've tracked it down further into the 
broadcast receiver code.  When the broadcast is being delivered it removes 
the service from foreground state and then kills it.

Bug created here since the workaround provided is no good.

http://code.google.com/p/android/issues/detail?id=62091



On Tuesday, July 24, 2012 3:05:53 AM UTC-4, Dianne Hackborn wrote:

 Could you include a binary?  I just want to see what the platform is 
 doing; I don't need to look at the code.  Thanks!

 -- 
 Dianne Hackborn
 Android framework engineer
 hac...@android.com javascript:

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


[android-developers] Re: Who decided the new SMS API in 4.4 was a good thing!??

2013-11-10 Thread al
I clearly understand your frustration. And I may not have the right to say 
something about this since I don't use the SMS API. On the other hand, let 
me try to take on the users hat: You certainly know that some users have to 
pay for each SMS, typically significantly more than to transfer a similar 
amount of data via an internet connection. I actually think using SMS for 
such a task is the wrong approach to start with. In my opinion, the best 
solution would be if the bank provides another way to access that 
information (something like a rest web service?). Of course, if there's no 
other way provided by the bank and you have no influence, you may have no 
other chance. However, in this special case, the blame seems to be on the 
bank and less so on Google (I certainly don't want to defend Google. There 
do numerous things I don't like , e.g. not fixing bug 3434)...

Am Sonntag, 10. November 2013 11:54:28 UTC+1 schrieb BTJ:

 I have several app on Play that is specialized SMS apps, i.e. they use SMS 
 services provided by others..
 Like I have one app that uses the SMS services provided by banks to ask 
 for current amount on an account, transfer money between accounts, etc... 
 All this is done sending SMS and parsing SMS response... And this app is 
 very user friendly and does all the needed SMS handling..
 But now with the new 4.4 API, the app no longer can operate without 
 cluttering up the Inbox and Sent box of the SMS application...
 Why on earth would a user need to save the sent messages for such an app?? 
 And also, before I could stop the response from being written to the inbox, 
 this is no longer possible.. 
 And in the text from Google about this API change it says: this will 
 create a better user experience How on earth is this going to be a 
 better user experience for my users!!???
 Now my users have to manually open the default SMS app and delete all the 
 messages that should not have been written to the SMS provider...

 Question: Can my app delete messages that have been written to the SMS 
 provider without being the default SMS app?


 Regards,

 BTJ



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

2013-11-10 Thread Mukesh Srivastav
Here are the things to check.

APK:

1. Have a message id for new messages and check if the same message is
coming through from the server.
2. Always make sure you Unregister the device (GCM.unregister)
3. You need to handle the error message







On Mon, Nov 11, 2013 at 10:56 AM, janvi jagruthi.bha...@gmail.com wrote:

 hello all

 I need urgent help here

 I got push notification successfully from the server.It is an error code
 which is sent by external server to the GCM.

 What if the error is fixed and the same message is communicated to the GCM
 then in such case notification displayed in the APP must disappear


 Is there any API to cross check with the GCM whether the notification is
 still active or not??

 Any other approach to handle this

 Thanks in advance


 On Thursday, November 7, 2013 12:00:24 PM UTC+5:30, janvi wrote:

 I have implemented and working fine...

 One more query here is Notifications from the server keep on coming three
 times for every 10 seconds

 Can any body tell me what is going wrong here???
 I have used wakeFull BroadCast receiver

 Plz its urgent



 On Thursday, October 24, 2013 6:40:25 PM UTC+5:30, Piren wrote:

 you need to use the PendingIntent.FLAG_UPDATE_CURRENT flag when you're
 creating the pending intent.
 Also notice that if your activity is in a singleInstance or singleTop
 then you need to use the event onNewIntent to get the new one.

 On Thursday, October 24, 2013 3:36:33 PM UTC+3, janvi wrote:

 Hi piren

 than you :)

 Using the following code Iam able to go to next activity and
 alertdialogue.



Intent notificationIntent = new Intent(this,
 NotificationReceiverActivity.class);

  //data received from the push notification is placed in bundle and
 extracted later
notificationIntent.putExtra(check, hello test);

  notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |
 Intent.FLAG_ACTIVITY_SINGLE_TOP);
 PendingIntent pintent 
 =PendingIntent.getActivity(getApplicationContext(),
 0, notificationIntent, 0);
 notification.setLatestEventInfo(getApplicationContext(),
 title, hello test, pintent);
 notification.flags |= Notification.FLAG_AUTO_CANCEL;
 notificationManager.notify(0, notification);

I have put the data retrived from push notification in the
 intent(putextra) and trying to extract it in the next activity and here iam
 getting the bundle data as null

Do Iam I missing something

 Plz help Iam stuck here


 On Thursday, October 24, 2013 5:16:42 PM UTC+5:30, Piren wrote:

 push notification can do whatever you want, i assume you've added a
 notification when the push got in. So add an intent to the notification
 that launches an activity which will have a dialog (or look like a 
 dialog).

 Regarding count, you can have a count on the notification icon, but
 not on the launch screen icon.

 On Thursday, October 24, 2013 2:08:16 PM UTC+3, janvi wrote:

 Hello All,

 Iam new to pushNotification I have few doubts here.

 I have implemented push Notification feature.Now if I want to open an
 alert dialogue when the user clicks on push notification

 I don't know how to open the alert dialogue here???any ideas

 One more question is as follows

 How to show the pushNotification count on the AppIcon as IOS does(i,e
 badge count)

 Can we do this in android???

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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