[android-developers] [Help] Recognize vertical swiping and vertical scrolling in gridview

2014-04-14 Thread cybersun
Hi all,
I am a junior android dev, I have a question, please help me.

I have a Gridview, include hundred of items (thumbnail images). I set a 
multi-select mode, in this mode, user just need to swipe his finger to 
start selecting multiple items (this case, gridview can not be scrolled). 
And in a normal touch, Gridview still can vertically scroll for user to see 
other thumbnails and continue selecting.

There is an ambiguity between 2 types of vertical action, can you help me?
Many 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/d/optout.


[android-developers] emugen tool related help required

2014-04-14 Thread Saqlain Abbas
Hi,

I need some help related to understand input file description and format, 
which emugen tool expect and how we can use it to generate code.

If you got simple example or tutorial will be enough, I merely could find 
some information in emugen README 
only 
https://android.googlesource.com/platform/development/+/a592d9c04381bf55c780ccb66f720cbfc7a22fa5/tools/emulator/opengl/host/tools/emugen/README
 

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/d/optout.


Re: [android-developers] Android how to draw a circle ring as shown in the image.

2014-04-14 Thread Marina Cuello
Sometimes, the problem when your first language is not English is that you
don't know how to search on Google. What I mean is that you don't know the
right words. When I can't find what I need, but I'm sure there must be
something out there,  I often use synonyms.
In this case, you get what you need if you search for: android custom
progress wheel.

Marina


On Sat, Apr 12, 2014 at 2:52 PM, TreKing treking...@gmail.com wrote:


 On Fri, Apr 11, 2014 at 6:32 AM, 12169 ashish.a...@gmail.com wrote:

 Android how to make a circle ring as shown in the image. it show the
 progress of download process. any help how to make this circle


 What have you tried so far?


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

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


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


[android-developers] DevicePolicyManager.lockNow() not working on android 4.4

2014-04-14 Thread OronS
Hi

As part of my application I have code that locks up my device..
It works on mine (Android 4.2), but not on my friend's device (Android 4.4)

What could be wrong?
How can I lock 4.4 device?

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/d/optout.


[android-developers] Re: How to calculate a tablets resolution before purchasing the tablet

2014-04-14 Thread Chris
Googling the exact phrase Toshiba eXcite Pro AT10LE-A-10D screen DPI 
yields in the first result a screen DPI of 300.  

At least give it an effort.

- C

On Tuesday, April 1, 2014 3:28:39 AM UTC-4, Simon Giddings wrote:

 I am looking at buying a Toshiba eXcite Pro AT10LE-A-10D, which boasts a 
 screen resolution of 2560 x 1600 pixels for a screen diagonal of 10.1.

 Is it possible to calculate the DP value - ie MDPI / HDPI / XHDPI etc ?

 I haven't been able to find any form of developer support on the toshiba 
 web site, which could have helped.


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


Re: [android-developers] How to get more reviews/comments when my app runs mainly in background?

2014-04-14 Thread Fabien Demangeat
Okay thanks for the suggestion. I will think about it, I know that I have 
to be careful with low-value notifications...
Cheers!

On Saturday, April 12, 2014 6:49:48 PM UTC+1, TreKing wrote:


 On Fri, Apr 11, 2014 at 3:30 AM, Fabien Demangeat 
 fabiend...@gmail.comjavascript:
  wrote:

 Do you have guys any other idea on how to get more reviews with these 
 constraints


 Many apps add a Rate Us dialog or something that is shown after X number 
 of days or uses. For your case, you could present a notification after a 
 certain number of days that is shown once and only once to not annoy the 
 user, or give them an option in that initial configuration screen to not 
 see the notification at all.


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

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


Re: [android-developers] How to get more reviews/comments when my app runs mainly in background?

2014-04-14 Thread Gustavo Oliveira
I believe the Rate Us dialog is a good idea. Also, I would add
interesting information in that dialog, like some tips, usage statistics,
just like some free apps do (e.g. antivirus and protection software
normally tell how many threats were blocked).

Best,
Gus

On Mon, Apr 14, 2014 at 5:24 PM, Fabien Demangeat fabiendemang...@gmail.com
 wrote:

 Okay thanks for the suggestion. I will think about it, I know that I have
 to be careful with low-value notifications...
 Cheers!

 On Saturday, April 12, 2014 6:49:48 PM UTC+1, TreKing wrote:


 On Fri, Apr 11, 2014 at 3:30 AM, Fabien Demangeat 
 fabiend...@gmail.comwrote:

 Do you have guys any other idea on how to get more reviews with these
 constraints


 Many apps add a Rate Us dialog or something that is shown after X
 number of days or uses. For your case, you could present a notification
 after a certain number of days that is shown once and only once to not
 annoy the user, or give them an option in that initial configuration screen
 to not see the notification at all.

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

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


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


Re: [android-developers] [Help] Recognize vertical swiping and vertical scrolling in gridview

2014-04-14 Thread TreKing
On Mon, Apr 14, 2014 at 4:42 AM, cybersun quocnh...@gmail.com wrote:

 There is an ambiguity between 2 types of vertical action, can you help me?


What is the issue you're having?

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

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


[android-developers] Re: Choreographer regularly skipping frames during OpenGL Render

2014-04-14 Thread Dave Smith
Thanks for the response, Doug, but we're talking about two different 
things.  I'm not referring to the errors that show up the log tagged 
Choreographer when the frame warning limit is triggered on the main thread. 
 I'm talking about actually using the Choreographer API to render OpenGL 
content locked to VSYNC.  These delays are on the rendering threads.  While 
I understand frames dropping periodically when the system is servicing 
other work, the inability to manage even a few second without skipping 
several VSYNC intervals indicates to me that something else is wrong with 
the GL code.

Thanks again,
Dave Smith, PE
Double Encore, Inc.

On Sunday, April 13, 2014 12:51:07 PM UTC-6, Doug wrote:

 Bear in mind that anything could be causing main thread delays.  It could 
 be your code.  It could be other threads in your app's process.  It could 
 be other apps running on the device.  It could be Android itself.  It could 
 be any combination of these things.  This is to be expected with 
 multitasking multiuser operating systems and the wide variety of devices 
 out there and their hardware capabilities.

 The Choreographer itself doesn't start complaining about skipped frames in 
 logcat until after 30 frames have been skipped:

 private static final int SKIPPED_FRAME_WARNING_LIMIT = 
 SystemProperties.getInt(
 debug.choreographer.skipwarning, 30);

 So maybe you can lighten up your own acceptable threshold for frames 
 skipped (unless you're actually observing the jank that you're trying to 
 avoid)?

 Doug

 On Friday, April 11, 2014 10:37:39 AM UTC-7, Dave Smith wrote:

 Hello all -

 I am working on an application that is using Choreographer and OpenGL to 
 render flash patterns on the display.  Our GL calls are quite simple, 
 simply toggling the display back and forth between white and black using 
 glClearColor() based on the frame time and status of the pattern we want to 
 apply.  The timing of this pattern if very critical, and I am having severe 
 issues getting consistent behavior out of the timing pulses we received 
 from Choreographer to do the rendering.

 For simplicity sake, I have basically copied the Basic Dream application 
 in AOSP, so 95% of my code looks exactly like this sample:

 https://android.googlesource.com/platform/packages/screensavers/Basic/+/master

 Our only change is that, where they call mSquare.draw() inside of 
 doFrame(), we have another method called drawFrame() that does the 
 following:

 private void drawFrame() {
 final boolean nextBit = mPattern[mIndex];

 if (nextBit) {
 glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
 } else {
 glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
 }
 glClear(GL_COLOR_BUFFER_BIT);

 return true;
 }

 However, for the purposes of this discussion, you can see the *exact 
 same behavior* by simply running the AOSP sample as an application (i.e. 
 changing the Colors class from a DreamService to a launcher Activity).

 The problem is that on a regular basis (at least once per second, often 
 many times), the debug logging returns that the frame callback took 33ms 
 (instead of 16ms), and in many cases 50ms+!  I can understand skipping a 
 rare frame here or there, but skipping 3-4 frames at once seems like I'm 
 missing something big here.  Not all devices do this, but high-end devices 
 like the Nexus 5 and GS4 do.  Devices we've tested like the Note 3, GS3, 
 and Moto X don't seem to do so nearly as often.  Example typical logcat 
 over a period of 30 seconds:

 04-11 11:35:43.918  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (49865722 ms) frame 2
 04-11 11:35:43.948  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (33264161 ms) frame 3
 04-11 11:35:43.988  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (33233641 ms) frame 4
 04-11 11:35:44.018  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (33233644 ms) frame 5
 04-11 11:35:45.860  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (33264161 ms) frame 115
 04-11 11:35:46.881  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (33233641 ms) frame 175
 04-11 11:35:47.692  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (33233642 ms) frame 222
 04-11 11:35:48.242  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (33264160 ms) frame 255
 04-11 11:35:49.373  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (33233643 ms) frame 322
 04-11 11:35:53.908  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (33268229 ms) frame 594
 04-11 11:35:56.190  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (33264161 ms) frame 730
 04-11 11:35:56.690  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕ JANK! (33233643 ms) frame 759
 04-11 11:35:57.751  10441-10455/com.android.dreams.basicgl 
 V/ColorsGLRenderer﹕