Re: [android-developers] Re: AndroidPushNotification

2013-10-24 Thread TreKing
On Thu, Oct 24, 2013 at 6:46 AM, Piren  wrote:

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

Keep in mind that this changed without warning in Honeycomb.

https://developer.android.com/reference/android/app/Notification.html#number

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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


Re: [android-developers] Re: "Not Licensed for this country" when paid app used in another country?

2013-10-24 Thread Julian Bunn
The customer installed and used the app in Australia, traveled to the USA
(where he received the error), then traveled back to Australia where it
started to work again, no error.

The app is marked for all countries, and indeed most of my customers are in
the USA.

Julian


On Thu, Oct 24, 2013 at 7:51 AM, Piren  wrote:

> Sounds like a Google Play restriction, did you limit your app not to be
> distributed in the USA?
>
>
> On Thursday, October 24, 2013 2:52:02 AM UTC+3, Julian Bunn wrote:
>>
>> One of my paid app users, who bought the app in Australia, travelled to
>> the USA and tried to use the app there. When the app was started he
>> received the message "Not Licensed for this country", and was unable to
>> use it!
>>
>> Is this a known limitation? Any guesses as to what is going on here?
>> Needless to say, this is not something I have programmed in to the app (nor
>> would I have any idea how to do so even if I wanted to!).
>>
>> Thanks!
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/AzJE3m64lvg/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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


[android-developers] Re: "Not Licensed for this country" when paid app used in another country?

2013-10-24 Thread Piren
Sounds like a Google Play restriction, did you limit your app not to be 
distributed in the USA? 

On Thursday, October 24, 2013 2:52:02 AM UTC+3, Julian Bunn wrote:
>
> One of my paid app users, who bought the app in Australia, travelled to 
> the USA and tried to use the app there. When the app was started he 
> received the message "Not Licensed for this country", and was unable to 
> use it!
>
> Is this a known limitation? Any guesses as to what is going on here? 
> Needless to say, this is not something I have programmed in to the app (nor 
> would I have any idea how to do so even if I wanted to!).
>
> Thanks!
>

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


Re: [android-developers] Remote View Issue

2013-10-24 Thread diwa navi
Dude wanna get one of my problem fixed in my smart phone ...can you?
On 15-Oct-2013 10:10 AM, "Peeyush Varshney" 
wrote:

> Dear All,
>
> I am updating RemoteView from Services, but if I pass PendingIntent very
> fast.
> RemoteView is not updating..
>
> I got the fix, but i doest feel .. it is good from App prospective.
> My doubt is, why remoteViews.setImageViewResource call does not work
> properly.
>
>
> Code snippet:
> RemoteViews remoteViews = null;
> private void showNotification(int n) {
>  if(remoteViews == null)
>  {
>  remoteViews = new RemoteViews(getPackageName(),//call always to fix
> the problem
> R.layout.activity_lesson_one);
> setupRemoteButtons(remoteViews);
>  }
>
> mNotification.icon = R.drawable.ic_launcher;
> mNotification.contentView = remoteViews;
> remoteViews.setTextViewText(R.id.text1, Integer.toString(n) );
> remoteViews.setImageViewResource(R.id.image1, num % 2 == 0 ? R.drawable.a
> : R.drawable.b);
>
> mNotiManager.notify(getPackageName(), 0x07010004, mNotification);
> }
>
> if i initialize RemoteViews once and use it. problem occurs... To fix
> this, I need to make object of "RemoteViews " every showNotification() call.
>
> If Issue occurs once , notification never update again.
>
> So plz tell me the exact working of Remote View.. it is not documented
> anywhere.
>
> --
> Thank & Regards
> Peeyush Varshney
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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


[android-developers] Re: "Not Licensed for this country" when paid app used in another country?

2013-10-24 Thread Nobu Games
Are you sure your Australian customer had the app still installed on his 
phone? Maybe he tried to reinstall it during his stay in the US and the 
error message was actually from Google Play. What 3rd party libraries are 
part of your app?

On Wednesday, October 23, 2013 6:52:02 PM UTC-5, Julian Bunn wrote:
>
> One of my paid app users, who bought the app in Australia, travelled to 
> the USA and tried to use the app there. When the app was started he 
> received the message "Not Licensed for this country", and was unable to 
> use it!
>
> Is this a known limitation? Any guesses as to what is going on here? 
> Needless to say, this is not something I have programmed in to the app (nor 
> would I have any idea how to do so even if I wanted to!).
>
> Thanks!
>

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


Re: [android-developers] "Not Licensed for this country" when paid app used in another country?

2013-10-24 Thread Julian Bunn
Sure: it's an app called AudioTool for making sound measurement.

On Wednesday, October 23, 2013, Mukesh Srivastav wrote:

> can we have detail about the app, like type of app at-least to know ?
>
>
> On Thu, Oct 24, 2013 at 5:22 AM, Julian Bunn 
> 
> > wrote:
>
>> One of my paid app users, who bought the app in Australia, travelled to
>> the USA and tried to use the app there. When the app was started he
>> received the message "Not Licensed for this country", and was unable to
>> use it!
>>
>> Is this a known limitation? Any guesses as to what is going on here?
>> Needless to say, this is not something I have programmed in to the app (nor
>> would I have any idea how to do so even if I wanted to!).
>>
>> 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> 'android-developers@googlegroups.com');>
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com > '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 unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscr...@googlegroups.com> 'cvml',
>> 'android-developers%2bunsubscr...@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 'android-developers@googlegroups.com');>
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com  '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 a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/AzJE3m64lvg/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com  'cvml', 'android-developers%2bunsubscr...@googlegroups.com');>.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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


[android-developers] Re: AndroidPushNotification

2013-10-24 Thread Piren
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] Re: AndroidPushNotification

2013-10-24 Thread janvi
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.


Re: [android-developers] Re: Android lock screen

2013-10-24 Thread Jose_GD
AFAIK no new APIs, but from 4.2 you can put home screen widgets on the lock 
screen. It's an step forward I think in that direction.

El martes, 9 de abril de 2013 15:07:42 UTC-3, Dritan escribió:
>
> OK, so since the last reply was in 2010, is there NOW in 2013 an API in 
> addition to Lockscreen Widgets that allow devs to make custom lock screens?
>
> Lockscreen widgets are cool and all but not as cool as a new way to 
> lock/unlock your phone. 
>
> On Monday, 19 July 2010 21:28:14 UTC-4, Mark Murphy wrote:
>>
>> > Sorry Mark, but in this particular instance, you don't know what you
>> > are talking about.  The API's I use cannot prevent another app from
>> > running, certainly not the home screen app.  Press HOME from either of
>> > my lock screen apps and you will exit the lock screen securely (with
>> > pattern/pin/password entry if that's how your phone is setup).  Note
>> > that this is how the API's are implemented -- it does not depend on my
>> > apps.
>>
>> Terribly sorry -- I am concerned about techniques used by other apps,
>> then. Trust me when I say there are apps on the Market that claim to
>> do what you do that definitely behave as I describe.
>>
>> -- 
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _The Busy Coder's Guide to Android Development_ Version 3.1 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 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: Remote View Issue

2013-10-24 Thread Jose_GD
It would be helpful if you tell us where are you using this code: 
onReceive, onUpdate?

El martes, 15 de octubre de 2013 01:37:02 UTC-3, Peeyush escribió:
>
> Dear All, 
>
> I am updating RemoteView from Services, but if I pass PendingIntent very 
> fast.
> RemoteView is not updating..
>
> I got the fix, but i doest feel .. it is good from App prospective. 
> My doubt is, why remoteViews.setImageViewResource call does not work 
> properly.
>
>
> Code snippet: 
> RemoteViews remoteViews = null;
> private void showNotification(int n) {
>  if(remoteViews == null)
>  {
>  remoteViews = new RemoteViews(getPackageName(),//call always to fix 
> the problem
> R.layout.activity_lesson_one);
> setupRemoteButtons(remoteViews);
>  }
>
> mNotification.icon = R.drawable.ic_launcher;
> mNotification.contentView = remoteViews;
> remoteViews.setTextViewText(R.id.text1, Integer.toString(n) );
> remoteViews.setImageViewResource(R.id.image1, num % 2 == 0 ? R.drawable.a 
> : R.drawable.b);
> 
> mNotiManager.notify(getPackageName(), 0x07010004, mNotification);
> }
>
> if i initialize RemoteViews once and use it. problem occurs... To fix 
> this, I need to make object of "RemoteViews " every showNotification() call.
>
> If Issue occurs once , notification never update again.
>
> So plz tell me the exact working of Remote View.. it is not documented 
> anywhere.
>
> -- 
> Thank & Regards
> Peeyush Varshney 
>

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

2013-10-24 Thread janvi
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.