[android-developers] how to add a lisener to a image which in the overlay

2010-05-19 Thread 徐洪跃
hi.all,i want to add a listner to a image which in the overlay so thata dialog will exists after i click the image int the map, thanks ! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develo

[android-developers] Re: Feedback Experiment active in the developer console

2010-05-19 Thread Kevin Gaudin
Maybe a date based activation ? Kevin On 20 mai, 02:55, Zsolt Vasvari wrote: > I am in Singapore and it appeared for me as well.  I was just thinking > yesterday how incredible it was that I had never noticed it earlier. > > But how did it get added?  I didn't install any updates, nor am I on a

[android-developers] Re: Sliding Drawer question

2010-05-19 Thread DonFrench
Oh, THAT On May 17, 11:12 pm, aadnon wrote: >  ELF              (     ¨   4    †      4     (        p<   <   <   > X   X                           ”   ”                           Ðe > $f              (   (   (   à   à                   È   +   é > ~       Œ   Ë           ¸   ›              

[android-developers] Re: Get object from webview

2010-05-19 Thread amit
Actually my webview contains yahoo sign-in screen which is having two edittext username and password , after entering the value for this two field when i click on sign-in button , i want to fetch the entered values of username and password.. On May 19, 6:47 pm, TreKing wrote: > On Wed, May 19, 2

Re: [android-developers] Re: Buttons looking weird when they are too small

2010-05-19 Thread Romain Guy
You can specify padding inside the 9patch drawables you use for your button. You can take a look at Android's default graphics files (in frameworks/base/core/res/res/drawable-hdpi at android.git.kernel.org) to see how it's done. You can also use the draw9patch tool to test your padding. On Wed, Ma

[android-developers] Re: Buttons looking weird when they are too small

2010-05-19 Thread Divkis
> On May 19, 11:24 pm, skink wrote: > > > when you use standard button drawables, they specify that extra > > margins you are talking about, see btn_default*.* fIles under your sdk > > root - btn_default.xml in particular which defines default Button > > drawable > > I did have a look earlier at t

Re: [android-developers] Re: Removing / replacing radio button image

2010-05-19 Thread Romain Guy
The radio button drawable is the background drawable. You need to use a 9patch and have a stretch region in which the text will go. On Wed, May 19, 2010 at 9:59 PM, Divkis wrote: > Hi, > > On May 18, 11:10 pm, TreKing wrote: >> On Tue, May 18, 2010 at 12:53 PM, Divkis wrote: >> > Any other idea

[android-developers] Re: Removing / replacing radio button image

2010-05-19 Thread Divkis
Hi, On May 18, 11:10 pm, TreKing wrote: > On Tue, May 18, 2010 at 12:53 PM, Divkis wrote: > > Any other ideas? > > Nope, sorry. I haven't used it myself, but I assumed the setDrawable > functions in that class would be what you were looking for. Nopes there is no such function in either Compoun

[android-developers] Addition of controls dynamically

2010-05-19 Thread Soumya
Hi, Can anyone tell me how to add controls dynamically in a layout similar to the one in contacts edit screen where pressing on + button adds a button and edit text and on pressing the - button, the last button and edit text are removed. Can anyone point me out the code. Thank you, Soumya -- Y

[android-developers] How to create a panel like MediaController

2010-05-19 Thread KerlW
I want to create a panel to my main activity, this panel could show and hide , just like the MediaController of VideoView. First I want to write my owen ControlPanel just like MediaController, but I found that it is impossible for me to create a new window by calling PolicyManager.createNewWindow(c

[android-developers] Re: Buttons looking weird when they are too small

2010-05-19 Thread Divkis
Hi Pskink, On May 19, 11:24 pm, skink wrote: > when you use standard button drawables, they specify that extra > margins you are talking about, see btn_default*.* fIles under your sdk > root - btn_default.xml in particular which defines default Button > drawable I did have a look earlier at the

Re: [android-developers] Petitions to Google

2010-05-19 Thread Xavier Ducrohet
Making petition to make us do something is an absolute waste of time. Filing reasonable feature request (http://b.android.com) with a concise explanation why the feature is needed has a much better chance of success. Contributing is even better! See the new http://source.android.com and be aware

[android-developers] Re: Turning off the screen

2010-05-19 Thread Peter Eastman
After investigating this a bit further, I've determined that the program is still running. For example, if I set a Timer, that keeps getting invoked. It's just SensorEventListeners that don't get invoked when the screen is turned off. That's good to know, but doesn't get me any closer to a solut

[android-developers] Re: samsung app store

2010-05-19 Thread Nathan
SamsungApps.com is apparently registered to Samsung Electronics CO., Ltd. according to WHOIS information. So they want Android apps? I heard Samsung wanted to do their own operating system. Nathan -- You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Please Help

2010-05-19 Thread Tommy
Hey everyone, Im having some trouble using the camera. I am able to call the camera using an Intent but the image that gets saved is not the file name i supply and the quality is terrible. Is there a way I can simply call the camera app let it take a picture and save it just like it would if I were

Re: [android-developers] Re: Petitions to Google

2010-05-19 Thread Leigh McRae
This conditional compile is starting to become a pet peeve for me. I am sorry but I just need to get it done and a preprocessor gets it done without any runtime cost and it doesn't leave it in the hands of a compiler. People need to leave the OOP at the door and get on with it or they will ne

[android-developers] Re: Petitions to Google

2010-05-19 Thread Indicator Veritatis
Concerning your proposal of conditional compilation: I had an interesting conversation with someone who had worked at Javasoft for many years. I asked him specifically what they were thinking when they decided not to include conditional compilation in Java. His answer was that the proper Java, OOP

[android-developers] Re: Feedback Experiment active in the developer console

2010-05-19 Thread Zsolt Vasvari
I am in Singapore and it appeared for me as well. I was just thinking yesterday how incredible it was that I had never noticed it earlier. But how did it get added? I didn't install any updates, nor am I on a plan where I would be receiving updates from the carrier. Curious... On May 19, 10:10

[android-developers] Re: Maintaining the state when changing the orientation

2010-05-19 Thread JP
On May 14, 2:54 am, Alok Kulkarni wrote: > I need to save many objects so basically onSavedInstanceState is not of full > use . Like in your case, I have apps that need to keep (hundreds of) objects and state variables that require retention regardless of what's going on at the UI level. What I

[android-developers] Re: how to add new table for a existing database

2010-05-19 Thread Brion Emde
If you are talking about during development, perhaps the easiest thing might be to uninstall your application from the emulator/phone via Settings. Or you could start your emulator with the Wipe User Data checkbox selected. Or you could use adb to delete the database. Or sqlite. There are many opti

[android-developers] Re: Finally published my first app - thanks to this group!

2010-05-19 Thread nikhil
Do we require to fill tax details while submitting an app on the market place as well? On May 19, 3:12 pm, Wayne Wenthin wrote: > Just the normal thing that it seems everyone does and update it every couple > of weeks to put it back at the top of the just in category. > > On Fri, May 14, 2010 at

Re: [android-developers] Can't sell because I am Canadian eh?

2010-05-19 Thread Shane Isbell
There are some alternative stores out there: AndAppStore being one of them. I'm starting up a new market focused exclusively on paid apps, with intended launch late next month. If interested let me know. I can make sure you are in on launch and early beta testing. On Wed, May 19, 2010 at 2:31 PM,

[android-developers] Re: Developing UI for Android apps

2010-05-19 Thread Tim
Could I suggest you have a look at our MobiForms Developer. MobiForms is the world's first rapid application development tool for Google Android. MobiForms is ideal for novice or professional programmers alike who have little time for low level coding. With MobiForms you do not need to learn Java,

[android-developers] Avoid restarting background threads on orientation change

2010-05-19 Thread Jeff
I start a number of background threads in my Activity onCreate that do work to keep the UI free. I was originally destroying these threads in onDestroy. However, the idea of shutting down and restarting these background threads every time there is an orientation change seems like a waste of time to

[android-developers] Petitions to Google

2010-05-19 Thread blackbitshi...@googlemail.com
I think Google should make an effort to improve the android developer tools. Here I write some things I think need to take in account: - Fix problems of communication between IDE and emulators - Add support to conditional compilation #IF,#ELSE,#ENDIF (I wan't to have 2 versions in the same proyect

Re: [android-developers] Custom Toast

2010-05-19 Thread Wayne Wenthin
Here is my custom toast. I also toss in an image Not sure if I ever really use the context outside of my main class. Its a hack job but then so is most of my code. public void showToast(String sayWhat, int imageid,int length,Context context){ LayoutInflater inflater = getLayoutInflater(); Vie

[android-developers] Re: EditText lose focus when appears keyboard in ListView

2010-05-19 Thread MarcoAndroid
I had the same problem: http://groups.google.com/group/android-developers/browse_thread/thread/4883b7021b1a7724/f120bf311c5b81af I just tried to answer that thread but it isn't possible anymore it seems. Therefore, below what I typed in as the answer: -

[android-developers] Can't sell because I am Canadian eh?

2010-05-19 Thread Leigh McRae
I am in total utter shock right now. I have finished porting my game to Android and now I can't sell it because I am Canadian? I guess I should have looked into this before hand and hence I feel like a bit of an idiot but come on. Is there any way around this? -- You received this message beca

[android-developers] android market chuckle

2010-05-19 Thread mike
The android market doesn't accept images in the native Nexus 1 screen resolution (480x800). So for those saying that the market sucks for this reason or that, it sucks if you're a Google product too :) Mike, gimp is my friend -- You received this message because you are subscribed to the Google

Re: [android-developers] Custom Toast

2010-05-19 Thread TreKing
On Mon, May 17, 2010 at 10:15 AM, Gene R. wrote: > The problem seems to be that the Service class does not inherit the > findViewById() method. > Services don't have an accompanying UI, so this makes sense. > How can one generate and display a custom Toast from a Service?? > In your code you

[android-developers] Syncing Cookies

2010-05-19 Thread Maher
Hi, My application maintains a session with to a my server using cookies. One feature requires opening a Web View to a URL on my server. Before showing the Web View, I do syncCookie() (see below). The feature works on the emulator but does not work on the device (2.1). Any ideas? ThnX! public

[android-developers] Using the Android Camera

2010-05-19 Thread Tommy
Hey everyone, Im having some trouble using the camera. I am able to call the camera using an Intent but the image that gets saved is not the file name i supply and the quality is terrible. Is there a way I can simply call the camera app let it take a picture and save it just like it would if I were

Re: [android-developers] Trouble debugging application on device

2010-05-19 Thread TreKing
On Mon, May 17, 2010 at 3:17 AM, evilmonkey wrote: > Are there any way to fix this problem? Try closing Eclipse, killing adb, and starting over. - TreKing - Chicago transit tracking app for Android-

Re: [android-developers] Stop LBS service programmatically

2010-05-19 Thread TreKing
On Wed, May 19, 2010 at 3:12 PM, dillipk wrote: > How do I stop this service programmatically? > Unregister you location listener from the location manager. - TreKing - Chicago transit tracking app f

Re: [android-developers] Re: Finally published my first app - thanks to this group!

2010-05-19 Thread Wayne Wenthin
Just the normal thing that it seems everyone does and update it every couple of weeks to put it back at the top of the just in category. On Fri, May 14, 2010 at 9:13 AM, Paul Gee wrote: > Thanks Wayne, > > In fact I did exactly as you suggest as despite ALL my testing and beta > testing with a gr

[android-developers] Stop LBS service programmatically

2010-05-19 Thread dillipk
Hello, I have an Activity extended from MapView to implement LBS feature,. Once I enter to this activity, I can see the map displaying correctly and an ICON (satellite icon) at the top bar. I want to stop this service once I move out of the screen. How do I stop this service programmatically? R

[android-developers] Re: Go back to previous screen programmatically

2010-05-19 Thread dillipk
Thank you .. it worked great. On May 19, 12:09 pm, mayank k varshney wrote: > call finish method it will remove the current activity from the stack and u > will get the previous one > > > > On Wed, May 19, 2010 at 9:35 PM, dillipk wrote: > > Hi, > >  How do I go to previous screen manually  .. s

[android-developers] Re: Application Crash Reporting made easy - needs testers

2010-05-19 Thread Clankrieger
Hi Kevin, I included ACRA in my app - it was easy to implement and your HowTo is absolutely excellent. I already got two crash reports that gave me a much better glue than the usual "crashes on foo-phone"-1-star- comments. :) I'm eager to take a look into the sources as well, they should be availa

[android-developers] Write an own Contacts Content Provider

2010-05-19 Thread Natanael Arndt
Hello, how can I write an own Content Provider, which Provides Contact-information. I've seen this on a Phone with HTC Sense, when you create a new contact, you can decide wether it is a google-contact or a sim-contact. Maybe this is the same as the facebook, last.fm and VZ-Netzwerke-App uses.

Re: [android-developers] Petition: Google, please improve the Android Market.

2010-05-19 Thread Greg Donald
On Mon, May 17, 2010 at 4:42 AM, rob irondad wrote: > there has been recent reports > about developers seeing crash reports and user comments in the > developer console I saw that, then it disappeared soon after. Glad to hear I didn't imagine it. -- Greg Donald destiney.com | gregdonald.com

Re: [android-developers] How to check if we are running on a Handset?

2010-05-19 Thread TreKing
On Wed, May 12, 2010 at 10:48 PM, Sanjay Dandekar wrote: > Is there a definitive way of knowing (something that no one can temper / > simulate) if our application is running on a commercial handset or test > handset / simulator? > Maybe Config.DEBUG? > Our requirement is that we need to confir

Re: [android-developers] Re: Buttons looking weird when they are too small

2010-05-19 Thread skink
Divkis wrote: > I am not providing any extra spacing / margins around my button. At > least that is what it appears to me in the xml declaration and code > posted earlier in this thread. I am sorry if I am missing something > really basic. Please point me to appropriate documentation if that is >

[android-developers] google earth intents?

2010-05-19 Thread mike
Hi all, I see that google now has a google earth app out there, which I assume is callable within my own app, but is there any published list of parameters that can be sent in the Intent to, say, get it to load KML sources? Mike -- You received this message because you are subscribed to the Go

Re: [android-developers] Face book Data coming null

2010-05-19 Thread TreKing
On Sat, May 15, 2010 at 6:10 AM, Sohan badaya wrote: > In my application i want to show facebook friends name with online status. > You'll probably have better luck posting your question on a forum dedicated specifically to the Facebook API. --

[android-developers] Re: Buttons looking weird when they are too small

2010-05-19 Thread Divkis
Hi pskink, > > Can't I use the standard/ default background for the buttons such that > > it automatically stretches and fits with the text? I think I am still > > missing something. > > yes, you can, but as you wrote they have additional spacing/margins > around them > > you will need to provide

Re: [android-developers] I want to capture the events for an application.

2010-05-19 Thread TreKing
On Thu, May 13, 2010 at 12:26 AM, Vamsi wrote: > I want to capture the events like user clicked on so and so button, or > entered some text in Edit Box and etc... > Clicking on buttons and entering text are two different things handle by different events. In general, if you want to know somethin

[android-developers] Info: Understanding self signed jar files (like the apk files)

2010-05-19 Thread Satya Komatineni
A number of facets in Android depend on signing the .apk file. Some of the features are available when jar files are signed with the same signature. However if you are new to digital signing process, it can be a bit confusing. Here are some notes I have kept to clarify the digital signing process

[android-developers] Re: Bluetooth socket to non Android device

2010-05-19 Thread moneytoo
The other device has to advertise SDP record for Android to be able to connect to it. 1) Find out what's the service UUID - run "sdptool browse" on linux or 2) Connect directly to specific RFCOMM channel - http://code.google.com/p/android/issues/detail?id=5427 (not official API!) On May 18, 11:06 

Re: [android-developers] Killing Activity / onPause() / isFinishing()

2010-05-19 Thread Rully Hasibuan
dear all, can you help me about exit app android script, i write finish(), but still have another activity open/run.. i mean how to exit and finish all open activities in my apps? thanks.. rully On May 13, 2010 8:34 PM, "Lee" wrote: Is isFinishing() guaranteed to return true in onPause() when

[android-developers] sharing data between activities

2010-05-19 Thread radiodee1
Hi, This is my first android app and it's a simple game. I use several activities to start the game, one for a splash screen and one for a menu ("help" option, "settings" option, "credits" option, etc.) and one for the actual game itself. Is there a way to pass data from one of these activities (l

[android-developers] Graph in 2.1 'Genie' news and weather app

2010-05-19 Thread Steve Smith
Hi, Does anyone have any hints on how the temperature/humidity graph in the 2.1 'Genie' weather app is implemented? It looks like it *could* be done with a Canvas, Gradients and Paths, but I'd be interested in anyone has any better suggestions. Cheers, Steve -- You received this message becaus

[android-developers] Install the application directly in device

2010-05-19 Thread Haas
I want distribute my application only into my enterprise enviroment. Can I install the application directly in device without Google Market? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

Re: [android-developers] XML editor problem

2010-05-19 Thread 何斌
the folder "res/xml" must be some configuration for something. The ADT donot prepare the GUI option for the xml in this folder. The code assist. will work allright under res/layout 2010/5/14 SHameed > Hi > > I am trying to create an xml file under "res/xml" folder. > > When an xml file is new

[android-developers] Using Instrumentation for functional testing

2010-05-19 Thread Cheezy
I need to create functional tests in a context outside of a junit test method. I do have the ability to create a class that inherits from one of the TestCase derived classes in android but I cannot create a test method. I was hoping to start the instrumentation and then call methods to simulate u

[android-developers] From one Tab change to another one

2010-05-19 Thread Sergio
How can i change que current tab to another one?... I have a tabhost with 3 tabs and want when press button on the first tab go to 2º tab from code. Thanks :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] AppRank?

2010-05-19 Thread Matt
Does anyone know if Google plans to assess apps? I think it would be useful to have some sort of rating, some way to know how optimised an app is. It might be a good way to drive coding standards; high performing, stable apps rank higher in the Market. Seems like the sort knowledge an algorithm co

[android-developers] Free Heap to Small to Allocate Bitmap

2010-05-19 Thread John Oliver
I've read almost every thread I can find on the subject, but I'm trying to find out if there are any solutions. I want to allocate a bitmap, but I get an OOM Error because there is not enough free heap memory to allocate the 614,000 bytes for the bitmap. It seems that while the Bitmap data itself

[android-developers] Re: Detect and pick up Gesture in a filled ListActivity

2010-05-19 Thread azal
This exemple may help you http://android-journey.blogspot.com/2010/01/android-gestures.html On Apr 24, 6:49 pm, powder wrote: > Hi, > > I have a piece of code that enables me to detect fling/swipe left and > right, thereby calling moveLeft() and moveRight(). > This works fine in a normal Activit

[android-developers] Re: About to release first app to market.

2010-05-19 Thread a.e
If your using eclipse, just create multiple AVD's that span not only most firm ware targets (vis.: 1.5, 1.6, 2.0, etc.), but also screen types (vis.: HVGA, QVGA, WVGA800, etc.). That would help give you an idea of how it will perform/look on multiple devices. Android OS version stats: http://devel

[android-developers] SyncAdapter -> sync frequency?

2010-05-19 Thread Connick
Hi all, I've looked at the SampleSyncAdapter project that ships with the SDK and I've implemented my own sync service successfully. However I've noticed there does not seem to be any public APIs for controlling sync frequency. Did I miss something obvious? Thanks! Stacy -- You received this mes

[android-developers] Re: How can I test ACTION_POWER_CONNECTED event?

2010-05-19 Thread Adriano Tornatore
Hi, I had the same problem and i develoepd an application (for windows) to control all battery properties. You can find it here http://code.google.com/p/androidemulatorcontroller/ On 7 Apr, 13:07, javame_android wrote: > Hi, > > I would like to do certain action on the Broadcast Receiver for > AC

[android-developers] Alarm Manager clarification

2010-05-19 Thread Yeya
Hi all I am writing an app the downloads content from a server once every week. Currently, i use an alarm manager to set a repeating 10 day alarm to start a service like API demo on android.com has done. My question is, if it set the alarm once, after the first time the app is run, will it alway

[android-developers] How to query content://sms/conversations ?

2010-05-19 Thread HH
I see there are some posts stating this place cannot be queried, however, I can query the column's name and total number of rows in this table, but why I cannot retrieve the content? If this table cannot be queried, how I can retrieved the number of conversations in each SMS thread? Do I have to w

[android-developers] How to fire a dialog from custom list adapter?

2010-05-19 Thread DK Planet
Hi, I'm in trouble to fire dialog from custom list adapter. The list item consists of 2 TextView and 1 ImageView. It's similar to the Android phone's account setting (http://developer.android.com/resources/samples/images/ SampleSyncAdapter1.png) I remember that the dialogs are only invoked in Acti

[android-developers] What happens to PendingIntents created for recieving Alarm Notifications when App is Force Killed?

2010-05-19 Thread Kishore
I have an application that schedules Alarm notifications every x minutes. The Alarm notification starts an IntentService which acquires a WakeLock, launches another Service and releases the WakeLock. This second service does some background processing and self stops. The notifications and the servi

[android-developers] Re: EditText lose focus when appears keyboard in ListView

2010-05-19 Thread Ondra Zahradnik
Try to set windowSoftInputMode to adjustPan in activity declaration in AndroidManifest.xml as follows: ... ... It should help give your activity better user experience. Check http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html for more info about it. -- You

[android-developers] Sub-threads and widget-provider parameters

2010-05-19 Thread Steve Smith
Hi, I have a widget that displays usage data from a remote service. To avoid tying up the UI thread I use a worker thread to do the HTTP fetch and parsing, which then send the results back to the widget provider via a message/handler. However at the point that the handler is called with the resul

[android-developers] Video Issues in Android Emulator

2010-05-19 Thread Darshan
Hi, I am working on a video related application in Android. As a ground work for that, I tried playing some .3gp and .mp4 videos in the Android Emulator that is a part of the Android SDK V2.1. But I couldn't get them played successfully. Here is the environment information: *

[android-developers] USB Keyboard

2010-05-19 Thread Maarten
Hello, I just started develloping for Android and I was wondering the following: I'm a student Electrical Engineering and like tinkering with stuff, but im not an expert, I wanted to create an attachment for my HTC Desire running android 2.1 with buttons on it that i can use as a gamepadd for ie.

[android-developers] How to detect if a soft keyboard is shown on the screen

2010-05-19 Thread Nelson
How to detect if a soft keyboard is shown on the screen: it was mentioned in a previous post that: It is detectable by a resize event, if "the view hierarchy has a container that can resize to accommodate the IME". Anyone can provide some sample code about how to do this? I have no clue which cla

[android-developers] how to count the number of sent/received sms/mms?

2010-05-19 Thread Lloyd Chou
Hi guys: i wanna do this in my app: once the user start my app, say 'MsgCounter', the app then runs in backstage of Android, and count the number of sent/received sms/mms since then. its easy to count the number of received sms: by setting up a BroadcastReceiver to listen to the action 'android.p

[android-developers] How to capture qemud output?

2010-05-19 Thread technote
Hi, Noticed that qemud use "fprintf" to output logs to standard error port. But how can I capture the output? Or where is the standard error port redirected? Thank you very much! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

[android-developers] Handling large JSON streams (OOM Error)

2010-05-19 Thread Michael Dodd
Hi, I'm currently in the process of creating an application that uses a large amount of data streamed from a web service. In this case, I'm using The Guardian's Politics API to make an application about UK General Elections. In some cases, I need to stream and parse about 750KB of data - one exampl

[android-developers] hello

2010-05-19 Thread sunjianwei
hello everybody! -- 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] Multiple MapViews Not Working

2010-05-19 Thread thebellpepper
I have a MapView in the main part of my application. I have a context menu that allows me to navigate away from the MapView to view archival map data. I can view that archival data in another MapView. But when I navigate away from the archival MapView, the main app MapView no longer downloads ti

[android-developers] Class com.phonegap.CameraPreview does not exist

2010-05-19 Thread Lamb Walker
I keep getting this error when I try to compile a PhoneGap app. Is this because there is something that has not been included in a library or what?? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

[android-developers] How to config Android screen from landscape to portrait

2010-05-19 Thread kaost phil
My LCD hardware is 800x600 size, so after booting, the Android default screen is landscape. How do I modify the framework to let android show default portrait screen? I hope all booting procedures are portrait. for example, when booting, the Android logo and banner shows on screen are portrait. --

[android-developers] Java, C, JNI, and libusb

2010-05-19 Thread sws-vinpa
I am currently developing an application for a device which talks USB. I realize that the easiest way would be to open a port as a "file", but unfortunately the only way to do this is by scanning the USB bus for a specific VID and PID to grab a handle to a USB device. I am wondering what would be

[android-developers] Re: Detect and pick up Gesture in a filled ListActivity

2010-05-19 Thread azal
This exemple may help you http://android-journey.blogspot.com/2010/01/android-gestures.html On Apr 24, 6:49 pm, powder wrote: > Hi, > > I have a piece of code that enables me to detect fling/swipe left and > right, thereby calling moveLeft() and moveRight(). > This works fine in a normal Activit

RE: [android-developers] Re: Android 2.1 & SQL Server

2010-05-19 Thread Ted Neward
There are several JDBC drivers for SQL Server. One is to use the Microsoft JDBC driver, available off of Microsoft.com. It's a pure-Java driver, meaning it should work on Android, though I haven't tried it. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedn

[android-developers] Extract HTML from Android Browser

2010-05-19 Thread Marvin Go
Is it possible to extract the HTML code of a webpage that is being viewed in Android Browser? Microsoft's Internet Explorer allows such action through a Browser Helper Object (BHO). Does Android's browser support a similar function? Thank you -- You received this message because you are subscri

[android-developers] ToggleButton has broken.

2010-05-19 Thread Masao Sasaki
I found ToggleButton image has broken on my device. And, I initialized my device but occored same problem. http://uploader.sakura.ne.jp/src/up8341.png On emulator, it shows correct image. My device is HTC Desire Android 2.1 Japanese version. I want to know how to repair my device, or is it corre

[android-developers] capturing canvas

2010-05-19 Thread bijay
hi i m developing an application., which will take the fingerprint and store to sd card. now my problem is first i have a view where i will take fingerprint in canvas, i created the view using java code not xml layout.now i want to capture entire view and save it to sd card. So can anyone know

[android-developers] Issues in debugging android webkit

2010-05-19 Thread Rajasekhar M
Hi, Have some issues while debugging android webkit through GDB. I tried the steps at http://pdk.android.com/online-pdk/guide/debugging_native.html Just to summarize the steps again: 1. Built the android with debug option and launched emulator. 2. From "development settings" inside emulator, ena

Re: [android-developers] Re: Blocking current Activity/Screen till current task is complete

2010-05-19 Thread Kevin Hanna
TreKing's point is, it's safer to do this asynchronously. There are so many things that can go wrong with an HTTP request, you don't want to have your users waiting for it to return. Especially if there's nothing being displayed to the user, they don't know or care about the response from the se

[android-developers] android.text.Selection: Reading and updating cursor position

2010-05-19 Thread a.e
Hello chums! I've been having this problem, you see; and it has to do with the cursor and Selection. Preamble: I've looked in several places for this answer including: developer.android.com, anddev.org, this group, and #android-dev on irc. Target firmware is 1.5 (API 3) What resources are bein

[android-developers] Working on an Embedded/Mobile Device? Tell VDC about your experiences for a chance to WIN!

2010-05-19 Thread OnTargetEmbedded
VDC is conducting its annual survey of mobile and embedded engineers so if you are involved in the engineering of mobile or embedded systems/software, this is your chance to influence key solution suppliers. The research covers embedded software, hardware, tools, and development practices. Your th

[android-developers] Re: Detect and pick up Gesture in a filled ListActivity

2010-05-19 Thread azal
This exemple may help you http://android-journey.blogspot.com/2010/01/android-gestures.html On Apr 24, 6:49 pm, powder wrote: > Hi, > > I have a piece of code that enables me to detect fling/swipe left and > right, thereby calling moveLeft() and moveRight(). > This works fine in a normal Activit

[android-developers] listVIew returns a wrong number

2010-05-19 Thread zhang hong
Hi, I'm a newbie. I encountered a wired problem. I want to do function tests about Contacts application through Android built-in Instrumentation method. When I test about inserting a contact , and I check the number of the current contacts before insert and after insert , but I found the result is

[android-developers] Throwing an event in an Application, handling it in an Activity

2010-05-19 Thread Leigh
I'm building my first Android application, which consists of a number of Activities and a single centralised Application. The Application has a number of objects which are accessed by each of the activities (data handlers, variables persisted throughout the application, etc). I am looking for a w

[android-developers] Custom Toast from a Service

2010-05-19 Thread Gene R.
I am able to display a custom Toast from an Activity; however, a service does not inherit the findViewById() method needed to build the custom Toast. Is there a way around this? See below: public class CService extends Service { public void onCreate() { super.onCreate(); } @

[android-developers] Bluetooth Serial Connection from Milestone (Droid) Android 2.1 to Holux M241 GPSLogger stalls

2010-05-19 Thread Marek
Hi everyone, I need some help, I am not sure whether I am using the Bluetooth API in a wrong way or whether I discovered a bug. First of all, sorry for all the verbose output, I already tried hard to shorten it and I hope it is sufficient to understand the problem. Should you need more output - I

[android-developers] Custom ListAdapter questions

2010-05-19 Thread Primal
I have implemented a custom list view which looks like the twitter timeline. adapter = new MyClickableListAdapter(this, R.layout.timeline, mObjectList); setListAdapter(adapter); The constructor for MyClickableListAdapter is as follows private class MyClickableListAdapter

[android-developers] Output Signal

2010-05-19 Thread benjamin.grant.du
Dear all, I'd like to be able to control an external device via a signal from a cell phone. Likely I'll be using the nexus one. My question is, is it feasible to output a signal through the mini USB, i.e. just an "off" versus "on" signal? I wasn't sure if you're able to access the min-USB output di

[android-developers] Soft Keyboard Help

2010-05-19 Thread Matthew Madonna
Hi, I am currently developing a new keyboard for android, i'm using the sample keyboard as a base for my program, my problem is, when i upload the program to my device ("Motorola Droid/Milestone"). The physical keyboard seems to lose functionality, the Alt and Shift keys no longer work. Any idea ho

[android-developers] Changing size of content in HorizontalScrollView when phone is rotated by overriding onConfigurationChanged

2010-05-19 Thread kanelbulle
Hello fellow Androiders... I have a problem with resizing content in a HorizontalScrollView when the phone is rotated. I'm overriding onConfigurationChanged in my activity containing the HorizontalScrollView, since I want to handle the resizing myself and tell the scrollview when to resize. Howeve

[android-developers] Android: Variometer/Altitude measurement

2010-05-19 Thread Martin Lierschof
Hi guys, Iam a fanatic paraglider and iam searching for a solution to replace my Variometer with a mobile. I thought android would be the best platform to try this. I wanted to try this on a HTC - Legend. I know that most of the new android phones can measure speed accelleration but a Variometer u

[android-developers] Android + Beagle Board + Facebook

2010-05-19 Thread Bipin Sutariya
Hello, I have developed appliacation that connects to facebook and load post. It works fine on Eclipse emulator, but not working on Beagle board woth android. Here is how my application runs: 1). User click Facebook button to login. 2). WebView opens with facebook login page. 3). User enters user

[android-developers] Trouble debugging application on device

2010-05-19 Thread evilmonkey
Hello, I'm trying to run/debug the "Hello World" application on my G1 using Eclipse, and I'm having a little trouble with it. My phone is attached to my (Windows) machine via USB and it is recognized by DDMS. Whenever I try to run the application, I would receive the following messages in Eclipse:

[android-developers] USB problem after 2.1 upgrade of HTC Eris

2010-05-19 Thread vad
Hello, after installing official Android 2.1 upgrade from Verizon on my HTC Eris I cannot use the phone for development anymore. On my Windows XP I am getting "The hardware was not installed because the wizard cannot find the necessary software" error message. I do have USB driver for Windows r3

  1   2   >