Re: [android-developers] Dialog dismiss()

2011-09-08 Thread TreKing
On Thu, Sep 8, 2011 at 2:14 PM, Greg Donald gdon...@gmail.com wrote: How can I keep my dismiss() calls from blowing up? Keep a class-level reference to the dialog and dismiss it if you're being destroyed. Or use showDialog() / dismissDialog(). The issue (I ran into this): 1 - You show your

[android-developers] ViewFlipper with arbitrary number of Views

2011-09-08 Thread Pinheiro
Hi! I'm developing a simple photo gallery application that pulls files from the Net and uses a ViewFlipper to change Views. Since I don't know how many Views the ViewFlipper will have, I have to add all the views in code and not in XML. My question is: are all the Views of the ViewFlipper loaded

Re: [android-developers] log disappears

2011-09-08 Thread TreKing
There's a bug where after the logcat buffer gets full it wipes itself continuously (you'll see one line at the top sometimes). If you hit the little red X icon in the LogCat view, it will clear it out and let it start over until it's full again.

Re: [android-developers] ViewFlipper with arbitrary number of Views

2011-09-08 Thread Mark Murphy
On Thu, Sep 8, 2011 at 3:45 PM, Pinheiro rui.c.pinhe...@gmail.com wrote: I'm developing a simple photo gallery application that pulls files from the Net and uses a ViewFlipper to change Views. Since I don't know how many Views the ViewFlipper will have, I have to add all the views in code and

[android-developers] Re: ViewFlipper with arbitrary number of Views

2011-09-08 Thread Pinheiro
Thanks for the fast reply, it confirms my fears :-| AdapterViewFlipper on Honeycomb. Opsssieee, no can do... the app has to be compatible with 2.2. -- 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: Live wallpaper thumbnail 208x192?

2011-09-08 Thread nadam
It's 208x192 on the Xoom. Not square. Other people have noticed this too. http://blog.perpetumdesign.com/2011/04/honeycomb-live-wallpaper-icon-mystery.html Adding an xhdpi drawable doesn't make any difference since the Xoom is an mdpi device. However, I can add a 208x192 drawable to drawable-

[android-developers] Re: Publish modified APK to the Android Market without triggering an Update to existing users?

2011-09-08 Thread BenMc
I don't think you can do that. My users have been understanding of updates that have to go out for the sake of compatibility with other devices. I use minor version numbers like 3.0.1, .3.0.2 etc for minor fixes or compatibility updates, and when they run the app after an update, it shows what

[android-developers] Re: Filenot found exception

2011-09-08 Thread Jeremy Dagorn
Hi, It is better to access sdcard by doing the following : File SDCardFolder = new File(Environment.getExternalStorageDir()+/ yourfolder); // test it : if (SDCardFolder.exists()) String[] contentFolder = SDCardFolder.list(); Check also if your permissions are well located in your manifest

[android-developers] Re: disable horizontal scrolling on a WebView

2011-09-08 Thread Jeremy Dagorn
Hi, myWebView.setHorizontalScrollBarEnabled(false);? best, On Sep 8, 1:43 pm, bob b...@coolgroups.com wrote: Anyone know how to disable horizontal scrolling on a WebView? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: video frame transcoding in android

2011-09-08 Thread Drezden
You have too many questions, just hire someone to do it for you. On Sep 7, 5:45 am, NAVI NEW navi44...@gmail.com wrote: Please help me how to do video frame trans-coding in android -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: how to Change resolution of video by java /Android code

2011-09-08 Thread Drezden
Go away. On Sep 7, 4:16 am, NAVI NEW navi44...@gmail.com wrote: i have a video which have which containing  different video resolution, i want give it fix resolution by code.It's possible or not by code -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Upgrading from 1.6 to 2.2+

2011-09-08 Thread kypriakos
Hi guys, apologies for the vagueness. We wrote apps using API 4 to run on HTC G1 development phones that can run at the max Android 1.6. We wanted to port a number of them to Android 2.2+ without (which was the first mistake) testing them on actual hardware that does run that OS. Would such

[android-developers] can you switch screen orientation via an app?

2011-09-08 Thread Jim Graham
My new tablet (Archos 101IT) thanks to a friend from college) allows you to lock the screen orientation in either portrait or landscape, IF you want to. 99% of the time, I like to keep it in landscape mode. HOWEVER, there are a few apps which really work best in portrait. As it is now, I have

[android-developers] Re: Upgrading from 1.6 to 2.2+

2011-09-08 Thread kypriakos
Scratch the without (which was the first mistake) testing them on actual hardware that does run that OS. We are planning this upgrade now but we don't have the hardware for it yet so we will be testing them on emulators. That was a different posting I had - I cannot see any dev phones on the

Re: [android-developers] Re: Upgrading from 1.6 to 2.2+

2011-09-08 Thread Mark Murphy
On Thu, Sep 8, 2011 at 4:40 PM, kypriakos demet...@ece.neu.edu wrote: Would such phones run apps written with API 4 without major overhaul? Unless your apps are doing something very strange, they should run fine. Again, if these app are on the Market, they are probably already running on newer

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread Greg Donald
On Thu, Sep 8, 2011 at 2:29 PM, TreKing treking...@gmail.com wrote: On Thu, Sep 8, 2011 at 2:14 PM, Greg Donald gdon...@gmail.com wrote: How can I keep my dismiss() calls from blowing up? Keep a class-level reference to the dialog and dismiss it if you're being destroyed. Well, I just have

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread Miguel Morales
The problem is that you are attempting to update the UI in a foreign thread. This line: progressDialog.dismiss(); You seem to be using a handler, so just change it to: handler.postRunnable(new Runnable() { @Override public void run() { progressDialog.dismiss(); }); Don't ever

[android-developers] What is wavelock in PowerManager API

2011-09-08 Thread Sarath Krishna
I was reading about PowerManager API . But, I couldn't understand the term wavelock. What is a wavelock? What does it exactly do? -- 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] Dialog dismiss()

2011-09-08 Thread Miguel Morales
Actually, don't use a ProgressDialog, use Activity.showDialog() instead. This handles device orientation. On Thu, Sep 8, 2011 at 2:41 PM, Miguel Morales therevolti...@gmail.com wrote: The problem is that you are attempting to update the UI in a foreign thread. This line:

[android-developers] dialog

2011-09-08 Thread bob
Can someone tell me how to pop up a dialog with two buttons on it that say Facebook and Twitter? -- 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

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread TreKing
On Thu, Sep 8, 2011 at 4:30 PM, Greg Donald gdon...@gmail.com wrote: I don't get why if( this != null ) evaluates to true when the stack trace seems to imply the Activity is gone already. Be careful - in you code *this* refers to the thread itself, *not* the Activity. In any case, the parent

[android-developers] error compiling .aidl file

2011-09-08 Thread Chetan Dhillon
Hi, I have a very simple .aidl file that I am getting error compiling. Here is my IPresence.aidl: package com.sample.presence; import com.sample.presence.StatusMessage; interface IPresence { int setStatusMessage(in String msg); } I also have StatusMessage.aidl in the package defined

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread Miguel Morales
dismiss() can be called from any thread: http://developer.android.com/reference/android/app/Dialog.html#dismiss() It just queues the dialog up for cleanup - or something along those lines. Hmm, I see. I would argue it shouldn't be thread safe, since it violates the don't touch the UI rule.

Re: [android-developers] dialog

2011-09-08 Thread Miguel Morales
Override the dialog class and set your own layout. I *think* dialog builder also has a method for setting your own layout. On Thu, Sep 8, 2011 at 3:09 PM, bob b...@coolgroups.com wrote: Can someone tell me how to pop up a dialog with two buttons on it that say Facebook and Twitter? -- You

Re: [android-developers] What is wavelock in PowerManager API

2011-09-08 Thread Mark Murphy
On Thu, Sep 8, 2011 at 5:42 PM, Sarath Krishna sarathkrishn...@gmail.com wrote: I was reading about PowerManager API . But, I couldn't understand the term wavelock.  What is a wavelock? What does it exactly do? There is no wavelock. There is WakeLock. An acquired WakeLock keeps the device awake

Re: [android-developers] What is wavelock in PowerManager API

2011-09-08 Thread Pratik Prajapati
copied Wakelock documentation below. Wakelocks = A locked wakelock, depending on its type, prevents the system from entering suspend or other low-power states. When creating a wakelock, you can select if it prevents suspend or low-power idle states. If the type is set to

[android-developers] Odex file Information

2011-09-08 Thread manan
Hi I want to have some information about odex files. I have never used this in my application, i have always used classes.dex files. My questions is 1. What do I need to do to create odex files 2. Is there any problem I can have when upgrading my apps from market in this case. Thanks, Manan --

[android-developers] ContactsContract.CommonDataKinds.Organization.OFFICE_LOCATION

2011-09-08 Thread Goutom
Hi what is this?It retuns null though my org_work_address is entered. ContactsContract.CommonDataKinds.Organization.OFFICE_LOCATION Thanks in advance. Regards Goutom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: log disappears

2011-09-08 Thread Indicator Veritatis
A common reason for its disappearance is that Eclipse somehow lost track of which device it is supposed to be connected to. Clock on the little 'Device' icon in the DDMS perspective to make it come back. But this irritating disappearing trick, and a few other inconveniences, is why for serious

Re: Fwd: [android-developers] Re: soap webservie (celsius to fareheit

2011-09-08 Thread Indicator Veritatis
Why is a SocketException being reported as 'WARN'? This is a fatal error, not a mere warning. And this trace does not contain enough information for us to see why it is timing out. You would be better off running Wireshark to see if you get to the network at all, double check the URL, IP address

[android-developers] Re: close button

2011-09-08 Thread Indicator Veritatis
Mark is right. Implementing a 'close box' under Android is a bad idea, because it is misleading to the user. The truth is that the Android OS does NOT support the notion of 'close' for apps. It implements a different paradigm, one more like SymbianOS (yechh!) than like Windows. The user leaves

[android-developers] Re: Inflating editext into AlertDialog...

2011-09-08 Thread sblantipodi
but I think that there is another way to prompt a user for an input that shows the softkeyboard automatically. what is the working method to do this? On Sep 8, 7:54 pm, TreKing treking...@gmail.com wrote: On Thu, Sep 8, 2011 at 12:37 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: that

[android-developers] Re: Finding if the Soft Input Method is visible

2011-09-08 Thread sblantipodi
store the value of the height and width at startup and compare the height with the initial value. On Sep 8, 8:50 pm, guich guiha...@gmail.com wrote: Hi, Is there a way to know if the SIM is visible or not? I'm using the android:windowSoftInputMode=adjustResize in the manifest, but i can't

Re: [android-developers] Re: Inflating editext into AlertDialog...

2011-09-08 Thread TreKing
On Thu, Sep 8, 2011 at 8:00 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: what is the working method to do this? There didn't seem to be one, from what I remember from that last discussion. -

Re: [android-developers] Export Data from my app

2011-09-08 Thread TreKing
2011/9/8 ΙΟΥΛΙΑ ΓΡΗΓΟΡΙΑΔΟΥ iouliag...@gmail.com *Copying your existing database seems like a simple solution.* Copying? just pick data row-row to a file? I don't know much about SQLite, but a file is a file so you should be able to do some standard read-from file-A-then-write-to-file-B

[android-developers] Re: Need your help: how to monitor the dialpad key press action in another application during an active call?

2011-09-08 Thread xavier
Security concern? Not sure, why? I just want to display some suggestive info to direct the caller using the DTMF.. On Sep 8, 8:15 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 8, 2011 at 1:28 AM, xavier bzp1...@gmail.com wrote: I know that I can't replace the default

Re: [android-developers] Re: Need your help: how to monitor the dialpad key press action in another application during an active call?

2011-09-08 Thread Dianne Hackborn
Enter your voice mail pin. Hi, this is your bank, enter your account number. On Thu, Sep 8, 2011 at 6:36 PM, xavier bzp1...@gmail.com wrote: Security concern? Not sure, why? I just want to display some suggestive info to direct the caller using the DTMF.. On Sep 8, 8:15 pm, Mark Murphy

Re: [android-developers] Re: Need your help: how to monitor the dialpad key press action in another application during an active call?

2011-09-08 Thread Matt Powers
Hahahahahaahhahaa On Sep 8, 2011, at 9:51 PM, Dianne Hackborn hack...@android.com wrote: Enter your voice mail pin. Hi, this is your bank, enter your account number. On Thu, Sep 8, 2011 at 6:36 PM, xavier bzp1...@gmail.com wrote: Security concern? Not sure, why? I just want to display

[android-developers] Sharekit

2011-09-08 Thread bob
Does anyone know how Sharekit shortens URLs? I need to do the same thing on Android. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

Re: [android-developers] Re: Publish modified APK to the Android Market without triggering an Update to existing users?

2011-09-08 Thread Nikolay Elenkov
On Fri, Sep 9, 2011 at 3:38 AM, Paul idi...@gmail.com wrote: I for one however, do not want to experiment with a top selling app by attempting to publish something and get an error or have unexpected results. So I was hoping that someone else had actual experience trying it and could share.

[android-developers] Re: How to obtain the tweets of a programatically given Twitter user without registering my app on dev.twitter.com?

2011-09-08 Thread albnok
You should get a new key for each app. Anyway the process of asking isn't that hard once you've done it. That said you don't need any keys to use the Twitter Search API that I mentioned earlier. On Sep 8, 3:38 pm, saex elpablos...@gmail.com wrote: You can use the same key secret key in a lot

[android-developers] Re: Need your help: how to monitor the dialpad key press action in another application during an active call?

2011-09-08 Thread xavier
Hah, how about playing the annc at the same time while display? Isn’t it better? On Sep 9, 9:58 am, Matt Powers mtpow...@gmail.com wrote: Hahahahahaahhahaa On Sep 8, 2011, at 9:51 PM, Dianne Hackborn hack...@android.com wrote: Enter your voice mail pin. Hi, this is your bank, enter

[android-developers] Cure your android cancer

2011-09-08 Thread Ryan Mattison
Hi, I'm surprised, I wrote a snippet tool to cure one of the 5,000 Android cancer cells running through your veins. Only a 50-100 downloaders. http://marketplace.eclipse.org/node/113218 This should should feel like heroin. Once a brilliant idea for an OS now a garbage dump, get whatever you

[android-developers] Outgoing Number Broadcast Receiver.

2011-09-08 Thread lb
Hi, I'm not sure if this is known issue at least I see some problems being reported in older posts. I dynamically registered a broadcast receiver in my Service class for Outgoing call - code snip is below: onCreate() { : IntentFilter ifNum = new IntentFilter();

[android-developers] cancel button

2011-09-08 Thread bob
Is there any easy way to add a cancel button to this? AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(t); builder.setMessage(m); builder.setCancelable(true); builder.setPositiveButton(Facebook, new OnClickListener() {

[android-developers] Re: Got the Bluetooth blues: Service Discovery Failed

2011-09-08 Thread gjs
Hi, Are you sure you are using the correct UUID value for your device ? The default UUID in bluetoothchat usually needs to be changed, see the Android bluetooth docs. Regards On Sep 8, 2:45 pm, darrinps darri...@gmail.com wrote: I've been fighting this for a long time now and thought I'd ask

[android-developers] cancel button

2011-09-08 Thread Chris
Bob, my friends -- 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: cancel button

2011-09-08 Thread Chris
Sorry wrong thread. -- 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

[android-developers] getting emulator console using telnet

2011-09-08 Thread krishna chaitanya
hi all, I am trying to simulate location updates using emulator console using telnet. I am using windows vista, and when i am trying to connect to emulator at port 5554 its showing that telnet is not recognized as internal or external command. i am using C:\ telnet localhost emulator 5554 any

[android-developers] getting emulator console using telnet

2011-09-08 Thread krishna chaitanya
hi all, I am trying to simulate location updates using emulator console using telnet. I am using windows vista, and when i am trying to connect to emulator at port 5554 its showing that telnet is not recognized as internal or external command. i am using C:\ telnet localhost emulator 5554 any

[android-developers] Re: getting emulator console using telnet

2011-09-08 Thread krishna chaitanya
ok sori guys. the thing is that by default telnet doesnot work in vista. so we need to install the telnet client in vista first for this command to work Control panel - programs and features - Turn windows features on or off - select telnet client installation takes few minutes. u r done ...

<    1   2