[android-developers] Re: JSONObject order

2010-02-09 Thread Kasra Rahjerdi
Thank you very much, I implemented this method and it works beautifully. On Feb 9, 10:29 pm, Bob Kerns wrote: > I forgot about your last sentence by the time I got finished > (descending order keys), so you'll be able to apply the simpler > approach: > > On Feb 9, 10:26 pm, Bob Kerns wrote: > >

Re: [android-developers] Re: Flash file android

2010-02-09 Thread Narendra Bagade
Actually i want to use flash file in android. Is it possible? On Wed, Feb 10, 2010 at 12:55 AM, ko5tik wrote: > http://admob.com > > This is advertising provider - gives you small library & ad code > and your application starts to give you PROFIT > > > On Feb 9, 4:13 pm, Narendra Bagade wro

[android-developers] Re: Showing Custom Dialog

2010-02-09 Thread YCH
Thanks for your info. The implementation of my input box class is public class InputDialog extends Dialog { public InputDialog(Context context) { super(context); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstance

[android-developers] DB Android Blogger & Android Developer

2010-02-09 Thread Sasikumar.S
Hi, What's the Difference Between Android Blogger & Android Developer?... -- Thanks & Regards Sasikumar.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 unsubs

Re: [android-developers] Showing Custom Dialog

2010-02-09 Thread venkat ranjit
Hi friend , i am sending code that displays alertDialog using AlertDialog class ok package no.freedommedia.featurebooster.cmd; import java.util.ArrayList; import java.util.concurrent.Semaphore; import android.app.Activity; import android.app.AlertDialog.Builder; import android.content.Cont

[android-developers] Re: JSONObject order

2010-02-09 Thread Bob Kerns
I forgot about your last sentence by the time I got finished (descending order keys), so you'll be able to apply the simpler approach: On Feb 9, 10:26 pm, Bob Kerns wrote: > But you can iterate over the keys you get back with JSONObject.keys(), > and store the keys in a TreeSet, sorted according

[android-developers] Re: JSONObject order

2010-02-09 Thread Bob Kerns
Your code is incorrect if you're relying on ordering. I'll get to that, but first some background which may come in handy: HashMaps are unordered. If you want to preserve order, there's LinkedHashMap, which retains the order, so when you iterate over the map, you get the order in which they were i

[android-developers] Re: Showing Custom Dialog

2010-02-09 Thread YCH
After replacing getApplicationContext() with "this", I am still having the same problem. Any ideas? Thanks! On Feb 9, 3:02 am, TreKing wrote: > DO NOT use getApplicationContext(), use *this*. > > > > On Sat, Feb 6, 2010 at 10:59 PM, YCH wrote: > > Hi, > > > I am new to android development and i

[android-developers] Keyboard Typing Error

2010-02-09 Thread Sasikumar.S
Hi, I have set my textview as editable. When i try to type in textview with my PC keyboard its working fine. When i tried with Android Keyboard it is showing 02-10 11:34:01.151: ERROR/AndroidRuntime(291): Uncaught handler: thread main exiting due to uncaught exception 02-10 11:34:01.200: ERROR/

Re: [android-developers] Re: Drawing to MapView Incredibly Slow

2010-02-09 Thread TreKing
On Tue, Feb 9, 2010 at 9:26 PM, aspekt9 wrote: > There must be faster way, how does google deal with > it when they display driving directions and they have all those path > lines and points and such? > Detect what is actually visible on screen and only draw those routes / points.

Re: [android-developers] "System.out.println(...)" statements within the onCreate

2010-02-09 Thread Sandeep Phansekar
Instant of System.out.println(...) use Log.e(" class/method name ","Error message"); And view the output in Logcat in Eclipse by the menus: Window -> Show View -> Other -> Android -> Logcat On Tue, Feb 9, 2010 at 9:07 AM, eehksar wrote: > Hi All, > > Am a newbie... > > could anyone explain

Re: [android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread TreKing
On Tue, Feb 9, 2010 at 6:09 PM, schwiz wrote: > Here is my revised > code http://pastebin.com/f1fb834ce right now I have my own textView > class in there that I plan to override onLongClick for but I have > tried this with a regular textView as well just to be sure, and it > still doesn't work.

[android-developers] system hangs while giving Android build

2010-02-09 Thread Saikat
I am giving product build in Android 1.6 in Ubuntu using make. First time it is fine. But next time onwards if I try to build it again without cleaning it, the system hangs after some time. Even if I try remove the out folder to clean, the system hangs. So every time a fresh build takes too much ti

[android-developers] TextView with Clear Button

2010-02-09 Thread Sasikumar.S
Hi, Please see the below link http://img69.yfrog.com/img69/8931/keyboardv.png In that you can see (first red circled) textbox with clear button. How to make like that button in android?... And the second red circled is How to make Enter button character to Go.? -- Thanks & Regards Sasikum

[android-developers] Re: How can I draw a simple shape with shapedrawable?

2010-02-09 Thread schwiz
You need to override the constructor that has the attributes argument, and then you just treat it like any other view in the xml file. like On Feb 9, 8:56 pm, Breezy wrote: > Okay, I see what you're talking about, but I guess my question is how > do I put that into my ImageView that's in my XML

[android-developers] Keyboard Character Replacement

2010-02-09 Thread Sasikumar.S
Hi, How to replace a keyboard character?.. Ex:- 'Enter' Button should be changed to 'Search' or 'Done' http://betterandroid.files.wordpress.com/2009/05/61.png http://betterandroid.files.wordpress.com/2009/05/51.png -- Thanks & Regard

Re: [android-developers] Re: WebView

2010-02-09 Thread Sandeep Phansekar
add following in your *manifest.xml* file -- Regards Sandeep On Wed, Feb 10, 2010 at 8:51 AM, Breezy wrote: > Does your layout XML look like this? > > > http://schemas.android.com/apk/res/ > android" >android:layout_width="fill_parent" >android:layout_height="fill_parent" >androi

Re: [android-developers] Re: Google Map Error

2010-02-09 Thread Sasikumar.S
Thank You Daniel. I'm not calling setContentView() on onCreat(). I'm calling setContentView() on some other method. According to my program i can't able to set setContentView() in onCreat(). How to recreate it , to see one more time. can you pls give suggestion?... On Tue, Feb 9, 2010 at 8:14

[android-developers] SQLiteDiskIOException happens when querying 4000 rows data with order by japanese kanji

2010-02-09 Thread James Wang
This topic is moved from plateform. Below is stack trace: E/DatabaseUtils( 260): Writing exception to parcel E/DatabaseUtils( 260): android.database.sqlite.SQLiteDiskIOException: disk I/O error E/DatabaseUtils( 260): at android.database.sqlite.SQLiteQuery.native_fill_window(Native Meth

[android-developers] Re: How can we know if Android is currently locked or not ?

2010-02-09 Thread Abhay dey
Does anyone has any idea about this ? On Tue, Feb 9, 2010 at 8:02 PM, Abhay dey wrote: > Hi, >I want to know whether currently android is locked or not. Is there any > API related to this which tells us whether phone locked ? > > > Abhay -- You received this message because you are subscri

[android-developers] Re: Using USB connection for data transfer

2010-02-09 Thread Nand
Hi Guobin, Thanks for the reply. But 1) is it possible to use this USB connection to transfer data between applications one running on Android phone and one running on my PC? 2)If yes, then are there any API's in android( like aPI's that are available for bluetooth) write the application? 3)If no A

[android-developers] JSONObject order

2010-02-09 Thread Kasra Rahjerdi
Hello, I am currently turning a valid-JSON expression from a web page into a JSONObject using org.JSON. This object has a really weird order. Each time my expression changes the order of the strings in the JSONObject change too. Right now, the debugger tells me that the first two elements in the JS

[android-developers] Re: Drawing to MapView Incredibly Slow

2010-02-09 Thread aspekt9
Right now, I'm only using about 13 lines, 13 points and it's noticeably slower. There must be faster way, how does google deal with it when they display driving directions and they have all those path lines and points and such? On Feb 9, 9:57 pm, David Fire wrote: > try with less points??? > > 20

[android-developers] Set thread-priority of the MediaPlayer

2010-02-09 Thread Martin
Hi! I am programming a game with fast graphics. The MediaPlayer is stuttering sometimes. When I have the MediaPlayer in a service, it does not stutter, but some people here adviced me not to use services if they should stop automatically when the user ends my application. So how can I set the thr

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

2010-02-09 Thread Greg Donald
On Tue, Feb 9, 2010 at 8:30 PM, David Turner wrote: > OpenGL ES 2.0 headers and libraries are not available in the NDK yet. They > are coming. > Access from Java is also planned. > The Android software renderer doesn't support GL ES 2.0, neither does the > emulator. > I can't give any ETA for this

[android-developers] Re: WebView

2010-02-09 Thread Breezy
Does your layout XML look like this? http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> On Feb 9, 8:59 pm, Saurabh Lodha wrote: > Hi, > > I am using the following code to display

[android-developers] Can i use ellipsize at alert List?

2010-02-09 Thread taehun zzang
Can i use ellipsize at alert List? I want to use ellipsize, because the string is too long. Display can't show all sentences. but i can't use android:ellipsize="marquee" at xml file. because alert list don't use xml file. How could I solve this problem? -- You received this message because you

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

2010-02-09 Thread David Anders
Hi It is really nice to hear that OpenGL ES 2.0 hearders are coming in NDK and also access from Java is also planned. One more question: What happened if Java application using OpenGL ES 2.0 tries to launch on the emulator that does not support OpenGL ES 2.0 software rendering? Regards, /David

[android-developers] Re: How to debug unexpected exceptions (source not found)

2010-02-09 Thread Bob Kerns
Frank, could this be the little snag I just encountered in replying to RustingInSeattle? Where it doesn't catch RuntimeExceptions thrown from the low level (or maybe any level), unless there's an exact match of class? Can you try your scenario again, this time once you identify the exception class

[android-developers] Gallery view weird green color

2010-02-09 Thread sleith
Hi, i use Gallery, and don't know why the background color has weird green color on sdk 2.1. It didn't happen on 1.5. Please help. thx -- 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@g

[android-developers] Re: How to debug unexpected exceptions (source not found)

2010-02-09 Thread Bob Kerns
When I pasted your code into my app and ran it, it hit the expected exception, with this stack: (I wonder if any HTML tags work here? Testing...) Thread [<3> main] (Suspended (exception RuntimeException)) ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2

[android-developers] what's the IP address of development computer when dev phone try to connect it

2010-02-09 Thread NewPa
Hi, We all know if we use emulator connect to our development computer, should use 10.0.2.2 as the computer ip adress, but when I connect a dev phone with my computer, 10.0.2.2 does not work, I always get "time out" error, dev phone can not use "10.0.2.2" to access my computer, so what's the ip

[android-developers] WebView

2010-02-09 Thread Saurabh Lodha
Hi, I am using the following code to display a WebView in my Android 2.x application. However this does not display anything on screen. public class WebViewTest extends Activity { WebView webview; String TAG = "WebViewTest"; /** Called when the activity is first created. */

Re: [android-developers] Drawing to MapView Incredibly Slow

2010-02-09 Thread David Fire
try with less points??? 2010/2/9 aspekt9 > In my app I am drawing bus routes on top of a MapView. The routes have > anywhere between a dozen and a few hundred GPS coordinates that > describe the route that the bus takes. > > > The problem I'm having is that once I draw out all these lines using

[android-developers] Re: How can I draw a simple shape with shapedrawable?

2010-02-09 Thread Breezy
Okay, I see what you're talking about, but I guess my question is how do I put that into my ImageView that's in my XML file? On Feb 9, 7:02 pm, schwiz wrote: > You make your own class that inherits from View and in the onDraw > method you call canvas.drawCircle, drawLine, drawPath, etc > > On Feb

[android-developers] Re: i want to control speed "ellipsize=marquee"

2010-02-09 Thread taehun zzang
Thank you so much.:) On Feb 10, 11:35 am, Romain Guy wrote: > This is not possible at the moment. > > On Tue, Feb 9, 2010 at 6:04 PM, taehun zzang wrote: > > i use android:ellipsize="marquee" > > but just same speed. > > > how can i control this one? > > > -- > > You received this message becaus

[android-developers] How to hide framework APIs from displaying in SDK

2010-02-09 Thread andy
Hi All, I have created abc.aidl file and implemented them too. But I donot want them to be displayed in the SDK. How to do this? Will having @hide java tag above the Java Class work? Regards, Hairsh -- You received this message because you are subscribed to the Google Groups "Android Developers

Re: [android-developers] Re: How to debug unexpected exceptions (source not found)

2010-02-09 Thread Frank Weiss
@Bob I don't think you really nailed the problem. I ran into what I think is a similar issue. The stack trace showed the location of the throw deep in the Android API, without a hint of a stack frame from my code. I suppose the problem is because some of the Android code runs in different threads,

Re: [android-developers] Re: Why setting TextView.Ellipsize as Marquee cause its sibling view in linearlayout redraw

2010-02-09 Thread Romain Guy
The Dev Tools screen updates are reliable. The views were not redrawn on screen, but their drawing code was executed. On Tue, Feb 9, 2010 at 6:19 PM, James Wang wrote: > Hi, Romain. > > I searched http://code.google.com/p/android and found nothing about > this bug. So I guess this bug is not repo

Re: [android-developers] i want to control speed "ellipsize=marquee"

2010-02-09 Thread Romain Guy
This is not possible at the moment. On Tue, Feb 9, 2010 at 6:04 PM, taehun zzang wrote: > i use android:ellipsize="marquee" > but just same speed. > > how can i control this one? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To

Re: [android-developers] connect android emulator to mysql server

2010-02-09 Thread David Turner
Ah sorry, the java.lang.ClassNotFoundException is a different thing. You may be missing a .jar file when generating your project. On Tue, Feb 9, 2010 at 6:34 PM, David Turner wrote: > Replace localhost with 10.0.2.2 and you should be all set. > > See > http://developer.android.com/guide/developi

Re: [android-developers] connect android emulator to mysql server

2010-02-09 Thread David Turner
Replace localhost with 10.0.2.2 and you should be all set. See http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking On Tue, Feb 9, 2010 at 1:57 AM, saravanan p wrote: > Hi > >I am new to android development. How to connect mysql > server from our andr

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

2010-02-09 Thread David Turner
OpenGL ES 2.0 headers and libraries are not available in the NDK yet. They are coming. Access from Java is also planned. The Android software renderer doesn't support GL ES 2.0, neither does the emulator. I can't give any ETA for this, sorry. On Tue, Feb 9, 2010 at 12:12 AM, David Anders wrote:

[android-developers] Re: Why setting TextView.Ellipsize as Marquee cause its sibling view in linearlayout redraw

2010-02-09 Thread James Wang
Hi, Romain. I searched http://code.google.com/p/android and found nothing about this bug. So I guess this bug is not reported by external people. BTW, Dev Tool ->show screen update should be not reliable if what we found is a bug. And Dev Tool->show screen has been fixed, too? If not, I guess I n

Re: [android-developers] Re: Eclipse Emulator

2010-02-09 Thread David Turner
1 GB is definitely not enough to run the Eclipse + the emulator. Your system is probably swapping all the way during the 4+ hours, and even when executing the emulated system. On Tue, Feb 9, 2010 at 4:53 PM, DonFrench wrote: > I have this problem on my W7 netbook, which only has 1G of memory. >

[android-developers] i want to control speed "ellipsize=marquee"

2010-02-09 Thread taehun zzang
i use android:ellipsize="marquee" but just same speed. how can i control this one? -- 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, sen

[android-developers] Re: Dialog problem

2010-02-09 Thread Lance Nanek
More stars/occurrences on the bug report welcome: http://code.google.com/p/android/issues/detail?id=5748 On Feb 9, 6:05 pm, Bob Kerns wrote: > The four stages of Android UI Enlightenment: > > 0) You dutifully use getApplicationContext() his Activity to pass > along to the SDK. > 1) You realize yo

[android-developers] Re: "System.out.println(...)" statements within the onCreate

2010-02-09 Thread Lance Nanek
Use the Log class instead: http://developer.android.com/intl/zh-CN/reference/android/util/Log.html And view the output in Logcat in Eclipse by the menus: Window -> Show View -> Other -> Android -> Logcat On Feb 8, 10:37 pm, eehksar wrote: > Hi All, > > Am a newbie... > > could anyone explain why

[android-developers] Re: accelerometer driver example?

2010-02-09 Thread Lance Nanek
This mentions the accelerometer: http://pdk.android.com/online-pdk/guide/sensors.html On Feb 9, 2:48 pm, Robin Getz wrote: > On Fri 5 Feb 2010 11:45, Robin Getz pondered: > > > Where is an example of an accelerometer driver that properly connects > > to the android sensor event API? > > >http://d

[android-developers] Re: Why setting TextView.Ellipsize as Marquee cause its sibling view in linearlayout redraw

2010-02-09 Thread James Wang
Thanks Romain! We are developing apps on Donut. Next time, I will search android's bugs before asking here. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscr

[android-developers] Re: how to deal complex sql in ContentProvider

2010-02-09 Thread James Wang
Thanks Murphy, Jens! We are using one contentprovider two share all data amount many apps. In fact, we are developing contentprovider as the bridge between apps and database, sound like JDBC. Switching to a remote service sounds like a option but we don't think it is good design that exposing one s

[android-developers] Re: How to debug unexpected exceptions (source not found)

2010-02-09 Thread RustedInSeattle
Thanks Bob, the problem for me is that even I add a Exception breakpoint, and the when the BP is hit, I still cannot get more information from it, there is no ex variable I can evaluate. if you want to know what I mean, try the following code in onCreate of an Activity class: public void onCreate

Re: [android-developers] Eclipse Emulator

2010-02-09 Thread Nandan .
just click on menu button on android emulator.. On Wed, Feb 10, 2010 at 4:36 AM, jDev wrote: > I set up Eclipse as directed on the android development site, and ran > the emulator after building one of the sample apps. The emulator comes > up and just displays some text and doesn't funct

[android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread schwiz
Thanks for the reply Romain but you misunderstood my problem, its not the long click I am worried about but that my textViews are not showing up in my linear layout when I call addView On Feb 9, 6:14 pm, Romain Guy wrote: > You don't need to set a background color, you just need to call > setWill

[android-developers] Re: java.lang.NoClassDefFoundError: android.view.ScaleGestureDetector

2010-02-09 Thread pdecat
Hi, On Feb 6, 10:13 pm, Romain Guy wrote: > ScaleGestureDetector is a class that was added in the latest update of > the Nexus One. Is the source of this class already in any public branch ? I can't manage to find it... Best regards. -- Patrick Decat -- You received this message because you

[android-developers] Re: How can I draw a simple shape with shapedrawable?

2010-02-09 Thread schwiz
You make your own class that inherits from View and in the onDraw method you call canvas.drawCircle, drawLine, drawPath, etc On Feb 9, 6:47 pm, Breezy wrote: > Hmmm, still a little confused...  Are you saying to utilize the > ImageView, but draw on it as if it were a canvas? > > On Feb 9, 6:31 

Re: [android-developers] Camera API - how do I switch the camera to portrait

2010-02-09 Thread 李務誠
Now there is no public Camera API to set the display orientation to portrait. On Wed, Feb 10, 2010 at 7:28 AM, RyanR wrote: > I'm developing an application that render preview frames from the > camera to a SurfaceView. I've noticed there's no way in the Camera API > to set the orientation to por

[android-developers] Re: Eclipse Emulator

2010-02-09 Thread DonFrench
I have this problem on my W7 netbook, which only has 1G of memory. But if I wait long enough (4+ hours), it eventually comes to life. And in the meantime it is eating almost all of the machine cycles. So my conclusion is that you need more than 1G of memory (or superhuman patience) to run the emul

[android-developers] Re: How can I draw a simple shape with shapedrawable?

2010-02-09 Thread Breezy
Hmmm, still a little confused... Are you saying to utilize the ImageView, but draw on it as if it were a canvas? On Feb 9, 6:31 pm, Jason Proctor wrote: > one way is to override your View's draw() and then do stuff with the > Canvas instance passed in. the drawLine() etc methods are in Canvas. >

[android-developers] Putting Views on top of other views.

2010-02-09 Thread Nathan
I'm still trying to figure out how best to layer views on top of other views. I want to do something like the ZoomButtons on top of a custom view. I tried getting the ZoomButtonsController's parent and then adding views, but I didn't have enough control and they ended up on top of the buttons. I'v

Re: [android-developers] Drawing to MapView Incredibly Slow

2010-02-09 Thread Tim Bray
On Tue, Feb 9, 2010 at 4:11 PM, aspekt9 wrote: > I'm not sure how relevant it is, but I put in some debug code then > checked the logcat output and the MapView is repeatedly calling the > draw() method of the Overlay whether anything has changed or not. This > is happening several times a second

Re: [android-developers] How can I draw a simple shape with shapedrawable?

2010-02-09 Thread Jason Proctor
one way is to override your View's draw() and then do stuff with the Canvas instance passed in. the drawLine() etc methods are in Canvas. I've looked for a tutorial on it, but I can't figure out how to do it... For starters, and I can dig some more from there, how do I have a simple program d

[android-developers] How can I draw a simple shape with shapedrawable?

2010-02-09 Thread Breezy
I've looked for a tutorial on it, but I can't figure out how to do it... For starters, and I can dig some more from there, how do I have a simple program draw a simple rectangle? Nothing else, no frills, just draw and display a rectangle? I was thinking for the layout I would use ImageView, then

[android-developers] Nexus One Build Question

2010-02-09 Thread Daniel Rolph
Hello, I am trying to test out baseline patches to the SDK and their potential impact to my application if and when the patches are approved/released. I would like to build the Nexus One baseline, apply the patches, flash the device, and test my applications. I have set up Ubuntu following t

Re: [android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread Romain Guy
You don't need to set a background color, you just need to call setWillNotDraw(false); > right now I have my own textView > class in there that I plan to override onLongClick for but I have > tried this with a regular textView as well just to be sure, and it > still doesn't work. You need to make

Re: [android-developers] Layout question. How to layout text to flow around an image

2010-02-09 Thread silverburgh
Thanks. 1. Create a new subclass which is a child class of TextView (say MyTextView)? But TextView is not a ViewGroup, how can I add an ImageView as a child of MyTextView? 2. I have looked at source code of TextView, do I need to over-look the makeLayout() method of TextView? But then I assume I ne

[android-developers] Re: apps that require other paid apps

2010-02-09 Thread tansaku
Many thanks for your response. So it sounds like an integrated paid app would require the user to purchase that app separately, e.g. if I have a $5 app in the market, someone pays to download that, and then when they start it up they get taken to the market page for any required app that isn't ins

[android-developers] Drawing to MapView Incredibly Slow

2010-02-09 Thread aspekt9
In my app I am drawing bus routes on top of a MapView. The routes have anywhere between a dozen and a few hundred GPS coordinates that describe the route that the bus takes. The problem I'm having is that once I draw out all these lines using drawLines panning/zooming the MapView is incredibly sl

[android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread schwiz
I actually did do that, I found that I do need to specify a background color for the ondraw to be called, now that I am specifying the background color my onDraw method is being called that draws the outline around my linear layout, then I have onclick overridden to add a textview to the linear lay

[android-developers] Android 2.1 problems

2010-02-09 Thread Vassilios Kirellous
Hi, I have an app on the Android Market, and I've usually tested the app on the 1.6 emulator. Whilst testing on the 2.1 Android version, user login is not possible. Why on earth would login be possible on the 1.6 and not on the 2.1? I am unfamiliar with 2.1. Can anyone from Google shed any light

[android-developers] how to capture back key event for Popup window

2010-02-09 Thread elephantbug
hi, I have one pop up window which will be launched when user click on an image view. And I notice when I clicks back key, the pop up window will disappear. My question is where this pop up window goes, it it destroyed? How can I intercept the back key event and do something? Thanks. -- You r

[android-developers] Re: Google I/O Device microSDHC card

2010-02-09 Thread Bob Kerns
You don't need to worry about which kind of memory. It's really a question of which kind of device. I wish manufacturers and resellers were more consistent about terminology. SDHC is an update to SD that allows higher capacity (HC). Anything over 4 GB has to be SDHC -- unless it's over 32 GB, in w

[android-developers] Camera API - how do I switch the camera to portrait

2010-02-09 Thread RyanR
I'm developing an application that render preview frames from the camera to a SurfaceView. I've noticed there's no way in the Camera API to set the orientation to portrait, so I'm forced to make my view landscape. Does anyone know how to tell the camera to deliver preview frames in portrait? Than

[android-developers] Re: How to debug unexpected exceptions (source not found)

2010-02-09 Thread Bob Kerns
If you are in the debugger, either at a breakpoint or having stepped over some code that justs threw an exception, I have yet to see a case where, after stepping through using the Step Over button, you don't eventually come to a frame that has the exception in it. You can then use the Display wind

[android-developers] Re: NeighboringCellInfo 3G CellID

2010-02-09 Thread richf
On Feb 8, 1:50 am, Ne0 wrote: > I'm trying to get neighbouring cell id info for the 3G neighbours, > though i dont get a result (-1). > can anyone tell me if this is a bug or weather this is how it is > supposed to be? What network? The docs note: UNKNOWN_CID if in UMTS or CDMA or unknown --

[android-developers] Stuck Animation

2010-02-09 Thread Michael
Hello, What I'm trying to do: I would like to have multiple ImageViews moving across the screen in random directions, with each one shrinking as it reaches its destination. If an ImageView is clicked, it changes color. How it is currently implemented: I create a new ImageView then add it to my

[android-developers] Re: Dev Phone 2, Droid or Nexus One?

2010-02-09 Thread cmarin
Thanks James for replying. If I buy the Nexus One and don't have a cell contract, would I be able to purchase apps in the MarketPlace? Also, I assume features like the GPS unit require a cell connection to work if I use it while driving, correct? Your help is much appreciated. On Feb 9, 3:00 pm,

[android-developers] Eclipse Emulator

2010-02-09 Thread jDev
I set up Eclipse as directed on the android development site, and ran the emulator after building one of the sample apps. The emulator comes up and just displays some text and doesn't function after that. The program doesn't even seem to run. I am following the steps on the site exactly (or at lea

[android-developers] Re: Dialog problem

2010-02-09 Thread Bob Kerns
The four stages of Android UI Enlightenment: 0) You dutifully use getApplicationContext() his Activity to pass along to the SDK. 1) You realize you don't NEED to call getApplicationContext() from your Activity to pass along, 'this' should work. 2) You realize it is WRONG to call getApplicationCont

[android-developers] Re: Dev Phone 2, Droid or Nexus One?

2010-02-09 Thread jamesc
Sorry, I didn't complete my answer. You can use the phone without a SIM and via WiFi only, yes. Not sure whether that's a good idea in some cases as latencies on mobile networks differ. On Feb 8, 10:54 pm, cmarin wrote: > I built an iPhone app for my company using Appcelerator Titanium, > which I

[android-developers] Weird stuff - help!

2010-02-09 Thread nikhil
Okay I am facing this problem for quiet some time. Description of my app: I have an app which has a service running in the background. In this service I am polling a webservice every 10 seconds to get updates, if any. I am using timertask with interval of 10 seconds to do this. I also have a wak

[android-developers] Re: Dev Phone 2, Droid or Nexus One?

2010-02-09 Thread jamesc
You can buy a Nexus One direct from Google without a contract (i.e SIM free). On Feb 8, 10:54 pm, cmarin wrote: > I built an iPhone app for my company using Appcelerator Titanium, > which I would now like to make available for Android devices. > Unfortunately, I can only get permission to buy an

[android-developers] How to change color of button borders

2010-02-09 Thread umesh chalwetkar
Hi, I am beginner to android, I am trying to change the color of the borders of button using xml. Do you have any solution? Thanks, Umesh -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develop

[android-developers] ADT Plugin Installation Waiting Too Long

2010-02-09 Thread Leonard Lee
Hi, I'm following the guide at the following link. http://developer.android.com/sdk/eclipse-adt.html#InstallingADT I'm using the offline installer by using the guide at the following link. http://developer.android.com/sdk/eclipse-adt.html#troubleshooting I'm using Eclipse IDE for Java EE Develop

[android-developers] OpenGL ES 2.0 support on Android emulator

2010-02-09 Thread David Anders
Hi, I guess that application can use OpenGL ES 2.0 API directly through Java wrapper defined as android.opengl.GLES20 class, however it looks like there is no software rendering support for OpenGL ES 2.0 in Android emulator. Is there any plan to support (2) in Android roadmap? (1) OpenGL ES 1.0 A

[android-developers] Hard-coded IP address?

2010-02-09 Thread Patrickov
Hi there, I kind of wonder why Android SDK uses an approach of using virtual routers and hard-coding IP addresses? I found it extremely inconvenient as I need to develop an application that involves bi- directional connection (a.k.a. the phone not only sends requests but also listens to them), an

[android-developers] Re: accelerometer driver example?

2010-02-09 Thread Robin Getz
On Fri 5 Feb 2010 11:45, Robin Getz pondered: > Where is an example of an accelerometer driver that properly connects > to the android sensor event API? > > http://developer.android.com/reference/android/hardware/SensorEvent.html > > We have an accelerometer driver - http://patchwork.kernel.org/p

[android-developers] filter a listview with an arrayadapter not of String type

2010-02-09 Thread Sephy
Hi everybody, I've found here : http://stackoverflow.com/questions/1737009/answer-to-making-a-nice-lo... How to make a text filter on an arrayadapter, my problem as you can see on the post hereabove is that my adapter is not of String type, and then when I use methods getFilter.filter(s), nothing

[android-developers] HttpPost, ssl and error 'Not trusted server certificate'

2010-02-09 Thread badzio
Hi all, I want to use HttpPost over https/ssl. I get 'Not trusted server certificate' error. I've found a lot of posts, seems that many people have similar problems and I've found two suggestions: 1) Change server's certificate. Current certificate is self-signed as localhost.localdomain. Unfortun

[android-developers] notepadv3 crashes on Motorola Droid

2010-02-09 Thread Jeremy Thomas
I installed the notepadV3 solution with no modifications on my Motorola Droid. When I try to edit a note and the screen orientation changes (i.e. I hold it horizontally), or if I open the Droid up so the keyboard is exposed, the program freezes and crashes. I'm not able to figure out why this is g

[android-developers] MediaPlayer song array

2010-02-09 Thread MarcC
Trying to get one mediaplayer button to cycle through a few mp3 files. Here is what I have so far: First declared my array: final int[] songs = {R.raw.ef101a, R.raw.ef101b, R.raw.ef101c, R.raw.ef101d, R.raw.ef101e}; Then called MediaPlayer: public void onClick(View arg0) { Me

[android-developers] A WAP PUSH Broadcast Receiver!!!

2010-02-09 Thread askPrins
Hi guys, I've been following the examples and the API (1.6) exactly, but my WAP_PUSH receiver doesn't capture the Wap Pushes that sends to the device (using NowSMS). I would really really appreciate all the help I can get here. Thanks! Here is the AndroidManifest file: http://schemas.android.co

[android-developers] Re: HowTo make ListView Larger so more than one item visible at a time ?

2010-02-09 Thread pasha701
Please look issue: http://code.google.com/p/android/issues/detail?id=6552 In this issue also present workaround. -- 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 uns

[android-developers] Upgrading an app in the background

2010-02-09 Thread James McMurray
Is it possible to have an app install a new copy of itself silently? I've got an app that is not installed through the market and would like the user to get automatic upgrades without having to be notified. Thanks, James -- You received this message because you are subscribed to the Google Group

[android-developers] Re: HowTo make ListView Larger so more than one item visible at a time ?

2010-02-09 Thread pasha701
Please look issue: http://code.google.com/p/android/issues/detail?id=6552 Here also present workaround -- 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 f

[android-developers] Capturing HOME intent with receiver programmatically

2010-02-09 Thread Alex Feldman
I am trying to capture my activity to handle HOME button press with a receiver programmatically, but the event is not firing. I can, however, successfully register and capture this intent filter if I declare it in a manifest.xml activity section. Here's the code for the receiver: //

[android-developers] Different class files are generated using Eclipse & Ant

2010-02-09 Thread Derek Lee
Hi, I'm using Eclipse GALILEO, android 1.6, and Ant 1.8.0RC1 version. After building with Eclipse and Ant, I compared each generated .class, .dex, .apk files. But,each files are not same... For example, There is MethodList.class file(built with Eclipse) in bin folder, and MethodList.class file(b

[android-developers] SurfaceView and View Flipper

2010-02-09 Thread tarin
Hi, do any try to flip between the views where 1 of view is SurfaceView. What I tried is: 1. Made a simple view flipper. 2. Added touch listner. a) with 2 image views it works fine b) change the first view for SurfaceView as a result surface image never moved from screen. Can anybody suggest ?

[android-developers] How to get directions / duration from current location to xyz location...

2010-02-09 Thread androidandme
intent = new Intent(Intent.ACTION_VIEW, Uri .parse("geo:0,0?q=" + this.location.getText().toString())); startActivity(intent); Above code gives me location displayed on the map view. and then if I hit "Get Directions" from Menu, it g

[android-developers] How to debug unexpected exceptions (source not found)

2010-02-09 Thread RustedInSeattle
Hi all, I am pretty new to Android, the thing that bugs me the most about the IDE is that I am not able to get any information about an unexpected exception when it gets thrown, I can put a try catch block around identified code that generates it, but in many cases it takes time to find the l

  1   2   3   >