[android-developers] xml unescape
Any tools in java/android sdk to unescape a escaped xml string? --~--~-~--~~~---~--~~ 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: Orientation : onStop onDestroy called from BACK key or not ?
That is a very bad way of doing it. What if the user presses the HOME button? What if the user goes to a different activity using the notification bar? The camera button? What if it's a device that allows switching activities using a custom button? Relying on a button press to detect the lifetime of your application is a major hack and bound to break in many ways. You might want to read the documentation for the Activity class to see how the lifetime of an application works. It goes in detail about what each stage does: onPause wants you to suspend your threads. onDestroy means your app will be gone for good if isFinishing() is set. If you want to handle the specific case of an orientation change, you can respond to onConfigurationChanged(). I would strongly advise against any kind of hacks circumventing those methods. What are you trying to do in your back button code? -Mike On Sep 17, 2:28 pm, Nanard wrote: > I have founded ! Thanks > > I should not rely on onStop() nor onDestroy() to know when I quit my > Activity. > > The only safe way is : > > @Override > public boolean onKeyDown(int keyCode, KeyEvent event) { > > if (keyCode == KeyEvent.KEYCODE_BACK) { > ... do some cleaning here > } > return super.onKeyDown(keyCode, event); > } --~--~-~--~~~---~--~~ 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: TextView marquee scroll behavior different in AVD 1.6r1
On Fri, Sep 18, 2009 at 9:08 PM, greg wrote: > > My application has a list of species names, some of which are too long > to fit in the TextView. For example, "Black-bellied Whistling-duck" > gets truncated at "-duck". Using AVD 1.5r3, the TextView's marquee > scroll does a nifty shift of the text to display the last five > characters (i.e., "-duck"). However, using AVD 1.6r1, the TextView's > marquee scroll shifts the text to display those last five characters > and then about a dozen spaces and then the beginning of the species > name again, as if the TextView text were "Black-bellied Whistling- > duck Black-bellied Whistling". > > Is this new behavior of the TextView's marquee scroll intentional? Yes. --~--~-~--~~~---~--~~ 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: How To Programmatically Turn On/Off WIFI?
Sure you can, you just need a phone. On Fri, Sep 18, 2009 at 9:21 PM, !oEL wrote: > > So there is no way I can really test it? > > On 9月18日, 下午1时07分, "Roman ( T-Mobile USA)" mobile.com> wrote: >> You don't have Wifi support on the emulator >> >> -- >> Roman Baumgaertner >> Sr. SW Engineer-OSDC >> ·T· · ·Mobile· stick together >> The views, opinions and statements in this email are those of the >> author solely in their individual capacity, and do not necessarily >> represent those of T-Mobile USA, Inc. >> >> On Sep 17, 9:48 pm, "!oEL" wrote: >> >> >> >> > Thank you guys. >> >> > I got rid of the Security Exceptions by adding a couple of >> > permissions, including WAKE_LOCK, which appears to be the exception I >> > got after adding the two WIFI ones. >> >> > However, now I've managed to actually access the state, but in >> > Emulator it tells me: Failed to load WIFI driver. The same thing >> > happens when I use the built-in power control widget. >> >> > On Sep 17, 12:48 am, Raphael wrote: >> >> > > On Tue, Sep 15, 2009 at 8:36 PM, !oEL wrote: >> >> > > > Hi, >> >> > > > Second question of the day, how do Iprogrammaticallyturn on/off >> > > > WIFI? >> >> > > There's an example at line 226 here: >> > > http://code.google.com/p/autosettings/source/browse/trunk/AutoSetting... >> >> > > 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: How To Programmatically Turn On/Off WIFI?
So there is no way I can really test it? On 9月18日, 下午1时07分, "Roman ( T-Mobile USA)" wrote: > You don't have Wifi support on the emulator > > -- > Roman Baumgaertner > Sr. SW Engineer-OSDC > ·T· · ·Mobile· stick together > The views, opinions and statements in this email are those of the > author solely in their individual capacity, and do not necessarily > represent those of T-Mobile USA, Inc. > > On Sep 17, 9:48 pm, "!oEL" wrote: > > > > > Thank you guys. > > > I got rid of the Security Exceptions by adding a couple of > > permissions, including WAKE_LOCK, which appears to be the exception I > > got after adding the two WIFI ones. > > > However, now I've managed to actually access the state, but in > > Emulator it tells me: Failed to load WIFI driver. The same thing > > happens when I use the built-in power control widget. > > > On Sep 17, 12:48 am, Raphael wrote: > > > > On Tue, Sep 15, 2009 at 8:36 PM, !oEL wrote: > > > > > Hi, > > > > > Second question of the day, how do Iprogrammaticallyturn on/off > > > > WIFI? > > > > There's an example at line 226 here: > > > http://code.google.com/p/autosettings/source/browse/trunk/AutoSetting... > > > > 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: How to query MMS or SMS message ID based on a phone number
sms has a column "address" mms has a table "addr" which has a address column On Sep 18, 12:40 pm, hap 497 wrote: > Hi, > > How can I query all the MMS/SMS messages from the same phone number? > Thank you. --~--~-~--~~~---~--~~ 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] TextView marquee scroll behavior different in AVD 1.6r1
My application has a list of species names, some of which are too long to fit in the TextView. For example, "Black-bellied Whistling-duck" gets truncated at "-duck". Using AVD 1.5r3, the TextView's marquee scroll does a nifty shift of the text to display the last five characters (i.e., "-duck"). However, using AVD 1.6r1, the TextView's marquee scroll shifts the text to display those last five characters and then about a dozen spaces and then the beginning of the species name again, as if the TextView text were "Black-bellied Whistling- duck Black-bellied Whistling". Is this new behavior of the TextView's marquee scroll intentional? --~--~-~--~~~---~--~~ 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: SensorEvent value array ownership
I can understand the reasoning. My Galactic Guardian game breaks a lot of OO rules with many more static fields and no get/set methods than I would ever use normally. Another area I really want to revisit to see how these impact performance. But I followed the guidelines in the developers web site. One the sensor data issue, would it be safe to assume that the "values" arrays always contain valid data for all 3 sensors? At least after each sensor has been received once? In order to use the rotation routines you need the magnetic and accelerometer data. This requires keeping one of them locally while waiting for the other to be updated. But if it is valid to use the reference to the underlying array making a copy would not be necessary. I suspect the real answer is not to depend on the behavior since it might change in the future. Rud http://mysticlakesoftware.com/ On Sep 18, 5:21 pm, Dianne Hackborn wrote: > This is actually an anti-Java way of doing things, but useful for > performance. :} > > > > > > On Fri, Sep 18, 2009 at 2:21 PM, Rud wrote: > > > Hi, > > > I found the same thing working with the sensors. My comments are at > >http://mysticlakesoftware.blogspot.com/. Its something I need to > > revisit because I am not sure I have retained a copy or references to > > the underlying value. Still adjusting to some of the Java way of doing > > things. > > > Rud > >http://mysticlakesoftware.com/ > > > On Sep 18, 1:06 pm, Daber wrote: > > > Hi, > > > > I've been experimenting with gsensors on dev phone and I think i found > > > something that needs explanation. > > > > The appliaction was comparing g readings with previously read values > > > in following manner > > > float[] mPrevious; > > > > float[] v = event.values; > > > > // .. compare // > > > > mPrevious = v; > > > > but after while all comparisions were equal. > > > > It seems that event reuses float array object to provide new data in > > > the old array after some time (mPrevious and event.values is the same > > > object). > > > > Now here is The question: > > > Who has object "ownership" -the gsensor framework and i have to make > > > a copy > > > Me - and this is a bug > > > > BR, > > > > Michał Dąbrowski > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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: BaseAdapter.getView()’s c onvertView parameter
Have you watched http://www.youtube.com/watch?v=N6YdwzAvwOA ? On Sep 18, 10:49 pm, WoodManEXP wrote: > BaseAdapter.getView()’s convertView parameter > > Does anyone understand how this parameter works or is intended to > work? By watching it in the debugger it seems to be the view that was > previously returned from getView(). > > - Are we supposed to be able to reuse the previous view as some sort > of optimization rather than perhaps inflating a new view from XML? > > I have been able to reuse the view for a TextView but for nothing more > complex, like a multi-component view. > > - If it is a view to reuse does this mean one could instantiate a view > outside of getView() and just keep using it over and over again > returning it from getView()? I have tried this but it does not see to > work. It messes up the layout of the ListView. > > Anyway, if anyone understands more about how BaseAdapter.getView()’s > convertView parameter is supposed to be used, I’d sure like to know. > > Thank you! --~--~-~--~~~---~--~~ 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: BaseAdapter.getView()’s c onvertView parameter
Watch this video: http://code.google.com/events/io/sessions/TurboChargeUiAndroidFast.html Check Mark Murphy's book http://commonsware.com/Android/index.html Read several posts here: http://www.androidguys.com/2008/07/14/fancy-listviews-part-one/ Short answer: ConvertView is a previously returned view. You can reuse it without having to make a view from scratch. So you can avoid costly operations. So you are correct about optimization. See the holder pattern. -- Carmen http://www.twitter.com/CarmenDelessio http://www.talkingandroid.com On Fri, Sep 18, 2009 at 10:49 PM, WoodManEXP wrote: > > BaseAdapter.getView()’s convertView parameter > > Does anyone understand how this parameter works or is intended to > work? By watching it in the debugger it seems to be the view that was > previously returned from getView(). > > - Are we supposed to be able to reuse the previous view as some sort > of optimization rather than perhaps inflating a new view from XML? > > I have been able to reuse the view for a TextView but for nothing more > complex, like a multi-component view. > > - If it is a view to reuse does this mean one could instantiate a view > outside of getView() and just keep using it over and over again > returning it from getView()? I have tried this but it does not see to > work. It messes up the layout of the ListView. > > Anyway, if anyone understands more about how BaseAdapter.getView()’s > convertView parameter is supposed to be used, I’d sure like to know. > > Thank you! > > > > --~--~-~--~~~---~--~~ 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: put() in ResponseCache invoked with a wrong URI?
To answer the question of how to get the full url, my work around was to use conn.getURL() instead of the passed URI. So it would be: public CacheRequest put(URI uri, URLConnection conn) throws IOException { // TODO Auto-generated method stub Log.i("DataLoader", "Put() " + conn.getURL); return null; } On Sep 18, 5:43 pm, Matt Kanninen wrote: > I am seeing the same thing. > > On Aug 3, 12:27 am, Guitou wrote: > > > Hi, > > I extended ResponseCache as follow : > > > public class DataLoader extends ResponseCache { > > > @Override > > public CacheResponse get(URI uri, String arg1, > > Map> arg2) throws IOException { > > // TODO Auto-generated method stub > > Log.i("DataLoader", "Get()" + uri); > > return null; > > } > > > @Override > > public CacheRequest put(URI uri, URLConnection conn) throws > > IOException { > > // TODO Auto-generated method stub > > Log.i("DataLoader", "Put()" + uri); > > return null; > > } > > > } > > > I use this code to retrieve datas : > > > ResponseCache.setDefault(new DataLoader()); > > URI uri; > > HttpURLConnection conn; > > try { > > uri = new > > URI("http://www.google.com/intl/en_ALL/images/logo.gif";); > > conn = > > (HttpURLConnection)uri.toURL().openConnection(); > > InputStream inputStream; > > inputStream = conn.getInputStream(); > > inputStream.close(); > > } catch (MalformedURLException e1) { > > // TODO Auto-generated catch block > > e1.printStackTrace(); > > } catch (IOException e1) { > > // TODO Auto-generated catch block > > e1.printStackTrace(); > > } catch (URISyntaxException e1) { > > // TODO Auto-generated catch block > > e1.printStackTrace(); > > } > > > But when I look to my logs, the URI sent to the get() method is good > > (http://www.google.com/intl/en_ALL/images/logo.gif) but in the put() > > it does not give me the same URI but onlyhttp://www.google.com > > Is that normal? > > How to get the full url in put() ? > > Thanks for 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how do you quit an app...
Yea, Android wants to be the killer of processes. I believe the thinking is that it is better to leave one running incase the user wants to come back. So when user presses home key the app is just suspended but not killed, unless OS needs its resorces. That's why they relaunch so quickly. On Sep 18, 8:36 pm, Mark Murphy wrote: > sdphil wrote: > > i have an app with multiple activities and a local service. > > > if I finish() all the activites and stop the service, the process > > still exists (if I go into adb shell and type ps, I still see it). > > Correct. > > > is there a way to make sure the process is killed when I "quit"? > > Your job is not to kill the process. Android will terminate the process > when it wishes. It may elect to keep a process around for recycling > purposes. > > You *do* need to make sure *you* are not causing the process to stick > around, such as leaving a thread running, or having registered a > listener with Android that you didn't release (e.g., a PhoneStateListener). > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ 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] BaseAdapter.getView()’s conve rtView parameter
BaseAdapter.getView()’s convertView parameter Does anyone understand how this parameter works or is intended to work? By watching it in the debugger it seems to be the view that was previously returned from getView(). - Are we supposed to be able to reuse the previous view as some sort of optimization rather than perhaps inflating a new view from XML? I have been able to reuse the view for a TextView but for nothing more complex, like a multi-component view. - If it is a view to reuse does this mean one could instantiate a view outside of getView() and just keep using it over and over again returning it from getView()? I have tried this but it does not see to work. It messes up the layout of the ListView. Anyway, if anyone understands more about how BaseAdapter.getView()’s convertView parameter is supposed to be used, I’d sure like to know. Thank you! --~--~-~--~~~---~--~~ 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: Writing my ListAdapter for ListView
Yes and lists can be scrolled quickly so many of the images locations may scroll away even before they are loaded. I'd maybe want to make sure the images to be loaded are small like thumbnails if possible in order to speed load time and decrease memory footprint. Otherwise you might want to not load the images in the list but have them pop-up on a long-click on a list element of something. Maybe? On Sep 18, 9:41 pm, hap 497 wrote: > Thank you. > > In my adapter's bindView method(), can I do something like only bind > the text parts of the view first and spawn a thread to bind the > imageView (i.e. loading the bitmap form file, create a bitmap object > and call setImageBitmap to the imageView)? > > But one problem I see this is I will end up spawning 1 thread per row > in ListView, so that is kind of expensive. My ListView can ~ 50 rows. > > > > On Fri, Sep 18, 2009 at 4:37 PM, Mark Murphy wrote: > > > hap 497 wrote: > >> Hi, > > >> I am trying to write a ListAdapter for an android ListView. > > >> In my ListAdapter's bindView(), I need to read a local file, generate > >> a Bitmap and set the imageView of the row to this Bitmap. > > >> I find this kind of slow when running on G1. Is there any idea to help > >> performance? > > > Cache the images in RAM once you load them, so you do not re-load them > > from the file when the user scrolls and then scrolls back. Maybe > > pre-load the images if you know what they are in advance and know for > > certain they will be used. > > > You don't want to go overboard on this, lest you run out of memory. > > > -- > > Mark Murphy (a Commons Guy) > >http://commonsware.com|http://twitter.com/commonsguy > > > Android App Developer Books:http://commonsware.com/books.html- Hide quoted > > text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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: Writing my ListAdapter for ListView
Thank you. In my adapter's bindView method(), can I do something like only bind the text parts of the view first and spawn a thread to bind the imageView (i.e. loading the bitmap form file, create a bitmap object and call setImageBitmap to the imageView)? But one problem I see this is I will end up spawning 1 thread per row in ListView, so that is kind of expensive. My ListView can ~ 50 rows. On Fri, Sep 18, 2009 at 4:37 PM, Mark Murphy wrote: > > hap 497 wrote: >> Hi, >> >> I am trying to write a ListAdapter for an android ListView. >> >> In my ListAdapter's bindView(), I need to read a local file, generate >> a Bitmap and set the imageView of the row to this Bitmap. >> >> I find this kind of slow when running on G1. Is there any idea to help >> performance? > > Cache the images in RAM once you load them, so you do not re-load them > from the file when the user scrolls and then scrolls back. Maybe > pre-load the images if you know what they are in advance and know for > certain they will be used. > > You don't want to go overboard on this, lest you run out of memory. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Android App Developer Books: http://commonsware.com/books.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: YouTube in the emulator?
If you just want to be able to play YouTube videos, you're welcome to use my free Activity that I wrote. Just drop the source in your project and change the package and you should be pretty close to ready to play YouTube videos. It's barebones, but it takes care of all of the hard stuff with respect to YouTube, and you have the source so you can do whatever you want with it. Find it here: http://keyeslabs.com/joomla/index.php/blogs/i-think-im-becoming-an-android/51-polish-your-app-free-embeddable-android-youtube-activity Hope that helps! On Sep 18, 7:39 pm, Felix Oghina wrote: > How can I get the YouTube application in the emulator? I want to > create an application that launches YouTube clips and I need to test > my Intents. I can't find anything related to this in the docs. --~--~-~--~~~---~--~~ 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: Starting an Activity (with the dialog theme) from the onCreate() of another Activity results in a black screen.
I did something like this:- @null
and it worked just fine. Thanks for the help. Jeremy On Sep 17, 3:07 pm, Dianne Hackborn wrote: > (That said... there is a bug that will be fixed after 1.6 where if you try > to start an activity from the onCreate/onStart/onResume of the first > activity in a task, and the next activity is using the dialog theme, then > the next activity wouldn't be displayed. You can probably work around this > by making a custom dialog theme that doesn't have any animations.) > > On Thu, Sep 17, 2009 at 3:05 PM, Dianne Hackborn wrote: > > > > > On Thu, Sep 17, 2009 at 1:08 PM, niko20 wrote: > > >> You should never start another activity directly from your OnCreate. > > > That's not true. In fact there are many places where you want to start an > > activity here (or in onStart or onResume) to ensure that the next activity > > it shown before yours to avoid flicker. > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > Note: please don't send private questions to me, as I don't have time to > > provide private support, and so won't reply to such e-mails. All such > > questions should be posted on public forums, where I and others can see and > > answer them. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. --~--~-~--~~~---~--~~ 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: put() in ResponseCache invoked with a wrong URI?
I am seeing the same thing. On Aug 3, 12:27 am, Guitou wrote: > Hi, > I extended ResponseCache as follow : > > public class DataLoader extends ResponseCache { > > @Override > public CacheResponse get(URI uri, String arg1, > Map> arg2) throws IOException { > // TODO Auto-generated method stub > Log.i("DataLoader", "Get()" + uri); > return null; > } > > @Override > public CacheRequest put(URI uri, URLConnection conn) throws > IOException { > // TODO Auto-generated method stub > Log.i("DataLoader", "Put()" + uri); > return null; > } > > } > > I use this code to retrieve datas : > > ResponseCache.setDefault(new DataLoader()); > URI uri; > HttpURLConnection conn; > try { > uri = new > URI("http://www.google.com/intl/en_ALL/images/logo.gif";); > conn = > (HttpURLConnection)uri.toURL().openConnection(); > InputStream inputStream; > inputStream = conn.getInputStream(); > inputStream.close(); > } catch (MalformedURLException e1) { > // TODO Auto-generated catch block > e1.printStackTrace(); > } catch (IOException e1) { > // TODO Auto-generated catch block > e1.printStackTrace(); > } catch (URISyntaxException e1) { > // TODO Auto-generated catch block > e1.printStackTrace(); > } > > But when I look to my logs, the URI sent to the get() method is good > (http://www.google.com/intl/en_ALL/images/logo.gif) but in the put() > it does not give me the same URI but onlyhttp://www.google.com > Is that normal? > How to get the full url in put() ? > Thanks for 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to force soft keyboard to be visible?
The G1 has a keyboard, so it works as I said -- the IME is not shown by default. This is a policy decision of the platform. On a myTouch, since it doesn't have a keyboard, the IME will be shown by default in various cases (for example when you enter the edit contacts screen) when the app has indicated that is desired with the input options. On Fri, Sep 18, 2009 at 4:13 PM, Mike Collins wrote: > > The behavior I'm talking about is on a locked G1 with 1.5, I did not > expect the > emulator to be very useful. > > The behavior on a myTouch (locked, 1.5) is really bizarre. > > I'm beginning to think that I'm going to pull all the soft keyboard > code out > and let the user do the extra work. > > mike > > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: OpenGL 2D Game Framework
Wow, thank you. This saves me a lot of work. I've been writing a game with a friend and it is at the point where it has to be changed from using Canvas to OpenGL. Just started looking at your framework now - those example classes to see how it is used are very helpful. It will be interesting to see how much is the same and how much is different when the Replica Island source code from the Google I/O Android games talk finally gets released: http://code.google.com/events/io/sessions/WritingRealTimeGamesAndroid.html On Sep 18, 9:08 am, "rich...@stickycoding.com" wrote: > I've been working on a game framework for a little while, and while > its far from perfect, I've put the current version online. > > To be honest, I haven't used much OpenGL in the past. Before last week > I had never tried using it. > If anyone would like to take a look, please do, I'd appreciate all the > help possible on speeding it up. > There are many features I have in mind and am planning at the minute, > but so far it supports: > > # Texture and Sprite management > # Text, using TTF fonts > # Organised layers > # Two audio management classes, one optimized for music, the other for > sound effects > # Sprite dynamics (acceleration, terminal velocity, collisions) > # Animation > # Handlers to manage events fired through movement, animation, screen > touches, accelerometer input, device shaking and collisions > # Several minor features aimed at speeding development, such as screen > settings and vibration > > The code is athttp://code.google.com/p/rokon/ > > Again, I'd very much appreciate advice or help with any bugs you can > see, 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 -~--~~~~--~~--~--~---
[android-developers] Re: how do you quit an app...
sdphil wrote: > i have an app with multiple activities and a local service. > > if I finish() all the activites and stop the service, the process > still exists (if I go into adb shell and type ps, I still see it). Correct. > is there a way to make sure the process is killed when I "quit"? Your job is not to kill the process. Android will terminate the process when it wishes. It may elect to keep a process around for recycling purposes. You *do* need to make sure *you* are not causing the process to stick around, such as leaving a thread running, or having registered a listener with Android that you didn't release (e.g., a PhoneStateListener). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ 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: how do you quit an app...
Why do you want to kill the process? On Fri, Sep 18, 2009 at 5:30 PM, sdphil wrote: > > i have an app with multiple activities and a local service. > > if I finish() all the activites and stop the service, the process > still exists (if I go into adb shell and type ps, I still see it). > > is there a way to make sure the process is killed when I "quit"? > > tia. > > > --~--~-~--~~~---~--~~ 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 do you quit an app...
i have an app with multiple activities and a local service. if I finish() all the activites and stop the service, the process still exists (if I go into adb shell and type ps, I still see it). is there a way to make sure the process is killed when I "quit"? tia. --~--~-~--~~~---~--~~ 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: WebView.loadDataWithBaseURL bug
you probably want to set the web view client before calling any variant of load(). there are some strange things associated with loadDataWithBaseURL() and base URLs, search the archives. sometimes the WebView loads the base URL instead of the provided data, i've never really got to the bottom of it. another thing you are probably running into is that shouldOverrideUrlLoading() is not called on reloading the same page. that's a nasty bug that's caused me some trouble. sounds like you can work around it by faking a parameter, but that didn't work for me in my case. hth >Has anyone seen this? > >webView.loadDataWithBaseURL("http://www.google.com";, >"http://www.google.com>click", "text/html", "utf-8", nul); >webView.setWebViewClient(new WebViewClient() { > public boolean shouldOverrideUrlLloading(WebView w, String url) { > System.out.println(url); > return true; > } >}); > >When user clicks the link, my shouldOverrideUrlLloading() function is >not called. Instead, the WebView just goes out to fetch the real >www.google.com page. > >For the time being, my work-around is to append "?foo=bar" into the >baseURL. > >Is there a better work around? > >Thanks > -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ 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] save new file into asset directory from app
i hear that 1.6 has a more sorted local-access system, and it's not a moment too soon IMHO. >I know one way that works for sure. Open a server socket inside your >app, then specify http://localhost:1234 inside WebView. This seems >like a hack (and maybe it is :-) but it's much simpler than fighting >with WebView. > >On Sep 18, 10:41 am, Jason Proctor >wrote: >> i had all kinds of trouble trying to get WebKit to load local >> resources, and implemented my own content provider to deal with some >> kinds of content: URLs. i ran into issues even then, and eventually >> had the content provider cache stuff from my assets directory in >> /sdcard. >> >> hth >> >> >> >> >Hi Mark, >> >> >I have given the fully-qualified url of CSS. But don't know why this >> >is happening. >> >> >I will make small app and will try to open an issue on this if could >> >not get answer on this forum. >> >> >Ideas from the experts are very much welcome. >> >> >Thanks, >> >AJ >> >> >On Sep 18, 4:13 pm, Mark Murphy wrote: >> >> AJ wrote: >> >> > If we try to load local HTML file [through ContentProvider] in which >> >> > the css is specified with "import" keyword, the css deoes not get >> >> > properly applied. >> >> >> I am very much *not* a CSS expert. With that in mind: >> >> >> -- have you tried fully-qualifying the URL you use with @import? >> >> >> -- is there a reason you use @import versus a stylesheet element? >> >> >> Also, since I do not see a bug report for this out >> >>onhttp://b.android.com, if you can create a small project that >> >>reproduces >> >> the error, you might want to open an issue on it, so that it is more >> >> likely to get investigated. >> >> >> -- >> >> Mark Murphy (a Commons >> >>Guy)http://commonsware.com|http://twitter.com/commonsguy >> >> >> Android Development Wiki:http://wiki.andmob.org >> >> -- >> jason.vp.engineering.particle > -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ 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: save new file into asset directory from app
I know one way that works for sure. Open a server socket inside your app, then specify http://localhost:1234 inside WebView. This seems like a hack (and maybe it is :-) but it's much simpler than fighting with WebView. On Sep 18, 10:41 am, Jason Proctor wrote: > i had all kinds of trouble trying to get WebKit to load local > resources, and implemented my own content provider to deal with some > kinds of content: URLs. i ran into issues even then, and eventually > had the content provider cache stuff from my assets directory in > /sdcard. > > hth > > > > >Hi Mark, > > >I have given the fully-qualified url of CSS. But don't know why this > >is happening. > > >I will make small app and will try to open an issue on this if could > >not get answer on this forum. > > >Ideas from the experts are very much welcome. > > >Thanks, > >AJ > > >On Sep 18, 4:13 pm, Mark Murphy wrote: > >> AJ wrote: > >> > If we try to load local HTML file [through ContentProvider] in which > >> > the css is specified with "import" keyword, the css deoes not get > >> > properly applied. > > >> I am very much *not* a CSS expert. With that in mind: > > >> -- have you tried fully-qualifying the URL you use with @import? > > >> -- is there a reason you use @import versus a stylesheet element? > > >> Also, since I do not see a bug report for this out > >>onhttp://b.android.com, if you can create a small project that > >>reproduces > >> the error, you might want to open an issue on it, so that it is more > >> likely to get investigated. > > >> -- > >> Mark Murphy (a Commons > >>Guy)http://commonsware.com|http://twitter.com/commonsguy > > >> Android Development Wiki:http://wiki.andmob.org > > -- > jason.vp.engineering.particle --~--~-~--~~~---~--~~ 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: YouTube in the emulator?
Felix Oghina wrote: > How can I get the YouTube application in the emulator? I want to > create an application that launches YouTube clips and I need to test > my Intents. I can't find anything related to this in the docs. You can't, legally. That application is licensed to handset manufacturers and is not part of the Android open source project. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.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: Trying to get Javascript on Android
EbisuDave, I bet you are in Tokyo ! Have you tried: http://www.nanaze.com/2009/01/debugging-javascript-on-android.html Shawn --~--~-~--~~~---~--~~ 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 open a dialog immediately after onResume? Is it even possible?
Hi all, I need to open a progress dialog on the onResume() method. But no dialog is opened. Any solutions for this? Agus. --~--~-~--~~~---~--~~ 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] YouTube in the emulator?
How can I get the YouTube application in the emulator? I want to create an application that launches YouTube clips and I need to test my Intents. I can't find anything related to this in the docs. --~--~-~--~~~---~--~~ 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: Writing my ListAdapter for ListView
hap 497 wrote: > Hi, > > I am trying to write a ListAdapter for an android ListView. > > In my ListAdapter's bindView(), I need to read a local file, generate > a Bitmap and set the imageView of the row to this Bitmap. > > I find this kind of slow when running on G1. Is there any idea to help > performance? Cache the images in RAM once you load them, so you do not re-load them from the file when the user scrolls and then scrolls back. Maybe pre-load the images if you know what they are in advance and know for certain they will be used. You don't want to go overboard on this, lest you run out of memory. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.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] Writing my ListAdapter for ListView
Hi, I am trying to write a ListAdapter for an android ListView. In my ListAdapter's bindView(), I need to read a local file, generate a Bitmap and set the imageView of the row to this Bitmap. I find this kind of slow when running on G1. Is there any idea to help performance? Thank you. --~--~-~--~~~---~--~~ 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: How to force soft keyboard to be visible?
The behavior I'm talking about is on a locked G1 with 1.5, I did not expect the emulator to be very useful. The behavior on a myTouch (locked, 1.5) is really bizarre. I'm beginning to think that I'm going to pull all the soft keyboard code out and let the user do the extra work. mike --~--~-~--~~~---~--~~ 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: How to get custom parameter from custom ui tag
Hi, I have solved this problem, just need to use attrs.getAttributeResourceValue() method. It's like below: int btn_up = attrs.getAttributeResourceValue(" http://www.mydomain.test/apk/res/mydomain.tools.ui ","button_up",-1); Then I can get the resource id, not a String. Thanks. Ryan > dear all, > > I try to implement a custom button(OnPressButton), and the code is in > below. > In LogCat, I can see the two parameters (btn_up/btn_down) value are > below: > > btn_...@drawable/btn_up > btn_do...@drawable/btn_up > > But how can I convert this to point to R.drowable.btn_up and > R.drowable.btn_down ? > > Thank you. > > Ryan > > # > In res/layout/main.xml > # >xmlns:android="http://schemas.android.com/apk/res/android"; > xmlns:app="http://www.mydomain.test/apk/res/mydomain..tools.ui"; > android:id="@+id/btn_opb" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > app:btn_up="@drawable/btn_up" > app:btn_down="@drawable/btn_up" > /> > > # > In my Activity class > # > /** Called when the activity is first created. */ > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > > OnPressButton opb = (OnPressButton) findViewById > (R.id.btn_opb); > } > # > In my custom button class: OnPressButton.java > # > Properties params = null; > > public OnPressButton(Context context, AttributeSet attrs) { > super(context, attrs); > > // get all params in layout xml > params = new Properties(); > > for(int i=0; i Log.d(tag, "attrs value=" + attrs.getAttributeValue(i)); > Log.d(tag, "attrs name=" + attrs.getAttributeName(i)); > > params.put(attrs.getAttributeName(i),attrs.getAttributeValue(i)); > } > > if(params.containsKey("btn_up")) { > btn_up = (String)params.get("btn_up"); > Log.d(tag, "btn_up=" + btn_up); > } > > if(params.containsKey("btn_down")) { > btn_down = (String) params.get("btn_down"); > Log.d(tag, "btn_down=" + btn_down); > } > } > > > > > > > > > --~--~-~--~~~---~--~~ 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: Is the limit of memory heap only 6M?
On Sep 18, 9:01 am, Peter Jeffe wrote: > Andy and Adam, any further comment? I'd like to believe that there's > something developers can do to minimize the impact of these problems > on end users. I think you can appreciate that having an application > crash repeatedly through no fault of one's own is very disheartening. I don't know anything about how Maps works, so I can't offer any specific advice there. Something is using lots of memory, and until it stops, this will be a 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] Re: SensorEvent value array ownership
This is actually an anti-Java way of doing things, but useful for performance. :} On Fri, Sep 18, 2009 at 2:21 PM, Rud wrote: > > Hi, > > I found the same thing working with the sensors. My comments are at > http://mysticlakesoftware.blogspot.com/. Its something I need to > revisit because I am not sure I have retained a copy or references to > the underlying value. Still adjusting to some of the Java way of doing > things. > > Rud > http://mysticlakesoftware.com/ > > On Sep 18, 1:06 pm, Daber wrote: > > Hi, > > > > I've been experimenting with gsensors on dev phone and I think i found > > something that needs explanation. > > > > The appliaction was comparing g readings with previously read values > > in following manner > > float[] mPrevious; > > > > float[] v = event.values; > > > > // .. compare // > > > > mPrevious = v; > > > > but after while all comparisions were equal. > > > > It seems that event reuses float array object to provide new data in > > the old array after some time (mPrevious and event.values is the same > > object). > > > > Now here is The question: > > Who has object "ownership" -the gsensor framework and i have to make > > a copy > > Me - and this is a bug > > > > BR, > > > > Michał Dąbrowski > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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] setting margins for ListView entries
i'm having a little trouble getting a ListView with custom views in it to look right, i wonder if i'm missing something basic. i'd like the scrollbar for the ListView to remain at hard right, but the actual view items to be inset inside the view frame. padding adds space inside the item view frames, seems like, and there's no setMargins() call in AbsListView.LayoutParams. any help appreciated! thanks -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ 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: SensorEvent value array ownership
Hi, I found the same thing working with the sensors. My comments are at http://mysticlakesoftware.blogspot.com/. Its something I need to revisit because I am not sure I have retained a copy or references to the underlying value. Still adjusting to some of the Java way of doing things. Rud http://mysticlakesoftware.com/ On Sep 18, 1:06 pm, Daber wrote: > Hi, > > I've been experimenting with gsensors on dev phone and I think i found > something that needs explanation. > > The appliaction was comparing g readings with previously read values > in following manner > float[] mPrevious; > > float[] v = event.values; > > // .. compare // > > mPrevious = v; > > but after while all comparisions were equal. > > It seems that event reuses float array object to provide new data in > the old array after some time (mPrevious and event.values is the same > object). > > Now here is The question: > Who has object "ownership" -the gsensor framework and i have to make > a copy > Me - and this is a bug > > BR, > > Michał Dąbrowski --~--~-~--~~~---~--~~ 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: Menu buttons in bottom part of layout
Thank you all for your replies. --~--~-~--~~~---~--~~ 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: 1.6 error with NumericShaper.class?
Thanks for the suggestion, but, I am not using that lib in my code. I do not have any NumericShaper class call and cannot see how to clear the error. Could it be some Eclipse glitch happening with the import of my project from another machine? I guess it's just me with this problem! A second error cropped up where the apk file is not found on my system in bin and I cannot create a new one. Unless there is a better idea, my next step is probably to try and import the code into a new project to see if the weirdness will go away. Wish me luck! On Sep 17, 10:02 pm, Raphael wrote: > IIRC awt is a separate library that you need to declare explicitly in > your application > manifest.http://www.google.com/search?hl=en&q=android+uses-library+awt > > R/ > > On Thu, Sep 17, 2009 at 1:49 PM, Beth Mezias wrote: > > Hiya, > > > When I try to open my SDK 1.1 project with Donut, I get an error (pasted > > below). I did a search and cannot find the NumericShaper anywhere in my > > code. As a matter of fact, I cannot even find an import or call to the > > java/awt package. Can I get a clue about how I might solve it? > > > Thanks and regards, > > Beth > > > [2009-09-17 13:44:14 - Flipper]processing dalvik/system/Zygote.class... > > [2009-09-17 13:44:14 - Flipper]processing > > java/awt/font/NumericShaper.class... > > [2009-09-17 13:44:14 - Flipper] > > trouble processing "java/awt/font/NumericShaper.class": > > [2009-09-17 13:44:14 - Flipper] > > Attempt to include a core VM class in something other than a core library. > > It is likely that you have attempted to include the core library from a > > desktop > > virtual machine into an application, which will most assuredly not work. If > > you really intend to build a core library -- which is only appropriate as > > part of creating a full virtual machine binary, as opposed to compiling an > > application -- then use the "--core-library" option to suppress this error > > message. If you go ahead and use "--core-library" but are in fact building > > an application, then please be aware that your build will still fail at some > > point; you will simply be denied the pleasure of reading this helpful error > > message. > > [2009-09-17 13:44:14 - Flipper]1 error; aborting > > [2009-09-17 13:44:14 - Flipper]Conversion to Dalvik format failed with error > > 1 > > [2009-09-17 13:44:14 - Flipper]Refreshing resource folders. > > [2009-09-17 13:44:14 - Flipper]Starting incremental Pre Compiler: Checking > > resource changes. > > [2009-09-17 13:44:14 - Flipper]Manifest min SDK version (2) is lower than > > project target API level (4) > > [2009-09-17 13:44:14 - Flipper]Nothing to pre compile! > > --~--~-~--~~~---~--~~ 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: OpenGL 2D Game Framework
I was thinking of doing something similar, but now I won't have to. I'll look at the code. --~--~-~--~~~---~--~~ 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: Trying to get Javascript on Android
Oh certainly, but as I said, it works in the emulator. So currently I don't think my problem is due to heavy javascript usage. I don't want to steal the thread from ebisudave, but as an example of the kind I have trouble with, take a look at the top chart here (animated jquery sparkline example): http://omnipotent.net/jquery.sparkline/ It work in Firefox etc. as well as the emulator, but not on my physical Magic device. /Casper On 18 Sep., 21:59, "Maps.Huge.Info (Maps API Guru)" wrote: > I think a lot of developers, especially ones from the web world, > forget that these mobile devices are like desktop computers of the > mid-90's in power and speed. Trying to get a complex JavaScript > application to run on the phone is probably going to be disappointing. > Just because it runs on FF with your quad core monster doesn't mean it > will do anything but cry for momma on the actual mobile device. > > -John Coryat > > "What Zip Code?" > > "Radar Now!" --~--~-~--~~~---~--~~ 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: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work
Well, I'm not sure why you would get the TabSpec there, but I personally would replace: return; with something like: invokeOnTabChangeListener(); return; Of course, this is not ideal because it is not a "change"... You could modify the interface to include an onTabReselected() method to keep the logic separate. On Sep 18, 1:16 pm, Wouter wrote: > Trying your second option now, but does not work.. > > if (index == mCurrentTab) { > mTabSpecs.get(mCurrentTab); > } > > Not correct right? :s > > On 18 sep, 22:06, "nEx.Software" wrote: > > > Well, you could put a button in the MovieDetail to go back to Cinema > > list, or you could modify the setCurrentTab in TabHost to not bail out > > when clicking the already active tab. See lines 324-326. > > > On Sep 18, 1:01 pm, Wouter wrote: > > > > Ok this works when i go to other tab and go back to original tab. > > > > So if i open MovieDetail in CinemaActivity (cinema tab), cinema got > > > replaces by MovieDetail. if i open Video tab and go back to Cinema, it > > > shows cinemaActivity again, this is good! > > > > But when i open MovieDetail in CInemaActivity (cinema tab) and click > > > on cinema tab again, it doesnt change.. It has to load cinemaActivity > > > again.. > > > > Code: > > > > mTabHost.setOnTabChangedListener(new > > > my.android.widget.TabHost.OnTabChangeListener() { > > > > �...@override > > > public void onTabChanged(String arg0) { > > > int selectedTab = mTabHost.getCurrentTab(); > > > System.out.println("TAB: " + selectedTab); > > > > if (selectedTab == 0) > > > { > > > refreshCinemaTab(); > > > } > > > } > > > }); > > > > } > > > > public void refreshCinemaTab() > > > { > > > cinema.replaceContent(new android.content.Intent(this, > > > CinemaActivity.class)); > > > } > > > > And cinema --> tab 0 > > > > How can i do this? > > > > On 18 sep, 19:28, "nEx.Software" wrote: > > > > > Register an OnTabChangeListener in your tab activity and handle it in > > > > there. > > > > > On Sep 18, 10:10 am, Wouter wrote: > > > > > > How can i do that? It initates the tabs on create but when happens > > > > > when i click on tab again.. where do i have to place the > > > > > replaceContent code? > > > > > > On 18 sep, 19:01, "nEx.Software" wrote: > > > > > > > You'll have to replace the content again. :) > > > > > > > On Sep 18, 9:58 am, Wouter wrote: > > > > > > > > Nice works great! > > > > > > > > But when i switch to other tab and go back to cinema tab my > > > > > > > MovieDetail is still open and when i click on Cinema in tabs it > > > > > > > doest > > > > > > > change to my cinema activity.. > > > > > > > > How can i go back now? > > > > > > > > On 18 sep, 18:49, "nEx.Software" > > > > > > > wrote: > > > > > > > > > Well, you could do it a couple ways... One way, for example: > > > > > > > > > In CinemaActivity: > > > > > > > > > Home parentActivity = ((Home) this.getParent()); > > > > > > > > parentActivity.cinema.replaceContent(new > > > > > > > > android.content.Intent(this, > > > > > > > > MovieDetail.class)) > > > > > > > > > On Sep 18, 9:30 am, Wouter wrote: > > > > > > > > > > Hey, > > > > > > > > > > Thank you! > > > > > > > > > > But I have some questions.. > > > > > > > > > > I now declarate my tabs in Home.java (my tabs are now at > > > > > > > > > bottom). > > > > > > > > > I have 4 tabs: Cinema, Video,TV and search. > > > > > > > > > > These 4 tabs are 4 different activities with lists. When i > > > > > > > > > click on a > > > > > > > > > list item in cinema activity I have to open MovieDetail.java > > > > > > > > > (now it > > > > > > > > > opens in new activity without tabs) and the tabs have to stay > > > > > > > > > at the > > > > > > > > > bottom. > > > > > > > > > But how can i reach my custom tabspec cinema in > > > > > > > > > CInemaActivity so i > > > > > > > > > can do replaceContent --> cinema.replaceContent(new > > > > > > > > > android.content.Intent(this, MovieDetail.class)); > > > > > > > > > > Wouter > > > > > > > > > > On 18 sep, 17:51, "nEx.Software" > > > > > > > > > wrote: > > > > > > > > > > > I was planning on writing a full blown tutorial but since I > > > > > > > > > > can tell > > > > > > > > > > you are anxious to see it... This is a 1.5 compatible > > > > > > > > > > version that > > > > > > > > > > uses modified versions of the TabActivity, TabHost, and > > > > > > > > > > TabWidget (and > > > > > > > > > > related resources) from Android 1.6. There are obvious > > > > > > > > > > things that > > > > > > > > > > could be done better but the idea is there and should at > > > > > > > > > > least get you > > > > > > > > > > headed in the "right" direction. > > > > > > > > > > >http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip > > > > > > > > > > > On Sep 18, 6:36 am, Wouter wr
[android-developers] Re: How to make a button/drawable remain clicked
Thanks, Very strange they don't provide this capability. I'm writing a game where this is crucial. Anyways, I did have to implement my own view and managed to get the LayerDrawable working to accomplish this. Works pretty good. On Sep 18, 12:39 am, BJP wrote: > For whatever reason, this is a pet peeve of some of the core Android > development team. There have been a number of posts where developers > have requested the ability to programmatically highlight objects as if > the track ball was used to select them but the answer is that this is > impossible in "touch mode" which is entered whenever the user touches > the screen. The core Android developers claim that highlighting > objects programmatically will present a confusing user experience, so > they're not going to let developers do it. As far as I know, your > only alternative is to make your own View that behaves like you want > it to, but that will be frowned > upon:http://groups.google.com/group/android-developers/browse_thread/threa... > > --Ben > > On Sep 17, 12:05 pm, k_pip_k wrote: > > > Hello all, > > > I have a GridView with a BaseAdapter that cycles through the elements > > making views for each element or cell in the grid. > > > What I would like to do is create a clickable image/button, and when > > the user clicks or touches it, for it to remain clicked and > > highlighted so that they make click on several if they so choose. > > > I have tried, ImageButtons, Buttons, ImageViews, LayerDrawables(with a > > swapable background color drawable), ToggleButtons, CheckBoxes, > > derived my own CompoundButton, but nothing seems to work. > > > I was a teeny bit successful with a ImageButton where I could create > > it selected, but if the user clicked on it, I couldn't get that visual > > state back. > > > Any help is appreciated. I can post code if you like. --~--~-~--~~~---~--~~ 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 reference resources (images) from a HTML page in webview?
How to reference resources (images) from a HTML page in webview? I am trying to display an image in html and the image is an android resource. What should i put on src attribute? Thanks, Agus. --~--~-~--~~~---~--~~ 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: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work
Trying your second option now, but does not work.. if (index == mCurrentTab) { mTabSpecs.get(mCurrentTab); } Not correct right? :s On 18 sep, 22:06, "nEx.Software" wrote: > Well, you could put a button in the MovieDetail to go back to Cinema > list, or you could modify the setCurrentTab in TabHost to not bail out > when clicking the already active tab. See lines 324-326. > > On Sep 18, 1:01 pm, Wouter wrote: > > > Ok this works when i go to other tab and go back to original tab. > > > So if i open MovieDetail in CinemaActivity (cinema tab), cinema got > > replaces by MovieDetail. if i open Video tab and go back to Cinema, it > > shows cinemaActivity again, this is good! > > > But when i open MovieDetail in CInemaActivity (cinema tab) and click > > on cinema tab again, it doesnt change.. It has to load cinemaActivity > > again.. > > > Code: > > > mTabHost.setOnTabChangedListener(new > > my.android.widget.TabHost.OnTabChangeListener() { > > > �...@override > > public void onTabChanged(String arg0) { > > int selectedTab = mTabHost.getCurrentTab(); > > System.out.println("TAB: " + selectedTab); > > > if (selectedTab == 0) > > { > > refreshCinemaTab(); > > } > > } > > }); > > > } > > > public void refreshCinemaTab() > > { > > cinema.replaceContent(new android.content.Intent(this, > > CinemaActivity.class)); > > } > > > And cinema --> tab 0 > > > How can i do this? > > > On 18 sep, 19:28, "nEx.Software" wrote: > > > > Register an OnTabChangeListener in your tab activity and handle it in > > > there. > > > > On Sep 18, 10:10 am, Wouter wrote: > > > > > How can i do that? It initates the tabs on create but when happens > > > > when i click on tab again.. where do i have to place the > > > > replaceContent code? > > > > > On 18 sep, 19:01, "nEx.Software" wrote: > > > > > > You'll have to replace the content again. :) > > > > > > On Sep 18, 9:58 am, Wouter wrote: > > > > > > > Nice works great! > > > > > > > But when i switch to other tab and go back to cinema tab my > > > > > > MovieDetail is still open and when i click on Cinema in tabs it > > > > > > doest > > > > > > change to my cinema activity.. > > > > > > > How can i go back now? > > > > > > > On 18 sep, 18:49, "nEx.Software" > > > > > > wrote: > > > > > > > > Well, you could do it a couple ways... One way, for example: > > > > > > > > In CinemaActivity: > > > > > > > > Home parentActivity = ((Home) this.getParent()); > > > > > > > parentActivity.cinema.replaceContent(new > > > > > > > android.content.Intent(this, > > > > > > > MovieDetail.class)) > > > > > > > > On Sep 18, 9:30 am, Wouter wrote: > > > > > > > > > Hey, > > > > > > > > > Thank you! > > > > > > > > > But I have some questions.. > > > > > > > > > I now declarate my tabs in Home.java (my tabs are now at > > > > > > > > bottom). > > > > > > > > I have 4 tabs: Cinema, Video,TV and search. > > > > > > > > > These 4 tabs are 4 different activities with lists. When i > > > > > > > > click on a > > > > > > > > list item in cinema activity I have to open MovieDetail.java > > > > > > > > (now it > > > > > > > > opens in new activity without tabs) and the tabs have to stay > > > > > > > > at the > > > > > > > > bottom. > > > > > > > > But how can i reach my custom tabspec cinema in CInemaActivity > > > > > > > > so i > > > > > > > > can do replaceContent --> cinema.replaceContent(new > > > > > > > > android.content.Intent(this, MovieDetail.class)); > > > > > > > > > Wouter > > > > > > > > > On 18 sep, 17:51, "nEx.Software" > > > > > > > > wrote: > > > > > > > > > > I was planning on writing a full blown tutorial but since I > > > > > > > > > can tell > > > > > > > > > you are anxious to see it... This is a 1.5 compatible version > > > > > > > > > that > > > > > > > > > uses modified versions of the TabActivity, TabHost, and > > > > > > > > > TabWidget (and > > > > > > > > > related resources) from Android 1.6. There are obvious things > > > > > > > > > that > > > > > > > > > could be done better but the idea is there and should at > > > > > > > > > least get you > > > > > > > > > headed in the "right" direction. > > > > > > > > > >http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip > > > > > > > > > > On Sep 18, 6:36 am, Wouter wrote: > > > > > > > > > > > Thank you so much! > > > > > > > > > > > On Sep 18, 3:03 pm, "nEx.Software" > > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > Sure, I'll throw together a quick sample and post it in a > > > > > > > > > > > bit. > > > > > > > > > > > > On Sep 18, 12:11 am, Wouter wrote: > > > > > > > > > > > > > And can you post the source code from this and your > > > > > > > > > > > > other example > > > > > > > > > > > > please? > > > > > > > > > > > > > On 17 sep, 23:50, "nEx.Software" > > > > > > > > > >
[android-developers] Trying to get Javascript on Android
yes indeed. we've scaled back a lot of the Javascript in our embedded WebViews due to performance issues. jQuery works fine for us, though, in places where it's necessary. >I think a lot of developers, especially ones from the web world, >forget that these mobile devices are like desktop computers of the >mid-90's in power and speed. Trying to get a complex JavaScript >application to run on the phone is probably going to be disappointing. >Just because it runs on FF with your quad core monster doesn't mean it >will do anything but cry for momma on the actual mobile device. > >-John Coryat > >"What Zip Code?" > >"Radar Now!" > -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ 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: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work
Well, you could put a button in the MovieDetail to go back to Cinema list, or you could modify the setCurrentTab in TabHost to not bail out when clicking the already active tab. See lines 324-326. On Sep 18, 1:01 pm, Wouter wrote: > Ok this works when i go to other tab and go back to original tab. > > So if i open MovieDetail in CinemaActivity (cinema tab), cinema got > replaces by MovieDetail. if i open Video tab and go back to Cinema, it > shows cinemaActivity again, this is good! > > But when i open MovieDetail in CInemaActivity (cinema tab) and click > on cinema tab again, it doesnt change.. It has to load cinemaActivity > again.. > > Code: > > mTabHost.setOnTabChangedListener(new > my.android.widget.TabHost.OnTabChangeListener() { > > �...@override > public void onTabChanged(String arg0) { > int selectedTab = mTabHost.getCurrentTab(); > System.out.println("TAB: " + selectedTab); > > if (selectedTab == 0) > { > refreshCinemaTab(); > } > } > }); > > } > > public void refreshCinemaTab() > { > cinema.replaceContent(new android.content.Intent(this, > CinemaActivity.class)); > } > > And cinema --> tab 0 > > How can i do this? > > On 18 sep, 19:28, "nEx.Software" wrote: > > > Register an OnTabChangeListener in your tab activity and handle it in > > there. > > > On Sep 18, 10:10 am, Wouter wrote: > > > > How can i do that? It initates the tabs on create but when happens > > > when i click on tab again.. where do i have to place the > > > replaceContent code? > > > > On 18 sep, 19:01, "nEx.Software" wrote: > > > > > You'll have to replace the content again. :) > > > > > On Sep 18, 9:58 am, Wouter wrote: > > > > > > Nice works great! > > > > > > But when i switch to other tab and go back to cinema tab my > > > > > MovieDetail is still open and when i click on Cinema in tabs it doest > > > > > change to my cinema activity.. > > > > > > How can i go back now? > > > > > > On 18 sep, 18:49, "nEx.Software" wrote: > > > > > > > Well, you could do it a couple ways... One way, for example: > > > > > > > In CinemaActivity: > > > > > > > Home parentActivity = ((Home) this.getParent()); > > > > > > parentActivity.cinema.replaceContent(new > > > > > > android.content.Intent(this, > > > > > > MovieDetail.class)) > > > > > > > On Sep 18, 9:30 am, Wouter wrote: > > > > > > > > Hey, > > > > > > > > Thank you! > > > > > > > > But I have some questions.. > > > > > > > > I now declarate my tabs in Home.java (my tabs are now at bottom). > > > > > > > I have 4 tabs: Cinema, Video,TV and search. > > > > > > > > These 4 tabs are 4 different activities with lists. When i click > > > > > > > on a > > > > > > > list item in cinema activity I have to open MovieDetail.java (now > > > > > > > it > > > > > > > opens in new activity without tabs) and the tabs have to stay at > > > > > > > the > > > > > > > bottom. > > > > > > > But how can i reach my custom tabspec cinema in CInemaActivity so > > > > > > > i > > > > > > > can do replaceContent --> cinema.replaceContent(new > > > > > > > android.content.Intent(this, MovieDetail.class)); > > > > > > > > Wouter > > > > > > > > On 18 sep, 17:51, "nEx.Software" > > > > > > > wrote: > > > > > > > > > I was planning on writing a full blown tutorial but since I can > > > > > > > > tell > > > > > > > > you are anxious to see it... This is a 1.5 compatible version > > > > > > > > that > > > > > > > > uses modified versions of the TabActivity, TabHost, and > > > > > > > > TabWidget (and > > > > > > > > related resources) from Android 1.6. There are obvious things > > > > > > > > that > > > > > > > > could be done better but the idea is there and should at least > > > > > > > > get you > > > > > > > > headed in the "right" direction. > > > > > > > > >http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip > > > > > > > > > On Sep 18, 6:36 am, Wouter wrote: > > > > > > > > > > Thank you so much! > > > > > > > > > > On Sep 18, 3:03 pm, "nEx.Software" > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > Sure, I'll throw together a quick sample and post it in a > > > > > > > > > > bit. > > > > > > > > > > > On Sep 18, 12:11 am, Wouter wrote: > > > > > > > > > > > > And can you post the source code from this and your other > > > > > > > > > > > example > > > > > > > > > > > please? > > > > > > > > > > > > On 17 sep, 23:50, "nEx.Software" > > > > > > > > > > > wrote: > > > > > > > > > > > > > It just worked for me... > > > > > > > > > > > > > That being said, I have also copied all of the relevant > > > > > > > > > > > > code from the > > > > > > > > > > > > Android Open Source Project, added a > > > > > > > > > > > > replaceContent(Intent intent) > > > > > > > > > > > > method, and done the same thing as before but without > > > > > > > > > > > > the switching to > > > > > > > > > > > > a new t
[android-developers] Re: Trying to get Javascript on Android
You can easily test your device's browser JavaScript capabilities by calling up a Google Map API (v3 is best on mobile) application. Here's one you can try: http://www.usnaviguide.com/v3maps/ProjectedOverlayTest.htm If this map works, you have JavaScript enabled. -John Coryat "What Zip Code?" "Radar Now!" --~--~-~--~~~---~--~~ 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: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work
Ok this works when i go to other tab and go back to original tab. So if i open MovieDetail in CinemaActivity (cinema tab), cinema got replaces by MovieDetail. if i open Video tab and go back to Cinema, it shows cinemaActivity again, this is good! But when i open MovieDetail in CInemaActivity (cinema tab) and click on cinema tab again, it doesnt change.. It has to load cinemaActivity again.. Code: mTabHost.setOnTabChangedListener(new my.android.widget.TabHost.OnTabChangeListener() { @Override public void onTabChanged(String arg0) { int selectedTab = mTabHost.getCurrentTab(); System.out.println("TAB: " + selectedTab); if (selectedTab == 0) { refreshCinemaTab(); } } }); } public void refreshCinemaTab() { cinema.replaceContent(new android.content.Intent(this, CinemaActivity.class)); } And cinema --> tab 0 How can i do this? On 18 sep, 19:28, "nEx.Software" wrote: > Register an OnTabChangeListener in your tab activity and handle it in > there. > > On Sep 18, 10:10 am, Wouter wrote: > > > How can i do that? It initates the tabs on create but when happens > > when i click on tab again.. where do i have to place the > > replaceContent code? > > > On 18 sep, 19:01, "nEx.Software" wrote: > > > > You'll have to replace the content again. :) > > > > On Sep 18, 9:58 am, Wouter wrote: > > > > > Nice works great! > > > > > But when i switch to other tab and go back to cinema tab my > > > > MovieDetail is still open and when i click on Cinema in tabs it doest > > > > change to my cinema activity.. > > > > > How can i go back now? > > > > > On 18 sep, 18:49, "nEx.Software" wrote: > > > > > > Well, you could do it a couple ways... One way, for example: > > > > > > In CinemaActivity: > > > > > > Home parentActivity = ((Home) this.getParent()); > > > > > parentActivity.cinema.replaceContent(new android.content.Intent(this, > > > > > MovieDetail.class)) > > > > > > On Sep 18, 9:30 am, Wouter wrote: > > > > > > > Hey, > > > > > > > Thank you! > > > > > > > But I have some questions.. > > > > > > > I now declarate my tabs in Home.java (my tabs are now at bottom). > > > > > > I have 4 tabs: Cinema, Video,TV and search. > > > > > > > These 4 tabs are 4 different activities with lists. When i click on > > > > > > a > > > > > > list item in cinema activity I have to open MovieDetail.java (now it > > > > > > opens in new activity without tabs) and the tabs have to stay at the > > > > > > bottom. > > > > > > But how can i reach my custom tabspec cinema in CInemaActivity so i > > > > > > can do replaceContent --> cinema.replaceContent(new > > > > > > android.content.Intent(this, MovieDetail.class)); > > > > > > > Wouter > > > > > > > On 18 sep, 17:51, "nEx.Software" > > > > > > wrote: > > > > > > > > I was planning on writing a full blown tutorial but since I can > > > > > > > tell > > > > > > > you are anxious to see it... This is a 1.5 compatible version that > > > > > > > uses modified versions of the TabActivity, TabHost, and TabWidget > > > > > > > (and > > > > > > > related resources) from Android 1.6. There are obvious things that > > > > > > > could be done better but the idea is there and should at least > > > > > > > get you > > > > > > > headed in the "right" direction. > > > > > > > >http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip > > > > > > > > On Sep 18, 6:36 am, Wouter wrote: > > > > > > > > > Thank you so much! > > > > > > > > > On Sep 18, 3:03 pm, "nEx.Software" > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > Sure, I'll throw together a quick sample and post it in a bit. > > > > > > > > > > On Sep 18, 12:11 am, Wouter wrote: > > > > > > > > > > > And can you post the source code from this and your other > > > > > > > > > > example > > > > > > > > > > please? > > > > > > > > > > > On 17 sep, 23:50, "nEx.Software" > > > > > > > > > > wrote: > > > > > > > > > > > > It just worked for me... > > > > > > > > > > > > That being said, I have also copied all of the relevant > > > > > > > > > > > code from the > > > > > > > > > > > Android Open Source Project, added a > > > > > > > > > > > replaceContent(Intent intent) > > > > > > > > > > > method, and done the same thing as before but without the > > > > > > > > > > > switching to > > > > > > > > > > > a new tab first... Again, I am almost positive that this > > > > > > > > > > > is not the > > > > > > > > > > > correct way to do this so I hesitate to recommend it. I > > > > > > > > > > > can't say > > > > > > > > > > > exactly what happens to the Activity, to be honest. It > > > > > > > > > > > may be hanging > > > > > > > > > > > out in limbo. > > > > > > > > > > > > On Sep 17, 2:44 pm, Wouter wrote: > > > > > > > > > > > > > But i want to show this new activity in the same active > > > > > > > > > > > > tab. now it > > > > > > > > > > > > opens
[android-developers] Re: Trying to get Javascript on Android
I think a lot of developers, especially ones from the web world, forget that these mobile devices are like desktop computers of the mid-90's in power and speed. Trying to get a complex JavaScript application to run on the phone is probably going to be disappointing. Just because it runs on FF with your quad core monster doesn't mean it will do anything but cry for momma on the actual mobile device. -John Coryat "What Zip Code?" "Radar Now!" --~--~-~--~~~---~--~~ 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: How to force soft keyboard to be visible?
Typically the emulator runs as a device that has a keyboard, in which case the system deliberately does not automatically show the IME because the user has easy access to a real keyboard. It is recommended to not defeat this behavior, resulting in an inconsistent behavior with the rest of the applications. On Fri, Sep 18, 2009 at 10:17 AM, Mike Collins wrote: > > That does work, thanks. > > Of course now I can't get it to go down when the activity finishes. > Apparently > because there is no equivalent of HIDE_FORCED. The only two HIDE's > options don't take down a FORCED show. But without a FORCED show > it doesn't show up unless the user asks for it. > > This seems like obvious UI, to me. I have a dialog that requires > keyboard input. > I'd like to open the soft keyboard to save the user having to click > the single edit > box. When the user is finished they click the OK button and I'd like > to take down > the soft keyboard that I put up before returning to where ever. > > Given the APIs this doesn't seem possible. Am I missing something > here? > > tia, > mike > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: Triggering an application on a special gesture / event
You can only have a service with no UI, which means it can't get any touch events either. On Fri, Sep 18, 2009 at 1:13 AM, chen ji wrote: > > Can you try service app which has no UI? The service can support to > gesture detection and run your real APP. > > Just for you reference. > > > > On Aug 31, 12:41 pm, Dinesh wrote: > > hi, > > > > The App I'm trying to work on requires that when a special combination > > of keys are pressed ( irrespective of the keypad being locked ) a > > service / app is triggered. > > > > How can I achieve this? My app's whole idea hinges on this particular > > part to work. > > > > I am not here to take a "no" for an answer. If you are going to tell > > me that its not possible, atleast include an explanation as to why its > > not possible. > > > > Thanks. > > > > Dinesh > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: SensorEvent value array ownership
The system owns it, so it doesn't need to allocate a new event object and array for every report. You need to copy any data you want to keep. On Fri, Sep 18, 2009 at 11:06 AM, Daber wrote: > > Hi, > > I've been experimenting with gsensors on dev phone and I think i found > something that needs explanation. > > > The appliaction was comparing g readings with previously read values > in following manner > float[] mPrevious; > > > float[] v = event.values; > > // .. compare // > > mPrevious = v; > > > but after while all comparisions were equal. > > It seems that event reuses float array object to provide new data in > the old array after some time (mPrevious and event.values is the same > object). > > Now here is The question: > Who has object "ownership" -the gsensor framework and i have to make > a copy > Me - and this is a bug > > > BR, > > Michał Dąbrowski > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: Can I have multiple widgets in the same apk file?
You can change the name of the widget to change how it appears in the list. Just change the android:label for the widget in the manifest. On Sep 18, 11:46 am, Satya Komatineni wrote: > The configuration seem to allow it, however both widgets show up with > the same label in the "widget list". > > I guess it may be a bad idea to do so as well due to shared space and > multiple widgets needing to behave quite differently with different > requirements. > > Thanks > Satya --~--~-~--~~~---~--~~ 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] Can I have multiple widgets in the same apk file?
The configuration seem to allow it, however both widgets show up with the same label in the "widget list". I guess it may be a bad idea to do so as well due to shared space and multiple widgets needing to behave quite differently with different requirements. Thanks Satya --~--~-~--~~~---~--~~ 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: Trying to get Javascript on Android
I asked a similar question a few weeks ago with no answer. I am using JQuery for some animation on a 1 sec timer which also fails in the Android browser. The only thing I can imagine is that we run into some kind of JavaScript speed limitation, exhausted javascript message pump or something like that. I plan to look more into this over the weekend. My JQuery code also works fine in the emulator, does yours? /Casper On 18 Sep., 10:31, ebisudave wrote: > Hello Android developers, > > By way of introduction, please know that I'm a complete newbie when it > comes to JavaScript. I'm a web designer who can program a little. But > I've only just started playing with JavaScript about four days ago. > > I made a JavaScript slider with Yahoo's User Interface > library:http://developer.yahoo.com/yui/slider/ > > My version of the slider is here on this page:http://karamoh.com > > All I did was change the graphics a bit. > > It works in FireFox so I assumed it would just magically work in > Android. But it doesn't. > > I found this thread in this > forum:http://groups.google.com/group/android-developers/browse_thread/threa... > > Which says that JavaScript should just work. But it also says that > "setJavaScriptEnabled" set to true. > > As a total JavaScript newbie, I don't quite get what that means. (I > don't think it means the device's browser settings, which, by the way, > I have triple-checked to ensure that I have my Android device set to > use JavaScript. My testing device is an NTT DoCoMo HT-03A, called the > HTC Magic in other countries). > > Is that a setting that needs to be called in the JavaScript or the web > page itself? Seems odd that you might need a call within a script to > allow the script to be called. > > I think I'm missing a basic concept here. Can anyone enlighten me? --~--~-~--~~~---~--~~ 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: Trying to get Javascript on Android
ebisudave wrote: > By way of introduction, please know that I'm a complete newbie when it > comes to JavaScript. I'm a web designer who can program a little. But > I've only just started playing with JavaScript about four days ago. > > I made a JavaScript slider with Yahoo's User Interface library: > http://developer.yahoo.com/yui/slider/ > > My version of the slider is here on this page: > http://karamoh.com > > All I did was change the graphics a bit. > > It works in FireFox so I assumed it would just magically work in > Android. But it doesn't. > > I found this thread in this forum: > http://groups.google.com/group/android-developers/browse_thread/thread/9a369edf59dd9097 > > Which says that JavaScript should just work. But it also says that > "setJavaScriptEnabled" set to true. That thread is referring to applications that embed a WebKit widget. It is not relevant for applications you are viewing through the built-in Browser application. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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] SensorEvent value array ownership
Hi, I've been experimenting with gsensors on dev phone and I think i found something that needs explanation. The appliaction was comparing g readings with previously read values in following manner float[] mPrevious; float[] v = event.values; // .. compare // mPrevious = v; but after while all comparisions were equal. It seems that event reuses float array object to provide new data in the old array after some time (mPrevious and event.values is the same object). Now here is The question: Who has object "ownership" -the gsensor framework and i have to make a copy Me - and this is a bug BR, Michał Dąbrowski --~--~-~--~~~---~--~~ 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] ListActivity.onListItemClick(...) not being invoked
Scoured the docs and forums, couldn't find an answer or reason why this is happening: I have a class that extends ListActivity and a View coming from XML for each row that looks like this: When I click on one of the items in the list, the onListItemClick() i have in my activity is not invoked. Turns out, if I comment out the CheckBox node in my layout xml, it works. I feel like there is a simple explanation that I don't know about.. maybe because CheckBox is an actual interactive widget it's overriding some click action or something? Help appreciated. -bryan. --~--~-~--~~~---~--~~ 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 SDK 1.6 DOES NOT SUPPORT ARABIC LOCALE
Yes please, there are a virtual keyboard done by one of the developers out there (google arabic android) also another arabic sms reader we really need to read emails/web/tweets/smses urgently... how come saudi arabia is getting arabic into their devices ? http://www.ameinfo.com/208611.html and http://tech.tbreak.com/2009/09/stc-bringing-arabic-to-android/ On Sep 17, 4:12 am, Ahmad Al-Ibrahim wrote: > Disappointed, I was so happy to see Arabic listed in the docs. Any > suggestion on how to get that done? or at least add Arabic fonts to be > able to read Arabic across multiple apps? > > On Sep 17, 3:40 am, Xavier Ducrohet wrote: > > > This looks to be a doc bug actually. > > > The locale list in the SDK system image has not changed since 1.5 > > > sorry about that. > > > Xav > > > On Wed, Sep 16, 2009 at 5:19 PM, almoumen wrote: > > > > Hi everyone > > > > if you just have a look into the new locales that are added to the new > > > SDK 1.6, you will notice that among these locales is Arabic > > > >http://developer.android.com/sdk/android-1.6.html > > > > but unfortunately, when I tried to run the emulator,I didn't find any > > > locale supported Arabic. > > > > Could you please give more clarifications about this issue ?? > > > -- > > Xavier Ducrohet > > Android Developer Tools Engineer > > Google Inc. --~--~-~--~~~---~--~~ 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 Positions - Northern Virginia
A startup company with a proven management team in the Northern Virginia area is seeking Java/Android senior and mid-level developers for immediate full time positions. The company is engaged in the development of a unique mobile device for the consumer and professional marketplace. The successful candidate must be able to work in small teams, be self-motivated, and thrive in a fast-paced environment. Reward for success is considerable, both professionally and financially. *Job Description* Responsibilities include the design/development of innovative applications, intelligent network connectivity, database management, inter-task communications, and device management. These individuals will be a part of the entire life-cycle of the product and will work closely with internal (SW/HW development, test, marketing, sales) and external groups (focus groups, customers, partners). *Skills/Experience* · Programming experience 5+ years experience in programming JAVA, J2EE/J2ME, C++ for senior position 2+ years experience in programming JAVA, J2EE/J2ME, C++ for mid-level position · Android experience is a must, Framework experience is a strong desire · Experience/Familiarity with mobile device development, wireless communications is a strong desire · Experience with SQLite is a plus · Experience with XML, SOAP is a plus · Knowledge of development life-cycle management (version control, documentation, test/support) *Education Requirements* · Bachelors of Computer Engineering, Computer Science, Electrical Engineering or equivalent experience *Benefits* · Competitive salary commensurate to experience · Comprehensive benefits (health, dental, life, 401K) · Stock options Email Resumes to: jdk@gmail.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: Android emulator start up error ?
My last post didn't seem to appear to have saved. You need to follow the instructions here: file:///C:/android-sdk-windows-1.6_r1/docs/sdk/1.6_r1/installing.html The /tools directory of your Android SDK installation must be added to your PATH environment variable as per the instructions. On Sep 17, 7:38 am, "android.vinny" wrote: > can any body give the solution for this > > when i am running the project in eclipse .. > > at finally showing this message ... > > ActivityManager: - exec '/system/bin/sh' failed: Bad address (14) - > > app is installing but not starting first time automatically. > > TIA --~--~-~--~~~---~--~~ 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: Triggering an application on a special gesture / event
Can you try service app which has no UI? The service can support to gesture detection and run your real APP. Just for you reference. On Aug 31, 12:41 pm, Dinesh wrote: > hi, > > The App I'm trying to work on requires that when a special combination > of keys are pressed ( irrespective of the keypad being locked ) a > service / app is triggered. > > How can I achieve this? My app's whole idea hinges on this particular > part to work. > > I am not here to take a "no" for an answer. If you are going to tell > me that its not possible, atleast include an explanation as to why its > not possible. > > Thanks. > > Dinesh --~--~-~--~~~---~--~~ 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: Triggering an application on a special gesture / event
I have a just idea about it. Can you auto run a "service" in the background which has no UI. This service support gestures detection and can run your really APP. Just for your reference. On Sep 2, 8:41 am, Dianne Hackborn wrote: > If you want to modify the system (that is are building your own device), > then android-porting is the place to ask. If you aren't doing that, the > answer remains that you can't do what you want from an application. > > > > > > On Tue, Sep 1, 2009 at 5:19 PM, Dinesh wrote: > > > Alright, then how can I hook into the system and notify my application > > of this particular event? > > > Thanks. > > > Dinesh > > > On Aug 30, 11:34 pm, Romain Guy wrote: > > > No, this is not possible. Applications cannot listen to touch/key > > > events that are not sent to the application itself. Only the system > > > can do this. > > > > On Sun, Aug 30, 2009 at 9:41 PM,Dinesh wrote: > > > > > hi, > > > > > The App I'm trying to work on requires that when a special combination > > > > of keys are pressed ( irrespective of the keypad being locked ) a > > > > service / app is triggered. > > > > > How can I achieve this? My app's whole idea hinges on this particular > > > > part to work. > > > > > I am not here to take a "no" for an answer. If you are going to tell > > > > me that its not possible, atleast include an explanation as to why its > > > > not possible. > > > > > Thanks. > > > > >Dinesh > > > > -- > > > Romain Guy > > > Android framework engineer > > > romain...@android.com > > > > Note: please don't send private questions to me, as I don't have time > > > to provide private support. All such questions should be posted on > > > public forums, where I and others can see and answer them > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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] Trying to get Javascript on Android
Hello Android developers, By way of introduction, please know that I'm a complete newbie when it comes to JavaScript. I'm a web designer who can program a little. But I've only just started playing with JavaScript about four days ago. I made a JavaScript slider with Yahoo's User Interface library: http://developer.yahoo.com/yui/slider/ My version of the slider is here on this page: http://karamoh.com All I did was change the graphics a bit. It works in FireFox so I assumed it would just magically work in Android. But it doesn't. I found this thread in this forum: http://groups.google.com/group/android-developers/browse_thread/thread/9a369edf59dd9097 Which says that JavaScript should just work. But it also says that "setJavaScriptEnabled" set to true. As a total JavaScript newbie, I don't quite get what that means. (I don't think it means the device's browser settings, which, by the way, I have triple-checked to ensure that I have my Android device set to use JavaScript. My testing device is an NTT DoCoMo HT-03A, called the HTC Magic in other countries). Is that a setting that needs to be called in the JavaScript or the web page itself? Seems odd that you might need a call within a script to allow the script to be called. I think I'm missing a basic concept here. Can anyone enlighten me? --~--~-~--~~~---~--~~ 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] why is my app asking to access phone calls and storage?
I am working on a widget and have it pretty much how I like it, but I have one problem. When I package it and install it, it says in the "allow this application to" portion that it wants access to phone calls and storage. I know this will be a no-go if I want anyone to ever use it. I have not set up any permissions. Same thing happens even if I make Hello World. Sorry if this has been ask before, but I have searched quite a bit looking for an answer. Chris --~--~-~--~~~---~--~~ 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] OpenGL 2D Game Framework
I've been working on a game framework for a little while, and while its far from perfect, I've put the current version online. To be honest, I haven't used much OpenGL in the past. Before last week I had never tried using it. If anyone would like to take a look, please do, I'd appreciate all the help possible on speeding it up. There are many features I have in mind and am planning at the minute, but so far it supports: # Texture and Sprite management # Text, using TTF fonts # Organised layers # Two audio management classes, one optimized for music, the other for sound effects # Sprite dynamics (acceleration, terminal velocity, collisions) # Animation # Handlers to manage events fired through movement, animation, screen touches, accelerometer input, device shaking and collisions # Several minor features aimed at speeding development, such as screen settings and vibration The code is at http://code.google.com/p/rokon/ Again, I'd very much appreciate advice or help with any bugs you can see, 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 -~--~~~~--~~--~--~---
[android-developers] equalizer in android
Hi I want create an equalizer for a software but currently I don't find nothing to catch audio informations I'm refereed at this post, there are something for read raw informations about audio file now? --~--~-~--~~~---~--~~ 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 1.6 browser gestures
Hi all, cool news multitouch gestures are in Android 1.6. I would be interested how can I use those in browser. Are there any new DOM events I can listen to? Thank you --~--~-~--~~~---~--~~ 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 start up error ?
Like me, it appears you missed a step in the installation. See file:///C:/android-sdk-windows-1.6_r1/docs/sdk/1.6_r1/installing.html You need to add the /tools directory from the ADK installation to your PATH environment variable. After that, try again. On Sep 17, 7:38 am, "android.vinny" wrote: > can any body give the solution for this > > when i am running the project in eclipse .. > > at finally showing this message ... > > ActivityManager: - exec '/system/bin/sh' failed: Bad address (14) - > > app is installing but not starting first time automatically. > > TIA --~--~-~--~~~---~--~~ 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] loadDataWithBaseUrl() problem
Hello all, I have been working on Android for past few months and recently started an application that involves WebView. I have a project where I have a main url from which I need to parse a part of the data and display it in WebView and I use loadDataWithBaseUrl() for the same. like : mWebView.loadDataWithBaseURL("file:///android_asset/", data, "text/html", "utf-8", "about:blank"); I have the image files in the asset folder and for now I can get the data and image displayed. The data has html content in the same but without tags. Right now I can get the links working with D-pad but not with touch. I tried it both on the device and the emulator and still get the touch to work. When I touch the link, it gets highlighted but doesn't get clicked. I do remember if I use loadUrl() and give the main url, the touch works. But in my case I need to show only part of the file each time. Has any one come across this problem. It would be nice if someone can me help me through it. Thanks, Ramya --~--~-~--~~~---~--~~ 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] save new file into asset directory from app
i had all kinds of trouble trying to get WebKit to load local resources, and implemented my own content provider to deal with some kinds of content: URLs. i ran into issues even then, and eventually had the content provider cache stuff from my assets directory in /sdcard. hth >Hi Mark, > >I have given the fully-qualified url of CSS. But don't know why this >is happening. > >I will make small app and will try to open an issue on this if could >not get answer on this forum. > >Ideas from the experts are very much welcome. > >Thanks, >AJ > >On Sep 18, 4:13 pm, Mark Murphy wrote: >> AJ wrote: >> > If we try to load local HTML file [through ContentProvider] in which >> > the css is specified with "import" keyword, the css deoes not get >> > properly applied. >> >> I am very much *not* a CSS expert. With that in mind: >> >> -- have you tried fully-qualifying the URL you use with @import? >> >> -- is there a reason you use @import versus a stylesheet element? >> >> Also, since I do not see a bug report for this out >>onhttp://b.android.com, if you can create a small project that >>reproduces >> the error, you might want to open an issue on it, so that it is more >> likely to get investigated. >> >> -- >> Mark Murphy (a Commons >>Guy)http://commonsware.com|http://twitter.com/commonsguy >> >> Android Development Wiki:http://wiki.andmob.org > -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ 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: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work
Register an OnTabChangeListener in your tab activity and handle it in there. On Sep 18, 10:10 am, Wouter wrote: > How can i do that? It initates the tabs on create but when happens > when i click on tab again.. where do i have to place the > replaceContent code? > > On 18 sep, 19:01, "nEx.Software" wrote: > > > You'll have to replace the content again. :) > > > On Sep 18, 9:58 am, Wouter wrote: > > > > Nice works great! > > > > But when i switch to other tab and go back to cinema tab my > > > MovieDetail is still open and when i click on Cinema in tabs it doest > > > change to my cinema activity.. > > > > How can i go back now? > > > > On 18 sep, 18:49, "nEx.Software" wrote: > > > > > Well, you could do it a couple ways... One way, for example: > > > > > In CinemaActivity: > > > > > Home parentActivity = ((Home) this.getParent()); > > > > parentActivity.cinema.replaceContent(new android.content.Intent(this, > > > > MovieDetail.class)) > > > > > On Sep 18, 9:30 am, Wouter wrote: > > > > > > Hey, > > > > > > Thank you! > > > > > > But I have some questions.. > > > > > > I now declarate my tabs in Home.java (my tabs are now at bottom). > > > > > I have 4 tabs: Cinema, Video,TV and search. > > > > > > These 4 tabs are 4 different activities with lists. When i click on a > > > > > list item in cinema activity I have to open MovieDetail.java (now it > > > > > opens in new activity without tabs) and the tabs have to stay at the > > > > > bottom. > > > > > But how can i reach my custom tabspec cinema in CInemaActivity so i > > > > > can do replaceContent --> cinema.replaceContent(new > > > > > android.content.Intent(this, MovieDetail.class)); > > > > > > Wouter > > > > > > On 18 sep, 17:51, "nEx.Software" wrote: > > > > > > > I was planning on writing a full blown tutorial but since I can tell > > > > > > you are anxious to see it... This is a 1.5 compatible version that > > > > > > uses modified versions of the TabActivity, TabHost, and TabWidget > > > > > > (and > > > > > > related resources) from Android 1.6. There are obvious things that > > > > > > could be done better but the idea is there and should at least get > > > > > > you > > > > > > headed in the "right" direction. > > > > > > >http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip > > > > > > > On Sep 18, 6:36 am, Wouter wrote: > > > > > > > > Thank you so much! > > > > > > > > On Sep 18, 3:03 pm, "nEx.Software" > > > > > > > wrote: > > > > > > > > > Sure, I'll throw together a quick sample and post it in a bit. > > > > > > > > > On Sep 18, 12:11 am, Wouter wrote: > > > > > > > > > > And can you post the source code from this and your other > > > > > > > > > example > > > > > > > > > please? > > > > > > > > > > On 17 sep, 23:50, "nEx.Software" > > > > > > > > > wrote: > > > > > > > > > > > It just worked for me... > > > > > > > > > > > That being said, I have also copied all of the relevant > > > > > > > > > > code from the > > > > > > > > > > Android Open Source Project, added a replaceContent(Intent > > > > > > > > > > intent) > > > > > > > > > > method, and done the same thing as before but without the > > > > > > > > > > switching to > > > > > > > > > > a new tab first... Again, I am almost positive that this is > > > > > > > > > > not the > > > > > > > > > > correct way to do this so I hesitate to recommend it. I > > > > > > > > > > can't say > > > > > > > > > > exactly what happens to the Activity, to be honest. It may > > > > > > > > > > be hanging > > > > > > > > > > out in limbo. > > > > > > > > > > > On Sep 17, 2:44 pm, Wouter wrote: > > > > > > > > > > > > But i want to show this new activity in the same active > > > > > > > > > > > tab. now it > > > > > > > > > > > opens in a new activity without showing my 3 tabs.. > > > > > > > > > > > > On 17 sep, 23:28, "nEx.Software" > > > > > > > > > > > wrote: > > > > > > > > > > > > > It seems you cannot change the Activity of the current > > > > > > > > > > > > tab using > > > > > > > > > > > > setContent(); That being said... Doing something you > > > > > > > > > > > > really probably > > > > > > > > > > > > should not do, you can get this to work: > > > > > > > > > > > > Programmatically switch to > > > > > > > > > > > > another tab (something like > > > > > > > > > > > > getTabHost().setCurrentTab(1);), then do > > > > > > > > > > > > MainTabActivity.projectTab.setContent(i);, then go back > > > > > > > > > > > > to the > > > > > > > > > > > > original tab (something like > > > > > > > > > > > > getTabHost().setCurrentTab(0);). Like I > > > > > > > > > > > > said though... this is probably not something you > > > > > > > > > > > > should do. > > > > > > > > > > > > > On Sep 17, 1:52 pm, Wouter wrote: > > > > > > > > > > > > > > Does someone has found an easy solution for this? I > > > > > > > > > > > > > have the same > > > > > > > > > > > > > issue. I have 3 tabs and I want to show a new > > > > > > > > > > > > > activity in one of these > > > > >
[android-developers] How to create multi-language application?
I read http://developer.android.com/guide/topics/resources/resources-i18n.html. But it shows how to localize your app for the currently selected locale of the phone. However, I want to add a "language" option into my own app, and allow the user to switch the UI language independent of the phone's locale setting. My currently solution is to manage a string table myself, and dynamically edit the text string of every UI element. However, this is rather tedious. Is there a better way? 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 -~--~~~~--~~--~--~---
[android-developers] TTS voice quality
The improvement in SDK 1.6 voice quality over the previously available voice (i.e., tts_1.4_market.apk) is very impressive. It is also nice to be able to run TTS on the emulator without any special setup. Kudos, Charles et al! With the clearer voice, a minor problem with occasional clipping is now noticeable. (I verified the clipping by using synthesizeToFile() and viewing the resulting .wav file with Audacity.) I suspect volume control is one of the HashMap parameters that can be passed to synthesizeToFile(), but I don't see any HashMap parameter documentation. Is there any HashMap parameter documentation yet? Thanks, Greg --~--~-~--~~~---~--~~ 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: How to force soft keyboard to be visible?
That does work, thanks. Of course now I can't get it to go down when the activity finishes. Apparently because there is no equivalent of HIDE_FORCED. The only two HIDE's options don't take down a FORCED show. But without a FORCED show it doesn't show up unless the user asks for it. This seems like obvious UI, to me. I have a dialog that requires keyboard input. I'd like to open the soft keyboard to save the user having to click the single edit box. When the user is finished they click the OK button and I'd like to take down the soft keyboard that I put up before returning to where ever. Given the APIs this doesn't seem possible. Am I missing something here? tia, mike --~--~-~--~~~---~--~~ 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: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work
How can i do that? It initates the tabs on create but when happens when i click on tab again.. where do i have to place the replaceContent code? On 18 sep, 19:01, "nEx.Software" wrote: > You'll have to replace the content again. :) > > On Sep 18, 9:58 am, Wouter wrote: > > > Nice works great! > > > But when i switch to other tab and go back to cinema tab my > > MovieDetail is still open and when i click on Cinema in tabs it doest > > change to my cinema activity.. > > > How can i go back now? > > > On 18 sep, 18:49, "nEx.Software" wrote: > > > > Well, you could do it a couple ways... One way, for example: > > > > In CinemaActivity: > > > > Home parentActivity = ((Home) this.getParent()); > > > parentActivity.cinema.replaceContent(new android.content.Intent(this, > > > MovieDetail.class)) > > > > On Sep 18, 9:30 am, Wouter wrote: > > > > > Hey, > > > > > Thank you! > > > > > But I have some questions.. > > > > > I now declarate my tabs in Home.java (my tabs are now at bottom). > > > > I have 4 tabs: Cinema, Video,TV and search. > > > > > These 4 tabs are 4 different activities with lists. When i click on a > > > > list item in cinema activity I have to open MovieDetail.java (now it > > > > opens in new activity without tabs) and the tabs have to stay at the > > > > bottom. > > > > But how can i reach my custom tabspec cinema in CInemaActivity so i > > > > can do replaceContent --> cinema.replaceContent(new > > > > android.content.Intent(this, MovieDetail.class)); > > > > > Wouter > > > > > On 18 sep, 17:51, "nEx.Software" wrote: > > > > > > I was planning on writing a full blown tutorial but since I can tell > > > > > you are anxious to see it... This is a 1.5 compatible version that > > > > > uses modified versions of the TabActivity, TabHost, and TabWidget (and > > > > > related resources) from Android 1.6. There are obvious things that > > > > > could be done better but the idea is there and should at least get you > > > > > headed in the "right" direction. > > > > > >http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip > > > > > > On Sep 18, 6:36 am, Wouter wrote: > > > > > > > Thank you so much! > > > > > > > On Sep 18, 3:03 pm, "nEx.Software" > > > > > > wrote: > > > > > > > > Sure, I'll throw together a quick sample and post it in a bit. > > > > > > > > On Sep 18, 12:11 am, Wouter wrote: > > > > > > > > > And can you post the source code from this and your other > > > > > > > > example > > > > > > > > please? > > > > > > > > > On 17 sep, 23:50, "nEx.Software" > > > > > > > > wrote: > > > > > > > > > > It just worked for me... > > > > > > > > > > That being said, I have also copied all of the relevant code > > > > > > > > > from the > > > > > > > > > Android Open Source Project, added a replaceContent(Intent > > > > > > > > > intent) > > > > > > > > > method, and done the same thing as before but without the > > > > > > > > > switching to > > > > > > > > > a new tab first... Again, I am almost positive that this is > > > > > > > > > not the > > > > > > > > > correct way to do this so I hesitate to recommend it. I can't > > > > > > > > > say > > > > > > > > > exactly what happens to the Activity, to be honest. It may be > > > > > > > > > hanging > > > > > > > > > out in limbo. > > > > > > > > > > On Sep 17, 2:44 pm, Wouter wrote: > > > > > > > > > > > But i want to show this new activity in the same active > > > > > > > > > > tab. now it > > > > > > > > > > opens in a new activity without showing my 3 tabs.. > > > > > > > > > > > On 17 sep, 23:28, "nEx.Software" > > > > > > > > > > wrote: > > > > > > > > > > > > It seems you cannot change the Activity of the current > > > > > > > > > > > tab using > > > > > > > > > > > setContent(); That being said... Doing something you > > > > > > > > > > > really probably > > > > > > > > > > > should not do, you can get this to work: Programmatically > > > > > > > > > > > switch to > > > > > > > > > > > another tab (something like > > > > > > > > > > > getTabHost().setCurrentTab(1);), then do > > > > > > > > > > > MainTabActivity.projectTab.setContent(i);, then go back > > > > > > > > > > > to the > > > > > > > > > > > original tab (something like > > > > > > > > > > > getTabHost().setCurrentTab(0);). Like I > > > > > > > > > > > said though... this is probably not something you should > > > > > > > > > > > do. > > > > > > > > > > > > On Sep 17, 1:52 pm, Wouter wrote: > > > > > > > > > > > > > Does someone has found an easy solution for this? I > > > > > > > > > > > > have the same > > > > > > > > > > > > issue. I have 3 tabs and I want to show a new activity > > > > > > > > > > > > in one of these > > > > > > > > > > > > tabs! > > > > > > > > > > > > > Wouter > > > > > > > > > > > > > On Aug 12, 3:47 pm, Sena wrote: > > > > > > > > > > > > > > Thanks for the pointers Mark. > > > > > > > > > > > > > S > > > > > > > > > > > > > > On Aug 12, 3:16 pm, Mark Murphy > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > >
[android-developers] Where did platform/packages/apps/Sync.git go?
I noticed that the Data Synchronization app was removed from the Donut branch; all of the files were deleted. However, the Donut device still has Data Synchronization in its Settings. So where did the com.android.sync package go to? --~--~-~--~~~---~--~~ 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: How To Programmatically Turn On/Off WIFI?
You don't have Wifi support on the emulator -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 17, 9:48 pm, "!oEL" wrote: > Thank you guys. > > I got rid of the Security Exceptions by adding a couple of > permissions, including WAKE_LOCK, which appears to be the exception I > got after adding the two WIFI ones. > > However, now I've managed to actually access the state, but in > Emulator it tells me: Failed to load WIFI driver. The same thing > happens when I use the built-in power control widget. > > On Sep 17, 12:48 am, Raphael wrote: > > > On Tue, Sep 15, 2009 at 8:36 PM, !oEL wrote: > > > > Hi, > > > > Second question of the day, how do I programmatically turn on/off > > > WIFI? > > > There's an example at line 226 here: > > http://code.google.com/p/autosettings/source/browse/trunk/AutoSetting... > > > 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: lucene api
Carmen Delessio wrote: > Given the timing of the Android 1.6 release that includes new search > capabilities, you may want to pursue that option. > > /The Android search framework has been redesigned and expanded to > provide third-party applications the opportunity to surface content from > their applications in Quick Search Box, the global search tool./ > > http://developer.android.com/reference/android/app/SearchManager.html Android 1.6's augmented search stuff does not offer full-text search as a native capability. Whether Lucene (designed for servers) is the right answer is a whole 'nuther question. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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: You must supply a resource ID for a TextView
This is the function: public View getView(int position, View convertView, ViewGroup parent) { int sectionnum = 0; for(Object section : this.sections.keySet()) { Adapter adapter = sections.get(section); int size = adapter.getCount() + 1; // check if position inside this section if(position == 0) return headers.getView(sectionnum, convertView, parent); if(position < size) return adapter.getView(position - 1, convertView, parent); // otherwise jump into next section position -= size; sectionnum++; } return null; } 93: --> if(position == 0) return headers.getView(sectionnum, convertView, parent); resource file: http://schemas.android.com/apk/res/android"; android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" > But without this seperatedlistadapter it is working (was working before with it too). So don't know what problem is.. hope you can help me! Wouter On 18 sep, 18:41, "Yusuf Saib (T-Mobile USA)" wrote: > Where in your code is SeparatedListAdapter.java:93? And can you post > the resource xml as well? > > Yusuf Saib > Android > ·T· · ·Mobile· stick together > The views, opinions and statements in this email are those of the > author solely in their individual capacity, and do not necessarily > represent those of T-Mobile USA, Inc. > > On Sep 18, 7:16 am, Wouter wrote: > > > I removed my seperatedlistadapter and now it worked.. :s But it was > > working before with my seperatedlistadapter :( > > > On 18 sep, 14:47, Wouter wrote: > > > > Really dont find what the problem is, the weird is it worked and i > > > havent changed anything :( > > > > On 18 sep, 12:02, Wouter wrote: > > > > > Hey, > > > > > I have a weird problem. For days i have a working list with movie > > > > details i get from an xml rpc source. It loads the list very well and > > > > I tried it again today and when i scroll down, always at the same list > > > > item it gives me this error. I don't know what the problem is. It > > > > shows my list items very good and now not anymore. If you want i can > > > > give you my source code too! And it worked a few days ago and now > > > > suddenty not :( > > > > > 09-18 11:50:00.940: ERROR/ArrayAdapter(1561): You must supply a > > > > resource ID for a TextView > > > > 09-18 11:50:00.950: DEBUG/AndroidRuntime(1561): Shutting down VM > > > > 09-18 11:50:00.950: WARN/dalvikvm(1561): threadid=3: thread exiting > > > > with uncaught exception (group=0x4001aa28) > > > > 09-18 11:50:00.950: ERROR/AndroidRuntime(1561): Uncaught handler: > > > > thread main exiting due to uncaught exception > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): > > > > java.lang.IllegalStateException: ArrayAdapter requires the resource ID > > > > to be a TextView > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java: > > > > 347) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.widget.ArrayAdapter.getView(ArrayAdapter.java:323) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > com.android.moviemeter.SeparatedListAdapter.getView > > > > (SeparatedListAdapter.java:93) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.widget.AbsListView.obtainView(AbsListView.java:1255) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.widget.ListView.addViewBelow(ListView.java:2795) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.widget.ListView.scrollListItemsBy(ListView.java:2725) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.widget.ListView.arrowScrollImpl(ListView.java:2225) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.widget.ListView.arrowScroll(ListView.java:2172) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.widget.ListView.commonKey(ListView.java:1977) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.widget.ListView.onKeyDown(ListView.java:1924) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.view.KeyEvent.dispatch(KeyEvent.java:893) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.view.View.dispatchKeyEvent(View.java:3647) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:744) > > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > > android.widget.ListView.dispatchKeyEvent(ListView.java:1909) > > > > 09-18 11:50:00.990: ERROR/AndroidR
[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work
You'll have to replace the content again. :) On Sep 18, 9:58 am, Wouter wrote: > Nice works great! > > But when i switch to other tab and go back to cinema tab my > MovieDetail is still open and when i click on Cinema in tabs it doest > change to my cinema activity.. > > How can i go back now? > > On 18 sep, 18:49, "nEx.Software" wrote: > > > Well, you could do it a couple ways... One way, for example: > > > In CinemaActivity: > > > Home parentActivity = ((Home) this.getParent()); > > parentActivity.cinema.replaceContent(new android.content.Intent(this, > > MovieDetail.class)) > > > On Sep 18, 9:30 am, Wouter wrote: > > > > Hey, > > > > Thank you! > > > > But I have some questions.. > > > > I now declarate my tabs in Home.java (my tabs are now at bottom). > > > I have 4 tabs: Cinema, Video,TV and search. > > > > These 4 tabs are 4 different activities with lists. When i click on a > > > list item in cinema activity I have to open MovieDetail.java (now it > > > opens in new activity without tabs) and the tabs have to stay at the > > > bottom. > > > But how can i reach my custom tabspec cinema in CInemaActivity so i > > > can do replaceContent --> cinema.replaceContent(new > > > android.content.Intent(this, MovieDetail.class)); > > > > Wouter > > > > On 18 sep, 17:51, "nEx.Software" wrote: > > > > > I was planning on writing a full blown tutorial but since I can tell > > > > you are anxious to see it... This is a 1.5 compatible version that > > > > uses modified versions of the TabActivity, TabHost, and TabWidget (and > > > > related resources) from Android 1.6. There are obvious things that > > > > could be done better but the idea is there and should at least get you > > > > headed in the "right" direction. > > > > >http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip > > > > > On Sep 18, 6:36 am, Wouter wrote: > > > > > > Thank you so much! > > > > > > On Sep 18, 3:03 pm, "nEx.Software" > > > > > wrote: > > > > > > > Sure, I'll throw together a quick sample and post it in a bit. > > > > > > > On Sep 18, 12:11 am, Wouter wrote: > > > > > > > > And can you post the source code from this and your other example > > > > > > > please? > > > > > > > > On 17 sep, 23:50, "nEx.Software" > > > > > > > wrote: > > > > > > > > > It just worked for me... > > > > > > > > > That being said, I have also copied all of the relevant code > > > > > > > > from the > > > > > > > > Android Open Source Project, added a replaceContent(Intent > > > > > > > > intent) > > > > > > > > method, and done the same thing as before but without the > > > > > > > > switching to > > > > > > > > a new tab first... Again, I am almost positive that this is not > > > > > > > > the > > > > > > > > correct way to do this so I hesitate to recommend it. I can't > > > > > > > > say > > > > > > > > exactly what happens to the Activity, to be honest. It may be > > > > > > > > hanging > > > > > > > > out in limbo. > > > > > > > > > On Sep 17, 2:44 pm, Wouter wrote: > > > > > > > > > > But i want to show this new activity in the same active tab. > > > > > > > > > now it > > > > > > > > > opens in a new activity without showing my 3 tabs.. > > > > > > > > > > On 17 sep, 23:28, "nEx.Software" > > > > > > > > > wrote: > > > > > > > > > > > It seems you cannot change the Activity of the current tab > > > > > > > > > > using > > > > > > > > > > setContent(); That being said... Doing something you really > > > > > > > > > > probably > > > > > > > > > > should not do, you can get this to work: Programmatically > > > > > > > > > > switch to > > > > > > > > > > another tab (something like > > > > > > > > > > getTabHost().setCurrentTab(1);), then do > > > > > > > > > > MainTabActivity.projectTab.setContent(i);, then go back to > > > > > > > > > > the > > > > > > > > > > original tab (something like > > > > > > > > > > getTabHost().setCurrentTab(0);). Like I > > > > > > > > > > said though... this is probably not something you should do. > > > > > > > > > > > On Sep 17, 1:52 pm, Wouter wrote: > > > > > > > > > > > > Does someone has found an easy solution for this? I have > > > > > > > > > > > the same > > > > > > > > > > > issue. I have 3 tabs and I want to show a new activity in > > > > > > > > > > > one of these > > > > > > > > > > > tabs! > > > > > > > > > > > > Wouter > > > > > > > > > > > > On Aug 12, 3:47 pm, Sena wrote: > > > > > > > > > > > > > Thanks for the pointers Mark. > > > > > > > > > > > > S > > > > > > > > > > > > > On Aug 12, 3:16 pm, Mark Murphy > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > Sena Gbeckor-Kove wrote: > > > > > > > > > > > > > > Thanks for the tip. Can you point me at what I need > > > > > > > > > > > > > > to be looking up to > > > > > > > > > > > > > > find the documentation about changing the > > > > > > > > > > > > > > viewinsidetheTab? > > > > > > > > > > > > > > You don't change the Viewinsideof atab. You cause the > > > > > > > > > > > > > existing View > > > > > > > >
[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work
Nice works great! But when i switch to other tab and go back to cinema tab my MovieDetail is still open and when i click on Cinema in tabs it doest change to my cinema activity.. How can i go back now? On 18 sep, 18:49, "nEx.Software" wrote: > Well, you could do it a couple ways... One way, for example: > > In CinemaActivity: > > Home parentActivity = ((Home) this.getParent()); > parentActivity.cinema.replaceContent(new android.content.Intent(this, > MovieDetail.class)) > > On Sep 18, 9:30 am, Wouter wrote: > > > Hey, > > > Thank you! > > > But I have some questions.. > > > I now declarate my tabs in Home.java (my tabs are now at bottom). > > I have 4 tabs: Cinema, Video,TV and search. > > > These 4 tabs are 4 different activities with lists. When i click on a > > list item in cinema activity I have to open MovieDetail.java (now it > > opens in new activity without tabs) and the tabs have to stay at the > > bottom. > > But how can i reach my custom tabspec cinema in CInemaActivity so i > > can do replaceContent --> cinema.replaceContent(new > > android.content.Intent(this, MovieDetail.class)); > > > Wouter > > > On 18 sep, 17:51, "nEx.Software" wrote: > > > > I was planning on writing a full blown tutorial but since I can tell > > > you are anxious to see it... This is a 1.5 compatible version that > > > uses modified versions of the TabActivity, TabHost, and TabWidget (and > > > related resources) from Android 1.6. There are obvious things that > > > could be done better but the idea is there and should at least get you > > > headed in the "right" direction. > > > >http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip > > > > On Sep 18, 6:36 am, Wouter wrote: > > > > > Thank you so much! > > > > > On Sep 18, 3:03 pm, "nEx.Software" > > > > wrote: > > > > > > Sure, I'll throw together a quick sample and post it in a bit. > > > > > > On Sep 18, 12:11 am, Wouter wrote: > > > > > > > And can you post the source code from this and your other example > > > > > > please? > > > > > > > On 17 sep, 23:50, "nEx.Software" > > > > > > wrote: > > > > > > > > It just worked for me... > > > > > > > > That being said, I have also copied all of the relevant code from > > > > > > > the > > > > > > > Android Open Source Project, added a replaceContent(Intent intent) > > > > > > > method, and done the same thing as before but without the > > > > > > > switching to > > > > > > > a new tab first... Again, I am almost positive that this is not > > > > > > > the > > > > > > > correct way to do this so I hesitate to recommend it. I can't say > > > > > > > exactly what happens to the Activity, to be honest. It may be > > > > > > > hanging > > > > > > > out in limbo. > > > > > > > > On Sep 17, 2:44 pm, Wouter wrote: > > > > > > > > > But i want to show this new activity in the same active tab. > > > > > > > > now it > > > > > > > > opens in a new activity without showing my 3 tabs.. > > > > > > > > > On 17 sep, 23:28, "nEx.Software" > > > > > > > > wrote: > > > > > > > > > > It seems you cannot change the Activity of the current tab > > > > > > > > > using > > > > > > > > > setContent(); That being said... Doing something you really > > > > > > > > > probably > > > > > > > > > should not do, you can get this to work: Programmatically > > > > > > > > > switch to > > > > > > > > > another tab (something like getTabHost().setCurrentTab(1);), > > > > > > > > > then do > > > > > > > > > MainTabActivity.projectTab.setContent(i);, then go back to the > > > > > > > > > original tab (something like getTabHost().setCurrentTab(0);). > > > > > > > > > Like I > > > > > > > > > said though... this is probably not something you should do. > > > > > > > > > > On Sep 17, 1:52 pm, Wouter wrote: > > > > > > > > > > > Does someone has found an easy solution for this? I have > > > > > > > > > > the same > > > > > > > > > > issue. I have 3 tabs and I want to show a new activity in > > > > > > > > > > one of these > > > > > > > > > > tabs! > > > > > > > > > > > Wouter > > > > > > > > > > > On Aug 12, 3:47 pm, Sena wrote: > > > > > > > > > > > > Thanks for the pointers Mark. > > > > > > > > > > > S > > > > > > > > > > > > On Aug 12, 3:16 pm, Mark Murphy > > > > > > > > > > > wrote: > > > > > > > > > > > > > Sena Gbeckor-Kove wrote: > > > > > > > > > > > > > Thanks for the tip. Can you point me at what I need > > > > > > > > > > > > > to be looking up to > > > > > > > > > > > > > find the documentation about changing the > > > > > > > > > > > > > viewinsidetheTab? > > > > > > > > > > > > > You don't change the Viewinsideof atab. You cause the > > > > > > > > > > > > existing View > > > > > > > > > > > > to show something else (e.g., use FrameLayout and make > > > > > > > > > > > > one layer VISIBLE > > > > > > > > > > > > and another layer GONE, or use ViewFlipper to swap > > > > > > > > > > > > between contents). > > > > > > > > > > > > > You *might* be able to get setContent() to replace the > > > > > > > > >
[android-developers] Re: lucene api
Given the timing of the Android 1.6 release that includes new search capabilities, you may want to pursue that option. *The Android search framework has been redesigned and expanded to provide third-party applications the opportunity to surface content from their applications in Quick Search Box, the global search tool.* http://developer.android.com/reference/android/app/SearchManager.html -- Carmen http://www.twitter.com/CarmenDelessio http://www.talkingandroid.com On Fri, Sep 18, 2009 at 12:48 PM, Aniruddh Bajirao wrote: > Lucene is a dependent jar file right so it can be added as an external > library. But I'm not sure if its compatible with the reduced set Dalvik VM. > Would definitely be worth trying. > > On Thu, Sep 17, 2009 at 1:45 AM, jaimin mehta wrote: > >> >> hi i am new to android . >> i have developed a application >> in that application i want a feature of global search in xml file >> now i want to use Lucene api for global search >> can i use in android? >> >> if yes than plz tell me how can i implements that in my android code >> >> thanx >> jaimin. >> >> >> > > --~--~-~--~~~---~--~~ 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: lucene api
Lucene is a dependent jar file right so it can be added as an external library. But I'm not sure if its compatible with the reduced set Dalvik VM. Would definitely be worth trying. On Thu, Sep 17, 2009 at 1:45 AM, jaimin mehta wrote: > > hi i am new to android . > i have developed a application > in that application i want a feature of global search in xml file > now i want to use Lucene api for global search > can i use in android? > > if yes than plz tell me how can i implements that in my android code > > thanx > jaimin. > > > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence. ... Albert Einstein. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Aniruddh Bajirao www.ryze.com/Aniruddh --~--~-~--~~~---~--~~ 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: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work
Well, you could do it a couple ways... One way, for example: In CinemaActivity: Home parentActivity = ((Home) this.getParent()); parentActivity.cinema.replaceContent(new android.content.Intent(this, MovieDetail.class)) On Sep 18, 9:30 am, Wouter wrote: > Hey, > > Thank you! > > But I have some questions.. > > I now declarate my tabs in Home.java (my tabs are now at bottom). > I have 4 tabs: Cinema, Video,TV and search. > > These 4 tabs are 4 different activities with lists. When i click on a > list item in cinema activity I have to open MovieDetail.java (now it > opens in new activity without tabs) and the tabs have to stay at the > bottom. > But how can i reach my custom tabspec cinema in CInemaActivity so i > can do replaceContent --> cinema.replaceContent(new > android.content.Intent(this, MovieDetail.class)); > > Wouter > > On 18 sep, 17:51, "nEx.Software" wrote: > > > I was planning on writing a full blown tutorial but since I can tell > > you are anxious to see it... This is a 1.5 compatible version that > > uses modified versions of the TabActivity, TabHost, and TabWidget (and > > related resources) from Android 1.6. There are obvious things that > > could be done better but the idea is there and should at least get you > > headed in the "right" direction. > > >http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip > > > On Sep 18, 6:36 am, Wouter wrote: > > > > Thank you so much! > > > > On Sep 18, 3:03 pm, "nEx.Software" > > > wrote: > > > > > Sure, I'll throw together a quick sample and post it in a bit. > > > > > On Sep 18, 12:11 am, Wouter wrote: > > > > > > And can you post the source code from this and your other example > > > > > please? > > > > > > On 17 sep, 23:50, "nEx.Software" wrote: > > > > > > > It just worked for me... > > > > > > > That being said, I have also copied all of the relevant code from > > > > > > the > > > > > > Android Open Source Project, added a replaceContent(Intent intent) > > > > > > method, and done the same thing as before but without the switching > > > > > > to > > > > > > a new tab first... Again, I am almost positive that this is not the > > > > > > correct way to do this so I hesitate to recommend it. I can't say > > > > > > exactly what happens to the Activity, to be honest. It may be > > > > > > hanging > > > > > > out in limbo. > > > > > > > On Sep 17, 2:44 pm, Wouter wrote: > > > > > > > > But i want to show this new activity in the same active tab. now > > > > > > > it > > > > > > > opens in a new activity without showing my 3 tabs.. > > > > > > > > On 17 sep, 23:28, "nEx.Software" > > > > > > > wrote: > > > > > > > > > It seems you cannot change the Activity of the current tab using > > > > > > > > setContent(); That being said... Doing something you really > > > > > > > > probably > > > > > > > > should not do, you can get this to work: Programmatically > > > > > > > > switch to > > > > > > > > another tab (something like getTabHost().setCurrentTab(1);), > > > > > > > > then do > > > > > > > > MainTabActivity.projectTab.setContent(i);, then go back to the > > > > > > > > original tab (something like getTabHost().setCurrentTab(0);). > > > > > > > > Like I > > > > > > > > said though... this is probably not something you should do. > > > > > > > > > On Sep 17, 1:52 pm, Wouter wrote: > > > > > > > > > > Does someone has found an easy solution for this? I have the > > > > > > > > > same > > > > > > > > > issue. I have 3 tabs and I want to show a new activity in one > > > > > > > > > of these > > > > > > > > > tabs! > > > > > > > > > > Wouter > > > > > > > > > > On Aug 12, 3:47 pm, Sena wrote: > > > > > > > > > > > Thanks for the pointers Mark. > > > > > > > > > > S > > > > > > > > > > > On Aug 12, 3:16 pm, Mark Murphy > > > > > > > > > > wrote: > > > > > > > > > > > > Sena Gbeckor-Kove wrote: > > > > > > > > > > > > Thanks for the tip. Can you point me at what I need to > > > > > > > > > > > > be looking up to > > > > > > > > > > > > find the documentation about changing the > > > > > > > > > > > > viewinsidetheTab? > > > > > > > > > > > > You don't change the Viewinsideof atab. You cause the > > > > > > > > > > > existing View > > > > > > > > > > > to show something else (e.g., use FrameLayout and make > > > > > > > > > > > one layer VISIBLE > > > > > > > > > > > and another layer GONE, or use ViewFlipper to swap > > > > > > > > > > > between contents). > > > > > > > > > > > > You *might* be able to get setContent() to replace the > > > > > > > > > > > current View by > > > > > > > > > > > passing in another layout ID or TabContentFactory, but > > > > > > > > > > > I'm skeptical > > > > > > > > > > > this will work. > > > > > > > > > > > > Thetabwidget framework in Android is designed for simple > > > > > > > > > > > stuff. You > > > > > > > > > > > may wish to grab the source code for the relevant classes > > > > > > > > > > > out of Android > > > > > > > > > > > and make your own version that handles your ow
[android-developers] Re: You must supply a resource ID for a TextView
Where in your code is SeparatedListAdapter.java:93? And can you post the resource xml as well? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 18, 7:16 am, Wouter wrote: > I removed my seperatedlistadapter and now it worked.. :s But it was > working before with my seperatedlistadapter :( > > On 18 sep, 14:47, Wouter wrote: > > > > > Really dont find what the problem is, the weird is it worked and i > > havent changed anything :( > > > On 18 sep, 12:02, Wouter wrote: > > > > Hey, > > > > I have a weird problem. For days i have a working list with movie > > > details i get from an xml rpc source. It loads the list very well and > > > I tried it again today and when i scroll down, always at the same list > > > item it gives me this error. I don't know what the problem is. It > > > shows my list items very good and now not anymore. If you want i can > > > give you my source code too! And it worked a few days ago and now > > > suddenty not :( > > > > 09-18 11:50:00.940: ERROR/ArrayAdapter(1561): You must supply a > > > resource ID for a TextView > > > 09-18 11:50:00.950: DEBUG/AndroidRuntime(1561): Shutting down VM > > > 09-18 11:50:00.950: WARN/dalvikvm(1561): threadid=3: thread exiting > > > with uncaught exception (group=0x4001aa28) > > > 09-18 11:50:00.950: ERROR/AndroidRuntime(1561): Uncaught handler: > > > thread main exiting due to uncaught exception > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): > > > java.lang.IllegalStateException: ArrayAdapter requires the resource ID > > > to be a TextView > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java: > > > 347) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.widget.ArrayAdapter.getView(ArrayAdapter.java:323) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > com.android.moviemeter.SeparatedListAdapter.getView > > > (SeparatedListAdapter.java:93) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.widget.AbsListView.obtainView(AbsListView.java:1255) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.widget.ListView.addViewBelow(ListView.java:2795) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.widget.ListView.scrollListItemsBy(ListView.java:2725) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.widget.ListView.arrowScrollImpl(ListView.java:2225) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.widget.ListView.arrowScroll(ListView.java:2172) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.widget.ListView.commonKey(ListView.java:1977) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.widget.ListView.onKeyDown(ListView.java:1924) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.view.KeyEvent.dispatch(KeyEvent.java:893) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.view.View.dispatchKeyEvent(View.java:3647) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:744) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.widget.ListView.dispatchKeyEvent(ListView.java:1909) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:746) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:746) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > com.android.internal.policy.impl.PhoneWindow > > > $DecorView.superDispatchKeyEvent(PhoneWindow.java:1708) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent > > > (PhoneWindow.java:1197) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.app.Activity.dispatchKeyEvent(Activity.java:1967) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent > > > (PhoneWindow.java:1684) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:746) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:746) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:746) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.widget.TabHost.dispatchKeyEvent(TabHost.java:272) > > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561): at > > > android.view.ViewGroup.dispatc
[android-developers] Re: lucene api
So you can in theory use lucene for that. Just bundle it with your app and call its API from your code. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 17, 9:41 pm, jaimin mehta wrote: > Thanx for the reply but i want to search in my xml file and it > contains 90 chapters.when i type word or text to search i want to > search in all the 90 chapters in my xml file and display chapters > which contain match word or text . > so can i use lucene for that task to index my xml file? > or any other sugestion? > plz its urgent and i couldn't find any solution. > thanks > jaimin. > > On Sep 18, 2:18 am, "Yusuf Saib (T-Mobile USA)" > > > Mobile.com> wrote: > > What do you mean by "global search"? Do you want to search all your > > app's local files? Files on the SD card? The internet? Suspicious > > characters at the airport? > > > Yusuf Saib > > Android > > ·T· · ·Mobile· stick together > > The views, opinions and statements in this email are those of the > > author solely in their individual capacity, and do not necessarily > > represent those of T-Mobile USA, Inc. > > > On Sep 16, 11:45 pm, jaimin mehta wrote: > > > > hi i am new to android . > > > i have developed a application > > > in that application i want a feature of global search in xml file > > > now i want to use Lucene api for global search > > > can i use in android? > > > > if yes than plz tell me how can i implements that in my android code > > > > thanx > > > jaimin. --~--~-~--~~~---~--~~ 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: installation woes...
oddly enough, after i installed the app, the final installation screen (the one that shows "v Application installed" and has two buttons on the bottom - "open" and "close") showed the right icon and the right product name. On Sep 18, 9:33 am, sdphil wrote: > i am seeing some strangeness with respect to installation. > > sometimes when I install, I see the normal: > > [ICON] Product Name > > at the install screen. but somehow i get into a state every once in a > while where I see some other icon and instead of the product name, I > see "com.company.myapp" as the name. > > Another weirdness I see is that I will sometimes get two icons -- i.e. > installing a new app didn't overwrite the previous one. > > Does changing the AndroidManifest.xml in any way create a "new" app? > > tia. --~--~-~--~~~---~--~~ 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] installation woes...
i am seeing some strangeness with respect to installation. sometimes when I install, I see the normal: [ICON] Product Name at the install screen. but somehow i get into a state every once in a while where I see some other icon and instead of the product name, I see "com.company.myapp" as the name. Another weirdness I see is that I will sometimes get two icons -- i.e. installing a new app didn't overwrite the previous one. Does changing the AndroidManifest.xml in any way create a "new" app? tia. --~--~-~--~~~---~--~~ 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: clear activity stack and replace with a new activity
Yes when the process is killed, everything goes away including your static variable. When it is restarted only the activities that need to be immediately shown are created as they are needed. So initially only your top application will be created. If you want to clear the stack at that point, when you go through the list, you will only see that one and finish it. A little time later, the one below it will be started and add itself to the list... you could check at that point if you are in a "finishing all activities" state, but would have to carefully manage that. Ultimately I don't know you exact code, but you can follow the steps I provided to emulate this common scenario and see how your code works. On Fri, Sep 18, 2009 at 9:08 AM, sdphil wrote: > > okay. so, if the process is killed, then the static variable would > have been killed as well, right? when the process is restarted, the > static variable holding the activites will be empty - and as new > activites get created, they will be added to this list. in my > activity's onCreate() method (base class), I add the activity to the > static list and in the onDestroy() method (base class), I remove the > activity from the list. > > So unless the system kills activites (and not tasks) without my > knowledge then I'm not sure I see the hole... > > Dianne Hackborn wrote: > > It is not contrived at all, that is the typical behavior when your app is > in > > the background and more memory is needed elsewhere. On a G1 class device > > where memory is tight, this happens all the time. > > > > When the process is killed, your activity state remains in the system, > and > > when the user returns to it they activities are re-created as needed so > that > > it appears like it had continued running. > > > > On Thu, Sep 17, 2009 at 6:41 PM, sdphil > wrote: > > > > > > > > that situation seems a bit contrived. if the process is killed, then > > > when it gets restarted, doesn't it start the activity from whatever I > > > have set in my android manifest file? does it remember what the top > > > most activity was when the process was killed? > > > > > > tia. > > > > > > On Sep 17, 6:07 pm, Dianne Hackborn wrote: > > > > This will probably break if your process gets killed while in the > > > > background. For example, run your app so it has some activities, > press > > > > home, use adb shell's "ps" to find your process and "kill" to kill > it, > > > then > > > > select it again from home. You process will be restarted, with the > > > top-most > > > > activity started. None of the others will be running at this point. > > > > > > > > > > > > > > > > On Thu, Sep 17, 2009 at 5:55 PM, sdphil > > > wrote: > > > > > > > > > okay, what I wound up doing was to create a base class that all my > > > > > activities derive from. then I keep track of the activities in a > > > > > static variable. when a derived activity class calls "finishAll()" > it > > > > > iterates through the activites it knows about and calls "finish()" > on > > > > > them (except if it equals "this"). > > > > > > > > > Then the client calls "startActivity()" and then calls "finish()" > > > > > > > > > On Sep 17, 12:25 pm, Dianne Hackborn wrote: > > > > > > You can't directly replace the root. The only way I can think > > > off-hand > > > > > to > > > > > > do this is to use CLEAR_TOP when starting the same activity > component > > > as > > > > > > your current root to send an intent down to that root (and finish > all > > > of > > > > > the > > > > > > activities in-between, and then handle onNewIntent() there to see > > > this > > > > > > intent and start the new desired activity and finish itself. > > > > > > > > > > On Thu, Sep 17, 2009 at 11:27 AM, sdphil < > phil.pellouch...@gmail.com > > > > > > > > > wrote: > > > > > > > > > > > hi, i want to clear the activity stack and replace it with a > new > > > > > > > activity as the root activity, even if that activity exists > > > somewhere > > > > > > > on the stack (or not). > > > > > > > > > > > i see -- FLAG_ACTIVITY_CLEAR_TOP and FLAG_ACTIVITY_NEW_TASK, > but > > > > > > > it's not obvious to me how to use those in conjunction to > achieve > > > what > > > > > > > I want. > > > > > > > > > > > it's like i want to completely restart the task with some > activity > > > > > > > that i specify as the new root. > > > > > > > > > > > tia. > > > > > > > > > > -- > > > > > > Dianne Hackborn > > > > > > Android framework engineer > > > > > > hack...@android.com > > > > > > > > > > Note: please don't send private questions to me, as I don't have > time > > > to > > > > > > provide private support, and so won't reply to such e-mails. All > > > such > > > > > > questions should be posted on public forums, where I and others > can > > > see > > > > > and > > > > > > answer them. > > > > > > > > -- > > > > Dianne Hackborn > > > > Android framework engineer > > > > hack...@android.com > > > > > > > > Note: please don't send private questions
[android-developers] Re: ADC2 entries so far...
Education/Reference --- mobilematics - http://www.mobilematics.co.uk On Sep 13, 6:12 pm, Mobidev wrote: > Its mid September and ADC team will soon launch the ADC 2 judging > application. So far its been a great job by the ADC team with sticking > to the submission deadline and swift uploads(leaving aside package > name confusion among the participants). > > Meanwhile, below are about 105 ADC2 entries posted on forum. In case > of new additions or corrections please reply to this discussion with > . ADC1 saw about 1788 apps and my "guess" > is ADC2 will see "a tleast" 2500 apps considering the tight deadline > (could have been much higher(4K+) otherwise). > > From the trend it seems that the Miscellaneous category has far less > entries than Prod/Tools and Games(both) categories. Possibly, 21st > ranking entry under Prod/Tools could be much better than 3rd ranking > entry under Misc category. Unlike ADC1, this time Category will be a > key factor in winning; along with Originality, Effective Platform Use, > Polish and Indispensability. > > - > Education/Reference > Librarium IIhttp://steveoliverc.squarespace.com/ > Math Jungle > Mystic Maggiehttp://www.phdgaming.com/general_media/mm/ > Vivify picture: mathhttp://vivifypicture.com/ > > Entertainment > Daisy Gardenhttp://www.tomgibara.com/android/daisy/garden/ > Taps Of Firehttp://code.google.com/p/tapsoffire > > Games: Arcade/Action > CowPotato 3Dhttp://www.froogloid.com/cowpotato > FRGhttp://www.woogames.com/ > Galactic Guardian: Zap > GPShttp://sites.google.com/site/mysticlakesoftware/ > Graviturnhttp://www.cyrket.com/package/com.fheft.graviturn > Head To Head Racinghttp://headtoheadracing.appspot.com/ > Light Racer 3D Trial > ProjectINFhttp://www.chickenbrickstudios.com/ > UrbanGolf > X-Dischttp://www.youtube.com/watch?v=3EkH-b15fPY > Zepto Wars - RTS > > Games: Casual/Puzzle > Furdiburbhttp://www.sheado.net/ > Goobers Vs. Boogershttp://goobersvsboogers.blogspot.com/ > ongPayhttp://www.yakloingames.com/ > Relativiahttp://www.polyclefsoftware.com/relativia.html > Splat!: Bugs IIhttp://dkdroid.com > What the Doodle!? > Lifestyle > Beer Cloudhttp://greatbrewers.com/story/beercloud-mobile-app > Bottle Buzz > DoIthttp://curvefish.com/apps/doit.htm > FoxyRing http://www.levelupstudio.fr/foxyring > Gigboxhttp://www.mygigbox.com/ > NetDroid > NotiMe!http://www.youtube.com/watch?v=wFjoZmrj40k > ReaderScopehttp://www.altcanvas.com/android/readerscope > Rhythmatics Alphahttp://www.twitter.com/brownbaggames > SpecTrek > > Media > Gallery Map > geoPastehttp://www.geopaste.com/ > Mediafly Mobile Audio Podcast Client > MicroJam > MicroJam > MyPODhttp://www.my-pod.org/ > PackRathttp://packrat.unwesen.de/ > Time-Lapsehttp://www.sheado.net/ > Uloopshttp://www.uloops.net/ > > Misc > Local Agentshttp://local-agents.appspot.com/ > picjiggles litehttp://www.yakloingames.com/ > > Productivity/Tools > Alarmoidhttp://www.youtube.com/watch?v=yNcVkP_vK08 > aListhttp://androidalist.blogspot.com > AppManagerhttp://curvefish.com/apps/appmanager.htm > GeoAlerthttp://sites.google.com/site/appyoursmobile/geoalert > Hoccerhttp://www.hoccer.com/ > MobileWrite > Mobisle Noteshttp://www.facebook.com/pages/MobisleApps/127994296229 > MyPageshttp://www.youtube.com/watch?v=75lR4zLy_LQ > OpenLoopzhttp://sites.iode.co.uk/openloopz/ > Personalyticshttp://personalytics.net/ > Skiba PDF Readerhttp://www.anddev.org/skiba_pdf_reader-t6122.html > Smart Lockhttp://www.youtube.com/watch?v=ipue9Yhi5VA > Talking Calendarhttp://www.pwnwithyourphone.com/ > Taskerhttp://tasker.dinglisch.net/ > Thinking Spacehttp://homepages.nildram.co.uk/~bakachu/screenshot.png > Tracklethttp://tracklet.appspot.com > txeethttp://txeet.com > Voice Caller IDhttp://www.pwnwithyourphone.com/ > WebReaderhttp://webreader.vamsee.in/ > What Zip?http://www.usnaviguide.com/zip.htm > Xeeku Search > > Social Networking > A-GLOBAL-MINDhttp://a-global-mind.blogspot.com/ > Cartoon Ganghttp://www.cartoongang.net/ > ClapCard > SocialMusehttp://www.mixzing.com/ > Swift Twitter Apphttp://www.swift-app.com/ > TweetsAloudhttp://www.pwnwithyourphone.com/ > > Travel > AugSatNavhttp://www.phyora.com/ > BabelSnaphttp://babelsnap.com/ > Location Scouthttp://getlocationscout.com/ > Radar > Now!http://maps.huge.info/blog/2009/09/ne
[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work
Hey, Thank you! But I have some questions.. I now declarate my tabs in Home.java (my tabs are now at bottom). I have 4 tabs: Cinema, Video,TV and search. These 4 tabs are 4 different activities with lists. When i click on a list item in cinema activity I have to open MovieDetail.java (now it opens in new activity without tabs) and the tabs have to stay at the bottom. But how can i reach my custom tabspec cinema in CInemaActivity so i can do replaceContent --> cinema.replaceContent(new android.content.Intent(this, MovieDetail.class)); Wouter On 18 sep, 17:51, "nEx.Software" wrote: > I was planning on writing a full blown tutorial but since I can tell > you are anxious to see it... This is a 1.5 compatible version that > uses modified versions of the TabActivity, TabHost, and TabWidget (and > related resources) from Android 1.6. There are obvious things that > could be done better but the idea is there and should at least get you > headed in the "right" direction. > > http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip > > On Sep 18, 6:36 am, Wouter wrote: > > > Thank you so much! > > > On Sep 18, 3:03 pm, "nEx.Software" > > wrote: > > > > Sure, I'll throw together a quick sample and post it in a bit. > > > > On Sep 18, 12:11 am, Wouter wrote: > > > > > And can you post the source code from this and your other example > > > > please? > > > > > On 17 sep, 23:50, "nEx.Software" wrote: > > > > > > It just worked for me... > > > > > > That being said, I have also copied all of the relevant code from the > > > > > Android Open Source Project, added a replaceContent(Intent intent) > > > > > method, and done the same thing as before but without the switching to > > > > > a new tab first... Again, I am almost positive that this is not the > > > > > correct way to do this so I hesitate to recommend it. I can't say > > > > > exactly what happens to the Activity, to be honest. It may be hanging > > > > > out in limbo. > > > > > > On Sep 17, 2:44 pm, Wouter wrote: > > > > > > > But i want to show this new activity in the same active tab. now it > > > > > > opens in a new activity without showing my 3 tabs.. > > > > > > > On 17 sep, 23:28, "nEx.Software" > > > > > > wrote: > > > > > > > > It seems you cannot change the Activity of the current tab using > > > > > > > setContent(); That being said... Doing something you really > > > > > > > probably > > > > > > > should not do, you can get this to work: Programmatically switch > > > > > > > to > > > > > > > another tab (something like getTabHost().setCurrentTab(1);), then > > > > > > > do > > > > > > > MainTabActivity.projectTab.setContent(i);, then go back to the > > > > > > > original tab (something like getTabHost().setCurrentTab(0);). > > > > > > > Like I > > > > > > > said though... this is probably not something you should do. > > > > > > > > On Sep 17, 1:52 pm, Wouter wrote: > > > > > > > > > Does someone has found an easy solution for this? I have the > > > > > > > > same > > > > > > > > issue. I have 3 tabs and I want to show a new activity in one > > > > > > > > of these > > > > > > > > tabs! > > > > > > > > > Wouter > > > > > > > > > On Aug 12, 3:47 pm, Sena wrote: > > > > > > > > > > Thanks for the pointers Mark. > > > > > > > > > S > > > > > > > > > > On Aug 12, 3:16 pm, Mark Murphy > > > > > > > > > wrote: > > > > > > > > > > > Sena Gbeckor-Kove wrote: > > > > > > > > > > > Thanks for the tip. Can you point me at what I need to be > > > > > > > > > > > looking up to > > > > > > > > > > > find the documentation about changing the > > > > > > > > > > > viewinsidetheTab? > > > > > > > > > > > You don't change the Viewinsideof atab. You cause the > > > > > > > > > > existing View > > > > > > > > > > to show something else (e.g., use FrameLayout and make one > > > > > > > > > > layer VISIBLE > > > > > > > > > > and another layer GONE, or use ViewFlipper to swap between > > > > > > > > > > contents). > > > > > > > > > > > You *might* be able to get setContent() to replace the > > > > > > > > > > current View by > > > > > > > > > > passing in another layout ID or TabContentFactory, but I'm > > > > > > > > > > skeptical > > > > > > > > > > this will work. > > > > > > > > > > > Thetabwidget framework in Android is designed for simple > > > > > > > > > > stuff. You > > > > > > > > > > may wish to grab the source code for the relevant classes > > > > > > > > > > out of Android > > > > > > > > > > and make your own version that handles your own scenario. > > > > > > > > > > > -- > > > > > > > > > > Mark Murphy (a Commons > > > > > > > > > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > > > > > > > > > Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ 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
[android-developers] Re: Issue (bug) reports because of custom ROMS, varying configurations, etc.
Very good points. I think that some developers take the one-star rating the most hard when they have few ratings. An app with few user ratings can very quickly drop with even one one-star rating. Of course, then new potential users don't want to give it a shot because it has a bad overall rating. But I whole-heartedly agree with your assessment of the situation regarding different configurations, custom builds, and lack of a good way for users to report meaningful bug information. The best way to attempt to get anything useful is to build into your app a way to get that information and save it so the user has an opportunity to send it to you easily. On Sep 18, 9:13 am, niko20 wrote: > Hi all devs, > > I just wanted to quickly bring up a topic that I had noticed lately. > This comes to my attention for two reasons, firstly someone had posted > that he had a user that reported a vague error message like "deleted > all my pics", and the dev's were not able to reproduce it. Secondly, I > myself have seen bug reports that really may not be relevant to my > application. > > I had recommended to that first dev to just ignore the error for now > since there was not enough info to reproduce it, and also for a second > reason, there is no way to know what the user is truly running. > > For example, I've had a few bug reports, where a user says of my app > "Doesn't work on HTC hero", but then another user will post "Works > fine on Hero". I also had found a posting on the internet in a forum > where a user had tried to use some of my software on a custom ROM, and > he was having problems. > > I guess the issue I'm bringing up here is that with the android market > being somewhat "limited" in functionality, it makes it very hard on us > developers to handle any customer issues such as bugs, etc. Especially > since they could be using a custom ROM, or have ROOT access which also > may even be affecting the software. My point is that developing for > android in a professional manner is really not an easy task, and > possibly it's just starting to be worth it (with market 1.6 at least > there are some improvements) to develop paid apps. Basically Google > needs to work harder though to improve this situation - and if users > expect better apps (there are lots of complaints about the market > being full of junk) then they need a way to report issues better, etc. > And really it's not even up to a dev to try to match up with a custom > ROM, technically it's not supported! (It's up to the dev of course if > they want to investigate and try to support it). > > What seems is going to happen is android is not only going to have > multiple configs (which fortunately for us seems that the market will > help filter them out if you app does not support them), but also we > never can really know what is on a user's system. They may have some > custom stuff, and they see a bug, but it could really not be our bug, > but rather, in the system itself. > > This is why I still recommend that bug reports have to be weighed > carefully as to whether they may really be a problem or not. It's an > investment in time and while makers of free apps no doubt may not > mind, those of us who develop paid apps don't want to multiply our > costs by going down blank pathways. > > I don't think I see any resolution to the situation in the near > future, but I just wanted to make it clear that if a user reports a > bug in their comments and gives you one star, it's not the end of the > world. If you can reproduce it quickly and fix it, then that is great. > But if not, move on - there is no way you can know exactly what they > are talking about. I think some devs get too anxious about that one > bad report. There is no way we are going to avoid that report! Because > they may be using an untested ROM or such anyway, and it may not be > worth your time to look at it in the long run. I've had few low stars > here and there as well, and trust me, just keep improving your app and > you will rise back up. > > As devs we need to encourage one another and I just want to try and > help devs not get anxious about things that are really beyond their > control. > > -niko --~--~-~--~~~---~--~~ 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: Inspecting the contents of an Intent
The documentation for each intent protocol (action) should describe the expected data in and out, including extras. If it doesn't, the doc needs to be fixed. It is generally not safe to rely on just whatever stuff you happen to find in there from one particular app. On Fri, Sep 18, 2009 at 8:44 AM, Neilz wrote: > > How do I know what extras an Intent contains when it returns from an > activity result? > > For example, I have used an Intent.ACTION_GET_CONTENT to pick an image > from the gallery. When the result is returned, I can get the URI of > the image from intent.getData().toString(). In another scenario, I use > a MediaStore.ACTION_IMAGE_CAPTURE to get a new photo. When this result > returns, I know (from looking at other people's code) that you can get > the image itself from data.getExtras().get("data"); > > But how can I get the contentUri of this new photo? > > A more relevant question, is how can I inspect the Intent so that I > know what extras and what data it contains? There seems to be a > differing combination depending on what the original Intent was. > > Many thanks for any suggestions. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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] Code review request for ImageCache
I'm hoping I can get some opinions on my implementation of an ImageCache using SoftReferences and AsyncTask. The task of the ImageCache is to load Bitmaps as they are requested. From the outside the Bitmaps are requested using the get method which takes the Uri of the Bitmap to load, and the ImageView which will eventually be updated with the Bitmap. A single thread waits for the requests or jobs as I call them to be added to a job list. I have to admit, I'm not the most knowledgable when it comes to threads, but I think I got the blocking calls correct. Hopefully the formatting isn't to bad. The following call initiates the cache and leaves it waiting for jobs ImageCache.getInstance().executeLoadImagesTask( context ); a Bitmap is retrieved with the following call Bitmap bm = ImageCache.getInstance().get( _thumbUri.toString(), _imgVw ); if the image isn't initially in the cache, a default Bitmap is returned, then a job is added to the job list. This job contains the Uri to the Bitmap to load and the ImageView to update. public class ImageCache { private static final String LOG_TAG = "ImageCache"; private static final boolean LOGD = true; private static ImageCache _instance = null; private final HashMap> _cache; private Context _ctx; private static Bitmap defaultBitmap; private Object _lock; private ArrayList jobs = new ArrayList(); public static ImageCache getInstance() { if ( _instance == null ) { _instance = new ImageCache(); } return _instance; } private ImageCache() { _lock = new Object(); _cache = new HashMap>(); } public void executeLoadImagesTask( Context ctx ) { _ctx = ctx; defaultBitmap = BitmapFactory.decodeResource( _ctx.getResources (), R.drawable.camera_icon ); new LoadImagesTask().execute(null); } public void put( String key, Bitmap bitmap ) { _cache.put( key, new SoftReference(bitmap) ); } public void clear() { _cache.clear(); } public Bitmap get( String imguri, UriImageView viewToUpdate ) { Bitmap bm = null; SoftReference reference = _cache.get(imguri); if ( reference != null ) { bm = reference.get(); } if ( bm == null ) { bm = defaultBitmap; postJob( new ImageJob( imguri, viewToUpdate ) ); } return bm; } /** * Called after the bitmap has been retrieved from the * sdcard * * @param jobs */ public void addImage( ImageJob... jobs ) { ImageJob job = jobs[0]; final UriImageView view = job.getViewToUpdate(); final Bitmap bm = job.getBitmap(); final Uri imguri = job.getImageUri(); put( imguri.toString(), bm ); view.post( new Runnable() { public void run() { view.setImage(imguri, bm); } }); } private void dbg( String msg ) { if (LOGD) Log.d( LOG_TAG, msg ); } private void postJob( final ImageJob job ) { dbg( "Thread: " + Thread.currentThread().getName() + " posting job " + job.getImageUri() ); synchronized(_lock) { jobs.add(job); _lock.notify(); } } private class ImageJob { private Uri _imageUri; private UriImageView _viewToUpdate; private Bitmap _bm; public ImageJob( Uri imageUri, UriImageView viewToUpdate ) { _imageUri = imageUri; _viewToUpdate = viewToUpdate; } public ImageJob( String imageUri, UriImageView viewToUpdate ) { this( Uri.parse( imageUri ), viewToUpdate ); } public Uri getImageUri() { return _imageUri; } public UriImageView getViewToUpdate() { return _viewToUpdate; } public void setBitmap( Bitmap bm ) { _bm = bm; } public Bitmap getBitmap() { return _bm; } } private class LoadIma
[android-developers] Re: how to select item from arrayadapter
Hi Raghav, We need more info and what you mean. Are you trying to use an OnItemClickListener()? Are you connecting an adapterview to a listview? Need more info on what you are trying to do -niko On Sep 18, 7:00 am, ragavendran s wrote: > i m having Array Adapter..it displays list views normalwhenever i clickng > on that particular item from the list it doesn't workscan u tel me how > to solve this > > Thanks in advance... > > with Regards, > Raghav.S --~--~-~--~~~---~--~~ 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 (bug) reports because of custom ROMS, varying configurations, etc.
Hi all devs, I just wanted to quickly bring up a topic that I had noticed lately. This comes to my attention for two reasons, firstly someone had posted that he had a user that reported a vague error message like "deleted all my pics", and the dev's were not able to reproduce it. Secondly, I myself have seen bug reports that really may not be relevant to my application. I had recommended to that first dev to just ignore the error for now since there was not enough info to reproduce it, and also for a second reason, there is no way to know what the user is truly running. For example, I've had a few bug reports, where a user says of my app "Doesn't work on HTC hero", but then another user will post "Works fine on Hero". I also had found a posting on the internet in a forum where a user had tried to use some of my software on a custom ROM, and he was having problems. I guess the issue I'm bringing up here is that with the android market being somewhat "limited" in functionality, it makes it very hard on us developers to handle any customer issues such as bugs, etc. Especially since they could be using a custom ROM, or have ROOT access which also may even be affecting the software. My point is that developing for android in a professional manner is really not an easy task, and possibly it's just starting to be worth it (with market 1.6 at least there are some improvements) to develop paid apps. Basically Google needs to work harder though to improve this situation - and if users expect better apps (there are lots of complaints about the market being full of junk) then they need a way to report issues better, etc. And really it's not even up to a dev to try to match up with a custom ROM, technically it's not supported! (It's up to the dev of course if they want to investigate and try to support it). What seems is going to happen is android is not only going to have multiple configs (which fortunately for us seems that the market will help filter them out if you app does not support them), but also we never can really know what is on a user's system. They may have some custom stuff, and they see a bug, but it could really not be our bug, but rather, in the system itself. This is why I still recommend that bug reports have to be weighed carefully as to whether they may really be a problem or not. It's an investment in time and while makers of free apps no doubt may not mind, those of us who develop paid apps don't want to multiply our costs by going down blank pathways. I don't think I see any resolution to the situation in the near future, but I just wanted to make it clear that if a user reports a bug in their comments and gives you one star, it's not the end of the world. If you can reproduce it quickly and fix it, then that is great. But if not, move on - there is no way you can know exactly what they are talking about. I think some devs get too anxious about that one bad report. There is no way we are going to avoid that report! Because they may be using an untested ROM or such anyway, and it may not be worth your time to look at it in the long run. I've had few low stars here and there as well, and trust me, just keep improving your app and you will rise back up. As devs we need to encourage one another and I just want to try and help devs not get anxious about things that are really beyond their control. -niko --~--~-~--~~~---~--~~ 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: tabs iphone style
In case anyone is watching this thread, I'll post the example I threw together here as well. I was planning on writing a full blown tutorial but since I can tell you are anxious to see it... This is a 1.5 compatible version that uses modified versions of the TabActivity, TabHost, and TabWidget (and related resources) from Android 1.6. There are obvious things that could be done better but the idea is there and should at least get you headed in the "right" direction. http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip This allows you to dynamically move the tabs from top to bottom, and also allows you to hide or show them, you can swipe left or right to switch tabs (particularly useful if you have hidden the tabs) and you can also replace the activity of a tab with another activity. Because this is the Tab framework from Android 1.6 you can also change the View that is used for the tabs. Also... as I said, this is compatible with Android 1.5. On Sep 17, 1:36 pm, Wouter wrote: > So what do I have to use? Someone has an example for me? > > On 17 sep, 17:30, "nEx.Software" wrote: > > > I had actually copied the sources for TabActivity, TabHost, and > > TabWidget from the Open Source Project yesterday, I didn't realize > > that this was a change actually until your response. I am not even > > using the 1.6 SDK yet... I am now going to peruse the diff report a > > little more closely. > > > On Sep 17, 8:24 am, Mark Murphy wrote: > > > > nEx.Software wrote: > > > > Yes...http://developer.android.com/sdk/api_diff/4/changes/android.widget.Ta... > > > > Ah, yes. setIndicator() used to just have the Drawable options, not the > > > whole View. I'll have to experiment with these. > > > > Thanks for pointing this out! > > > > -- > > > Mark Murphy (a Commons > > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > > Android App Developer Training:http://commonsware.com/training.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 -~--~~~~--~~--~--~---