Abhishek Kumar Gupta | 29 Jul 08:10 2014
Picon

Geofence not working over 3G/WiFi in Android 4.4+(KitKat) versions

In Android 4.4+ versions, I am not able to add/remove geofence over 3G/WiFi. Every time I am getting 1000 as a status code which means error. When I am enabling GPS(it doesn't matter whether GPS is fixed or not), everything works fine but accompanied with the problem of battery drain.

Is there any alternative solutions? If yes, then please guide me.

Note: In Android 4.3 and below versions, every thing works perfect.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
dashman | 28 Jul 23:47 2014
Picon

Shape with a pattern fill

Is it possible to create a shape with a pattern fill - instead of a solid color.


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
sweety fx | 28 Jul 18:26 2014
Picon

Image view and then a grid view - make them all scrollable

I have an image view on top and then grid view.
I want all both the image view and grid view scrollable together, but only the grid view is scrolls.
Is there a way to implement it?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tamás Kovács | 27 Jul 17:43 2014
Picon

Google Play Game Services and In-app billing

Hello,

Are there any restrictions for Game Services in terms IAB/paid apps?

I can't find anything in any Terms of Use about this. For example, Game Services states that each Achievement must be achievable by the player, but it doesn't state whether this is allowed to "require" any In-app Billing. Most games are freemium nowadays.

I can imagine it's forbidden to ask for payment for an Achievement (I'm not planning such a thing), but in freemium games, this can be much more indirect. For example, a quest might not be available without an expensive item, but that item is only available via In-app Billing.

With the following, I suppose I should be safe: the Achievement is reachable in theory in the game, but very difficult to reach it (very much playing to reach the XP without In-app Purchase items). Therefore, if the player really wants it, he can reach the Achievement without any In-app Purchase.

Any definitive answer in this matter?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
12169 | 27 Jul 15:24 2014
Picon

Android 4.4.2 Async Task's onProgresUpdate method is not working

I update my activity's data with a Async task. it works on all the devices till date, but in Android 4.2.2 KitKat AsyncTask's onProgressUpdate method is not working.

Below is reference code of AsyncTask

class MyAsync extends AsyncTask<String, String, String> { boolean flag = true; <at> Override protected String doInBackground(String... params) { // TODO Auto-generated method stub while(flag) { // do background Task //publishProgress publishProgress(""); try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } return null; } <at> Override protected void onProgressUpdate(String... values) { // TODO Auto-generated method stub super.onProgressUpdate(values); //Update UI } }

And this code how i Start AsyncTask

if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) asyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,AsyncTask.SERIAL_EXECUTOR); else asyncTask.execute(params);

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Russell Wheeler | 27 Jul 12:32 2014
Picon

Is it possible to allow Alpha/Beta testers to test my paid app for free?

I am just starting out in the android developer world, and have made a very basic game that I would like to have tested by friends and colleagues. I thought of using the alpha and beta testing/apk sections of the google developer console.

However, I would like my app to eventually be a paid app, and from reading around it would appear that testers would also have to pay in order to test my app for me. Is there any way around this, or I have I misunderstood? I'm talking about the initial purchase of the app, not in app purchases.

If not, how do others approach this situation? Give the app away on email, but lose out on the auto updating facilities of the play store, or do you create two apps one for free that is only visible to testers, and then the paid app later on launch?

If I did that, would I need two diff package names for each of the app?

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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sanjay Mishra | 25 Jul 05:31 2014
Picon

Android Wear App appears to hog CPU / resources

Hello,

I discovered that the Android Wear app

       ( https://play.google.com/store/apps/details?id=com.google.android.wearable.app
       Version = 1.0.0.1261840)

 running on my Android development device LG / Android OS 4.4.4 
   was hogging resources on my LG development device and causing an incessant stream of GC messages.

top:

User 51%, System 13%, IOW 0%, IRQ 0%
User 307 + Nice 0 + Sys 83 + Idle 209 + IOW 0 + IRQ 0 + SIRQ 0 = 599

  PID PR CPU% S  #THR     VSS     RSS PCY UID      Name
 1065  0  43% S    21 903800K  34212K  fg u0_a7    com.google.android.gms.wearable
 1013  0  15% S    39 903932K  38792K  fg u0_a111  com.google.android.wearable.app
  578  0   5% S    76 975848K  70004K  fg system   system_server
13377  0   1% R     1   1312K    488K     shell    top


127|shell <at> mako:/ $ cat /proc/version
Linux version 3.4.0-perf-ga6edd5e (android-build <at> kpdm5.cbf.corp.google.com) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Wed Apr 16 09:33:17 PDT 2014


127|shell <at> mako:/ $ cat /proc/cpuinfo                                           
Processor : ARMv7 Processor rev 2 (v7l)
processor : 0
BogoMIPS : 13.53

processor : 1
BogoMIPS : 13.53

processor : 2
BogoMIPS : 13.53

processor : 3
BogoMIPS : 13.53

Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 
CPU implementer : 0x51
CPU architecture: 7
CPU variant : 0x0
CPU part : 0x06f
CPU revision : 2

Hardware : QCT APQ8064 MAKO
Revision : 000b
Serial : 0000000000000000

adb logcat showed this constant, perpetual flood of GC_* messages, with   pause times

D/dalvikvm( 1065): GC_CONCURRENT freed 427K, 6% free 9304K/9896K, paused 1ms+2ms, total 17ms
D/dalvikvm( 1065): GC_CONCURRENT freed 428K, 6% free 9306K/9896K, paused 2ms+2ms, total 27ms
D/dalvikvm( 1065): GC_CONCURRENT freed 443K, 6% free 9308K/9896K, paused 1ms+3ms, total 22ms
D/dalvikvm( 1013): GC_EXPLICIT freed 108K, 17% free 12960K/15532K, paused 2ms+5ms, total 44ms
D/dalvikvm( 1065): GC_CONCURRENT freed 416K, 6% free 9304K/9896K, paused 1ms+4ms, total 17ms
D/dalvikvm(  578): GC_FOR_ALLOC freed 1036K, 16% free 22510K/26540K, paused 97ms, total 97ms
I/dalvikvm-heap(  578): Grow heap (frag case) to 22.378MB for 380496-byte allocation
D/dalvikvm(  578): GC_FOR_ALLOC freed 9K, 16% free 22872K/26912K, paused 94ms, total 94ms
D/dalvikvm(  578): GC_FOR_ALLOC freed 447K, 17% free 22425K/26912K, paused 90ms, total 90ms
D/dalvikvm( 1065): GC_CONCURRENT freed 405K, 6% free 9307K/9896K, paused 2ms+3ms, total 19ms
D/dalvikvm( 1065): GC_CONCURRENT freed 422K, 6% free 9306K/9896K, paused 1ms+1ms, total 14ms
D/dalvikvm( 1065): GC_CONCURRENT freed 409K, 6% free 9310K/9896K, paused 2ms+2ms, total 24ms
D/dalvikvm( 1013): GC_EXPLICIT freed 95K, 17% free 12969K/15532K, paused 3ms+15ms, total 67ms
D/dalvikvm( 1065): GC_CONCURRENT freed 390K, 6% free 9305K/9896K, paused 1ms+1ms, total 15ms
D/dalvikvm( 1065): GC_CONCURRENT freed 385K, 6% free 9305K/9896K, paused 1ms+1ms, total 15ms
D/dalvikvm( 1065): GC_CONCURRENT freed 442K, 6% free 9307K/9896K, paused 1ms+3ms, total 24ms

After uninstalling the Android Wear App, top showed significant reduction of  resource consumption ( down to  2% User and System 3% ( from the earlier User 51%, System 13%, IOW 0%, IRQ 0% )  and the incessant stream of GC messages stopped.

top output,  after uninstalling Android Wear app from Google :

User 2%, System 3%, IOW 0%, IRQ 0%
User 7 + Nice 0 + Sys 12 + Idle 288 + IOW 0 + IRQ 0 + SIRQ 0 = 307

  PID PR CPU% S  #THR     VSS     RSS PCY UID      Name
14675  0   2% R     1   1304K    488K     shell    top
  578  0   1% S    76 984412K  75472K  fg system   system_server
  200  0   0% S     9  10548K    772K     nobody   /system/bin/sensors.qcom
  985  0   0% S    37 921636K  44632K  fg u0_a7    com.google.process.location 

Anyone  here who  has had  similar observations, or some explanation ?

Thank you

Sanjay Mishra



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Deepa M | 24 Jul 06:23 2014
Picon

Video streaming frm videoplayer

Hi all,
Is it possible to live stream the video frm videoplayer  (which plays recorded video )  in android?

Thanks and Regards

Deepa M

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
dashman | 23 Jul 20:32 2014
Picon

Styling

I've got an activity and would like to set the background to the current theme background color.

I set the activity's layout  android:background="?android:windowBackground" and that seems to work


Inside the activity I would like to draw some boxes/panels and set the background to a slightly
different color - based on light or dark theme.

How can I do that.

I tried "?android:panelBackground" and that's not quite what I want.

Any special value out there that'll display a light gray - if the current window background is white.


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mathieu Bosi | 23 Jul 17:49 2014
Picon

Google In-app Billing: is there a way to get "active" products only?

Hi

Apparently with the current version of Google In-app Billing (and / or Servers) there's no way of retrieving the in-app product "status" (Active or Inactive, as it can be set from the Developer Console)
I've read through Google IAB documentation and no mention is given of any actual effect of setting the "status" of an in-app product.

Searching the Web, I came across this unanswered question.
Another (unanswered) question I was able to find is this one (cached from StackOverflow, from where it was... deleted?!)

So, to hide inactive products, there's no other way than that of uploading a new binary where the inactive product is never queried?
Does anyone (even at Google) know of any way to get "active" products only?

Best 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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
saex | 23 Jul 17:32 2014
Picon

How to move a view in the screen with a onscreen Joystick?

Welcome all

i need to add a onScreen Joystick to my game.

I found some code examples of joysticks but none of them moves a view on the screen, and i dont know how to move a view in the screen with the exact movement and acceleration of the joystick movement.

This is one of the examples i found:

http://www.youtube.com/watch?v=S7U_B7EDT_Q

Source code: http://goo.gl/m0bTse

I have no idea of how to move a view (my game spaceship) in the screen with the joystick movement.

Thanks a lot

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

Gmane