Re: [android-developers] ICS/Galaxy Nexus Can't Loop Audio without GAP

2011-12-23 Thread YuviDroid
I just did a quick test with your apk and:

Galaxy Nexus - Android 4.0.1 - Kernel 3.0.1-ga052f63 - FAIL
Galaxy S 2 - Android 2.3.4 - Kernel 2.6.35.11-ninphetamine-2.1.3 - PASS
(pls note that this is a custom ROM, I couldn't test right now with a stock
ROM)

Tomorrow I will test on a Nexus S, Xoom, and Archos G9.

Cheers,
Yuvi
http://www.droidahead.com

On Fri, Dec 23, 2011 at 1:39 AM, csyperski  wrote:

> ICS can't loop audio seamlessly with more than one core, when using
> MediaPlayer->setLooping(true).  This is a major bug that is causing
> problems for my applications.  I have a sample project below
> demonstrating the issue.
>
> I have included a link to a very simple eclipse project that you can
> use to test for the setLooping bug.  This bug doesn’t seamlessly loop
> an audio file.  It plays a simple sine wave that can be used to easily
> detect if your device is displaying the bug.  I have also provided the
> direct like to the apk file as well.
>
> I feel this bug is an important bug to get fixed.  Although this is a
> simple example, it has real world problems including:
>
> *Looped music playback
> *Sound machine type applications
> *Game sample loops
>
>
> I feel this bug hurts the Android platform and encourages the
> ‘fragmentation’ fault argument.  Some devices/firmware don’t present
> the bug while others do.  For example, almost every recent Motorola
> device has the bug, but most HTC devices don’t.  The Xoom shipped
> without the bug, but a firmware update introduced the bug (I don’t
> know which version introduced it).
>
> I have an application, SleepyTime, which used to be available on all
> devices but now isn’t available on many devices on the Android Market
> because the bug is present on those devices.  This creates a bad user
> experience for the user because:
>
> *A user on phone A can get the app, but a user on phone B may not be
> able to.
> *A user with phone X paid for the app, then upgrades to phone Z, which
> can’t get the app because this device has the bug, and now doesn’t
> understand why they can’t download the application they paid for.
>
> To anyone experiencing this bug, please run this application on any
> device you have access to and report the Android version, kernel,
> device name, and weather the bug is present.  We need to give the
> engineers as much information as possible if we want this to get
> resolved.  Please get as many people as possible to start this bug to
> give it more visibility.
>
> Eclipse Project:
> http://cwssoft.com/downloads/LoopBug.zip
>
> APK:
> http://cwssoft.com/downloads/LoopBug.apk
>
>
>
> Here are my test results:
>
>
> 
> HTC G2
> Android Version:
> 2.3.4
>
> Kernel:
> 2.6.35.10-g96de068
>
> Status:
> Pass
>
> 
> Motorla Xoom
> Android Version:
> 3.2.1
>
> Kernel:
> 2.6.36.3-g111d827
>
> Status:
> FAIL
>
> 
>
> HTC Nexus One
> Android Version:
> 2.3.6
>
> Kernel:
> 2.6.35.7-59465-g42bad32
>
> Status:
> Pass
>
> 
>
> Kindle Fire
>
> Android Version:
> N/A
>
> Kernel:
> N/A
>
> Status:
> Pass
>
> 
>
> Logitech Revue
>
> Android Version:
> 3.1
>
> Kernel:
> N/A
>
> Status:
> Fail!!!
>
>
> http://code.google.com/p/android/issues/detail?id=18756
>
> Chuck Syperski
> CWS Software LLC
>
> --
> 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 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

Re: [android-developers] Re: ICS Hardware Acceleration crash or display issues

2011-12-23 Thread Romain Guy
The emulator doesn't support OpenGL ES 2.0 at the moment so hardware
acceleration cannot be test with the emulator. Yet. We're working on
OpenGL ES 2.0 support for the emulator though.

On Fri, Dec 23, 2011 at 6:35 AM, Derek  wrote:
> Hi all,
>
> Many apps are facing display issues (or crash) when 2D GPU rendering
> is enabled on real devices. How can we test this feature is ICS
> emulator?
> Is it true that it cannot be tested in Emulator?
> http://stackoverflow.com/questions/7831865/where-is-the-hardware-acceleration-in-the-ics-emulator
>
> We've tried to enabled in Settings->Developer without success. Apps
> are working fine but users complains on real devices.
>
> Thanks.
>
> On Dec 6, 4:49 pm, webmonkey  wrote:
>> Hi Romain
>>
>> > You can easily check whether your app ishardwareaccelerated on
>> > startup and warn the user it's not supported.
>>
>> Eh, how do you easily check for that at startup, I found
>>
>> View.isHardwareAccelerated()
>> Canvas.isHardwareAccelerated()
>>
>> But you can't use them at startup, am I missing something?
>>
>> I really hope you remove the "Force GPU" setting from future release
>> build ofICS. You used to have a special Developer app for these
>> things.
>>
>> On Dec 5, 7:01 pm, Romain Guy  wrote:
>>
>> > This setting is unfortunately a double-edged sword, it was intended for
>> > developers so they could easily test their application withhardware
>> > acceleration turned on.
>>
>> > You can easily check whether your app ishardwareaccelerated on startup
>> > and warn the user it's not supported.
>>
>> > On Mon, Dec 5, 2011 at 9:21 AM, Mark Murphy  
>> > wrote:
>> > > On Mon, Dec 5, 2011 at 12:04 PM, webmonkey  wrote:
>> > > > I see now that there are some websites that advise people to turn it
>> > > > on because it makes everything run smoother.
>>
>> > > Got any links? At least we can work on trying to get these posts
>> > > updated, particularly if there's no SDK means of telling Android "no
>> > > means no" when it comes to the Force GPU setting (and I see nothing in
>> > > the SDK that looks promising).
>>
>> > > --
>> > > Mark Murphy (a Commons Guy)
>> > >http://commonsware.com|http://github.com/commonsguy
>> > >http://commonsware.com/blog|http://twitter.com/commonsguy
>>
>> > > Warescription: Three Android Books, Plus Updates, One Low Price!
>>
>> > > --
>> > > 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
>>
>> > --
>> > Romain Guy
>> > Android framework engineer
>> > romain...@android.com
>
> --
> 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



-- 
Romain Guy
Android framework engineer
romain...@android.com

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


Re: [android-developers] Re: ICS Open GLES 1.0 | glTexImage2D + glTexSubImage2D not working?!

2011-12-23 Thread Leigh McRae
That is a GL_INVALID_VALUE error.  If it's glTexImage2D that is causing 
it then maybe you're using a non-power-of-two texture on a devices that 
doesn't support it.  Make sure you know which function is causing the 
error then look it up in the man and see what conditions cause the error.


http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml

On 23/12/2011 7:19 PM, AndroidYourself wrote:

Im getting this glGetError = 1281

Maybe this is a good hint for anyone to find a solution for this
problem.



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


Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Miguel Morales
Oh yes that's right.  You can simply have a splash screen launch activity
and have your logic there.  Or still have your own application subclass and
have your launch logic in the application onCreate.  Mostly a matter of
taste on how you do it though.

2011/12/23 Kostya Vasilyev 

> The application object is not an entry point into an Android package.
> There is no UI for the user to launch the application object.
>
> Activities is what users launch, and is that what they see in the launcher.
> 24.12.2011 3:49 пользователь "Miguel Morales" 
> написал:
>
> I haven't done this myself but I *think* you dont have to set a default
>> activity.
>> You might then be able to subclass the Application class and override
>> onStart() and launch an intent there.
>> Again, not even sure if this is possible but might be a bit cleaner.
>>
>> 2011/12/23 Kostya Vasilyev 
>>
>>> Set configuration activity as the launcher entry point in the manifest,
>>> check your flags, start the main activity, call finish. Do it all inside
>>> onCreate before setContentView.
>>>
>>> Method 2, exactly opposite: set main activity as the entry point, check
>>> flags, call startActivityForResult for the config activity.
>>>  24.12.2011 3:31 пользователь "John Goche" 
>>> написал:
>>>
>>>
 Hello,

 I am having the following issue. In my application I need to display
 activity A the first time the application is launched so that the user
 can configure some parameters on a form. When the user completes
 the form a preference is set so that every other time the user starts
 the application the application starts directly with activity B.

 Now I am having some trouble coding this behavior because the
 android manifest file does not seem to allow for this conditional
 launching. It is always the same activity which seems must be
 launched first.

 How can I solve this issue? I hope I have explained the problem
 clearly. Any help would be sincerely appreciated.

 Thanks,

 John Goche

 --
 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 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
>>>
>>
>>
>>
>> --
>> ~ Jeremiah:9:23-24
>> Android 2D MMORPG: http://solrpg.com/,
>> http://www.youtube.com/user/revoltingx
>>
>> --
>> 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 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
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Kostya Vasilyev
The application object is not an entry point into an Android package. There
is no UI for the user to launch the application object.

Activities is what users launch, and is that what they see in the launcher.
24.12.2011 3:49 пользователь "Miguel Morales" 
написал:

> I haven't done this myself but I *think* you dont have to set a default
> activity.
> You might then be able to subclass the Application class and override
> onStart() and launch an intent there.
> Again, not even sure if this is possible but might be a bit cleaner.
>
> 2011/12/23 Kostya Vasilyev 
>
>> Set configuration activity as the launcher entry point in the manifest,
>> check your flags, start the main activity, call finish. Do it all inside
>> onCreate before setContentView.
>>
>> Method 2, exactly opposite: set main activity as the entry point, check
>> flags, call startActivityForResult for the config activity.
>>  24.12.2011 3:31 пользователь "John Goche" 
>> написал:
>>
>>
>>> Hello,
>>>
>>> I am having the following issue. In my application I need to display
>>> activity A the first time the application is launched so that the user
>>> can configure some parameters on a form. When the user completes
>>> the form a preference is set so that every other time the user starts
>>> the application the application starts directly with activity B.
>>>
>>> Now I am having some trouble coding this behavior because the
>>> android manifest file does not seem to allow for this conditional
>>> launching. It is always the same activity which seems must be
>>> launched first.
>>>
>>> How can I solve this issue? I hope I have explained the problem
>>> clearly. Any help would be sincerely appreciated.
>>>
>>> Thanks,
>>>
>>> John Goche
>>>
>>> --
>>> 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 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
>>
>
>
>
> --
> ~ Jeremiah:9:23-24
> Android 2D MMORPG: http://solrpg.com/,
> http://www.youtube.com/user/revoltingx
>
> --
> 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 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

[android-developers] Re: ICS Open GLES 1.0 | glTexImage2D + glTexSubImage2D not working?!

2011-12-23 Thread AndroidYourself
Im getting this glGetError = 1281

Maybe this is a good hint for anyone to find a solution for this
problem.

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


Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Miguel Morales
I haven't done this myself but I *think* you dont have to set a default
activity.
You might then be able to subclass the Application class and override
onStart() and launch an intent there.
Again, not even sure if this is possible but might be a bit cleaner.

2011/12/23 Kostya Vasilyev 

> Set configuration activity as the launcher entry point in the manifest,
> check your flags, start the main activity, call finish. Do it all inside
> onCreate before setContentView.
>
> Method 2, exactly opposite: set main activity as the entry point, check
> flags, call startActivityForResult for the config activity.
>  24.12.2011 3:31 пользователь "John Goche" 
> написал:
>
>
>> Hello,
>>
>> I am having the following issue. In my application I need to display
>> activity A the first time the application is launched so that the user
>> can configure some parameters on a form. When the user completes
>> the form a preference is set so that every other time the user starts
>> the application the application starts directly with activity B.
>>
>> Now I am having some trouble coding this behavior because the
>> android manifest file does not seem to allow for this conditional
>> launching. It is always the same activity which seems must be
>> launched first.
>>
>> How can I solve this issue? I hope I have explained the problem
>> clearly. Any help would be sincerely appreciated.
>>
>> Thanks,
>>
>> John Goche
>>
>> --
>> 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 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
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Kostya Vasilyev
Set configuration activity as the launcher entry point in the manifest,
check your flags, start the main activity, call finish. Do it all inside
onCreate before setContentView.

Method 2, exactly opposite: set main activity as the entry point, check
flags, call startActivityForResult for the config activity.
 24.12.2011 3:31 пользователь "John Goche" 
написал:

>
> Hello,
>
> I am having the following issue. In my application I need to display
> activity A the first time the application is launched so that the user
> can configure some parameters on a form. When the user completes
> the form a preference is set so that every other time the user starts
> the application the application starts directly with activity B.
>
> Now I am having some trouble coding this behavior because the
> android manifest file does not seem to allow for this conditional
> launching. It is always the same activity which seems must be
> launched first.
>
> How can I solve this issue? I hope I have explained the problem
> clearly. Any help would be sincerely appreciated.
>
> Thanks,
>
> John Goche
>
> --
> 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 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

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Mark Murphy
On Fri, Dec 23, 2011 at 6:31 PM, John Goche  wrote:
> I am having the following issue. In my application I need to display
> activity A the first time the application is launched so that the user
> can configure some parameters on a form. When the user completes
> the form a preference is set so that every other time the user starts
> the application the application starts directly with activity B.
>
> Now I am having some trouble coding this behavior because the
> android manifest file does not seem to allow for this conditional
> launching. It is always the same activity which seems must be
> launched first.
>
> How can I solve this issue?

In onCreate() of Activity A, before you call setContentView(), make
the determination of whether A really needs to be shown. If not, call
startActivity() for B, followed by finish() to get rid of your
unnecessary A.

Or, create Activity C that is your actual launcher entry point, with
android:theme="@android:style/Theme.NoDisplay" in its 
element. It makes the choice of whether to call startActivity() on A
or B to route the user to the right spot, and then calls finish().

Or, have the launcher be Activity B. B, in onCreate(), before you call
setContentView(), see if you need the user to see A instead. If so,
call startActivity() on A, or possibly even startActivityForResult().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 4.0 Programming Books: http://commonsware.com/books

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


[android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread John Goche
Hello,

I am having the following issue. In my application I need to display
activity A the first time the application is launched so that the user
can configure some parameters on a form. When the user completes
the form a preference is set so that every other time the user starts
the application the application starts directly with activity B.

Now I am having some trouble coding this behavior because the
android manifest file does not seem to allow for this conditional
launching. It is always the same activity which seems must be
launched first.

How can I solve this issue? I hope I have explained the problem
clearly. Any help would be sincerely appreciated.

Thanks,

John Goche

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

[android-developers] Re: ICS Open GLES 1.0 | glTexImage2D + glTexSubImage2D not working?!

2011-12-23 Thread AndroidYourself
Hint: Its working fine with Xoom (Android 3.2) and is not working with
Galaxy Nexus (Android 4.0.2)

Anyone with a solution?

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


[android-developers] Re: Audio jack for other functions

2011-12-23 Thread JP
Check out AudioRecord:
http://developer.android.com/reference/android/media/AudioRecord.html
You can use that to record audio, music, or, magnetic card strips like
Square does...

On Dec 21, 11:00 pm, PhotoSteve  wrote:
> How would you get access to the audio jack to perform other
> functions(aka the Square Up CC reader)?

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


Re: [android-developers] Re: Data written to SQLite database not immediately available

2011-12-23 Thread Erik
The threads use the content provider. The content provider's insert() 
method gets a database from the SQLiteOpenHelper each time.

I'll add that the content provider we're using is a modified version of 
Google's telephony content provider. We've been able to duplicate this 
behavior with the actual telephony provider on a shipping phone.

-Erik

On Friday, December 23, 2011 7:50:45 AM UTC-8, Kostya Vasilyev wrote:
>
> To OP:
>
> Do your threads use separate instances of SQLiteDatabase object pointing 
> to the same database one- or one SQLiteDatabase instance, shared?
>
>

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

[android-developers] Re: Accessing to Canvas's parent

2011-12-23 Thread Gilberto Cuba Ricardo
What are you trying to say?

On 22 dic, 05:49, Sudhi Hn  wrote:
> Hey guys good work
>
> On Dec 21, 11:28 pm, Gilberto Cuba R  wrote:
>
>
>
>
>
>
>
> > Hello colleagues,
>
> > I'm trying to simulate the HTML5 Canvas behaviour on Android. In
> > order to achieve this, I have created several classes that inheritate
> > from View, and therefore have "THEIR OWN" canvas, wich is not shared,
> > (and please correct me if I'm wrong) that is, that all my inherited
> > View classes have a Canvas that is not relationed with other instance
> > classes. So, I've named this classes after the figures, for instance:
> > MyLine, MyCircle, MyRectangle, MyPolygon, etc. When it comes to
> > drawing
> > this figures I have no problem at all because all I do is overwrite
> > the onDraw() method and no harm done. Only that the canvas I'm
> > currently drawing is the same as in the figure.
>
> > All this mess has its inconveniences, or at least is coming out as
> > so,
> > for I also mean to implement a MyClip() class, allowing it to
> > properly
> > apply to the canvas's drawClip method when it is leveled with the
> > other
> > figures, any other way, it doesn't work out as expected. And well,
> > such
> > like this one I have other troubles for not being able to acces the
> > Canvas of the Parent on my class.
>
> > Any suggestions on the path I should follow, or at least some
> > reajustment in the classes desing so I can reach my goal?
>
> > Thank you for advance.
>
> > Gilberto Cuba

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


[android-developers] Re: ICS/Galaxy Nexus Can't Loop Audio without GAP

2011-12-23 Thread Doug
Have you considered using AudioTrack instead?  You would have to
decode your audio data to PCM if it's not already and write your own
looping, but you would gain a lot of control over the stream of audio
it produces.  I realize this isn't really a solution to your problem,
but it would give you the chance to solve the issue yourself instead
of waiting on all the device manufacturers to solve it for you.

Doug

On Dec 22, 4:39 pm, csyperski  wrote:
> ICS can't loop audio seamlessly with more than one core, when using
> MediaPlayer->setLooping(true).

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


[android-developers] Re: Audio jack for other functions

2011-12-23 Thread Doug
You would read and write audio in the same way as if a headset was
installed.

I strongly suspect that Square just communicates with its reader using
audio signals.  Kind of like how old modems would transfer digital
data across analog phone connections.  The only data they really have
to transfer is the small amount of card data on the magnetic strip.

Doug

On Dec 21, 11:00 pm, PhotoSteve  wrote:
> How would you get access to the audio jack to perform other
> functions(aka the Square Up CC reader)?

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


Re: [android-developers] Re: problem parsing the package

2011-12-23 Thread Kumar Bibek
Post your manifest file. It's probably that causing the problem.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*

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

[android-developers] Re: problem parsing the package

2011-12-23 Thread rachana govilkar
Did u even write anything

On Dec 23, 7:43 pm, radin  wrote:
> On Nov 28, 2:42 pm, rachana govilkar 
> wrote:
>
>
>
>
>
>
>
> > helo
> > i developd a small application n started testing on LG 2.2 android
> > device.
> > but i am getting this error "there isproblemparsingthepackage"
> > when installing .apk file.
> > i searched this group but i dint get any satisfactory answer.
>
> > 
> > i hope this is not causing erroras 2.2 device has same API
> > level...
> > please reply soon
> > thnk u in advance

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


[android-developers] ICS Open GLES 1.0 | glTexImage2D + glTexSubImage2D not working?!

2011-12-23 Thread AndroidYourself
Hello,

I use this with GLES 1.0 and Android 4.0.2 (ICS):

gl.glTexImage2D(GL10.GL_TEXTURE_2D, 0, GL10.GL_RGB, bufferWidth,
bufferHeight, 0, GL10.GL_RGB, GL10.GL_UNSIGNED_BYTE, null);
gl.glTexSubImage2D(GL10.GL_TEXTURE_2D, 0, 0, 0, bufferWidth,
bufferHeight, GL10.GL_RGB, GL10.GL_UNSIGNED_SHORT_5_6_5,
canvasBufferAsShort);


under Android 3.2 no problem... the Bitmap as Short Buffer is written
every frame, but with Android 4.0.2 nothing is changed every frame
(the old Bitmap is still there).

Anyone knowing the problem?


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


[android-developers] L2TP/IPSEC PSK with Android 4

2011-12-23 Thread program
I am having trouble connecting to an L2TP/IPSec PSK VPN (with pre-
shared key).
The same connection is working on my nexus one, but not on the galaxy
nexus with ics.
On the galaxy nexus it always times out.

Has anybody experienced the same problem?

PPPT works fine by the way.

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


[android-developers] Re: Android Emulator - how to get Geo Location?

2011-12-23 Thread Streets Of Boston
Do you use the DDMS' "Emulator Control" and its Location Controls fields to 
send some dummy locations to the emulator?

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

[android-developers] Android Emulator - how to get Geo Location?

2011-12-23 Thread Ved Antani
 

$('#gps_map').live("pageshow", function() {
$('#map_canvas_2').gmap('refresh');
$('#map_canvas_2').gmap('getCurrentPosition', function(position, status) {
if ( status === 'OK' ) {
var latlng = new google.maps.LatLng(position.coords.latitude, 
position.coords.longitude)
$('#map_canvas_2').gmap('get', 'map').panTo(latlng);
$('#map_canvas_2').gmap('search', { 'location': latlng }, 
function(results, status) {
if ( status === 'OK' ) {
$('#from').val(results[0].formatted_address);
}
});
} else {
alert('Unable to get current position');
}
});});
This code always fails to get location. I can't see the GPS icon in the 
emulator. I tried setting all possible permissions, tried setting the 
latlong coordinates with geo fix method but nothing works. Is there ANY 
way by which geo location can work on android ?


   I am using 'jquery-ui-map' for an android app. My emulator is Google API 
Level 13 version 3.2. My Javascript code is :

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

Re: [android-developers] Re: Data written to SQLite database not immediately available

2011-12-23 Thread Kostya Vasilyev

To OP:

Do your threads use separate instances of SQLiteDatabase object pointing 
to the same database one- or one SQLiteDatabase instance, shared?


23.12.2011 18:03, Ralph Bergmann | the4thFloor.eu пишет:

Am 23.12.11 00:06, schrieb lbendlin:

it's not a bug, that's how SQLite works. You can't have concurrent
writes. Not sure how the content provider buffers this but if you do
plain SQLite you are basically blocking the database with each write,
and you need to use semaphores to manage that.

I think a content provider can handle that.

I think you only have a timing problem. The content provider needs a
little bit to store the data.

You send a ping from one thread to the other thread. A better solution
is to register a content observer. With this observer the other thread
gets automatically a notification if the content provider has saved the
data.


Ralph




--
Kostya Vasilyev

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


[android-developers] Help/collaboration needed from Dianne or someone at the Android team in explaining some results on a mobile computing project/article on time-shifted location

2011-12-23 Thread André Coelho
Hello. I'm an MSc student at University of Minho, Portugal and I'm
currently involved in a *Mobile Computing project* in which we use
+Android to facilitate conducting *user experience studies* and
gathering various data. We devised a method for gathering *location
information*, powered by Android and Google APIs. We did this because
we needed to be able to gather location data with little hassle and
cost to the users (*no data connection, no gps, minor battery life
impact*).

We tested the method against the location obtained in real-time by the
device and ground truth and, we obtained good results but we are
having some issues explaining why some of the results were so much
better.

The Professors co-authoring the article and I thought it would be a
good idea to reach out to you and see if you could possibly help us
explain the results, given *your knowledge of the inner workings of
Android*. Maybe you would even be interested in co-authoring the
article as well. Or perhaps you could direct me to someone within the
Android team that would be interested in collaborating. The article
can be read at our University's repository:
http://repositorium.sdum.uminho.pt/bitstream/1822/15641/1/123_Poster.pdf

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


[android-developers] Re: problem parsing the package

2011-12-23 Thread radin


On Nov 28, 2:42 pm, rachana govilkar 
wrote:
> helo
> i developd a small application n started testing on LG 2.2 android
> device.
> but i am getting this error "there isproblemparsingthepackage"
> when installing .apk file.
> i searched this group but i dint get any satisfactory answer.
>
> 
> i hope this is not causing erroras 2.2 device has same API
> level...
> please reply soon
> thnk u in advance

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


[android-developers] SyncAdapter - error "SettingNotFoundException: roaming_auto_sync_enabled"

2011-12-23 Thread Fugee
Hello,

i have written my own syncadapter. This is working without any
problems on a motorola defy (Android 2.1) and a zte blade (Android
2.3.5). But on a Samsung Galaxy S (GT I9000 - Android 2.3.3) the
syncoperation breaks with this error:

android.provider.Settings$SettingNotFoundException:
roaming_auto_sync_enabled
at android.provider.Settings$Secure.getInt(Settings.java:2257)
at
com.android.server.enterprise.RoamingPolicy.isRoamingSyncEnabled(RoamingPolicy.java:
121)
at android.app.admin.DevicePolicyManager
$RoamingPolicy.isRoamingSyncEnabled(DevicePolicyManager.java:**)
at
com.android.settings.ManageAccountsSettings.onSyncStateUpdated(ManageAccountsSettings.java:
177)
at
com.android.settings.ManageAccountsSettings.onAccountsUpdated(ManageAccountsSettings.java:
269)
at android.accounts.AccountManager$11.run(AccountManager.java:1153)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at com.android.server.ServerThread.run(SystemServer.java:641)

i searched for info about this, but i got no results. Maybe someone
has some infos about this error ??

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


Re: [android-developers] Re: Data written to SQLite database not immediately available

2011-12-23 Thread Ralph Bergmann | the4thFloor.eu
Am 23.12.11 00:06, schrieb lbendlin:
> it's not a bug, that's how SQLite works. You can't have concurrent
> writes. Not sure how the content provider buffers this but if you do
> plain SQLite you are basically blocking the database with each write,
> and you need to use semaphores to manage that.

I think a content provider can handle that.

I think you only have a timing problem. The content provider needs a
little bit to store the data.

You send a ping from one thread to the other thread. A better solution
is to register a content observer. With this observer the other thread
gets automatically a notification if the content provider has saved the
data.


Ralph


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


Re: [android-developers] which to use shared preferences or files best practices

2011-12-23 Thread TreKing
On Fri, Dec 23, 2011 at 4:15 AM, Graham Bright wrote:

> To store the text strings what would you recommend? A key/value pair
> using maybe ListPreferences or maybe text files.
>

How long is this string? If it's relatively short, a preference. If it's
relatively long, a file.

-
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

Re: [android-developers] Help on zooming and moving the image

2011-12-23 Thread Jim Graham
On Fri, Dec 23, 2011 at 02:58:56PM +0530, chowdary nani wrote:
> Can we zoom or move the image which is set to image view in android
> if any one send me the code it will be very help full to me as it is
> important to me.

How important is it?  Answer in US dollars only, please.

Honestly, though, by now, if you're asking here, you've already read
the appropriate section(s) in the developers guide, so you already
HAVE your answer, right?

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

 No, I'm not going to explain it.  If you can't figure it
 out, you didn't want to know anyway...  --Larry Wall

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] Re: Android custom ImageView fade animation

2011-12-23 Thread Seb
Brilliant, that's useful, will give that a go. Any advice for the
original issue?

On Dec 23, 6:51 am, AlexBonel  wrote:
> Has looked through your code and saw one big perfomance issue:
>
> protected void onDraw(Canvas canvas) {
>     Paint foreground = new Paint(Paint.ANTI_ALIAS_FLAG);
> ...
>
> }
>
> It takes too much time when your try to allocate memory for Paint
> object. If you work withanimationit always calls invalidate() method
> which redraws your View. Memory allocation for Paint should be outside
> of onDraw() method (e.g. when you create your view, in it's
> constructor) it will give you much better perfomance that you have
> now. Try to do so and you'll see.

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


Re: [android-developers] Corrupted pictures from camera

2011-12-23 Thread Mark Murphy
On Fri, Dec 23, 2011 at 1:57 AM, Michael Banzon  wrote:
> If you need help/testing I have a Desire S - I've run into this issue
> with some apps - and it is quite annoying!

Flaws tied to hardware pretty much mean I need my hands on the
hardware to be able to test effectively. If this were a flaw in, say,
the contacts implementation, I would see if DeviceAnywhere, TestDroid,
LessPainful, apkudo, etc. had a Desire S in their respective fleets
and diagnose things that way.

Thanks, though!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 4.0 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Re: The accelerometer reading looks odd

2011-12-23 Thread Christopher Van Kirk
On Saturn, perhaps.

On 12/23/2011 7:31 PM, Raghav Sood wrote:
> It is possible that the device is not resting evenly on the surface of
> that the surface itself is tilted.
>
> Thanks
>
> 2011/12/23 Yang Bo mailto:yangbo@gmail.com>>
>
> May not possible,there are several games using it in my phone...
>
> 在 2011-12-23 下午1:53,"Christopher Van Kirk"
>  >写道:
>
> Seems like your device is broken.
>
> On 12/23/2011 11:26 AM, Yang Bo wrote:
>>
>> Could anyone help on this ? Thanks
>>
>> 在 2011-12-22 下午5:02,"Yang Bo" > > 写道:
>>
>> Hi,
>> I am trying to read the device accelerometer when the
>> phone is placed on a desk with screen up,I expect 0 on
>> the x-axis and y-axis,-9.8 at z-axis. But I get
>> x:11,y:-37,z:-24(decimal part ignore) What is
>> this? I read the doc of accelerometer, does not make it
>> clear. Could you please help :
>> 1. Why x and y are non-zero?
>> 2. Why the value is so large?
>>
>> 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 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 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
>
>
>
>
> -- 
> Raghav Sood
> http://www.androidactivist.org/ - Author
> http://www.appaholics.in/ - Founder
>
> -- 
> 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 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

[android-developers] Re: ICS Hardware Acceleration crash or display issues

2011-12-23 Thread Derek
Hi all,

Many apps are facing display issues (or crash) when 2D GPU rendering
is enabled on real devices. How can we test this feature is ICS
emulator?
Is it true that it cannot be tested in Emulator?
http://stackoverflow.com/questions/7831865/where-is-the-hardware-acceleration-in-the-ics-emulator

We've tried to enabled in Settings->Developer without success. Apps
are working fine but users complains on real devices.

Thanks.

On Dec 6, 4:49 pm, webmonkey  wrote:
> Hi Romain
>
> > You can easily check whether your app ishardwareaccelerated on
> > startup and warn the user it's not supported.
>
> Eh, how do you easily check for that at startup, I found
>
> View.isHardwareAccelerated()
> Canvas.isHardwareAccelerated()
>
> But you can't use them at startup, am I missing something?
>
> I really hope you remove the "Force GPU" setting from future release
> build ofICS. You used to have a special Developer app for these
> things.
>
> On Dec 5, 7:01 pm, Romain Guy  wrote:
>
> > This setting is unfortunately a double-edged sword, it was intended for
> > developers so they could easily test their application withhardware
> > acceleration turned on.
>
> > You can easily check whether your app ishardwareaccelerated on startup
> > and warn the user it's not supported.
>
> > On Mon, Dec 5, 2011 at 9:21 AM, Mark Murphy  wrote:
> > > On Mon, Dec 5, 2011 at 12:04 PM, webmonkey  wrote:
> > > > I see now that there are some websites that advise people to turn it
> > > > on because it makes everything run smoother.
>
> > > Got any links? At least we can work on trying to get these posts
> > > updated, particularly if there's no SDK means of telling Android "no
> > > means no" when it comes to the Force GPU setting (and I see nothing in
> > > the SDK that looks promising).
>
> > > --
> > > Mark Murphy (a Commons Guy)
> > >http://commonsware.com|http://github.com/commonsguy
> > >http://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > Warescription: Three Android Books, Plus Updates, One Low Price!
>
> > > --
> > > 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
>
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com

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


Re: [android-developers] Re: The accelerometer reading looks odd

2011-12-23 Thread Raghav Sood
It is possible that the device is not resting evenly on the surface of that
the surface itself is tilted.

Thanks

2011/12/23 Yang Bo 

> May not possible,there are several games using it in my phone...
> 在 2011-12-23 下午1:53,"Christopher Van Kirk"  >写道:
>
>  Seems like your device is broken.
>>
>> On 12/23/2011 11:26 AM, Yang Bo wrote:
>>
>> Could anyone help on this ? Thanks
>> 在 2011-12-22 下午5:02,"Yang Bo"  写道:
>>
>> Hi,
>> I am trying to read the device accelerometer when the phone is placed
>> on a desk with screen up,I expect 0 on the x-axis and y-axis,-9.8 at
>> z-axis.  But I get
>> x:11,y:-37,z:-24(decimal part ignore)  What is this?  I read the doc
>> of accelerometer,  does not make it clear.  Could you please help :
>> 1. Why x and y are non-zero?
>> 2. Why the value is so large?
>>
>> 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 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 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
>



-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

Re: [android-developers] Re: The accelerometer reading looks odd

2011-12-23 Thread Yang Bo
May not possible,there are several games using it in my phone...
在 2011-12-23 下午1:53,"Christopher Van Kirk" 写道:

>  Seems like your device is broken.
>
> On 12/23/2011 11:26 AM, Yang Bo wrote:
>
> Could anyone help on this ? Thanks
> 在 2011-12-22 下午5:02,"Yang Bo"  写道:
>
> Hi,
> I am trying to read the device accelerometer when the phone is placed
> on a desk with screen up,I expect 0 on the x-axis and y-axis,-9.8 at
> z-axis.  But I get
> x:11,y:-37,z:-24(decimal part ignore)  What is this?  I read the doc
> of accelerometer,  does not make it clear.  Could you please help :
> 1. Why x and y are non-zero?
> 2. Why the value is so large?
>
> 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 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 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

[android-developers] which to use shared preferences or files best practices

2011-12-23 Thread Graham Bright
Hi all,

I am trying to decide if I should use shared preferences or files for
the following scenario.

I want to present to the user a list of simple text strings which if
selected will be used later in my code.

Example

  Text string 1
  Text string 2
  User defined Text string

If the user selects Text string 1 then this is used later on. A user
may also define his/her own text string for later use.

To store the text strings what would you recommend? A key/value pair
using maybe ListPreferences or maybe text files.

Thanks in advance, I hope the question is not too silly.

Seasons Greetings

Graham

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


Re: [android-developers] Help: getting illegal argument exception in glcolorpointer

2011-12-23 Thread Raghav Dwivedi
thanks  Latimerius :-)

On Wed, Dec 21, 2011 at 1:49 AM, Latimerius wrote:

> On Mon, Dec 19, 2011 at 9:12 AM, Raghav Dwivedi
>  wrote:
> > private void initTriangle(){
> > //Float has 4 Bytes
> > ByteBuffer vbb = ByteBuffer.allocateDirect(_nr0fvertices *3 *4);
> > vbb.order(ByteOrder.nativeOrder());
> > _vertexBuffer = vbb.asFloatBuffer();
> > //Short has 4 Bytes
> > ByteBuffer ibb = ByteBuffer.allocateDirect(_nr0fvertices * 2);
> > ibb.order(ByteOrder.nativeOrder());
> > _indexBuffer = ibb.asShortBuffer();
> > //Float has 4 Bytes, 4 Colors (RGBA)*no of vertices*4 Bytes
> > ByteBuffer cbb = ByteBuffer.allocate(4*_nr0fvertices*4);
>
> I guess the logged exception pretty much says it all: note that unlike
> your other buffers, you allocate your colour buffer using allocate(),
> not allocateDirect().  Try using allocateDirect(), I think that should
> fix 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@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




-- 
Thanks & Regards
 Raghav Dwivedi
 http://about.me/raghavdwivedi

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

[android-developers] Help on zooming and moving the image

2011-12-23 Thread chowdary nani
Hi All,
I need help
Can we zoom or move the image which is set to image view in android
if any one send me the code it will be very help full to me as it is
important to me.
Thanks,
Naveen.

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

[android-developers] Re: games & apps

2011-12-23 Thread srihari babu
Hi Samron,

Please contact this Hyderabad based company, these guys have 
vast experience in android app development.
http://www.incubesol.com/ 

Regards,
Srihari babu.R

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

[android-developers] Re: Password app

2011-12-23 Thread Ali Chousein
Have a look at the intent actions and see if any, or a set of them
will serve your purpose.  
http://developer.android.com/reference/android/content/Intent.html
BTW, why are you trying to do this? Even though this feature is useful
on desktops/laptops I doubt that it'll have any popularity on phones.
In my humble opinion a phone is something more "personal" than a
desktop/laptop and it's too way cumbersome  to provide a password
every time you wake it up.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

On Dec 22, 5:09 pm, poiuytrez  wrote:
> Hello,
>
> I have some experience in Android development but this time I would like to
> create some kind of password app. Basically I need to show the app when the
> user clicks on the power button. Do you have any idea where should I begin
> ? I tried to browse the documentation but I could not find any example.
>
> Thank you
>
> poiuytrez

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


[android-developers] How to create animation for CustomDialog

2011-12-23 Thread android developer


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

[android-developers] Re: Regarding Web Services Development in Android

2011-12-23 Thread Ali Chousein
You are completely confused. You should have a server which provides
an interface to access your database (RESTful interfeces are very
popular and convenient). Then any client can query your databases
through this interface using HTTPGet and HTTPPost.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

On Dec 22, 10:14 am, kiran  wrote:
> hi,
>
> How to search a record in database using Web Services, while I used
> Android as client side application in which i need to enter some text
> in edit-text  (as name of records) such that if it match with
> that(which we entered) record it has display the all records from the
> data base.

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


Re: [android-developers] games & apps

2011-12-23 Thread Michael Banzon
Anybody can make Android games or apps.

As far as I can tell - spelling is the tricky part along with
proper/legit business proposals. I am very sorry that I am not able to
help you with those - but I am sure that now that we have identified
the general problem you will be able to gain some momentum without my
help.

Happy holidays...

On Fri, Dec 23, 2011 at 9:26 AM, Samron  wrote:
> h ne bdy who can make android games or aaps can contact me, i can
> give u a huge ammoutn f money for this. U people can directly call
> me on +91-9778-660040
> :- samron
>
> --
> 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



-- 
Michael Banzon
http://michaelbanzon.com/

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


[android-developers] games & apps

2011-12-23 Thread Samron
h ne bdy who can make android games or aaps can contact me, i can
give u a huge ammoutn f money for this. U people can directly call
me on +91-9778-660040
:- samron

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


[android-developers] world Class house shifting and office moving in Dubai Abu Dhabi Sharja Ajman all over the UAE visit our site www.unionmoversuae.com

2011-12-23 Thread unionmoversuae
Welcome
Enjoy world-class moving services at local rates!

Union Mover Dubai is the moving company created to make your moving
experience a stress free one. Our focus is on top notch customer
service, and fast, professional moving services. We aim to offer our
customers the quality of service they expect from the industry's
biggest names in removals, but at affordable prices.

Whether you're moving house or office locally, relocating
internationally, or just a few large items around Dubai, Abu Dhabi or
across the UAE, Union Mover removals promise to handle every detail
with speed, care and professionalism so you can relax and take it
easy.

To get your moving quote underway, simply click Get Your Easy Quote,
and we'll prepare your quote immediately.   Only pay for the services
you need.

When you move with Union Mover, you only pay for the removal services
you need. Our prices are based on the space you use in our trucks, the
items you need packed and boxed, bubble wrapped or dismantled. No
matter what your budget is you can tailor your move accordingly.

If you need a removal truck today... no problem. We have good network
of removal trucks, moving vans & packing crew across the country ready
to handle any job you throw their way.

So let's get started shall we? Please click on the Get Your Union
Quote button on the right, fill in the quote form and we'll get right
back to you with a great price today!

"Our friendly team of highly trained packers will have you comfortably
set up in your new home, same day guaranteed!"

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