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

2013-11-12 Thread Elias de Oliveira
Oh, understood! Thanks for the answer :)


2013/11/11 BTJ bt.johan...@gmail.com

 This is not really a open API, it is just text messages that you send to a
 number for the bank... And the bank send responses... The messages that one
 send is described on the bank's websites but not the responses... And both
 the sent messages and received are different from bank to bank...

 BTJ


 On Monday, November 11, 2013 6:45:14 PM UTC+1, Elias de Oliveira wrote:

 BTJ, Could you share the SMS API that you use? We are talking about open
 APIs from banks here in my company, and if this is an open information,
 will help me a lot :).

 []'s


 2013/11/11 BTJ bt.jo...@gmail.com

 Yes, I know that... But using this approach is very user friendly... And
 also here in Norway, sending SMS is kind of cheap... And the banks have API
 they can use but the APIs are not public so I can not use them... Also this
 is not just for banks, I also have an app for parking that also uses the
 SMS service of the provider... + I have an app just for me that uses SMS to
 turn my house alarm on and off...
 And since the app from the banks still are really bad, a lot of users
 prefer to use my app... But they now get an app that is not as user
 friendly as it has been

 BTJ


 On Sunday, November 10, 2013 11:54:28 AM UTC+1, BTJ 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.com

 To unsubscribe from this group, 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.




 --
 Elias Granja
 Web and Android developer
 http://www.eliasgranja.com
 Phone: +55 19 8124-2645

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




-- 
Elias Granja
Web and Android developer
http://www.eliasgranja.com
Phone: +55 19 8124-2645

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Sample project for In app billing does not work.

2013-11-12 Thread MobileVisuals
I fixed this by changing the Java compiler level from 1.5 to 1.6.

On Monday, November 11, 2013 8:21:00 PM UTC+1, MobileVisuals wrote:

 TrivialDrive is the official sample project for In app billing. I can’t 
 get the IInAppBillingService class from that project to work. I have 
 imported it into the src directory of my project along with the other utils 
 classes. I have done this with the correct project name. I get a lot of 
 “must override a superclass method” errors in IInAppBillingService. One of 
 the messages is

 Multiple markers at this line
 - The method consumePurchase(int, String, String) of type 
 IInAppBillingService.Stub.Proxy must override a superclass method
 - implements 
 com.android.vending.billing.IInAppBillingService.consumePurchase

 The other messages says similar things. I didn’t copy 
 “IInAppBillingService.java”, only “IInAppBillingService.aidl”. Here is a 
 screenshot of how my project looks like:

 http://www.mobile-visuals.com/inapp.png


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

2013-11-12 Thread Rahul Kumar
I am developing an app for transferring file from android device to my pc. 
I have my stored files in internal memory of phone. 

http://stackoverflow.com/questions/3480663/how-to-tell-if-usb-is-connected-to-android-device

Please help me 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] socket programming, Send XML data to server

2013-11-12 Thread Bharani Kumar
Hi All,


 How to send the XML Data to server, Server will response output data as
XML.(Asynchronous transfer mode)
Please share your thoughts and samples on this.


Thanks
Bharani

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

2013-11-12 Thread Elias de Oliveira
Hello,

Which protocol are you using? HTTP?

If yes, you could use a normal HTTP request using the Apache HTTPClient,
here you can find more information about:
http://hc.apache.org/httpclient-3.x/tutorial.html . The Apache HTTPClient
already is include on Android if I'm not forgetting something.

If you want to connect direct with the server port, I believe you could use
the Socket java Class
http://docs.oracle.com/javase/7/docs/api/java/net/Socket.html . But this
doesn't seems to be a good option, because you will have more trouble
dealing with problems already solved by HTTPClient.

[]'s


2013/11/12 Bharani Kumar bharanikumariyer...@gmail.com



 Hi All,


  How to send the XML Data to server, Server will response output data as
 XML.(Asynchronous transfer mode)
 Please share your thoughts and samples on this.


 Thanks
 Bharani

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




-- 
Elias Granja
Web and Android developer
http://www.eliasgranja.com
Phone: +55 19 8124-2645

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

2013-11-12 Thread Doug Gordon
Having just bought a Nexus 5 (great smartphone, BTW!!), I see that I 
apparently missed the introduction of these xxhdpi devices (480ppi 
class). It doesn't appear that all of the Android developers' pages have 
been fully updated for these screens, but are we officially supposed to 
now be providing graphic resources in  a drawable-xxhdpi resource 
subfolder?


That's about all I need is yet another set of graphics to resize and 
tweak endlessly! :-(


Doug Gordon
GHCS Software

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

I have one more query regarding push notification here

If the user upgrades his O.S will GCM generate new token ID??Or using old 
token can we get pushnotification 

Do we need to handle this case from App perspective 


Thanks in advance

On Monday, November 11, 2013 1:28:44 PM UTC+5:30, Mukesh Srivastav wrote:

 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 jagruth...@gmail.comjavascript:
  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-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.




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

[android-developers] xxHdpi Displays

2013-11-12 Thread Adam Ratana
Yes, and, not to make you panic more, there is now xxxhdpi (currently just for 
icons) 

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

How is your architecture of the app ? secondly, your business logic should
have all the GCM Registers   users in your server DB, so that , it would
help  you to whom you want to push the notification.


On Wed, Nov 13, 2013 at 12:01 PM, janvi jagruthi.bha...@gmail.com wrote:

 Thank you Mukesh :)

 I have one more query regarding push notification here

 If the user upgrades his O.S will GCM generate new token ID??Or using old
 token can we get pushnotification 

 Do we need to handle this case from App perspective 


 Thanks in advance

 On Monday, November 11, 2013 1:28:44 PM UTC+5:30, Mukesh Srivastav wrote:

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