[android-developers] Re: Layout problem with ListView

2009-08-14 Thread Boxy
Thanks Mark!! I'm going to have 1 of my favorite beers while coding just for you :) On Aug 14, 6:35 pm, Mark Murphy wrote: > Boxy wrote: > > > It looks like underestimated the difficulty of this question. > > > I tried to post a much simpler version of the question in the beginner > > group bu

[android-developers] Timer not available

2009-08-14 Thread Honest
Hello, I came to know about Timer in android. I read http://android-developers.blogspot.com/2007/11/stitch-in-time.html that Timer is not available at Runtime. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: Is touch screen a mandatory requirement for Android phone?

2009-08-14 Thread Dianne Hackborn
Currently you must have a touch screen to be an android compatible phone. You can certainly take the code and use it with a phone without a touch screen, but at this point the market will not be available for such a device (since third party applications are written with the assumption that there i

[android-developers] Re: Connect Device to PC through USB

2009-08-14 Thread Ravisanjkar S
hi, how do connect SQLite with Android Application? Thanks and Regards Ravisankar S On Sat, Aug 15, 2009 at 10:22 AM, Zeeshan Khan wrote: > Thanks for reply, > > Ok so i think there is no way to develop an application with feature which > can connect to PC(without any individual configur

[android-developers] Re: Sharing data between activities

2009-08-14 Thread powerbyte
Hello Olli, what is the size of byte[] data? may be problem with the heap size. In logcat output, is something like grow heap? if yes, try with increasing heap size. pb On Aug 14, 2:22 pm, Elias wrote: > I have tried to share betweeb two simpleactivities: > > On "parent" activity, I'll start I

[android-developers] Re: Connect Device to PC through USB

2009-08-14 Thread Zeeshan Khan
Thanks for reply, Ok so i think there is no way to develop an application with feature which can connect to PC(without any individual configuration with PC as it would not be feasible) . On 8/15/09, Roman ( T-Mobile USA) wrote: > > > If you want to use the USB as a ethernet network interface the

[android-developers] Re: Google Dev Phone unavavailable! will they extend ADC II deadline..who to ask?!

2009-08-14 Thread Dan Sherman
Considering there's been information regarding ADC2 for a few months now, I imagine the response would be something like "You probably should have purchased a phone more than two weeks before the deadline". I mean, including shipping (imagine 3-5 days), you're cutting it pretty close there... - D

[android-developers] Re: Is touch screen a mandatory requirement for Android phone?

2009-08-14 Thread Sena
Joystick, or a clickable trackball. On Aug 15, 6:32 am, Chris Stratton wrote: > The emulator would seem to demonstrate that a mouse works fine, but > not sure you would do well with no pointing device since so many apps > draw software defined buttons for major functionality. > > On Aug 14, 10:0

[android-developers] Re: ScrollView not resizing when a a child ListView is populated

2009-08-14 Thread Sena
Thanks Diane and Mark, I suppose I'll just have to add children to a LinearLayout programmatically. Thanks S On Aug 15, 4:29 am, Dianne Hackborn wrote: > Hi, that is the whole point of a scroll view -- its children are put in a > virtual scrollable container that doesn't impact the size of the

[android-developers] adc2 submission site

2009-08-14 Thread sleith
Hi, i've just purchased to be an android developer when i visit http://market.android.com/publish, i don't see anything about publish for adc 2 how to submit app for adc 2 ? thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Is touch screen a mandatory requirement for Android phone?

2009-08-14 Thread Chris Stratton
The emulator would seem to demonstrate that a mouse works fine, but not sure you would do well with no pointing device since so many apps draw software defined buttons for major functionality. On Aug 14, 10:08 pm, Mike wrote: > Dear sirs, > > I saw almost all Android devices supported touch scre

[android-developers] Google Dev Phone unavavailable! will they extend ADC II deadline..who to ask?!

2009-08-14 Thread -v-
Hi, I wanted to test my app that I plan to submit for ADC II. But the dev phone from google is unavailable till sept first week! How are we suppose to test it?! I dont want to sign a contract with T Mobile just to test my app. There is no contact email on ADC II !! Will they extend ADC II deadline

[android-developers] Re: Is touch screen a mandatory requirement for Android phone?

2009-08-14 Thread nEx.Software
It is my understanding that a touch screen is not 'mandatory'. n Aug 14, 7:08 pm, Mike wrote: > Dear sirs, > > I saw almost all Android devices supported touch screen.Is touch > screen an mandatory requirement for Android phone?Any risk if an > Android phone got physical keypad only? > > BRs, >

[android-developers] oh my. Refusing connections to localhost?

2009-08-14 Thread dougx
I recently (a week or so ago) updated with a google security patch (the one about applications sharing namespaces; our provider pushed it out late I guess). Anyway, I've found the browser application no longer opens connections to localhost. To test I: - Bound a new socket to 8080 - Wait and log

[android-developers] Application could not be installed on this phone?

2009-08-14 Thread dougx
I just rebuilt an application to use some new assets, and now I get this message on my phone when I try to install it: "Application not installed" "UnitTests could not be installed on this phone" Anyone know what's going on? I've checked and I've definitely got "Unknown sources" ticked on the a

[android-developers] Creating new directory under out\target\product\*\data

2009-08-14 Thread Anurag Singh
I'm trying to write a makefile for the Android system that copies files from my local filesystem to out/target/product*/data. Is there anyway to create new directories from within the makefile? What I'm doing right now is: file := $(TARGET_OUT_DATA)/media/audio/wolf.mp3 $(file) : $(LOCAL_PATH)/me

[android-developers] Is touch screen a mandatory requirement for Android phone?

2009-08-14 Thread Mike
Dear sirs, I saw almost all Android devices supported touch screen.Is touch screen an mandatory requirement for Android phone?Any risk if an Android phone got physical keypad only? BRs, Mike --~--~-~--~~~---~--~~ You received this message because you are subscrib

[android-developers] Re: ScrollView not resizing when a a child ListView is populated

2009-08-14 Thread Dianne Hackborn
Hi, that is the whole point of a scroll view -- its children are put in a virtual scrollable container that doesn't impact the size of the scroll view itself. You should never put a list view inside of a scroll view. On Fri, Aug 14, 2009 at 2:47 PM, Sena wrote: > > Hi, > > I have a ListView whi

[android-developers] Re: Layout problem with ListView

2009-08-14 Thread Mark Murphy
Boxy wrote: > > It looks like underestimated the difficulty of this question. > > I tried to post a much simpler version of the question in the beginner > group but its been hours and it still has not showed up. I think they > have a problem with new topics over there. > > I'll post the questi

[android-developers] Re: Layout problem with ListView

2009-08-14 Thread Boxy
It looks like underestimated the difficulty of this question. I tried to post a much simpler version of the question in the beginner group but its been hours and it still has not showed up. I think they have a problem with new topics over there. I'll post the question here. I apologize for th

[android-developers] Re: which is a true Android phone?

2009-08-14 Thread Michael Leung
I think G1 should be ok if you update to v1.5 On Sat, Aug 15, 2009 at 4:28 AM, jhoffman wrote: > > The G1s, as far as I know, got an Over-The-Air upgrade to v1.5 when it > came out. The only thing that the older hardware precludes you from is > testing your app on the newer hardware. The SDK is

[android-developers] Re: How to redraw only a part of my custom View

2009-08-14 Thread Mark Murphy
Sena wrote: > Will a view resize itself if I invalidate it? I have a ScrollView that > doesn't take the ListView size into account after its been populated. You are probably better served not putting a ListView in a ScrollView, if possible. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-developers] Re: How to redraw only a part of my custom View

2009-08-14 Thread Sena
Hi, Will a view resize itself if I invalidate it? I have a ScrollView that doesn't take the ListView size into account after its been populated. Thanks S On Aug 14, 11:06 pm, Romain Guy wrote: > invalidate(Rect) or invalidate(int left, int top, int right, int bottom) > > On Fri, Aug 14, 2009 a

[android-developers] Re: A way to get all apps and their activities?

2009-08-14 Thread Dianne Hackborn
Yeah GET_INTENT_FILTERS hasn't been implemented. The only way to do this is to parse the manifest yourself. On a computer, you can use "aapt dump xmltree AndroidManifest.xml" to look at the manifest of an existing .apk. On Fri, Aug 14, 2009 at 4:51 PM, EboMike wrote: > > Could you elaborate o

[android-developers] Re: android activity crashing after waking up from sleep

2009-08-14 Thread Dianne Hackborn
The lock screen forces the device into portrait mode. Lock at the exception in the logcat output to see where your app is crashing. On Fri, Aug 14, 2009 at 4:07 PM, jonathan wrote: > > i have an activity that crashes randomly after the device resume from > a long period of sleep, the activity i

[android-developers] how to remove spacing from a bunch of buttons.

2009-08-14 Thread phil
I want buttons flush against each other with no space in between - I do this: http://schemas.android.com/apk/res/ android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="53px" android:padding="0px" android:horizontalSpaci

[android-developers] Re: A way to get all apps and their activities?

2009-08-14 Thread EboMike
Could you elaborate on how exactly to do this? GET_INTENT_FILTERS doesn't really seem to do anything. The closest thing I got was to get the PackageInfo, query through its ActivityInfo objects, and then create an Intent out of each one (Intent intent = new Intent(); intent.setClassName(pi.package

[android-developers] android activity crashing after waking up from sleep

2009-08-14 Thread jonathan
i have an activity that crashes randomly after the device resume from a long period of sleep, the activity is forced to be landscape mode only. When the device resumes from sleep, the activity seems to be redrawing itself in portrait mode, occupying half the horizontal view, then have to force cl

[android-developers] Re: How can I know the calling time of an active call?

2009-08-14 Thread Roman ( T-Mobile USA)
I agree that the telephony support in Android is very limited. I also noticed that it is not trivial to extend the platform code, because also the rild is very limited. As long as needed state information are not exposed from the baseband level it is very difficult to implement more complex TAPI

[android-developers] Re: Simply touching screen reduces fps

2009-08-14 Thread Dianne Hackborn
On a touch screen it is basically impossible to not move your finger. On Fri, Aug 14, 2009 at 1:14 PM, Dmitry.Skiba wrote: > > Thank you all for replying. > > Sleeping in onTouchEvent is an interesting idea, I will try that. > But results in my first post where obtained while *not moving* finger

[android-developers] Re: how to improve gps accuracy

2009-08-14 Thread greg
Perhaps different map projections? If you are interested in measuring GPS receiver accuracy, there are better approaches than using maps. On Aug 14, 3:54 pm, YoFrankie wrote: > Here you can see some of my gps points displaying on google maps. I > think with a better accuracy those points would

[android-developers] ScrollView not resizing when a a child ListView is populated

2009-08-14 Thread Sena
Hi, I have a ListView which is embedded in a ScrollView. I populate the rest of the Views in the ScrollView, then populate the ListView. Unfortunately yhe ScrollView doesn't size itself to accomodate the items in the ListView. Am I missing something? Is there a way to get the View to resize itsel

[android-developers] Re: AdSense & Android - A Disappointed Developer's Rant

2009-08-14 Thread Photics
Hi Mark, This happened in March / April of 2009. I'm not sure if the mobile ads were ready yet. I'm thinking that I wouldn't be able to use them now. Should I apply for the beta if my AdSense account has been closed? (I'm thinking that the answer is no.) I'm not sure mobile apps would work for m

[android-developers] Re: AlphaAnimation not working! Help!?

2009-08-14 Thread Moto
Solved! There is a bug. If I use a theme on my manifest file that contains no background, a custom theme, animation alpha fails. Any input on this? thanks... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: AlphaAnimation not working! Help!?

2009-08-14 Thread Moto
I'm currently trying to animate a particular view for testing. When I press a button I'm triggering the alpha animation and it's not working... It seems very weird to me that it doesn't I know I'm doing it the right way... I'm guessing there is a bug? --~--~-~--~~~---~

[android-developers] Re: How to redraw only a part of my custom View

2009-08-14 Thread Romain Guy
invalidate(Rect) or invalidate(int left, int top, int right, int bottom) On Fri, Aug 14, 2009 at 11:43 AM, fhucho wrote: > > I have a custom view, that overrides the onDraw() method. For better > performance I want to redraw only a small part of Canvas in onDraw(), > how can I do that? > > > -

[android-developers] AlphaAnimation not working! Help!?

2009-08-14 Thread Jason Proctor
i think it's something to do with animating out of your activity to a window you don't control. i recently asked a simple question about whether this was possible and the answer was no. you might be running into that. >And >alphaAnimOUT.setDuration(1000); > > -- jason.software.particle --

[android-developers] Re: Register Receiver for events in separate thread

2009-08-14 Thread Mark Murphy
D.Garcia wrote: > Hi, > I don't know if I'm trying to do something that is wrong: > > I want a separate thread from a service to register a receiver for wifi > events. However as I need a context for doing that (and I'm using > service one) > I'm receiving the intents on the main thread. > Is the

[android-developers] Re: ListActivity vs Activity what are the advantages?

2009-08-14 Thread Yusuf Saib (T-Mobile USA)
ListActivity is a convenience class for people who need an Activity that specifically just has a ListView as its content. If that's all you need, ListActivity saves you the trouble of implementing it yourself. If you need more flexibility, then Activity is the general class. Yusuf Saib Android

[android-developers] Re: AlphaAnimation not working! Help!?

2009-08-14 Thread Moto
And alphaAnimOUT.setDuration(1000); --~--~-~--~~~---~--~~ 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,

[android-developers] Register Receiver for events in separate thread

2009-08-14 Thread D.Garcia
Hi,I don't know if I'm trying to do something that is wrong: I want a separate thread from a service to register a receiver for wifi events. However as I need a context for doing that (and I'm using service one) I'm receiving the intents on the main thread. Is there any possibility to register a r

[android-developers] Re: Select a specific InputMethod by program

2009-08-14 Thread tansaku
Is there any way to get a list of keyboards available? Many thanks in advance CHEERS> SAM On Jul 13, 7:09 am, Dianne Hackborn wrote: > If you just want a custom keyboard, you can use the same keyboard class to > implement a keyboard within your app. Currently that is the only thing that > is r

[android-developers] How to register for SMS receiver action

2009-08-14 Thread n179911
Hi, Can you please tell me how to register SMS received ACTION? I tried the following, but when I set up a breakpoint in onReceive() never get called. Please help if you have any idea. import android.provider.Telephony.Sms.Intents; registerReceiver(new MyReceiver, new IntentFilter(Intents.SMS_

[android-developers] Re: Stack traces from users in the field?

2009-08-14 Thread tansaku
Excellent - just what I was looking for - many thanks. Would also be great to be able to upload log files of user activity to see how users are using an app, but I guess there might be ethical issues with that ... CHEERS> SAM On Aug 12, 2:38 pm, Dan Sherman wrote: > We've been using:http://cod

[android-developers] Re: AlphaAnimation not working! Help!?

2009-08-14 Thread Moto
Sorry for lack info, yes I do that: AlphaAnimation alphaAnimOUT = new AlphaAnimation(1.0f, 0.0f); I tried doing a TranslateAnimation and that works all the time... On Aug 14, 4:37 pm, Jason Proctor wrote: > do you set a duration for the animation? > > >Little more detail: > > >I have attached

[android-developers] AlphaAnimation not working! Help!?

2009-08-14 Thread Jason Proctor
do you set a duration for the animation? >Little more detail: > >I have attached an animation listener and I can see that on start and >on end animation are being triggered properly but still nothing >happens visually except that I see the screen barely flickering... > -- jason.software.partic

[android-developers] Re: Simply touching screen reduces fps

2009-08-14 Thread Dmitry.Skiba
Thank you all for replying. Sleeping in onTouchEvent is an interesting idea, I will try that. But results in my first post where obtained while *not moving* finger at all. Well, maybe there are fluctuations in determining my finger's position, and events were arriving nevertheless. I will check t

[android-developers] Re: AlphaAnimation not working! Help!?

2009-08-14 Thread Moto
Little more detail: I have attached an animation listener and I can see that on start and on end animation are being triggered properly but still nothing happens visually except that I see the screen barely flickering... --~--~-~--~~~---~--~~ You received this mess

[android-developers] AlphaAnimation not working! Help!?

2009-08-14 Thread Moto
I got my activity which extends ListActivity and I'm doing alpha animation on create and when activity is closed. The issue is that only at the onCreate is when my animation works... Anywhere else it doesn't! help please! alphaAnimOUT = new AlphaAnimation(1.0f, 0.0f); * mMenuBar.startA

[android-developers] Re: how to improve gps accuracy

2009-08-14 Thread YoFrankie
Here you can see some of my gps points displaying on google maps. I think with a better accuracy those points would be on the street, i was driving on, wouldn't they? http://steadysolutions.de/Unbenannt.jpg --~--~-~--~~~---~--~~ You received this message because yo

[android-developers] Regarding the Java Version

2009-08-14 Thread Jason Proctor
on the Mac, it's more than an environment variable. you have to select the Java preference order in the control panel. ISTR that the version can be requested on an individual application basis, though i'm not sure that's possible for command line stuff like ant etc. on a Linux machine, setti

[android-developers] Re: Regarding the Java Version

2009-08-14 Thread Roman ( T-Mobile USA)
You can install java 1.5 and java 1.6 on your system. Setup an environment variable which supports the selection of the Java version which you want to use. If you do development on the SDK/platform switch to 1.5, for app development switch to 1.6. For example on my MAC I find the 1.6 bin in /S

[android-developers] Re: Connect Device to PC through USB

2009-08-14 Thread Roman ( T-Mobile USA)
If you want to use the USB as a ethernet network interface then it is not supported. You have to port the USB network support. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individ

[android-developers] custom view like login form

2009-08-14 Thread MontyTech
Hi, i m new to android. I am trying to create custom component. developer wil use this component just like any other component like textview or editText in his layout.xml file. I want this component to be created and rendered by java file only. No layout xml is used. i am not sure whether to exten

[android-developers] Re: Connect Device to PC through USB

2009-08-14 Thread Chris Stratton
On Aug 14, 8:23 am, Zeeshan Khan wrote: > Hi, >        Is it possible to connect to PC through USB from android application. > >        Or is it possible by any other way. >        I want to connect to it to transfer data(video) If you have USB debugging turned on, you can use the ADB program on

[android-developers] Re: Regarding the Java Version

2009-08-14 Thread Anand
Hi All, I also faced the same issue, however below command worked for me. My box is Ubuntu 8.04. $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev $ sudo update-java-alternatives -s jav

[android-developers] Re: how to improve gps accuracy

2009-08-14 Thread greg
Typically, there is some variant of long term averaging involved when measuring the accuracy of a GPS receiver. I wouldn't trust a map or a getAccuracy() method (at least without knowing the details of what it is measuring). - Greg On Aug 14, 1:20 pm, YoFrankie wrote: > The Location class has

[android-developers] How to redraw only a part of my custom View

2009-08-14 Thread fhucho
I have a custom view, that overrides the onDraw() method. For better performance I want to redraw only a small part of Canvas in onDraw(), how can I do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] AndroidAPI App

2009-08-14 Thread Andrei
I wrote my first "Hello World" App for Android: AndroidAPI It should be useful for Android developers Actually it provides full Android Java API on your Android phone and does not require connection Search for AndroidAPI in Market --~--~-~--~~~---~--~~ You rece

[android-developers] Re: Displaying virtual keyboard

2009-08-14 Thread Andrei Bucur
Thanks! You have a gift to wake me up from stupidity :). I actually implemented everything correctly, except that I've made the uber obvious mistake to call the IM in the onCreate() function of the activity. I guess I should have used at least onWindowFocusChanged(). Sorry for wasting your time. O

[android-developers] Re: which is a true Android phone?

2009-08-14 Thread jhoffman
The G1s, as far as I know, got an Over-The-Air upgrade to v1.5 when it came out. The only thing that the older hardware precludes you from is testing your app on the newer hardware. The SDK is the same (unless somebody simply did not update their Android version on the phone). On Aug 14, 2:23 am,

[android-developers] Re: Listing Console does not update applicaitons statistics

2009-08-14 Thread Warren
I have been watching my Developer Console also. They seem to update a couple times a day. So if yours hasn't updated in a couple days something might be wrong. Or there might just be fluctuations in the number of applications to process vs the computer power available to process them. On Aug 6,

[android-developers] 2 weeks left and still no submission site available

2009-08-14 Thread flohier
There's roughly 2 weeks left and still no update on the ADC site to allow application submission. When can we expect an update ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Re: Android sensors - Correct when held vertically, incorrect in the horizontal

2009-08-14 Thread mscwd01
Sorry about that poorly spelt question - I was in a hurry earlier. ;) Basically is there a way to tell the sensors what orientation your activity is in, so if the phone is held horizontally the compass works correctly? On Aug 14, 5:51 pm, mscwd01 wrote: > Forgive me if I am missing the obvious

[android-developers] ListActivity vs Activity what are the advantages?

2009-08-14 Thread Moto
Hi, I was reading on ListActivity and Activity and wanted to know which is better? I only need to display one listview. Would I see great improvements? Does ListActivity handle screen rotation better or it's the same? Thanks! Moto! --~--~-~--~~~---~--~~ You rece

[android-developers] Re: Automated Call answer

2009-08-14 Thread Balwinder Kaur (T-Mobile USA)
You can listen to the event of an incoming Call by using the PhoneStateListener onCallStateChanged, but I don't believe it is possible to intercept an Incoming Call (Outgoing call is a different matter). For what it is worth, there is an old but interesting read on the topic http://groups.google

[android-developers] Re: how to improve gps accuracy

2009-08-14 Thread YoFrankie
The Location class has a getAccuracy() method and displaying the gps coordinates on google maps shows that 30m accuracy often really means that you are 30 away of the point you really stood at. Accuracy doesn't improve, even when not moving. --~--~-~--~~~---~--~~ Y

[android-developers] Re: Arbitrary shape ImageView

2009-08-14 Thread Balwinder Kaur (T-Mobile USA)
You can do that by setting the appropriate listeners. ImageView iv = (ImageView)findViewById(R.id.ImageView01); iv.setBackgroundResource(android.R.drawable.ic_delete); // You can set your arbitrary image here. iv.setOnTouchListener(new OnTouchListener(){ public boolean onTouch(Vie

[android-developers] Re: how to improve gps accuracy

2009-08-14 Thread greg
I haven't yet experimented with the GPS accuracy on Android devices, but I plan to. How did you measure your 30-100 meter accuracy? Did the accuracy improve as you stayed at the same location in the open field? - Greg On Aug 14, 10:10 am, YoFrankie wrote: > with my locationlistener i get accu

[android-developers] Re: Turn on light of trackball on HTC magic

2009-08-14 Thread Dianne Hackborn
There is no direct API, the light is controlled indirectly by posting a notification that requests the lights flash. On Fri, Aug 14, 2009 at 3:43 AM, Anton Pirker wrote: > > Hey list! > > I have a HTC Magic and just love the glowing trackball if you have > missed a call. > > So i wanted to use t

[android-developers] Re: Process.setThreadPriority() & high priorities

2009-08-14 Thread Dianne Hackborn
Being in the foreground doesn't mean you have exclusive access to the device -- it still needs to be able to respond to incoming calls, etc. There is nothing intrinsically wrong with an application working at audio priority for doing audio work... there is something extremely wrong with it runnin

[android-developers] Re: MediaPlayer and memory buffers.

2009-08-14 Thread phil
it would be cool if AudioTrack could do this, but it looks like that only accepts PCM. :( On Aug 13, 9:41 pm, phil wrote: > I have looked at the documentation for MediaPlayer and it doesn't seem > to do what I need.  I need to be able to feed a personalized stream to > the media player.  For ex

[android-developers] Re: AdSense & Android - A Disappointed Developer's Rant

2009-08-14 Thread Mark Murphy
Photics wrote: > To keep things more on-topic, here's what I would try differently if I > was to use AdSense in my app again. Make sure that the Adsense spiders > can grab your content. I was using htaccess to block all but android/ > iphone traffic. I wanted a more safe and secure playground for

[android-developers] Re: Does Android support detecting right/left click on the mouse

2009-08-14 Thread Dianne Hackborn
The Android platform currently doesn't support mouse input at all. Some people may have hacked it to allow for mouse input, but this is very much not supported because none of the UI has actually been designed to work well with a mouse. On Fri, Aug 14, 2009 at 2:38 AM, Nguyen Dinh Minh wrote: >

[android-developers] Re: Displaying virtual keyboard

2009-08-14 Thread Dianne Hackborn
Do the same thing TextView does. On Fri, Aug 14, 2009 at 8:33 AM, Andrei Bucur wrote: > Hello! > AbsListView implements onCreateInputConnection using an EditText, subclass > of TextView :). My question is how should a custom View implement those > methods so one can display the virtual keyboard.

[android-developers] Re: AdSense & Android - A Disappointed Developer's Rant

2009-08-14 Thread Photics
Hello Romain, Your response is encouraging. I'm working on a new app and I'm trying to fight the discouraging feeling. Android is lots of fun to work with, but I'm still annoyed at how the AdSense issue was handled. Would I get burned again by Google if I continued work on Android? Seeing the res

[android-developers] Android sensors - Correct when held vertically, incorrect in the horizontal

2009-08-14 Thread mscwd01
Forgive me if I am missing the obvious here but is there an easy way to get the coorect azimuth/roll/pitch values when the phone is oriented to the horizontal position? When you hold a device certically, the compass and roll/pitch values are correct but if you hold the phobe horizontally the comp

[android-developers] Re: Android : Data Traffic switing between Radio and Wifi link

2009-08-14 Thread Roman ( T-Mobile USA)
This is not yet supported. You would need to change the platform code to support this correctly. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necess

[android-developers] Re: Android : Data Traffic switing between Radio and Wifi link

2009-08-14 Thread greg
I haven't tried switching data connections but I plan to and I took note that data connection handoff issues are discussed in the 'Coding for Life ... Battery Life' video (starting around the 17 minute mark) at http://www.youtube.com/watch?v=OUemfrKe65c I hope that helps. - Greg On Aug 14,

[android-developers] Re: Scope issue - newby question

2009-08-14 Thread Jiri
you are right. Cheers! Jiri Mark Murphy wrote: > Jiri wrote: >> I think it is a scoping issue, but I cant seem to find how to solve it. >> I would appreciate some help. >> >> >> public class SliderTest extends Activity { >> >> private HorizontalSlider slider; >> >> public TextView pVie

[android-developers] Re: which is a true Android phone?

2009-08-14 Thread Balwinder Kaur (T-Mobile USA)
If you use features from the 1.5 SDK that are new (not present in previous versions) then you need to run it on an Android device running 1.5. However, you develop a 1.1 compatible app using the 1.5 SDK. But I would recommend that you should test your entry on a 1.5 device since the folks who wou

[android-developers] Re: Scope issue - newby question

2009-08-14 Thread Mark Murphy
Jiri wrote: > I think it is a scoping issue, but I cant seem to find how to solve it. > I would appreciate some help. > > > public class SliderTest extends Activity { > > private HorizontalSlider slider; > > public TextView pView; > > > @Override > public void onCreate(Bu

[android-developers] Re: canvas.save() / restore() , what is this?

2009-08-14 Thread Jiri
Ok, i see I think coming from flash I think to much in timelines and frames. In Java there is offcourse no such thing, so i understand ( i think ) why one needs to sometimes revert back to previous canvas state. Thnx for clearing that up. Jiri Streets Of Boston wrote: > Before you call sa

[android-developers] Scope issue - newby question

2009-08-14 Thread Jiri
I think it is a scoping issue, but I cant seem to find how to solve it. I would appreciate some help. public class SliderTest extends Activity { private HorizontalSlider slider; public TextView pView; @Override public void onCreate(Bundle icicle) { super.onCreat

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Casper Bang
Whoa, please don't put words in my mouth. I know you've answered my question regarding the subject since. It doesn't really have much to do with the book review but I will go ahead and update my entry anyway. Peace. :) /Casper --~--~-~--~~~---~--~~ You received thi

[android-developers] StateListDrawable issue

2009-08-14 Thread skink
hi, say i have white-only-with-alpha NinePatchDrawable and depending on state i'd like to colorify it and finally to setBackgroundDrawable for some Views. i thought i could use StateListDrawable: sld = new StateListDrawable() // repeat this for every color/state drawable = res.getDrawable(resI

[android-developers] Re: AdSense & Android - A Disappointed Developer's Rant

2009-08-14 Thread Disconnect
http://adsenseaccountdisabled.org/ might help too. (And Romain, there are tons of examples out there of legitimate sites that get banned without any specified reason, automated appeal rejections, and lack of payment. Frequently the first month they hit a single-month payment. http://eyeonsoaps.ne

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Romain Guy
Casper, "It's my humble opinion that all the above books favors XML layout a bit too much, as it makes examples harder to read/type - and lets face it, it's limited how complex a layout will be on such a small screen anyway." They do and rightly so. We already told you why. The XML layouts are s

[android-developers] Re: Overlaying text on a bitmap

2009-08-14 Thread Jack Ha
Code snippet for drawing text on a bitmap: Canvas mCanvas = new Canvas(mBitmap); mCanvas.drawText(...); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, a

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Casper Bang
I second the recommendation for Mark Murphy's books. I wish I had known about these before investing in other ones. Small mini-review to explain why on my blog: http://coffeecokeandcode.blogspot.com/2009/08/android-books-review.html /Casper On 14 Aug., 08:42, Barry Wei wrote: > could anyone sen

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Mark Murphy
Streets Of Boston wrote: > Mark Murhpy's (regular here on these forums) e-books are highly > regarded: > http://commonsware.com/mmurphy.html > http://commonsware.com/books.html Thanks! More generally, watch for books that are being kept up to date for new Android releases. Mine are continuously

[android-developers] Re: Process.setThreadPriority() & high priorities

2009-08-14 Thread niko20
Well actually the other thing too is my program is designed so that if it loses focus (OnPause), it stops the audio creation thread. So even though it's priority is set high, it only runs the high thread while the program is in the foreground, so it shouldn't be too detrimental to the entire syste

[android-developers] Re: canvas.save() / restore() , what is this?

2009-08-14 Thread Streets Of Boston
Before you call save() on the canvas, your canvas is in a certain state (clip region/transformation matrix/etc). Then you call save() and all this info is saved away somewhere. Then other code (e.g. paints of child-views) can modify this canvas anyway they like. Then when control is returned bac

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Roman ( T-Mobile USA)
http://www.amazon.com/Android-Programming-Books/lm/R3IDV45VDVAY3M One beginner book is sufficient, because most of the books are covering the same topics over and over -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email a

[android-developers] Re: how to get notified(or Listen) for the changes in SD card

2009-08-14 Thread Mingli Wang
try FileObserver, it may help u --~--~-~--~~~---~--~~ 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

[android-developers] Re: Displaying virtual keyboard

2009-08-14 Thread Andrei Bucur
Hello! AbsListView implements onCreateInputConnection using an EditText, subclass of TextView :). My question is how should a custom View implement those methods so one can display the virtual keyboard. Andrei. On Fri, Aug 14, 2009 at 6:23 PM, greg wrote: > > I put the following menu option in m

[android-developers] Re: AdSense & Android - A Disappointed Developer's Rant

2009-08-14 Thread Romain Guy
@Mike: I have forwarded your email to some people to see if we can help you. However you should really contact the AdSense support teams, not the Android team. @Disconnect: Please do not use anecdotal evidence as a generalized truth. On Fri, Aug 14, 2009 at 8:22 AM, Disconnect wrote: > Um... his

[android-developers] Re: How to add the character '&' intto the tag?

2009-08-14 Thread Streets Of Boston
Use & On Aug 14, 7:49 am, tomispig wrote: > How to add the character  '&' intto the tag? --~--~-~--~~~---~--~~ 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: any development book for new guy?

2009-08-14 Thread Streets Of Boston
Mark Murhpy's (regular here on these forums) e-books are highly regarded: http://commonsware.com/mmurphy.html http://commonsware.com/books.html On Aug 14, 2:42 am, Barry Wei wrote: > could anyone send me some e-book about develop android application? > > thanks a lot. --~--~-~--~~---

[android-developers] Re: GPRS attach and detach/Wifi connection

2009-08-14 Thread Roman ( T-Mobile USA)
I am assuming that your device detaches from the network. When you are attached the following is possible - the network is capable of tracking the MS (via subsequent location updates) - network is aware of the services and networks that the user may have access to. Location updates are impacting

  1   2   >