[android-developers] Re: HeaderView in ListView causing ClassCastException

2010-12-10 Thread bobetko
I call setHeaderView in onCreate, before I set myAdapter. -- 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

Re: [android-developers] Re: HeaderView in ListView causing ClassCastException

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 12:36 PM, bobetko bobe...@gmail.com wrote: I call setHeaderView in onCreate, before I set myAdapter. OK, that eliminates that. ((Filterable) adapter).getFilter().filter(s); Does your adapter extend Filterable?

[android-developers] Re: dex in ant with external libs in SDK tools R8

2010-12-10 Thread Matt Quigley
AHH! This latest update to Android SDK v8 has made my life hell. 1. The change that makes the compiler fail when strings have multiple formatter specifications (%d, %s, etc.) without position arguments (%1d, %2s, etc.) is new. This means that ALL PREVIOUS TAGS/BRANCHES/ ETC. IN THE REPOSITORY

Re: [android-developers] Application unavailable in Android Market

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 12:35 PM, Pedro Duque pmdu...@gmail.com wrote: Shouldn't it be available on all Android Markets? No. Not all phones support Live Wallpapers. Is there anything we should do to make it available worldwide? See the section on Market filters in the documentation. But

Re: [android-developers] Re: HeaderView in ListView causing ClassCastException

2010-12-10 Thread Kostya Vasilyev
Bob, The error is caused by addHeaderView wrapping your ListView adapter. public void addHeaderView (View v) Since: API Level 1 Add a fixed view to appear at the top of the list. If addHeaderView is called more than once, the views will appear in the order they were added. Views added using

[android-developers] Re: How to control the width and height of Alert dialog.

2010-12-10 Thread Doug Gordon
In a similar situation, I stopped using AlertDialog and went directly to the Dialog class. You can do everything you need to do that way, but a bit more complex since you don't get some of the shortcuts that AlertDialog provides. Doug Gordon On Dec 10, 7:39 am, sat sathvikm...@gmail.com wrote:

Re: [android-developers] Re: dex in ant with external libs in SDK tools R8

2010-12-10 Thread Mark Murphy
On Fri, Dec 10, 2010 at 1:41 PM, Matt Quigley matthew.quig...@gmail.com wrote: The Ant builds no longer work with external libraries. Make sure you are on Ant 1.8.1. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog |

Re: [android-developers] invoking of native application by using intents

2010-12-10 Thread Mark Murphy
Make sure you have the BROWSABLE category in your intent-filter. See here for some samples: https://github.com/commonsguy/cw-advandroid/tree/master/Introspection/URLHandler On Fri, Dec 10, 2010 at 12:56 PM, Arjun arjunf...@gmail.com wrote: Greetings, how to invoke application when user

Re: [android-developers] Re: HeaderView in ListView causing ClassCastException

2010-12-10 Thread Mark Murphy
You can also call getWrappedAdapter() on the HeaderViewListAdapter to get the underlying adapter, casting it to Filterable or whatever. On Fri, Dec 10, 2010 at 1:51 PM, Kostya Vasilyev kmans...@gmail.com wrote: Bob, The error is caused by addHeaderView wrapping your ListView adapter. public

[android-developers] Re: HeaderView in ListView causing ClassCastException

2010-12-10 Thread bobetko
Yes. myAdapter implements Fliterable -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: HeaderView in ListView causing ClassCastException

2010-12-10 Thread bobetko
Thank you very much Kostya. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Repeating background does not repeat

2010-12-10 Thread Bret Foreman
This looks like it would be easy to package up a test case and post in the Android bug list. -- 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: Locking the notification drawer

2010-12-10 Thread Ken Cross
Hi, I don't thing that will do the trick. Here is a more detailed description of what I am trying to solve. When a wifi call is present in our app, the in-call screen occupies the entire display with the exception of the notification bar at the top. It is desirable for this to be there (and

[android-developers] Free version of paid app

2010-12-10 Thread Viktor Linder
I recently published a game (Deep Dagger / http://www.gearupgames.se, check it out! :) ) on Android Market and was thinking of creating a free version. I have a couple of questions: In your experience, has a free version helped more people discover your app? Does the free version need to have its

Re: [android-developers] Re: dex in ant with external libs in SDK tools R8

2010-12-10 Thread Xavier Ducrohet
Yes. this is a requirement that fell through the release notes. We're adding code to detect the Ant version at compile time and fail hard if it's too low. On Fri, Dec 10, 2010 at 11:04 AM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Dec 10, 2010 at 1:41 PM, Matt Quigley

Re: [android-developers] Eclipse: Export signed application log

2010-12-10 Thread Xavier Ducrohet
We improved the log reporting in ADT 8.0.1 It shoud display a better error message in the dialog and dump more info in the console. Xav On Fri, Dec 10, 2010 at 5:49 AM, George Moschovitis george.moschovi...@gmail.com wrote: When trying to export a signed application using the latest SDK and

Re: [android-developers] Free version of paid app

2010-12-10 Thread Kumar Bibek
Yes to both your questions. Apart from the package name constraint, there are none. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sat, Dec 11, 2010 at 12:50 AM, Viktor Linder linder.vik...@gmail.comwrote: I recently published a game (Deep Dagger /

Re: [android-developers] Free version of paid app

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 1:20 PM, Viktor Linder linder.vik...@gmail.comwrote: In your experience, has a free version helped more people discover your app? Yes. Does the free version need to have its own package name? Yes. Any other technical considerations? Maintaining two versions

[android-developers] Re: dex in ant with external libs in SDK tools R8

2010-12-10 Thread Andreas
You can make the fix in the build.xml by overriding the macro there. Here is where I made the fix: macrodef name=dex-helper element name=external-libs optional=yes / element name=extra-parameters optional=yes / sequential !-- sets the primary input for dex.

Re: [android-developers] Re: Locking the notification drawer

2010-12-10 Thread Mark Murphy
On Fri, Dec 10, 2010 at 2:17 PM, Ken Cross ken.cr...@siemens-enterprise.com wrote: We use the proximity sensor to detect when the phone is or is not near the ear. I have always wondered how the proximity sensor can determine that it is an ear. Versus, say, other body parts. Or whose ear it is,

[android-developers] Re: AES in Gingerbread

2010-12-10 Thread Steve Hugg
More debugging on this issue... I am using this method to generate keys from a passphrase: KeyGenerator kgen = KeyGenerator.getInstance(AES, BC); SecureRandom sr = SecureRandom.getInstance(SHA1PRNG, Crypto); sr.setSeed(seed);

[android-developers] Re: dex in ant with external libs in SDK tools R8

2010-12-10 Thread Matt Quigley
Andreas, I'm not sure where you added that line path refid=jar.libs.ref /. I need to make this fix in the build.xml file, not in the Android SDK Tools directory, because this change needs to work on all of my team's machines and the build machine.  I'll try to find a solution and post it

[android-developers] Problem with view alignment and image size

2010-12-10 Thread umakantpatil
Hi, I have to show a image in vertically center on the screen. The image is originally of big size, but I reduce it and display it. Problem is I have to maintain the ratio of the image like example. Original image is of 200 X 400, then I might reduce it 100 X 200. Again if Image is of 500 X 200

Re: [android-developers] Re: dex in ant with external libs in SDK tools R8

2010-12-10 Thread Xavier Ducrohet
hmm if you use the proper version of Ant this should not be required. I double checked it a few days ago. you do need Ant 1.8 On Fri, Dec 10, 2010 at 11:52 AM, Matt Quigley matthew.quig...@gmail.com wrote: Andreas, I'm not sure where you added that line path refid=jar.libs.ref /. I need to

[android-developers] Re: dex in ant with external libs in SDK tools R8

2010-12-10 Thread Matt Quigley
Although that solution will work for most developers, it will not work if you need to propagate this fix across all team members working on the project.  As an alternative, you can fix it in your own project's build file (build.xml) by ensuring that the external .jar files are included in the

[android-developers] COPY PERMISSIONS (APK)

2010-12-10 Thread Vinicius Jose Grein
I'm developing an application that need to copy an apk do the folder /system/app I've already tried to use the RunTime class to access the shell,it does not work due to permissions, Is there anything I can do to copy this apk? Best Regards -- You received this message because you are

[android-developers] Re: HeaderView in ListView causing ClassCastException

2010-12-10 Thread blindfold
http://stackoverflow.com/questions/4393775/android-classcastexception-when-adding-a-header-view-to-expandablelistview helped me out with addHeaderView() and the infamous ClassCastException. Basically you do TopSearch.setLayoutParams(new ListView.LayoutParams(ListView.LayoutParams.FILL_PARENT,

[android-developers] Re: dex in ant with external libs in SDK tools R8

2010-12-10 Thread Matt Quigley
The Ant builds no longer work with external libraries. Make sure you are on Ant 1.8.1. On Dec 10, 2:21 pm, Xavier Ducrohet x...@android.com wrote: Yes. this is a requirement that fell through the release notes. We're adding code to detect the Ant version at compile time and fail hard

Re: [android-developers] COPY PERMISSIONS (APK)

2010-12-10 Thread Mark Murphy
On Fri, Dec 10, 2010 at 3:05 PM, Vinicius Jose Grein viniciu...@gmail.com wrote: I'm developing an application that need to copy an apk do the folder /system/app I've already tried to use the RunTime class to access the shell,it does not work due to permissions, Is there anything I can do to

[android-developers] Re: 3d flip between two views

2010-12-10 Thread ping
thanks a lot :) On Dec 10, 12:56 pm, Kumar Bibek coomar@gmail.com wrote: http://www.inter-fuser.com/2009/08/android-animations-3d-flip.html Try this. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Fri, Dec 10, 2010 at 5:04 PM, ping bernd.warm...@gmail.com wrote:

[android-developers] Overlay other view on imageview

2010-12-10 Thread umakantpatil
Hi,I have two images. One is big image and other one is smaller image. I want to small image over the Bigger image. Both are in ImageView. How do it ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Overlay other view on imageview

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 2:19 PM, umakantpatil umakantpat...@gmail.comwrote: How do it ? Try a frame layout. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking

[android-developers] Re: The String8 bug

2010-12-10 Thread fadden
On Dec 8, 8:23 pm, Daniel Tsai daniel.tsai@gmail.com wrote: I think it sould be String8 tmp(*this). Yes. It looks like this was fixed in Gingerbread. -- 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] Re: The String8 bug

2010-12-10 Thread elizabeth talbot
ok -- 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

[android-developers] Re: Overlay other view on imageview

2010-12-10 Thread elizabeth talbot
i dont know -- 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

[android-developers] Re: Combining an image

2010-12-10 Thread darrinps
Any suggestions as to how to go about adding padding or margins? I've never dealt with doing that. Also, as to adding gravity, I already do that. Do you have a suggestion other than what I have done? On Dec 10, 9:16 am, TreKing treking...@gmail.com wrote: On Thu, Dec 9, 2010 at 10:34 PM,

[android-developers] Developing for tablets-high res

2010-12-10 Thread brian purgert
Sorry if some one has asked this before but I have a problem. Im making a game and I have 3 folder for drawables hdpi ldpi mdpi but even hdpi is only made for systems with resolutions of up to 480 by 854, and some tables have resoultions with 1024 by 600 pixels -- You received this message

Re: [android-developers] Re: Combining an image

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 2:51 PM, darrinps darri...@gmail.com wrote: Any suggestions as to how to go about adding padding or margins? I've never dealt with doing that. I'd probably just set all padding and margins to 0 if you want them to align and be flush. These are just properties of the

Re: [android-developers] Developing for tablets-high res

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 2:53 PM, brian purgert brianpurge...@gmail.comwrote: Sorry if some one has asked this before but I have a problem. Im making a game and I have 3 folder for drawables hdpi ldpi mdpi but even hdpi is only made for systems with resolutions of up to 480 by 854, and some

Re: [android-developers] Developing for tablets-high res

2010-12-10 Thread Kostya Vasilyev
Brian, The ldpi, mdpi, etc. are pixel densities, not the number of pixels on the screen. 1024 by 600 at 10 is matched by a -large qualifier. http://innovator.samsungmobile.com/galaxyTab.do Be careful with it, though: just -large is also matched by a screen that's 480 by 800/854 with pixel

[android-developers] Questions about Updating of Pre-Installed or Built-In Apps

2010-12-10 Thread Brion Emde
My employer has a customer with the good fortune of having products that will be shipped with some OEM devices. This has raised some questions about updating the application that, despite having researched this subject on this group and in some others, we are still unsure about. 1) It appears

[android-developers] SDK versions and another screen question

2010-12-10 Thread brian purgert
Ok what does the target sdk mean. Because I want to support xlarge screens but in the sdk it says it is 2.3 only so how do I support the xlarge screens wile still supporting android 1.6 and im confused with the screen sizes and dpi's because I don't really see any diffrance in a phone that is

[android-developers] Re: dex in ant with external libs in SDK tools R8

2010-12-10 Thread Andreas
Ok, I can confirm the bug is not happening with the latest ant version. My bad. However if using the wrong ant version is creating such strange mistakes you might consider making it mandatory or at least print a big fat warning. -- Andreas On Dec 10, 12:01 pm, Xavier Ducrohet x...@android.com

[android-developers] Re: Free version of paid app

2010-12-10 Thread Nathan
On Dec 10, 11:20 am, Viktor Linder linder.vik...@gmail.com wrote: In your experience, has a free version helped more people discover your app? No. If by discover, you mean find, no. Why do I say that? A keyword search will include both paid and free results, so you can generally make a paid

[android-developers] Re: dex in ant with external libs in SDK tools R8

2010-12-10 Thread Andreas
Upps, did jsut now read they you are actually already planing to fail. :-) Good then... -- Andreas On Dec 10, 12:01 pm, Xavier Ducrohet x...@android.com wrote: hmm if you use the proper version of Ant this should not be required. I double checked it a few days ago. you do need Ant 1.8 On

[android-developers] GPS

2010-12-10 Thread Hendrik Greving
I know how to read the GPS status etc. but how do I turn the chip on/off? There is nothing in LocationManager/Provider or GpsStatus or Satellite -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] GPS

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 6:47 PM, Hendrik Greving fourhend...@gmail.comwrote: I know how to read the GPS status etc. but how do I turn the chip on/off? You can't. You can bring up the settings screen to let the user turn it on or off, if they want.

[android-developers] Re: GPS

2010-12-10 Thread ip332
It will be turned on when you request location updates (if it is enabled in the Location/GPS settings) On Dec 10, 4:47 pm, Hendrik Greving fourhend...@gmail.com wrote: I know how to read the GPS status etc. but how do I turn the chip on/off? There is nothing in LocationManager/Provider or

Re: [android-developers] GPS

2010-12-10 Thread Hendrik Greving
Eww. I just read about this. I guess this is a FAQ, but why can the Power Control Widget do this? - Original Message - From: TreKing To: android-developers@googlegroups.com Sent: Friday, December 10, 2010 4:47 PM Subject: Re: [android-developers] GPS On Fri, Dec 10, 2010

[android-developers] Multitouch Gestures

2010-12-10 Thread Paul
Hi there. I am trying to implement a custom GestureDetector for a small multitouch app. Essentially, the app is trying to approximate pressure using time, in a 'build-up' pattern such that the longer you leave a finger in the same place, the more 'ink' I write to the screen under the finger. I

[android-developers] Re: Looking for intents to control a media player

2010-12-10 Thread neuromit
Right but I was going that there would be a standard set of that would get piped to the user specified default player. so if this standard set of intents doesn't exist how do default applications work? If I want to send a sms from my app it can launch the default Messaging app without even

[android-developers] HOW TO COPY A PHONE NUMBER FROM PHONE LOG

2010-12-10 Thread Dr Jafry
Hi, I am a oral surgeon and i get lots of emergency calls from my clients. Most of the clients are not becoming costmars, they just want to discus some issue. so i need to copy their phone numbers to my calender to call them later its very important. because mostly its a one time call so i do

Re: [android-developers] Re: Looking for intents to control a media player

2010-12-10 Thread Mark Murphy
On Fri, Dec 10, 2010 at 8:08 PM, neuromit stuart.lay...@gmail.com wrote: Right but I was going that there would be a standard set of  that would get piped to the user specified default player. ACTION_VIEW on a Uri to some media file should work for that. so if this standard set of intents

[android-developers] Re: GPS

2010-12-10 Thread ip332
Do what? Turn GPS on upon clicking on GPS in the Settings/location? If you come from the in-car navigation world then this scenario looks weird. However battery life is one of the most critical parameters for a mobile phone therefore it makes sense to turn hardware on only when there is a client

[android-developers] Re: GPS

2010-12-10 Thread Nathan
It probably has 'Write System Settings' permission or maybe even 'Write Secure System Settings' permission. These are probably very scary sounding permissions to ask for, but a built in widget never had to ask for them. Nathan On Dec 10, 4:59 pm, Hendrik Greving fourhend...@gmail.com wrote:

Re: [android-developers] Re: GPS

2010-12-10 Thread Hendrik Greving
I've actually just tried that. But even if I put the permission in the manifest, it still makes a security exception that this permission was missing - Original Message - From: Nathan critter...@crittermap.com To: Android Developers android-developers@googlegroups.com Sent: Friday,

[android-developers] Re: Looking for intents to control a media player

2010-12-10 Thread neuromit
Sorry I posted that from my phone and it didn't come out right. I was hoping that there would be a set of system intents that would be passed on to whatever app is designated by the user as the default app. Perhaps I don't understand the inner workings of android enough but I just assumed that

[android-developers] Re: Looking for intents to control a media player

2010-12-10 Thread neuromit
Mark, thanks for your reply! On Dec 10, 9:09 pm, neuromit stuart.lay...@gmail.com wrote: Sorry I posted that from my phone and it didn't come out right. I was hoping that there would be a set of system intents that would be passed on to whatever app is designated by the user as the default

Re: [android-developers] Re: Looking for intents to control a media player

2010-12-10 Thread Mark Murphy
On Fri, Dec 10, 2010 at 9:09 PM, neuromit stuart.lay...@gmail.com wrote: So if I have to use player specific intents for each different media player, what is the best way to discover which intents an application supports? Read the player's developer documentation. If the player lacks such

Re: [android-developers] Application unavailable in Android Market

2010-12-10 Thread Pedro Duque
Thank you TreKing, Of course I'm limiting the test to =Eclair version. I tried it on a Galaxy Tab and other Samsung Galaxy S... but maybe it's a problem in Portuguese Android Market. I'm trying to get more tests locally. Thanks again, Pedro Duque On 10 December 2010 18:42, TreKing

Re: [android-developers] Application unavailable in Android Market

2010-12-10 Thread Stephen Jungels
Your apps are visible in the US market on my Droid X (Android 2.2) test device. They're not visible on my Galaxy S (2.1) test device. One thing to look at is the copy protection setting in the developer console. --SJ On Fri, Dec 10, 2010 at 9:27 PM, Pedro Duque pmdu...@gmail.com wrote: Thank

[android-developers] Re: How to control the width and height of Alert dialog.

2010-12-10 Thread sat
@Viktor - I am calling alert dialog on clicking a button , I am setting contentView in On create , on click of a button calling the alertDialog code. On Dec 10, 10:50 pm, viktor victor.scherb...@gmail.com wrote: Did you set layout after setting content view? It works for me, but I extend the

[android-developers] Re: Combining an image

2010-12-10 Thread darrinps
That doesn't seem to help any (tried every combination I could think of) I was able to get it to align by using a RelativeLayout inside of each table row, BUT the entire combined image is shifted to the left when I do that and I cannot get it to re-center. What I did then was like this:

[android-developers] Re: How to control the width and height of Alert dialog.

2010-12-10 Thread sat
Hi, Can you point me to some examples where AlertDialogs are built using Dialog class ? I have seen Custom dialog box code , where I can refer to XML and set the contentView. But my requirement is, depending on the array of strings I would like to show them as a textview inside an AlertDialog ,

[android-developers] Who has the Google Ion source?

2010-12-10 Thread BobG
HTC doesnt seem to claim the Google Ion. I hear its similar to a sapphire or a dream. Is it on Google somewhere? Who releases new OS versions? Google? HTC? T-mobile? HTC support won't say what chip is used in the audio codec. How can that be a secret? There must be a mic gain bit in a reg

[android-developers] notifyDataSetChanged not updating view

2010-12-10 Thread pramod.deore
As per the Docs notifyDataSetChanged ()-Notifies the attached View that the underlying data has been changed and it should refresh itself. In my application I am calling notifyDataSetChanged but still my view is not updates automatically. To update view I have to press Back button and ahain when

[android-developers] No receiving packets from Emulator

2010-12-10 Thread Naruto
Hi Friends, I have written Java coding to develop a simple application using Android emulator in Eclipse. ( Scenario - I need to send UDP packets to particular IP address also to the corresponding port numer which I mentioned ). My code is working properly when I try to rum my code it is

Re: [android-developers] Edittext mask

2010-12-10 Thread Paulo Nonaka
At least someone knows how to make a mask field on Android? 2010/12/9 Rogério de Souza Moraes rogerio.so...@gmail.com Hi TreKing, thanks for helping me. i created an video on youtube to show the problem: http://www.youtube.com/watch?v=pwZp9s9su10 The source code:

Re: [android-developers] Re: What Tablet would you get

2010-12-10 Thread Toan Pham
I use a Nookcolor, there's no market place yet. However, some people have reported to get market place working after installing YouTube app. I tried it and it did not work on mine. Also, many applications that rely on google account info also do not work. One example is google reader. NC is

[android-developers] Re: Poor SQLite implementation? first time data access way to slow

2010-12-10 Thread Jon Shemitz
On a previous generation of smartphone hardware, a 1msec difference in db access on an UML [User Mode Linux] emulator turned into a whole second difference on a Zylonite board. So a 120x difference between desktop hardware with a hard disk and an Android device with flash memory doesn't seem at

[android-developers] Re: monkeyrunner fails for emulator: Error starting command: monkey --port 12345

2010-12-10 Thread Greg
Try replacing your call to startActivity with: device.startActivity(component='com.collabera.swarup/.DummyActivity') Greg On Dec 9, 1:11 pm, swarup me.s...@gmail.com wrote: Nope, ignoring didn't help, its not launching target activity. The menu key is getting pressed on the home screen itself,

Re: [android-developers] Re: GPS

2010-12-10 Thread Hendrik Greving
The power control plus application can do it. So what's the trick? - Original Message - From: Nathan critter...@crittermap.com To: Android Developers android-developers@googlegroups.com Sent: Friday, December 10, 2010 5:34 PM Subject: [android-developers] Re: GPS It probably has

[android-developers] setContentView and setRenderer is changeable?

2010-12-10 Thread GeorgeV
Can I set another view, like mGLSurfaceView, if this code was exuted? Like: onCreate(): ... mGLSurfaceView = new GameSurfaceView(this); setContentView(mGLSurfaceView); // It's works ... ChangeSurface(): ... xGLSurfaceView = new GameSurfaceView(this); setContentView(xGLSurfaceView); // It's not

[android-developers] New to Android - sample app doesn't do anything

2010-12-10 Thread rick777
I'm new to Android, but have done Java, GWT, and App Engine development in the past. I'm running Eclipse 3.6 on Ubuntu 10.04. I installed the Eclipse development plugin, created an avd, installed the android samples, and created an Eclipse project with the NotesList sample. When I run the project

[android-developers] What to use instead of a very long ListPreference?

2010-12-10 Thread CMoi
Hi, I have an app which has two options which are train stations. I used ListPreference but there are more than 1000 entries and ListPreference does not allow anything except spending a very long time scrolling. Is there a similar class with keyboard filtering or should I code it all? -- You

[android-developers] Adapter fetches and parses RSS feed to get its data - best practice?

2010-12-10 Thread jim
In a shared project, we have an Adapter class (extends BaseAdapter, implements ListAdapter). In its constructor, this class fetches an RSS feed from the internet and parses the returned XML document to obtain the data it will 'adapt'; the data is kept in a private class variable. This is seen as

[android-developers] Re: NFC Demo errors?

2010-12-10 Thread Mark666
Just install guava-r07.jar, not install guava-r07-gwt.jar to avoid some errors. On 12月10日, 上午6時26分, if05...@gmail.com wrote: Download the guava library from the link below. Add that library to your libs dir. add that library to your classpath. Powered by Telkomsel BlackBerry(R)

[android-developers] Need to play audio to the caller

2010-12-10 Thread GauravN
Hi Guru's, For my app I need to play a pre recorded message to the caller. Say if someone calls my phone and I enable the app it should play back the audio such that the caller hears it. I tried setting the stream STREAM_DTMF,STREAM_VOICE_CALL ... (tried all of them) but nothing worked.

[android-developers] Android WebView

2010-12-10 Thread ankur
Hi, I am developing an app in android using WebView. My HTML page is coming from the server. The page contains a lot oh high resolution images, is there a way to store and reference those images from the assets folder, or reference local images. That will help me increase the performance. I

[android-developers] Facebook connect works in Emulator but not on Mobile

2010-12-10 Thread Stephan Wiesner
Hi, i have downloaded the facbook sdk from github and the sample code works for me - on the emulator. The same code does not work on my Samsung Galaxy i9000, though. I get a key error. I use a key genereated by adding an application to Facebook, as described in the facebook sdk. I have not

[android-developers] Editing video on android

2010-12-10 Thread Raj
Is there any support in Android development for editing/encoding videos ? The possibility to trim, crop, resize or encode the video to a new format and save as a new file is very essential for any phone development platform. Is there any support for this at present ? Or any thing planned for

[android-developers] Re: Problems changing the drawable on a Button

2010-12-10 Thread Carl Lee
Maybe you should just simply use button.setBackgroundDrawable(R.drawable.something) In addition, you should also write a selector xml like this: ?xml version=1.0 encoding=UTF-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true

[android-developers] softkeyboard sample not activated

2010-12-10 Thread hhenne
Hi, I am starting to write an InputMethod. My first step is to deploy the sample: softkeyboard - my only change is to include some Log statements in the on??? methods. I have deployed it on a device (Sony Xperia 8) and on the emulator. It seems to be installed OK, and I can see the process is

[android-developers] Beginner questions

2010-12-10 Thread JY Kim
Hello. I am beginner in android and my focus is on porting, but I think I also need to learn to write application. I have 2 questions 1. Is eclipse essential in android application writing? Read through hello world program on android developer site, I thought I shoud use eclipse. Application was

[android-developers] softkeyboard sample problem solved

2010-12-10 Thread hhenne
I found the solution in this forum. What I missed was the LONG press in an input field. That activates a menu where you can change input method. -- 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] How I can make transparent Keyguard

2010-12-10 Thread agent-10
Hi, I've change the behavior of LockScreen.java to my own but I don't know how to make transparent or translucent Keyguard. I just wanna see behind windows(e.g Home app, another users activities etc). I suppose that I should change something in KeyguardViewManager.java in show() function but I

[android-developers] emulator stuck in android logo screen

2010-12-10 Thread Mofajjal Hossain
I can't start up emulator , it's getting stucked in ANDROID logo screen . -- I have Eclipse Galilio -- Ubuntu 10.10 -- Open JDK 6 , JRE 6 -- downloaded latest android SDK and ADT Tried from terminal by creating new AVD and also have tried from running from Eclipse but it doesn't starts.

[android-developers] Android Emulator 2.3

2010-12-10 Thread Jim
I'm finding several regressions in this emulator rev. First is the performance degradation which several others have noted. I'm also finding problems with the Emulator Control Panel. I can't send new lat/long coordinates to an application, and I can't emulate receiving an SMS message. These

Re: [android-developers] Edittext mask

2010-12-10 Thread Paulo Nonaka
Hi folks, This problem can be resolved configuring the attribute imeOptions=flagNoExtractUi. For example: this.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI); ... or ... EditText android:imeOptions=flagNoExtractUi by xml I found it in:

[android-developers] L2cap

2010-12-10 Thread Benni
Hi all, I wote an J2me application that uses the l2cap bluetooth protocol. Is there a way to connect to this device with an android phone? Is there a l2cap support? Benni -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Android OpenGL ES 2 Emulator

2010-12-10 Thread sergei_ua
Anybody know when Android Emulator will support OpenGL ES 2? may be Android 3.0? Now I use MSVC++ with OpenGL ES 2 emulator (http:// www.malideveloper.com/developer-resources/tools/opengl-es-20-emulator.php) It fast and easy way to develop but it not convenient to transfer it on Eclipse +

[android-developers] apps became empty shells on Nexus One, then flash memory size seems reduced

2010-12-10 Thread Charlie
Hi, I had been happily using my N1 when one night it shut itself down due to the battery running down. After charging it, I turned it back on and found that all of the apps (except those stored on the SD card) had stopped worked, reporting Could not launch the requested activity. Eventually I

[android-developers] Samsung GT-I5800 not detected by latest SDK Tools 8

2010-12-10 Thread Stefano Sanna (gerdavax)
Hello. I've just upgraded my development environment to latest SDK Tools revision 8. After such an upgrade, the Samsung GT-I5800 is no longer detected by adb. I've tried on different machines with the same result: the Samsung Galaxy Mini stopped to work after the update. Is there any way to

[android-developers] Master/King/Uninterruptible App

2010-12-10 Thread Catbert
I'm trying to write a top priority app for my personal project (not to be published to the Market) and I don't want the phone or anything other app to interrupt it while it's running (most importantly, I don't want the process manager in Android to kill it for any reason). I'm totally aware this

[android-developers] TextWatcher events are handled before OnItemClickListener events in autocompletetextview

2010-12-10 Thread maydin
Hi, I have an autocompletetextview which implements OnItemClickListener and TextWatcher. When i select (click) an autocomplete list item, it firstly enters to aftertextchanged ,then to onItemClick method. I think the order is wrong.How can i prevent this? -- You received this message because

[android-developers] Re: Problem of debug build.

2010-12-10 Thread Bill Haake
Me too. MyEclipse Enterprise Workbench 8.6.1 (Eclipse Base 3.5.2) Android SDK Tools, revision 8 Android SDK Platform-tools, revision 1 ADT and DDMS 8.0.1v201012062107-8221, Motorola Droid Sholes 2.2.1 -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: invoking of native application by using intents

2010-12-10 Thread Arjun
Greetings Marc, It works fine when I run your application and click on the link on the commons ware sample page. The problem becomes more subtle, when you post this link to face book and users pressing that link from the mobile browser will not show you application as part of intent chooser.

[android-developers] No TextToSpeech during phone-ring with wired headset

2010-12-10 Thread marten
Hello, I'm developing a small app, which, among other things, will say the caller ID when the phone is ringing. I know that Android is capable of doing this itself, but at least on my phone I can not limit this feature in a way that the caller ID is said when the wired headset is attached only. I

[android-developers] home screen widget drag or scroll

2010-12-10 Thread KlausSK8
I'm trying to understand or make something like a Twitter widget or contacts with picture widget. This widgets on home screen, allows the user to hold your finger in it, so dragging up the content as a scrollview I tried to find in google search by android home screen scroll android widget scroll

[android-developers] Re: Can someone test my game LG Ally and Motorola Devour

2010-12-10 Thread Cactus Mitch
acr, I have an Ally and am learning development. I'd give it a try. cM, On Dec 9, 10:45 pm, acr acr...@gmail.com wrote: Hi, My game has been on the market for a week now with no issues. However I got an email from 2 people yesterday saying that they are having problems with the game on

<    1   2   3   >