Re: [android-developers] Re: SQLite concurrency

2011-10-11 Thread Mark Murphy
On Tue, Oct 11, 2011 at 6:13 AM, Zsolt Vasvari wrote: > The only problem is that the datrabase is never closed.  But this is > more of a pedentic observation as there seems to be no real side > effects. Yeah, content providers suffer from the same issue. I fought and fought against singleton data

[android-developers] It is possible to rotate a object from his own coordinates and not from the plane coordinates?

2011-10-11 Thread saex
I am following the OpenGL es rotation examples from google to rotate a simple Square (not a cube) on my Android App, for example this code: gl.glRotatef(xrot, 1.0f, 0.0f, 0.0f); //X gl.glRotatef(yrot, 0.0f, 1.0f, 0.0f); //Y gl.glRotatef(zrot, 0.0f, 0.0f, 1.0f); //Z It works fine if you only

[android-developers] Copy 20MB of file from asert folder

2011-10-11 Thread Naveen
Hello friends , i am using below code for copy file from asert folder , that's work but not able to copy complete file only 9MB file copied , Please help me , i have already changed the byte array size with video file size but same saze video in sdcard private void CopyAssets() { AssetManag

[android-developers] GPS locations distance

2011-10-11 Thread nageswara rao rajana
Hi, While walking i am capturing the route locations and placing on map. But i am unable to get the distance travelled with those locations.So please anyone help me in this. I tried this but "Force close exception raising" http://www.androidsnippets.com/calculate-distance-between-tw

[android-developers] Re: SQLite concurrency

2011-10-11 Thread Zsolt Vasvari
I just made the Database objects singletons as suggested by Mark. What a fantastic idea -- this solved so many of my problems and complexity in my app. My app deals with a user configurable number of databases (like files in a desktop app) and switching between them was a pain in the b*tt. This s

Re: [android-developers] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2011-10-11 Thread NaveenShrivastva
How to handle this situation here ... On Tue, Oct 11, 2011 at 2:22 PM, Naveen wrote: > I want to play video file from application context row directory > > MediaPlayer mediaPlayer = MediaPlayer.create(context, > R.raw.sound_file_1); > mediaPlayer.start(); // no need to call prepare(); create() do

[android-developers] Re: Scenario where initLoader() does not call onLoadFinished()

2011-10-11 Thread kaciula
Indeed, the loader manager destroy() method is called and the field mDestroyed is set to true. After this, the loader manager is not functional anymore. In onLoadComplete() it exits if mDestroyed is set to true. So i guess the problem is that the loader manager for that fragment is destroyed bu

[android-developers] Re: HTC and LG haven't implemented Android in the right way

2011-10-11 Thread MobileVisuals
Thanks, it looks better when I added an alpha channel to the textures. But I don't see that glBlendFunc(GL_SRC_ALPHA, GL_ONE) made any difference. There are still black square quads, but less than before. I tried to remove the gl.glColor4f calls, but that made the black square quads much more visib

Re: [android-developers] Re: Custom DialogPreference and PreferenceManager.setDefaultValues issue

2011-10-11 Thread Thierry Legras
Hi Ibendlin, Thanks for helping me :) I don't think the problem is in SeekBarPreference.onSetInitialValue() function itself as it is never called (I have put a log in it to check). There is certainly an issue somewhere in my implementation; when setDefaultValues is called, only SeekBarPreference

[android-developers] Re: how can i pass the complicated data from java to the native code (the c language)?

2011-10-11 Thread Doug
This is not an android specific question. You just need to learn JNI, and specifically how to access java objects using the JNI api. There are lots of resources about this that have nothing to do with Android. Doug On Oct 10, 3:11 am, 杨辉 wrote: > for example,look at the following codes: > >

[android-developers] List with seperators, checkboxes...

2011-10-11 Thread BearTi
Hi, I´ve problems to built a list for my app. This list should have seperators, drop down menus and checkboxes. I´ve read many tutorials, but I can´t find a good one that solves my problem. (for expample which adapter I have to choose and so on) Do you have a good axample for my or some tipps?

[android-developers] cannot make full functionality of lock slider with the use of seek bar

2011-10-11 Thread vishnu raj
converted android seek bar to lock slider but how to disable progress change when user single tap on the Seekbar in Android -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups

[android-developers] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2011-10-11 Thread Naveen
I want to play video file from application context row directory MediaPlayer mediaPlayer = MediaPlayer.create(context, R.raw.sound_file_1); mediaPlayer.start(); // no need to call prepare(); create() does that for you This video contains size is 19.5 MB facing error : Installation error: INST

[android-developers] Re: SQLite concurrency

2011-10-11 Thread rich friedel
@Zsolt Vasvari Just a quick thought for you... Consider closing stuff like the database/database adapter in your onPause() method of the Activity. onPause is always called where onDestroy is called whenever, thus the database might still be "open" when it is expected to be closed. I tend to clo

[android-developers] Button/ImageButton Rotation Not working

2011-10-11 Thread Chenna
Hi I am trying to create a Button/ImageButton and rotating to required degrees. I can able to rotate ImageView but same not working for Button/ImageButton ImageButton homeButton = new ImageButton (context); homeButton.setOnClickListener(homeButtonListener); homeButton.setScaleT

[android-developers] Unit testing methods containing Handler

2011-10-11 Thread lou
Hi ! I have a problem. I have a class MyObject that has a method start() : public class MyObject { public void start() { Handler h = new Handler(); new Thread() { @Override public void run() { super.run(); h.post(new Runnable() { @Override

[android-developers] Can I save the wallpaper?

2011-10-11 Thread Perry168
Hi, How can I backup the current wallpaper? Also, does any method to check the wallpaper is a livewallpaper or not? 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@goo

[android-developers] Re: Development platform on tablets?

2011-10-11 Thread P.N.
Haven't got a tablet with 3.x, yet, but I know 3.x is making them interesting. However, I've not seen any news about developing on 3.x directly - AFAIK I need a PC for Java development. However, I've noticed, script development IS possible using SL4A. Regards Peter iñaki schrieb: 3.x? Reg

[android-developers] Re: Is it possible a nested JAR in JAR?

2011-10-11 Thread gjs
Hi, See http://www.ibm.com/developerworks/java/library/j-onejar/ Regards On Oct 11, 9:16 am, Kristopher Micinski wrote: > What do you want to do?  You have a jar you're using in your app, and > you want to replace it with somebody else's jar file?  Why can't you > just drop it in and replace it

<    1   2