[android-developers] Re: General lag issues with real-time games

2010-03-13 Thread Bob Kerns
There's nothing in what you describe to suggest it's the GC in other processes. GC is just a component of what happens in a process -- and it's always a side-effect of the process doing other things. You're probably right in that it's other processes, but wrong to pin it specifically on the GC.

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Bob Kerns
Yes. The reason I do copy them (and recommend copying them) to a lib/ directory is twofold: 1) It makes them an explicit part of your project for versioning. If you use Subversion you can make these be a copy from a directory of third-party components. You could copy the third-party directory for

Re: [android-developers] Get item selected from spinner

2010-03-13 Thread TreKing
On Sat, Mar 13, 2010 at 11:07 PM, murali raju wrote: > use spinner.setOnItemClickListener(new OnItemClickListener() > No, this won't work, read the documentation: "A spinner does not support item click events." You want setOnItemSelectedListener(). On Sat, Mar 13, 2010 at 11:51 PM, Nitesh Mehta

[android-developers] Re: General lag issues with real-time games

2010-03-13 Thread Robert Green
Markus, You'd be surprised by how much stuff people have running on their phones. 2.0/2.1 seem to be better at handling it with a game but in general, I think it's an issue of educating people to shut off sync and certain wasteful tasks while playing games. I REALLY wish Android would add a game

Re: [android-developers] Get item selected from spinner

2010-03-13 Thread Nitesh Mehta
Well i already know how to get the item and which index. My problem is that the index is same irrespective of what was selected in spinner 1. How do i know whether spinner 1 was selected or spinner 2? Thanks! On Sat, Mar 13, 2010 at 10:07 PM, murali raju wrote: > Hi, > > use spinner.setOnItemCl

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Kumar Bibek
It doesn't really matter if you create a lib folder and put the jars and link them. It just works if you have added the jars the the build path. Though I am not able to figure out why you are getting this error. > But I *highly* recommend not using Eclipse for your production builds, > but rather

Re: [android-developers] Re: Custom Spinner

2010-03-13 Thread murali raju
Hi, Thanks for your reply. I need a spinner, which when clicked I get a drop down view which do not cover the entire width of the screen. In my application i display all the items of the sdcard in table layout. I have a spinner on top of my application with some options. So when i c

Re: [android-developers] Get item selected from spinner

2010-03-13 Thread murali raju
Hi, use spinner.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView parent, View v, int position, long id) { } }); here the argument position gives the selected item in the spinner. On Fri, Ma

[android-developers] Re: How can i call one activity to other activity without using intents and services

2010-03-13 Thread Kumar Bibek
Why would you want to do it? Intents are the best and the only way to achieve this. Are you having problems with the Intent mechanism? Thanks and Regards, Kumar Bibek On Mar 14, 9:57 am, murali raju wrote: > Hi satish, > > It is not possible.. > > On Fri, Mar 12, 2010 at 1:31 PM, satish k wrote

Re: [android-developers] How can i call one activity to other activity without using intents and services

2010-03-13 Thread murali raju
Hi satish, It is not possible.. On Fri, Mar 12, 2010 at 1:31 PM, satish k wrote: > > > On Fri, Mar 12, 2010 at 1:30 PM, satish k wrote: > >> Hi All, >> >> >> >> How can i call one activity to other activity without using intents and >> services >> >> is there any solution for this >> >> please

Re: [android-developers] showing media volume controller

2010-03-13 Thread murali raju
Hi, We have to create our view for volume control. i dont think we can display the android media player volume screen. On Sat, Mar 13, 2010 at 3:24 PM, kavitha wrote: > Hi All, > > how to show media volume controller on my screen in android? > > Thanks > kavitha > > -- > You received this me

Re: [android-developers] Re: Custom Spinner

2010-03-13 Thread murali raju
Hi Bob, Even i gave up on that. Finally i created a custom layout which displays the list of items( the items which i want to display in the spinner ), in a listview, at any position on the screen. We can create a listview with any height and width, using LayoutParams , my requi

Re: [android-developers] Re: Custom Spinner

2010-03-13 Thread murali raju
Hi, Thanks for your reply. I need a spinner, which when clicked I get a drop down view which do not cover the entire width of the screen. In my application i display all the items of the sdcard in table layout. I have a spinner on top of my application with some options. So when i c

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Bob Kerns
What I do is to create a libs/ directory in Eclipse, and add them to the Eclipse build path. Android Tools/Export Signed Application Properties works fine. But I *highly* recommend not using Eclipse for your production builds, but rather have a build script that handles checkout, version numberin

[android-developers] General lag issues with real-time games

2010-03-13 Thread markusn82
I developed and published a game about two months ago. Since then, I've received several negative comments about input lag in the game. Before releasing the game, I already took several measures to hopefully prevent lag from occurring: 1) Game is almost entirely written in native code 2) After ini

[android-developers] Re: Issues with Listener, "back" button, and onDestroy().

2010-03-13 Thread Bob Kerns
Yes, it's quite possible to create the same situation with your own listeners as with listeners passed to Android. All that's required is that 1) you hang onto the listener somewhere that isn't itself GC'd, and 2) it points to your Activity (which may be implicit, for a non-static nested class).

[android-developers] Re: Call processing

2010-03-13 Thread songs
It actually depends on how it's called. There's a sequential version and a non-sequential version. Calls use the sequential version. The priority attribute is referenced in the documentation specifically for call processing. I figured out how to do what I need to do, but it was a little inobvio

[android-developers] Re: Issues with Listener, "back" button, and onDestroy().

2010-03-13 Thread AuxOne
This whole "static context" thing has me worried. Now I'm wondering what loose end is left that is causing this behavior. I'm not registering any Android listeners but perhaps my own listeners are holding it up. It seems to me that whatever state the application is in when the phone first starts, i

Re: [android-developers] Re: Asynctask threads never end!

2010-03-13 Thread Mark Murphy
Ken Warner wrote: > Is AsyncTask a part of the Android SDK? Yes. android.os.AsyncTask arrived in Android 1.5. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -- You received

Re: [android-developers] Re: Asynctask threads never end!

2010-03-13 Thread Ken Warner
I'm not trying to argue -- but I've seen dead threads (zombies) hang around for a long time. Null all possible references in your code *AFTER* you are done with the thread and do an explicit gc(). I didn't say that nulling a reference would kill the thread. It only helps garbage collection. Th

[android-developers] Android google calendar client application?

2010-03-13 Thread Tom
Does anyone one know of an example that shows how to add a new Google calendar entry? I am trying to add an entry to the Google web calendar (not to the phone's calendar). I assumed that I could simply use the google gdata client APIs described at http://code.google.com/apis/gdata/articles/java_cl

[android-developers] Re: Asynctask threads never end!

2010-03-13 Thread Bob Kerns
What evidence do you have of this? What exactly do you mean by a zombie thread? I've been programming Java since sometime near when it came out -- well over a decade, on various platforms. I've never seen anything I'd term a zombie thread, nor a thread problem that would be solved by nulling threa

[android-developers] Re: TextView before ListView

2010-03-13 Thread Bob Kerns
Well, thanks for thinking about it for me, I appreciate it. But that's not the problem here. It's not really the constraint between the siblings (Spinner, TextView) that's the problem, but rather the content of the Spinner is not reflected in the Spinner's size computations. There are issues with

[android-developers] Re: Recommendations for split app (eg free/pro versions using 95% the same code)

2010-03-13 Thread Bob Kerns
I find this works fine sometimes, and is a real pain other times. It tends to work fine when you're just developing along on the stuff that's shared. But later in the project, when you're testing and bug fixing in both branches on both shared and differentiated parts, then you end up having to do

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Tom
I created the libs directory where you specified and copied the gdata .jar files in there, then from Eclipse ran "Export" project, then installed on the phone - but with the same result - NoClassDefFoundError for CalendarService. It seems that Eclipse is "silently" failing to handle the gdata jar

Re: [android-developers] Re: getContextMenuInfo() returns null on sub-menu MenuItems

2010-03-13 Thread TreKing
I've submitted a bug report for this issue: http://code.google.com/p/android/issues/detail?id=7139 - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmo

[android-developers] Re: is there a way to get a view to the front?

2010-03-13 Thread skink
On Mar 13, 10:56 pm, skink wrote: > On Mar 13, 10:37 pm, mot12 wrote: > > > Yes. I don't believe it either. Maybe I am screwing things up because > > I had some wine (it is past midnight here). But it seems to work and I > > am happy (again, that may be the wine speaking). > > > I also saw that

[android-developers] Re: is there a way to get a view to the front?

2010-03-13 Thread skink
On Mar 13, 10:37 pm, mot12 wrote: > Yes. I don't believe it either. Maybe I am screwing things up because > I had some wine (it is past midnight here). But it seems to work and I > am happy (again, that may be the wine speaking). > > I also saw that FrameLayout has a method setForeground(Drawabl

[android-developers] Re: is there a way to get a view to the front?

2010-03-13 Thread mot12
Yes. I don't believe it either. Maybe I am screwing things up because I had some wine (it is past midnight here). But it seems to work and I am happy (again, that may be the wine speaking). I also saw that FrameLayout has a method setForeground(Drawable) and Drawable has a method setAlpha (and als

Re: [android-developers] Re: Override default icons of BaseExpandableListAdapter

2010-03-13 Thread TreKing
On Sat, Mar 13, 2010 at 3:53 PM, Ali Chousein wrote: > Is there a way to disable this stretching? Did you also set the bounds for the indicator? - TreKing - Chicago transit tracking app for Android-p

Re: [android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Mark Murphy
Tom wrote: >>> This code compiles with no errors, using Eclipse on MacOS, using >>> external jar files from the Google gdata project: >>> gdata/java/lib/gdata-calendar-2.0.jar >>> gdata/java/lib/gdata-calendar-meta-2.0.jar >> Did you copy these into your project's libs/ directory? >> > > No, I mer

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Tom
On Mar 13, 3:15 pm, Mark Murphy wrote: > Tom wrote: > > I'm writing an android 2.1 application that writes an entry to my > > Google calendar. The relevant part of my application code looks like > > this: > > >    void addCalendarEntry(String googleUser, String password) > >    throws Exception

[android-developers] Re: is there a way to get a view to the front?

2010-03-13 Thread skink
On Mar 13, 10:16 pm, mot12 wrote: > Amazingly, it works with your order just fine, too. That seems to be > in contrast to the documentation. Whatever. I am happy :). so it works both with my and your order??? i cannot believe it... -- You received this message because you are subscribed to t

[android-developers] Re: is there a way to get a view to the front?

2010-03-13 Thread mot12
Amazingly, it works with your order just fine, too. That seems to be in contrast to the documentation. Whatever. I am happy :). -- 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@googlegr

Re: [android-developers] NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Mark Murphy
Tom wrote: > I'm writing an android 2.1 application that writes an entry to my > Google calendar. The relevant part of my application code looks like > this: > > void addCalendarEntry(String googleUser, String password) > throws Exception { > > URL postURL = >

[android-developers] Re: is there a way to get a view to the front?

2010-03-13 Thread skink
On Mar 13, 10:07 pm, mot12 wrote: > This works perfectly. Thanks, pskink. Really appreciate your help!! glad to hear it works and sorry for wrong children order... fortunately you read the docs and found out my mistake pskink -- You received this message because you are subscribed to the Goo

[android-developers] NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Tom
I'm writing an android 2.1 application that writes an entry to my Google calendar. The relevant part of my application code looks like this: void addCalendarEntry(String googleUser, String password) throws Exception { URL postURL = new URL("http

[android-developers] Re: is there a way to get a view to the front?

2010-03-13 Thread mot12
This works perfectly. Thanks, pskink. Really appreciate your help!! -- 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 andro

[android-developers] Re: is there a way to get a view to the front?

2010-03-13 Thread mot12
FrameLayout seems like it could be the solution, thanks so much for the tip pskink. Reading up on the documentation, FrameLayout allows several children, all pegged to the topleft corner, with the last child being on top. So I will try something like this: FrameLayout --LinearLayout your contr

Re: [android-developers] Re: How to display all contacts?

2010-03-13 Thread Dmitri Plotnikov
Code snippets provided on this mailing list are often sketches or ideas without the expectation that they would work by simply copying and pasting. mResolver in the above snippets is assumed to have been initialized like this: ContentResolver mResolver; onCreate() { ... mResolver = getContentRes

[android-developers] Re: OnPause() - how to resume to an activity which has a Bundle passed to it when it is created

2010-03-13 Thread Makas Tzavellas
Hi Prajakta, I think you might be mistaken about the use of "onSaveInstanceState()" method in an Activity. It is useful only when the Activity is about to be killed and expected to be restored later by the system. Otherwise, the information saved when the method is called is not reused. If Activi

[android-developers] Restarting an activity within a tab (TabActivity)

2010-03-13 Thread Mark Wyszomierski
Hi, I have a TabActivity, each tab holds an activity. At some point I'd like to 'refresh' the tabs. I'd basically like to restart each activity in the tabs. I'm not sure how to do this. Calling: getTabHost().clearTabs(); removes the tabs, but the activities still seem to be in alive, in limbo

[android-developers] Re: is there a way to get a view to the front?

2010-03-13 Thread skink
On Mar 13, 7:45 pm, mot12 wrote: > Hi, > > I have a root view (LinearLayout) and a bunch of views placed on top > of it. Now, I would like to change the brightness of all views, let's > say to 50%. > > Instead of changing the color of each view individually, it would be > so much nicer if I coul

[android-developers] Re: Override default icons of BaseExpandableListAdapter

2010-03-13 Thread Ali Chousein
Hi TreKing, The ExpandableListView.setGroupIndicator does the job indeed, except it stretches the new icon. Is there a way to disable this stretching? I find it a bit strange that stretching is the default behavior instead of displaying an icon in it's original size. Any feedback would be very hel

Re: [android-developers] Application losing SharedPreferences and Sqlite database on Droid

2010-03-13 Thread Yuvi
Hi, the database issue happened on my phone (HTC Hero, 1.5), with my app. I also wrote to this mailing group ("Corrupted Database (SQLiteDatabaseCorruptException: database disk image is malformed)"), but got no replies :( I hope someone has some news about that. Yuvi -- YuviDroid http://andro

[android-developers] AppWidgetProvider and setTypeface

2010-03-13 Thread David Toledo
Hi All How can to format the font a TextView with setTyface in the AppWidgetProvider example: RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget_xxx); Cursor cursor = displayRecords(context); cursor.moveToPosition(0); String text= cursor.getString(cursor.getColumnInd

[android-developers] Application losing SharedPreferences and Sqlite database on Droid

2010-03-13 Thread Matt (preinvent)
I've had several reports (and experienced it once myself) of users of my app experiencing loss of all application data - both SharedPreferences and the SQLite database. There's nothing in my code that could do this so there must be something going on at a lower level. I've only had reports from D

[android-developers] is there a way to get a view to the front?

2010-03-13 Thread mot12
Hi, I have a root view (LinearLayout) and a bunch of views placed on top of it. Now, I would like to change the brightness of all views, let's say to 50%. Instead of changing the color of each view individually, it would be so much nicer if I could just place a view on top of all views, covering

[android-developers] Re: How to display all contacts?

2010-03-13 Thread ydario
Hi Dmitri, > Cursor cursor = mResolver.query( Data.CONTENT_URI, >     new String[]{Event.DISPLAY_NAME, Event.DATA}, >     Data.MIMETYPE + "=" + Event.CONTENT_ITEM_TYPE + " AND " + Event.TYPE + > "=" + Event.TYPE_BIRTHDAY, I use a similar code, and I can retrieve data edited using Google Contact

[android-developers] Re: AlarmManager on droids

2010-03-13 Thread mot12
I misspoke: I meant to turn off user applications running in the background. Many people use the flightmode at night as they use their phones as a bedside alarm clock. Many alarm clocks offer this functionality and I would consider this a typical use of the device. >From some 6000 active users I

[android-developers] Re: AlarmManager on droids

2010-03-13 Thread mot12
I misspoke: I meant to turn off user applications running in the background. Many people use the flightmode at night as they use their phones as a bedside alarm clock. Many alarm clocks offer this functionality and I would consider this a typical use of the device. >From some 6000 active users I

[android-developers] Re: Asynctask threads never end!

2010-03-13 Thread Gabriel Simões
So, there´s nothing to worry about then! Thanks for your answers and help! On 13 mar, 15:42, Streets Of Boston wrote: > Like Mark said, AsyncTasks use a pool of threads that manages itself. > > An AsyncTask is NOT a thread. It uses a pool of threads to execute a > task on. It is based on the Futu

Re: [android-developers] Re: Issues with Listener, "back" button, and onDestroy().

2010-03-13 Thread Mark Murphy
AuxOne wrote: > I've chosen singletonInstance in hopes of avoiding the problem I have > now. It just seems to me from a memory perspective it could be better > to have less instances of the application in memory, but based on your > response I will remove it. Android handles cleaning up destroyed

[android-developers] Re: Issues with Listener, "back" button, and onDestroy().

2010-03-13 Thread AuxOne
The listener I'm talking about is custom and only accepts a single listener at a time which is held as a member variable of my custom listener class, it's not an Android Listener. I did have a LocationListener in my code but even after commenting it out I still see the same behavior. I've chosen s

[android-developers] Re: Asynctask threads never end!

2010-03-13 Thread Streets Of Boston
Like Mark said, AsyncTasks use a pool of threads that manages itself. An AsyncTask is NOT a thread. It uses a pool of threads to execute a task on. It is based on the FutureTasks and ExecutorService of the java.util.concurrent package. When you create a new AsyncTask, you don't create a new threa

Re: [android-developers] Re: Issues with Listener, "back" button, and onDestroy().

2010-03-13 Thread Mark Murphy
AuxOne wrote: > Shouldn't it suffice to just re-register the listener onCreate()? If you are talking about registering some listener with Android (LocationListener, etc.), then no. Please unregister your listeners. > Btw, the Activity is a singleton > ( android:launchMode="singleInstance") so the

[android-developers] Re: Issues with Listener, "back" button, and onDestroy().

2010-03-13 Thread AuxOne
Shouldn't it suffice to just re-register the listener onCreate()? My setter looks like public void Listener(Listener listener){ theListener = listener; } Btw, the Activity is a singleton ( android:launchMode="singleInstance") so there's only one instance. Thanks On Mar 13, 1:08 pm, Mark Mur

Re: [android-developers] Issues with Listener, "back" button, and onDestroy().

2010-03-13 Thread Mark Murphy
AuxOne wrote: > When the application is first run the Listener works fine. When I use > the "home" button to minimize it, then open it again it's still fine. > > But when I press the back button then run it again from the > application icon, the Listener doesn't work fully. The code runs and > the

[android-developers] Issues with Listener, "back" button, and onDestroy().

2010-03-13 Thread AuxOne
I have an application with a single Activity implemented as a singleton (in the AndroidManifest). It implements a Listener I wrote. When the application is first run the Listener works fine. When I use the "home" button to minimize it, then open it again it's still fine. But when I press the back

[android-developers] Append Text To Start Of TextView

2010-03-13 Thread Ben
I am trying to simply append a small string to the start of a TextView without having to handle the whole log. Was thinking of adding "main message CharSequence\n" to push whatever is currently in the TextView to the next line. Essentially trying to accomplish having an in-game combat log that th

Re: [android-developers] Asynctask threads never end!

2010-03-13 Thread Ken Warner
Null out all references to the thread. Java has a problem with zombie threads -- this is a java app right? I can't say exactly how you should do the following but make sure there is an explicit way to exit each thread. I usually set a flag to tell the thread to exit. Those two things -- null al

Re: [android-developers] Asynctask threads never end!

2010-03-13 Thread Mark Murphy
Gabriel Simões wrote: > Hello, > > Today, while debugging and app that uses AsyncTask to record audio and > update UI I noticed that everytime that an AsyncTask object ends > running (finishes doInBackground() and onPostExecute() or > onCancelled()) it´s thread stays alive (running status). > At l

Re: [android-developers] Re: OnPause() - how to resume to an activity which has a Bundle passed to it when it is created

2010-03-13 Thread Prajakta Shitole
Hi Makas, Thanks for your suggestion, but when I tried changing it to singleTask, I still could not start my activity. It kept giving me NullPointerException as my activity expects a Bundle. I had even stored the values that I needed from the bundle in my OnSaveInstance method, but dint get it to

[android-developers] Asynctask threads never end!

2010-03-13 Thread Gabriel Simões
Hello, Today, while debugging and app that uses AsyncTask to record audio and update UI I noticed that everytime that an AsyncTask object ends running (finishes doInBackground() and onPostExecute() or onCancelled()) it´s thread stays alive (running status). At least for me that should not be the b

[android-developers] Re: Java OpenGL ES 2.0 bindings project

2010-03-13 Thread MichaelEGR
On Mar 13, 7:50 am, Mario Zechner wrote: > Cool. Thanks for the flowers. The thing is apache 2 licensed so you > are free to do with it whatever you want. It's not rocket science > after all :). I'm not such a big fan of lwjgl but the more libraries > there are out there for android the better. P

[android-developers] Re: Sending huge files with HttpsUrlConnection???

2010-03-13 Thread AuxOne
Sorry for the double post. I reloaded the page -- 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+uns

[android-developers] Re: Sending huge files with HttpsUrlConnection???

2010-03-13 Thread AuxOne
I tried os.flush() as you recommended previously, it did not work. I even set large chunks and did System.gc() in the loop, that didn't work. Then I even tried putting the System.gc() after I close the connection, but the heap still remains quite large. When I transfer a bunch photos (say, 50 for

Re: [android-developers] Re: Sending huge files with HttpsUrlConnection???

2010-03-13 Thread Mark Murphy
AuxOne wrote: > I tried os.flush() as you recommended previously, it did not work. I > even set large chunks and did System.gc() in the loop, that didn't > work. Then I even tried putting the System.gc() after I close the > connection, but the heap still remains quite large. > > When I transfer a

[android-developers] Re: Sending huge files with HttpsUrlConnection???

2010-03-13 Thread AuxOne
I tried os.flush() as you recommended previously, it did not work. I even set large chunks and did System.gc() in the loop, that didn't work. Then I even tried putting the System.gc() after I close the connection, but the heap still remains quite large. When I transfer a bunch photos (say, 50 for

[android-developers] Re: TextView before ListView

2010-03-13 Thread Brion Emde
Thank you, Mark, that is indeed good to know and a nice addition. I am indeed targeting 1.6, so I could have used this. I'm sure there were situations under the previous rules that things could not be done easily, or maybe at all. For me, things are working correctly using the pre-1.6 rules, so I

[android-developers] I need a recommendation for some kind of Android device to test 2.1 app on.

2010-03-13 Thread Ken Warner
I'm setting up to rewrite my Java panorama viewer for Android. I'll be using Eclipse on W7 for development platform. I'll need some sort of *CHEAP* probably un-activated device -- maybe a phone -- maybe a netbook -- I don't know -- that's what I'm asking. It has to have GPS for geotagging and ac

[android-developers] Re: Java OpenGL ES 2.0 bindings project

2010-03-13 Thread Mario Zechner
Cool. Thanks for the flowers. The thing is apache 2 licensed so you are free to do with it whatever you want. It's not rocket science after all :). I'm not such a big fan of lwjgl but the more libraries there are out there for android the better. On 13 Mrz., 16:19, MichaelEGR wrote: > Figured I'd

[android-developers] Re: Live Wallpapers. Cant get actions like android.wallpaper.tap

2010-03-13 Thread STKFF
Does it have something to do with using an Android Virtual Device ? My Android phone is still on 1.6 version. I can't test on a real device. I planned to use both "android.wallpaper.tap" and "android.home.drop" to let users interact with the Live Wallpaper I'm developping. But now, I'm stuck... O

[android-developers] Re: Disable spinner item?

2010-03-13 Thread extrapedestrian
I did another workaround. Since I implement SpinnerAdapter, In function GetDropdownView, I check if item at position x should be disabled, then I make that view (row) disabled. Unfortunately, SetEnabled(false) is not working on this view, so I found workaround, like this: row.SetClickable(true);

Re: [android-developers] Sending custom headers in WebView

2010-03-13 Thread Mark Murphy
kelvin wrote: > I've found some information about this topic, but I was curious as to > whether anyone has had any success loading webpages in a WebView with > custom headers. There doesn't seem to be any simple way of doing > this. There is no WebView API for setting custom headers, mostly beca

[android-developers] Re: Java OpenGL ES 2.0 bindings project

2010-03-13 Thread MichaelEGR
Figured I'd repost in this thread and include the variable time kill frag test... Awesome! Got it up and running here. You are my Android dev hero for the month if not longer! Where I can I paypal you $50; I'd send more if I could right now.. You also got a life long purchaser of all your games on

Re: [android-developers] Re: AlarmManager on droids

2010-03-13 Thread Mark Murphy
mot12 wrote: > No customer could give me a definitive guide to reproduce the problem. > But doing the following should give you good chance to make it happen > on your device: > - turn on airplane mode to cancel much of the background activity > - turn off any services, apps running in the backgrou

[android-developers] Re: OpenGL ES 2.0 on Eclair

2010-03-13 Thread MichaelEGR
On Mar 13, 2:43 am, Mario Zechner wrote: > Sorry for the double post, just had to add one more thing. > I understand that many of your are a bit angry for there being no java > bindings at this time. But from an architectural point of view i > totally understand Romain's comment that they want to

[android-developers] Re: OpenGL ES 2.0 on Eclair

2010-03-13 Thread MichaelEGR
Awesome! Got it up and running here. You are my Android dev hero for the month if not longer! Where I can I paypal you $50; I'd send more if I could right now.. You also got a life long purchaser of all your games on the market. Folks... Support Mario and buy his games! I like your Newton game by t

Re: [android-developers] Re: TextView before ListView

2010-03-13 Thread Mark Murphy
Brion Emde wrote: > RelativeLayout makes only a single pass through your XML to > determine the Ids and collect the layout information. That is not true, as of Android 1.6. It didn't get much publicity, but RelativeLayout now supports forward references. The key is you need to use the + sign on t

Re: [android-developers] Re: Photoshop.com Mobile editor now available as an Intent

2010-03-13 Thread nayana urs
can we test this feature in emulator with regards Nayana On Fri, Mar 12, 2010 at 6:18 PM, Nivek wrote: > > They could have added the result to the MediaStore and returned that > > uri... I'll have to do it myself or my edit button disappears after > > editing a picture... > > Actually, this

[android-developers] Re: how to crop an image in android 2.x

2010-03-13 Thread Sydney
I got cropping to work on captured images a Motorola Droid using the built-in CropImage activity, but I first save the image to the SD card before calling the CropImage activity. However, like SOB said this does not work on all devices, such as the Nexus One. I haven't tried this, but you might wa

[android-developers] Re: TextView before ListView

2010-03-13 Thread Brion Emde
Bob, Forgive me if this is obvious to you, but I have to remind myself over and over. RelativeLayout makes only a single pass through your XML to determine the Ids and collect the layout information. So it is essential that you order the elements correctly to make sure you have no forward referenc

[android-developers] Re: how to implement progress bar as same as windows loader bar

2010-03-13 Thread Paul Turchenko
Well, the buttom is just the same as a View except is has different look (it defines in via the constructor). As you can see, onClick event is defined on the View class, and all that button does is defining the way it should look when View is focused/selected/pressed/ etc. Hope this helps On Mar 1

[android-developers] Re: Programmatically Create/Destroy AppWidgets

2010-03-13 Thread Paul Turchenko
App widgets (home screen widgets) live in separate process and you have no control on adding/removing them. All you can do is tell in your AndroidManifest.xml that you have a new appwidget and user will seen it when he decides to place something to his homescreen. On Mar 5, 9:04 am, Tanay Shah wr

[android-developers] Re: WTA: Change default keyboard when inserting password how to?

2010-03-13 Thread Paul Turchenko
Just set inputType to "number|password" of the EditText that will receive password input. This should work. On Mar 13, 8:48 am, Monica Chrismawati wrote: > Hi everyone, i am currently developing an application and i need a > login menu. In login menu there is a password textfield, but i don't > k

[android-developers] Re: write/read log files in res folder

2010-03-13 Thread Farproc
What is the res folder? /sdcard/res? On Mar 13, 3:07 pm, aswani kumar tholeti wrote: > Hi all, > > how to write/read log data into txt file in res folder > > Thanks in advance > > Aswan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: Getting from a Uri to a byte array...?

2010-03-13 Thread Anna PS
There's another problem too, which is that if the byte array is very large (100MB+), which could easily happen with video files, Android is going to throw an OutOfMemoryError. So there's a broader question: how can I get from a URI to a byte array to add to a multipart message, without crashing And

[android-developers] Getting from a Uri to a byte array...?

2010-03-13 Thread Anna PS
Hi all I want to get from an Android Uri (of the kind returned by onActivityResult) to a simple byte array, in order to upload a file as part of a multipart message. Can anyone provide an example of how to get from a Uri to a byte[] array? My current code (below) is almost there, but falls down b

[android-developers] Re: using KeyguardManager for presenting unlock screen

2010-03-13 Thread devi prasad
By any chance, Is this fixed in Android 2.1r1 release? I notice that there are many commits that mention Keyguard related fixes. I'm currently building the AOSP sources to verify the behavior in the emulator. Some kind of confirmation will be appreciated :) On Thu, Mar 11, 2010 at 7:34 PM, devi p

[android-developers] Passing a Uri to the video camera - causes Retake and Play buttons to crash

2010-03-13 Thread Anna PS
[I thought I posted this yesterday, but it hasn't shown up in the group, so apologies if it posts twice.] I'm trying to pass a Uri to the video camera as EXTRA_OUTPUT. The file shoots and saves OK at the Uri I give it, but unfortunately pressing the 'Retake' or 'Play' buttons crashes the applicati

[android-developers] Re: OpenGL ES 2.0 on Eclair

2010-03-13 Thread Mario Zechner
Sorry for the double post, just had to add one more thing. I understand that many of your are a bit angry for there being no java bindings at this time. But from an architectural point of view i totally understand Romain's comment that they want to get it right. OpenGL ES 2.0 is not compatible to

[android-developers] Re: Localization of Plurals using Context and resources strings.xml

2010-03-13 Thread Makas Tzavellas
Hey Greg, Can't say that I am aware of "few" and "many" as values in "quantity". I have only used "one" and "other" so far... Sorry that I can't be much of a help here. Perhaps developers of the Android platform can shed some light for us? Hello? haha. Makas On Mar 12, 7:57 am, Greg Giacovelli

[android-developers] force ContentProvider to synchronize with database

2010-03-13 Thread Olivier
Hi! I'm sharing informations with a content provider. But whent something change, the provider seems to ignore it untill I close my program. Or do not write data on the database until I close it. So is there a commend or a method to force ContentProvider to synchronize with his respective database

[android-developers] Re: OpenGL ES 2.0 on Eclair

2010-03-13 Thread Mario Zechner
Hey Michael, http://groups.google.com/group/android-developers/browse_thread/thread/064ebeaa6401# hope that helps :) Ciao, Mario On 13 Mrz., 05:17, MichaelEGR wrote: > Also I just want to point out that the community driven LWJGL desktop > Java binding has already added OpenGL 4.0 support

[android-developers] Re: How to use PathClassLoader for files that are not installed.

2010-03-13 Thread Makas Tzavellas
Hi Craig, Yes, it is indeed possible, although not directly from the asset folder (I think, been a while since I did it). If my memory serves me right, you will need to write the file (apk) into the phone memory or sdcard (not sure about sdcard though) before you can use PathClassLoader on it. Ma

[android-developers] pause mediaplayer when incoming call

2010-03-13 Thread kavitha
Hi All, How to pause music when user recieves incoming call in android? Can i know i am getting incoming call from any API's? Please help,Its urgent. Thanks Kavitha -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Re: Sending huge files with HttpsUrlConnection???

2010-03-13 Thread Makas Tzavellas
Hi, There is no guarantee that this will work, but try placing "os.flush()" in your loop. Which in theory tells the outputstream implementation to write out the buffered data. E.g while ((len = is.read(buffer)) != -1){ os.write(buffer, 0, len); os.flush(); } I haven't looked at the underlying i

Re: [android-developers] Re: How to Upgrade Application without losing data.

2010-03-13 Thread TreKing
On Sat, Mar 13, 2010 at 1:36 AM, Caeser wrote: > D:\android-sdk-windows\tools>adb install TEST_V2.apk > Include the -r flag to indicate it's a re-install. Ex: "adb install -r TEST_V2.apk" TIp: type "adb" with no argument in the command line to see a list of available commands and flags. -

[android-developers] showing media volume controller

2010-03-13 Thread kavitha
Hi All, how to show media volume controller on my screen in android? Thanks kavitha -- 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, s

  1   2   >