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

2011-10-11 Thread iñaki
3.x? Regards On 11 October 2011 07:51, P.N. peter.nabbef...@gmx.de wrote: Hello, is there any Android SDK available for use on Android tablets? Kind regards Peter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: HTTP Request Handler

2011-10-11 Thread Anil Jagtap
Dear Sunil, I have wrote something like following http://pastebin.com/6tX9UHQS Is that what you want? On Oct 10, 2:16 pm, Sunil Mishra suniljmis...@gmail.com wrote: Can any one please provide me an example of HTTP Request Handler. Please its urgent. -- You received this message because you

[android-developers] Re: SQLite concurrency

2011-10-11 Thread gjs
Hi, If you wrap all access to your sqlite3 database with a content provider this issue goes away. Regards On Oct 11, 1:30 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Thanks.  Are you saying that I should just open the database once? Right now, I am closing it in each Activity's onDestory().  

[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 krismicin...@gmail.com 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

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

[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] 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] 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);

[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

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

[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] 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] 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, 杨辉 yanghui1986...@gmail.com wrote: for example,look at the

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

[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

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 kumarnaveen.si...@gmail.com 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

[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

[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

[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() {

[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

Re: [android-developers] Re: SQLite concurrency

2011-10-11 Thread Mark Murphy
On Tue, Oct 11, 2011 at 6:13 AM, Zsolt Vasvari zvasv...@gmail.com 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

Re: [android-developers] close application

2011-10-11 Thread Mark Murphy
On Tue, Oct 11, 2011 at 1:08 AM, venugopal reddy venugopal.re...@tspl.com wrote: Now Just I close the browser and come  back to my home.(I thought  close the application). You need to learn how Android works. You do not close the browser, any more than pressing the home button in a browser

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

2011-10-11 Thread Mark Murphy
On Tue, Oct 11, 2011 at 3:12 AM, P.N. peter.nabbef...@gmx.de wrote: 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. Correct. You are welcome to attempt to

[android-developers] Can't upload an apk to Android Market

2011-10-11 Thread burnayev
I've been trying to upload a new apk for my application to the market for the past hour or so with no success. Once I hit the Upload button the progress bar stays at 0 B for a long time and then I get An unexpected error occurred. Please try again later. Is there a maintenance or something going

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

2011-10-11 Thread kaciula
I noticed that this problem doesn't appear if I use a ListFragment with a CursorLoader/AsyncTaskLoader and setRetainInstance(true). It only happens when I use a basic Fragment with CursorLoader/AsyncTaskLoader and setRetainInstance(true). -- You received this message because you are

Re: [android-developers] Can't upload an apk to Android Market

2011-10-11 Thread Rafael Maas
I did an upload a few hours ago! 2011/10/11 burnayev burna...@gmail.com: I've been trying to upload a new apk for my application to the market for the past hour or so with no success. Once I hit the Upload button the progress bar stays at 0 B for a long time and then I get An unexpected

[android-developers] Re: Can't upload an apk to Android Market

2011-10-11 Thread Shawn Holland
I'm having the exact same problem. I ran a wireshark trace. It looks like the page tries to send the APK file up multiple times with no response from the server. -Shawn On Oct 11, 7:15 am, burnayev burna...@gmail.com wrote: I've been trying to upload a new apk for my application to the market

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

2011-10-11 Thread Mark Murphy
If anyone on this thread who is experiencing this problem can cook up a simple example exhibiting the behavior and upload it somewhere, I'd be interested to take a peek at it. Thanks! On Tue, Oct 11, 2011 at 7:53 AM, kaciula catalin.moro...@gmail.com wrote: I noticed that this problem doesn't

Re: [android-developers] Custom compass image bounds in subclassed MyLocationOverlay

2011-10-11 Thread TreKing
On Mon, Oct 10, 2011 at 11:13 PM, stephen stephen.trai...@gmail.com wrote: How do you set the bounds of the custom imagery so that calls to drawCompass set the required bounds on the canvas object? You could try saving the current state of the Canvas, doing your drawing, then restoring it.

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

2011-10-11 Thread TreKing
On Tue, Oct 11, 2011 at 4:03 AM, BearTi mlrti...@googlemail.com wrote: 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? What, exactly, is your problem?

[android-developers] Re: GPS locations distance

2011-10-11 Thread lbendlin
which of the three (independent) methods did you use? -- 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] Re: SQLite concurrency

2011-10-11 Thread Zsolt Vasvari
No, I am not worried about the database not closed. I don't think it can lead to data corruption. On Oct 11, 6:55 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Oct 11, 2011 at 6:13 AM, Zsolt Vasvari zvasv...@gmail.com wrote: The only problem is that the datrabase is never closed.  

[android-developers] Video streaming

2011-10-11 Thread mohana priya
Hello android developers.In my android application i need to capture the video instead of capturing picture.Please tell how to do so.Please tell me the solution.Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] GPS locations distance

2011-10-11 Thread TreKing
On Tue, Oct 11, 2011 at 5:17 AM, nageswara rao rajana nagu.raj...@gmail.com wrote: I tried this but Force close exception raising Did you try debugging your app? - TreKing

[android-developers] Re: Can't upload an apk to Android Market

2011-10-11 Thread Zsolt Vasvari
Yes, it's down. Can't say I am shocked. On Oct 11, 8:06 pm, Shawn Holland seholl...@gmail.com wrote: I'm having the exact same problem. I ran a wireshark trace. It looks like the page tries to send the APK file up multiple times with no response from the server. -Shawn On Oct 11, 7:15 am,

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

2011-10-11 Thread TreKing
On Tue, Oct 11, 2011 at 5:52 AM, saex elpablos...@gmail.com wrote: But if you rotate to one axis, and after that, you rotate to other axis, the rotation is not fair. I mean that the rotation is done from the plane (real world) coordinates and not from the square own coordinates. This isn't

[android-developers] Re: Can't upload an apk to Android Market

2011-10-11 Thread Pent
Yes, it's down.  Can't say I am shocked. I think I broke it I was in the middle of an upload and killed the browser before it finished, after that uploads just hung. I carelessly and neglectfully endangered fragile infrastructure, sorry :-( Pent -- You received this message because you

Re: [android-developers] sending email automatically

2011-10-11 Thread arun kumar
SMTP means simple mail transfer protocol. first search in google about smtp in android and then you got some idea... On 10/10/11, rahul verma rahulsgonnar...@gmail.com wrote: What is SMTP? On 10 Oct 2011 06:16, rahul verma rahulsgonnar...@gmail.com wrote: Yeah i too need to know that.

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

2011-10-11 Thread lbendlin
Here's a fun thing I saw recently http://twitpic.com/67pibs -- 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] How to store AlarmManager object in to shared preference..........

2011-10-11 Thread saran vonteddu
Hi all, I'm working on AlarmClock application. When ever my application is killed due to low memory, I want to retain some objects, so I want to store the instance in SharedPreference so that I can retrieve it whenever I needed. So I want to convert an Object into a String and store

Re: [android-developers] How to store AlarmManager object in to shared preference..........

2011-10-11 Thread Mark Murphy
On Tue, Oct 11, 2011 at 8:54 AM, saran vonteddu saran.myw...@gmail.com wrote:   I'm working on AlarmClock application.  When ever my application is killed due to low memory, I want to retain some objects, so I want to store the instance in SharedPreference so that I can retrieve it

[android-developers] is it necessary to register to c2dm every time app runs?

2011-10-11 Thread Hitendrasinh Gohil
Hi, I want to apply push notification to my app.and found below link helpful. http://www.vogella.de/articles/AndroidCloudToDeviceMessaging/article.html. Here is the content from this site. 2.2. Getting the registration ID for the mobile app To register your Android app for the C2DM service

[android-developers] Re: How to get profile information from twitter in android application?

2011-10-11 Thread Shruthi Varma
Hi All, How to get user's personal informatio​n like first-name, last-name, date-of-birth from twitter in my applicatio​n? I went through these links. But It didn't work for me. https://dev.twitter.com/docs/api#oauth https://dev.twitter.com/docs/api/1/get/account/verify_credentials Please

Re: [android-developers] Re: How to get profile information from twitter in android application?

2011-10-11 Thread Mark Murphy
On Tue, Oct 11, 2011 at 9:27 AM, Shruthi Varma shruthi.tlis...@gmail.com wrote: How to get user's personal information like first-name, last-name, date-of-birth from twitter in my application? I went through these links. But It didn't work for me. https://dev.twitter.com/docs/api#oauth

[android-developers] Re: Does Android Support SOAP web service?

2011-10-11 Thread Streets Of Boston
If you control both the development of both the Android app and the server, i would suggest REST. Google SOAP vs REST to see why I suggest REST for mobile development :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: SQLite concurrency

2011-10-11 Thread Chris
On Tuesday, October 11, 2011 6:55:08 AM UTC-4, Mark Murphy (a Commons Guy) wrote: On Tue, Oct 11, 2011 at 6:13 AM, Zsolt Vasvari zvas...@gmail.com wrote: I do wish there were a onDestory() on the Application object so I could close the databases before Android terminates my app, but

[android-developers] unable to upload app to android market

2011-10-11 Thread vandana toshniwal
Hey i am not able to upload applications to android market. When i select the apk file and click upload. it does nothing and after 5 to 10mins i get an error message something went wrong. Please let me know what the problem could be. Regards Vandana Toshniwal -- You received this message

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

2011-10-11 Thread Ron
http://code.google.com/p/jarjar/ On Oct 10, 4:56 pm, Build account newandroi...@gmail.com wrote: Hello. Is it possible repackage a my custom JAR with another JAR(which may came from others) for only another developer's convienence. Not the illegal purpose. Possible? then how? Please

[android-developers] Re: unable to upload app to android market

2011-10-11 Thread b0b
Same here. -- 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

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

2011-10-11 Thread Latimerius
Hello, my guess would be you don't sort your transparent sprites back-to-front, do you? For a couple more comments please see inline: On Tue, Oct 11, 2011 at 11:51 AM, MobileVisuals eyv...@astralvisuals.com wrote: before. I tried to remove the gl.glColor4f calls, but that made the black square

[android-developers] How to store cookies in an application for future use?

2011-10-11 Thread Shruthi Varma
Hi All, In my application, I get all the cookies from the post requests with the HttClient.getCookieStore method. I want to save these cookies so the next time the app is started, the user don't have to log in. I don't know how to save the cookies in an application. Because in the shared

[android-developers] Re: SQLite concurrency

2011-10-11 Thread AndyD
On Oct 11, 9:52 am, Chris crehb...@gmail.com wrote: While its not as bulletproof as an onDestroy or onTerminate, for various reasons I keep a reference count on the number of activities my app opens.   When the reference count goes to zero I cleanup stuff on the app scope, assuming that the

Re: [android-developers] Re: SQLite concurrency

2011-10-11 Thread Christopher Van Kirk
It would be odd to add a close method to a system that wasn't needed for some reason. On 10/11/2011 8:28 PM, Zsolt Vasvari wrote: No, I am not worried about the database not closed. I don't think it can lead to data corruption. On Oct 11, 6:55 pm, Mark Murphymmur...@commonsware.com wrote:

Re: [android-developers] How to store cookies in an application for future use?

2011-10-11 Thread Mark Murphy
On Tue, Oct 11, 2011 at 10:46 AM, Shruthi Varma shruthi.tlis...@gmail.com wrote: I don't know how to save the cookies in an application. Because in the shared preferences, only primitive types (strings, integers, boolean values) can be stored. Use an XML file. Or a JSON file. Or a file with

[android-developers] HorizontalListView inside a VerticalListView

2011-10-11 Thread Marcos Paulo
Hi guys, I need to do a HorizontalScrollView inside a listview like we have in pulse app. I found this guy that made an implementation of a horizontal listview - http://www.dev-smart.com/archives/34 So I took his HorizontalListView and added it to a ListView, and it worked, I could do something

Re: [android-developers] How to store cookies in an application for future use?

2011-10-11 Thread Christopher Van Kirk
Isn't the point of cookies that all this sort of work is done for you? If not, then perhaps you should consider storing (and accessing) the data in an alternative way. On 10/11/2011 10:46 PM, Shruthi Varma wrote: Hi All, In my application, I get all the cookies from the post requests with

Re: [android-developers] HorizontalListView inside a VerticalListView

2011-10-11 Thread Christopher Van Kirk
My guess is that the reason you're seeing that effect is that your vertical list view comes before the horizontal one in the touch event sink chain. I think that once a touch event handler returns true no further processing on that event happens. Try making your primary view horizontal, and

Re: [android-developers] How to store cookies in an application for future use?

2011-10-11 Thread Daniel Drozdzewski
On 11 October 2011 16:06, Christopher Van Kirk christopher.vank...@gmail.com wrote: Isn't the point of cookies that all this sort of work is done for you? If not, then perhaps you should consider storing (and accessing) the data in an alternative way. That is true... a web browser has to

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

2011-10-11 Thread Studio LFP
Your description is a bit vague, but maybe check out the ExpandableListView here: http://developer.android.com/reference/android/widget/ExpandableListView.html It's a ListView with expandable sections. To get checkboxes, you'll need to create a layout or extend a view to make it like you

[android-developers] Re: Custom compass image bounds in subclassed MyLocationOverlay

2011-10-11 Thread stephen
Makes sense. So something like: canvas.save canvas.scale // do drawing... canvas.restore ? Or is there some other way to increase the canvas bounds that I should be using? Thanks, Stephen On Oct 11, 6:15 am, TreKing treking...@gmail.com wrote: On Mon, Oct 10, 2011 at 11:13 PM, stephen

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

2011-10-11 Thread kaciula
Here you go: https://github.com/kaciula/BugRetain It uses a CursorLoader to take 2 values from a database through a content provider and shows them on screen. Press the button to move to a second activity, then press BACK and then switch orientation of device. The values from db are no longer

Re: [android-developers] How to store cookies in an application for future use?

2011-10-11 Thread Christopher Van Kirk
Hmm. Still sounds a bit dodgy. One wonders why this guy's use case necessitates him building a new browser, and whether a well placed intent would achieve his goal with a lot less effort. On 10/11/2011 11:21 PM, Daniel Drozdzewski wrote: On 11 October 2011 16:06, Christopher Van Kirk

Re: [android-developers] How to store cookies in an application for future use?

2011-10-11 Thread Daniel Drozdzewski
On 11 October 2011 16:41, Christopher Van Kirk christopher.vank...@gmail.com wrote: Hmm. Still sounds a bit dodgy. One wonders why  this guy's use case necessitates him building a new browser, and whether a well placed intent would achieve his goal with a lot less effort. Point taken...

[android-developers] Re: OpenGL lockups in 2.2

2011-10-11 Thread calderwa
Nope, 'fraid not. That code seems if anything to makes things a little worse for me = intermittent screen glitches, with rectangular areas garbled, and the less frequesnt hangup for a second or so, with the even less frequent reboot. I am using Samsung Galaxy S, 2.3.3, so clearly not restricted to

[android-developers] Move vertical Seekbar thumb to the progress drawable height?

2011-10-11 Thread NikolaMKD
I have vertical seekbar. In the class which extends Seekbar I have on touch listener @Override public boolean onTouchEvent(MotionEvent event) { if (!isEnabled()) { return false; } switch (event.getAction()) {

[android-developers] 1/3 sounds is distorted when played

2011-10-11 Thread Appaholics
Hi, I am making an update to my game. I am adding an additional sound (a voice saying Game Over) to the game. There are two other sounds in the game. When I play the game over sound it is very distorted and lasts much longer than it should. The other two sounds play perfectly. I edited the game

[android-developers] Re: Move vertical Seekbar thumb to the progress drawable height?

2011-10-11 Thread NikolaMKD
It's ok. I solved it myself. I just created method that will call setProgress(getMax() - (getMax() - progress)) inside my custom class that extended Seekbar. Cheers On Oct 11, 6:07 pm, NikolaMKD nikola.despoto...@gmail.com wrote: I have vertical seekbar. In the class which extends Seekbar I

[android-developers] DexClassLoader issues on android 3.0 (api-11)

2011-10-11 Thread BogDan
Hello, I encounter a very strange problem using DexClassLoader on android-11 (emulator), because I wasn't sure if is my fault I tested android-custom-class-loading-sample[1] which was introduced in this [2] blog post. The example is working perfectly on all android versions (4,5,8,9,10,12,13)

[android-developers] Re: unable to upload app to android market

2011-10-11 Thread Thomas
I couldn't upload an app to Android Market even though it had passed various tests and I had published others successfully. I was using winxp/FireFox at the time, but someone suggested I try winxp/IE8 and for unknown reasons, I was able to publish again to Android Market. I haven't bothered to

Re: [android-developers] HorizontalListView inside a VerticalListView

2011-10-11 Thread Marcos Paulo
Unfortunately it didn't work. I could handle the enableing and disableing of the scroll with events but how do I do this programmatically? I can't find a way to disable the scroll at programming level. -- *Marcos Paulo Damasceno* Software Developer. @_marcospaulo_ http://devforfun.com/

[android-developers] Package Browser: what does Restart button do?

2011-10-11 Thread RLScott
I was playing around with the Package Browser on the Emulator while my app was paused. I located my app's package and noticed the Restart button at the top of the page. I clicked on this button and when I went back to my app it was on the same activity I had paused, but the display was a bit

[android-developers] Can we detect 'screen touch' event itself from on any widget?

2011-10-11 Thread Build account
Hello. My question might be ambigous to understand. But let say that In this situation, - I have an activity which contain buttons and filled list view. - I want to know the touch event whether screen touched on my activity anywhere(not on specific widget) - Is it possible to detect the event?

[android-developers] Android 3.2 emulator display freezes as soon as I click apps or + in the home screen

2011-10-11 Thread Michael Diener
When running the 3.2 emulator and pressing apps or + in the home screen, the screen starts to move a bit and then freezes. This happens on a x64 Linux as well as a x64 Windows 7. Sometimes it gets so far that apps are displayed, but only the top half of the screen is used For 3.1 the same thing

[android-developers] Stored files on sdcard deleted during uninstall or update

2011-10-11 Thread yves...@gmail.com
It doesn't happen all the time. There are files I saved on /data/ CompanyName/ folder which got deleted during uninstall of the application or update the application. It happens sometime, any ideas on what happened here? What should I do to make sure the files will always be kept. -- You

[android-developers] How to organize lite and pro version of the code

2011-10-11 Thread yves...@gmail.com
I have an application which has lite and pro versions on the market. Every time I change something, I have to update code on both projects. Is there a simpler way to organize code that two projects will share lots of common code in Eclipse? So, the maintenance work will be minimal. -- You

[android-developers] display images in galleryview from sqlite database

2011-10-11 Thread Abhi
Hi I have a sqlite database that has over 2000 low res thumbnails of pictures. The database itself is over 100MB in size. The project requires me to have the photos residing in the database instead of the file path. This is what I would like to do and need help with as this is my first time

[android-developers] Any way to embed existing views?

2011-10-11 Thread yves...@gmail.com
I am trying to write an app which I want to show, say, the calendar app in my app. So, is there a way I can just embed the calendar app view into one of my view (because i want to change the display size, etc) as long as I know the name of the class? Also, I want all touch event or keyboard events

Re: [android-developers] How to organize lite and pro version of the code

2011-10-11 Thread Appaholics
Create a library project with the common code and include it in both versions. Raghav Sood Sent from my Android LG Optimus One http://www.appaholics.in http://www.photoster.org On Oct 11, 2011 11:31 PM, yves...@gmail.com yves...@gmail.com wrote: I have an application which has lite and pro

Re: [android-developers] Re: OpenGL lockups in 2.2

2011-10-11 Thread Christopher Van Kirk
It's insane to throw away months of work. Are you seeing this behavior in other 2 or 3d games running on that device? If so, it's probably a device fault that you simply can't get around, and should just be ignored. There are other devices in the world that, in theory, it should work on. In

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

2011-10-11 Thread MobileVisuals
I see, now I understand the color4f method. I can't sort the transparent sprites back-to-front,because they are all in one vertex array. It would be much slower if I had one vertex array for each quad, because it would be so many drawArray calls. I will only use one layer of quads from now on.

Re: [android-developers] Can we detect 'screen touch' event itself from on any widget?

2011-10-11 Thread TreKing
On Tue, Oct 11, 2011 at 12:35 PM, Build account newandroi...@gmail.comwrote: - I want to know the touch event whether screen touched on my activity anywhere(not on specific widget) You want to know if your Activity can receive touch events. First step, go to the Activity documentation. Second

Re: [android-developers] Stored files on sdcard deleted during uninstall or update

2011-10-11 Thread TreKing
On Tue, Oct 11, 2011 at 12:57 PM, yves...@gmail.com yves...@gmail.comwrote: There are files I saved on /data/ CompanyName/ folder which got deleted during uninstall of the application or update the application. Uninstall wipes local data, update should not. It happens sometime, any ideas

[android-developers] Service to Activity communication with Broadcast Reciever every 1 sec . Is this right approach?

2011-10-11 Thread NikolaMKD
I'm creating media player application that will run on service and all its action (all intent actions stated in the manifest file of course) What I did is, I created Runnable in my service that will sendBroadcast whenever I do handler.postDelayed(myRunnable, 1000); private Runnable

Re: [android-developers] Any way to embed existing views?

2011-10-11 Thread TreKing
On Tue, Oct 11, 2011 at 1:14 PM, yves...@gmail.com yves...@gmail.comwrote: So, is there a way I can just embed the calendar app view into one of my view (because i want to change the display size, etc) as long as I know the name of the class? No.

[android-developers] Observing a Singleton List from an Activity

2011-10-11 Thread Boozel
Hi I have two activities, a service and a singleton list. The service is responsible for fetching all the data via async tasks called in my main activity. The other activity can add items to the list but when a new item is added the data service needs to fetch data for it. The task to fetch

Re: [android-developers] Service to Activity communication with Broadcast Reciever every 1 sec . Is this right approach?

2011-10-11 Thread TreKing
On Tue, Oct 11, 2011 at 1:58 PM, NikolaMKD nikola.despoto...@gmail.comwrote: 3. Is there any rather better approach than this one? Point me some... http://developer.android.com/reference/android/app/Service.html#LocalServiceSample

Re: [android-developers] Observing a Singleton List from an Activity

2011-10-11 Thread TreKing
On Tue, Oct 11, 2011 at 2:20 PM, Boozel boozelcl...@gmail.com wrote: If So how do i get my main activity to observe my singleton list that extends Observable? If you already extend Observable then it follows you would need an Oberver, which in this case would be your Activity, from what you

[android-developers] Russia, Belarus and Ukraine time changes

2011-10-11 Thread davem
From the end of this month, Russia, Belarus and Ukraine will not revert to standard time as they have in the past, they will stay on summer time year round. The time zone database on my Desire doesn't have this change, so my app reports times incorrectly from then on, and may fire alarms at the

[android-developers] Re: A noob question about MultipartEntity

2011-10-11 Thread Paul Turchenko
well, there's nothing special in multipart. You can use apache mime library in your prroject or implement multipart yourself. On Oct 10, 6:58 am, routis ryu.ins...@gmail.com wrote: Hi I guess this is a stupid noob question but I want to know why Android framework does not provide with

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

2011-10-11 Thread Latimerius
On Tue, Oct 11, 2011 at 8:38 PM, MobileVisuals eyv...@astralvisuals.com wrote: I see, now I understand the color4f method. I can't sort the transparent sprites back-to-front,because they are all in one vertex array. It would be much slower if I had one vertex array for each quad, because it

[android-developers] Re: OpenGL lockups in 2.2

2011-10-11 Thread calderwa
Difficulties with one device I have no way of knowing how many makes/models of device this problem is on. I know that it happens all the time on my Samsung Galaxy (I9000). Others report exactly the same thing as being a feature of a number of HTC devices - these two make up a major part of the

[android-developers] Re: OpenGL lockups in 2.2

2011-10-11 Thread calderwa
Difficulties with one device I have no way of knowing how many makes/models of device this problem is on. I know that it happens all the time on my Samsung Galaxy (I9000). Others report exactly the same thing as being a feature of a number of HTC devices - these two make up a major part of the

[android-developers] Re: Service to Activity communication with Broadcast Reciever every 1 sec . Is this right approach?

2011-10-11 Thread NikolaMKD
I have to create AIDL for methods from which I'll have access to the service. If I have each player feature(play, next, previous) I'm starting new service with startService(), when onBind() the object that will be returned to be used to control the service will I still have the access to the

[android-developers] Re: how to change the font typeface in PreferenceScreen

2011-10-11 Thread Arkadiusz Wojcieszek
In my PreferenceActivity I have this: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.settings); setContentView(R.layout.preferences);

[android-developers] Re: how to change the font typeface in PreferenceScreen

2011-10-11 Thread Arkadiusz Wojcieszek
In my PreferenceActivity I have this: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.settings); setContentView(R.layout.preferences);

[android-developers] Re: how to change the font typeface in PreferenceScreen

2011-10-11 Thread Arkadiusz Wojcieszek
In my PreferenceActivity I have this: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.settings); setContentView(R.layout.preferences); SharedPreferences sharedPreferences = getSharedPreferences(settings,

[android-developers] Re: Service to Activity communication with Broadcast Reciever every 1 sec . Is this right approach?

2011-10-11 Thread NikolaMKD
Will START_STICKY keep my service running even if the phone is locked or activity is not visible to the user anymore? On Oct 11, 10:21 pm, NikolaMKD nikola.despoto...@gmail.com wrote: I have to create AIDL for methods from which I'll have access to the service. If I have each player

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

2011-10-11 Thread Mark Murphy
On Tue, Oct 11, 2011 at 11:34 AM, kaciula catalin.moro...@gmail.com wrote: Here you go: https://github.com/kaciula/BugRetain It uses a CursorLoader to take 2 values from a database through a content provider and shows them on screen. Press the button to move to a second activity, then press

[android-developers] Re: Service to Activity communication with Broadcast Reciever every 1 sec . Is this right approach?

2011-10-11 Thread Studio LFP
You may want to check out a foreground service if you need a high priority service like playing music, etc. http://developer.android.com/reference/android/app/Service.html#startForeground%28int,%20android.app.Notification%29 This should make it a foreground application and help keep it from

  1   2   >