[android-developers] Re: can i load pdf url on webview?

2009-05-14 Thread indra
I request anybody who has got work-around to this problem, please step in. It is somewhat urgent. Regards, Indra On May 14, 3:41 pm, indra wrote: > Hi, > > I came across the similar case, where I have to show thepdfcontent > in WebView. > > 1. It seems, there is no WebView API provided. Please

[android-developers] Notification without expanded View

2009-05-14 Thread vovkab
Hi I want create just notification icon without text and expanded view. How to remove expanded view? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

[android-developers] Re: UI problem

2009-05-14 Thread Sukitha Udugamasooriya
h. OK. But without creating a new thread the changes made to the button are not visible (END View pops up). Can you give me a suggestion the original problem please? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

[android-developers] Re: How to record audio in WAV format?

2009-05-14 Thread Anh Khoa Nguyen Pham
Thank so much ! On Fri, May 15, 2009 at 12:07 PM, Marco Nelissen wrote: > As I said, use AudioRecord ( > http://developer.android.com/reference/android/media/AudioRecord.html ) > There might be some sample code in the SDK, I'm not sure. > > > > On Thu, May 14, 2009 at 9:43 PM, Anh Khoa Nguyen Pha

[android-developers] Re: Does Android Messaging support EMS ?

2009-05-14 Thread Anonymous Anonymous
EMS not supported On Fri, Apr 24, 2009 at 4:34 PM, lightchen0...@gmail.com < light_c...@seed.net.tw> wrote: > > Hi All : > I'm studying Android and will start to develop some message > related AP after I familiar with Android , but when I play G1, I don't > know how to send a EMS , I do read

[android-developers] Question for SDK developers - behavior of setFeatureInt

2009-05-14 Thread idev
Hello SDK developers I finally did get a reply for the problem below and I am being told this The problem is that the only Window implementation (PhoneWindow) uses a LayoutInflater in its setFeatureInt method and instantiates the new layout with inflate and attachToRoot=true. Consequently, when

[android-developers] can anyone post me to an example of using ACTION_TIME_CHANGED or ACTION_DATE_CHANGED

2009-05-14 Thread snctln
So I am in the process of trying to get a few intents to work for me, and am having problems on 2 specific intents. I searched these groups and the webs and can 't seem to find any more information than what the documentation gives me. It doesn't seem to matter if I declare the use of these inte

[android-developers] Re: GeoCoder is not working in SDK 1.5

2009-05-14 Thread Android Users
Hi, Even i am facing the same problem. Found this link.. http://groups.google.com/group/android-developers/browse_thread/thread/79f94e31e647db60/343b2b8e5fdafd3d On Fri, May 15, 2009 at 11:17 AM, manoj wrote: > > Hi friends, > > I have two problem regarding Location API for SDK 1.5 > > 1) I h

[android-developers] Re: Geocoder not returning results in 1.5 preview

2009-05-14 Thread Rockingteam
When can we expect the final 1.5 SDK? On Apr 22, 7:21 am, Xav wrote: > Hello, > > This is a packaging bug. Something is missing from the emulator image > to enable this. > > We're fixing it for the final 1.5 SDK > > Thanks for the feedback! > Xav > > On Apr 20, 9:33 pm, z wrote: > > > +1 > > >

[android-developers] GeoCoder is not working in SDK 1.5

2009-05-14 Thread manoj
Hi friends, I have two problem regarding Location API for SDK 1.5 1) I have developed a location based application for SDK 1.0. I have used Geocoder to get the location data. Its working fine on SDK 1.0 emulator and its supported devices. Today I downloaded SDK 1.5, and tried to run the same a

[android-developers] Re: Get current activity from Service

2009-05-14 Thread Mark Murphy
> But how do i post a message to the service from my activity. Option #1: If it is a local service, make the service be a singleton (i.e., in onCreate(), make "this" be available from a public static data member or method), and have the activity call methods on the singleton. Option #2: If this

[android-developers] Re: how display text and images in single view

2009-05-14 Thread Mark Murphy
> currently i am using relative layout to display four TextAreas as a > answer cell > > but how to show images in answer cell ? Use an ImageView. > is there any way to do this?. is there any view ? by using that i am > able to display text as well as images in same time. Use your layouts to dis

[android-developers] Re: how display text and images in single view

2009-05-14 Thread Makrand
Thanks for reply currently i am using relative layout to display four TextAreas as a answer cell but how to show images in answer cell ? is there any way to do this?. is there any view ? by using that i am able to display text as well as images in same time. On May 15, 7:59 am, "Mark Murphy"

[android-developers] Accelerometer is cukoo???

2009-05-14 Thread doubleslash
I see an acceleration of -9 in the y-direction ( due to gravity, of course). Now, keeping the phone fixed, not rotating the screen or anything, I interrupt the app my pressing the call button and then coming back, I see an acceleration of +9 in the x-direction. This switching of the coordinates ha

[android-developers] problem when debugging android application with eclipse

2009-05-14 Thread Nio
Hi there, I am trying to debug android source code with ecliplse. And I can see that eclipse has connect to emulator via ddms. And I can see the log coming out from eclipse, but when I select an process in DDMS, and trying to debug the process, process can't stop on the breakpoint I have set. I t

[android-developers] Re: Get current activity from Service

2009-05-14 Thread Manjunatha M
But how do i post a message to the service from my activity.. On Fri, May 15, 2009 at 10:28 AM, Mark Murphy wrote: > > > I have written a service, which observes couple of databases. Now that > > I don't want to handle this when a particular activity is running. Its > > my own activity. How do i

[android-developers] Re: Geocoder not returning result

2009-05-14 Thread Android Users
Has anyone else faced issue with geocoding on android 1.5? --~--~-~--~~~---~--~~ 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 unsubsc

[android-developers] Re: How to record audio in WAV format?

2009-05-14 Thread Marco Nelissen
As I said, use AudioRecord ( http://developer.android.com/reference/android/media/AudioRecord.html ) There might be some sample code in the SDK, I'm not sure. On Thu, May 14, 2009 at 9:43 PM, Anh Khoa Nguyen Pham wrote: > Hi Marco, > How can i record audio in PCM format in 1.5 ? Could you please

[android-developers] Re: problems with my htc magic

2009-05-14 Thread Android Users
Hi , Even i had the same problem, my device wasn't getting detected. Download the below and install. It will work. http://rapidshare.com/files/229345224/HTCSync_1.0.0.exe.html On Thu, May 14, 2009 at 6:00 PM, allian...@groupmedianet.com < allian...@groupmedianet.com> wrote: > > yes > > I have

[android-developers] Re: how display text and images in single view

2009-05-14 Thread Mark Murphy
> currently I am developing a quiz application. the quiz pattern is one > question and four answers. for answer cell i am using text area. and > its working fine , but now i want to show some images in Answer cell. > how i can do this ? Use a LinearLayout, or a RelativeLayout, or a TableLayout, o

[android-developers] Re: Get current activity from Service

2009-05-14 Thread Mark Murphy
> I have written a service, which observes couple of databases. Now that > I don't want to handle this when a particular activity is running. Its > my own activity. How do i do that??? Have your activity tell your service "I'm alive!" in onResume(), and have your activity tell your service "I'm o

[android-developers] Get current activity from Service

2009-05-14 Thread M.Manjunatha
Hi all, I have written a service, which observes couple of databases. Now that I don't want to handle this when a particular activity is running. Its my own activity. How do i do that??? Regards, Manjunatha --~--~-~--~~~---~--~~ You received this message because y

[android-developers] how display text and images in single view

2009-05-14 Thread Makrand
Hello currently I am developing a quiz application. the quiz pattern is one question and four answers. for answer cell i am using text area. and its working fine , but now i want to show some images in Answer cell. how i can do this ? can use different view ? which view able to show text as well

[android-developers] Re: How to record audio in WAV format?

2009-05-14 Thread Anh Khoa Nguyen Pham
Hi Marco, How can i record audio in PCM format in 1.5 ? Could you please show me some snap code to do this? I'm very appreciate your help! Thanks, NPAK On Fri, May 15, 2009 at 10:35 AM, Marco Nelissen wrote: > > On Thu, May 14, 2009 at 6:54 PM, npak...@gmail.com > wrote: > > > > Hi all, > > > >

[android-developers] Re: Leaked window in PreferenceActivity

2009-05-14 Thread gymshoe
I cannot find a method ".cancel()" for the class PreferenceScreen. Could it be something else? thanks, Jim On May 13, 7:28 am, scuellar wrote: > This is the solution for you problem: > > When you change the screen orientation, the activity is destroy and > then re-created again, so you have

[android-developers] Re: How to record audio in WAV format?

2009-05-14 Thread Marco Nelissen
On Thu, May 14, 2009 at 6:54 PM, npak...@gmail.com wrote: > > Hi all, > > Now i want to record audio in WAV format. What should i do now because > android only supports *.3gp or *.AMR type? If you're OK with your app working only on 1.5 and higher, you could use AudioRecord to get the PCM data,

[android-developers] Re: Many Lists in one Layout ?

2009-05-14 Thread Daehoon Jeon
Sorry for that I can't understand the source code you give totally. Did you have looked the sample in the Android named Notepad? It use SimpleCursorAdapter. Get cursor from NotesDbAdapter first. and use setListAdapter() to set list. It only recognize the first ListView of setContentView(R.layout.m

[android-developers] How to record audio in WAV format?

2009-05-14 Thread npak...@gmail.com
Hi all, Now i want to record audio in WAV format. What should i do now because android only supports *.3gp or *.AMR type? Thanks, NPAK --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

[android-developers] Re: How to get the View used my service?

2009-05-14 Thread Dianne Hackborn
It doesn't serve a view. It isn't associated with any UI in any way. 2009/5/14 gguoling > > Yes, the service don't has UI, but I just want to konw which view it > served currently. > > On 5月14日, 上午12时37分, Dianne Hackborn wrote: > > Services don't show UI of any kind. > > > > On Wed, May 13, 20

[android-developers] Re: Finding if two line segments intersect

2009-05-14 Thread Hamy
Awesome, updated appropriately! On May 14, 7:07 pm, Romain Guy wrote: > Because of > this:http://www.cygnus-software.com/papers/comparingfloats/comparingfloats... > > > > On Thu, May 14, 2009 at 5:05 PM, Hamy wrote: > > > Raphael, > > > It's been a while since I was doing this kind of math, mi

[android-developers] Re: How to get the View used my service?

2009-05-14 Thread gguoling
Yes, the service don't has UI, but I just want to konw which view it served currently. On 5月14日, 上午12时37分, Dianne Hackborn wrote: > Services don't show UI of any kind. > > On Wed, May 13, 2009 at 1:42 AM, gguoling wrote: > > > Hi all, I wrote a simple service, how can I get which view the servi

[android-developers] Re: loading apk resources into a WebView

2009-05-14 Thread Inderjeet Singh
In my App, I use WebView quite a bit without requiring INTERNET permission. Inder On Thu, May 14, 2009 at 12:15 PM, Mark Murphy wrote: > >> i'm using file:///android_asset/resourcename to access apk resources, >> as various online resources and the WebKit doc page suggest, but i'm >> getting no

[android-developers] Re: Finding if two line segments intersect

2009-05-14 Thread Romain Guy
Because of this: http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm On Thu, May 14, 2009 at 5:05 PM, Hamy wrote: > > Raphael, > > It's been a while since I was doing this kind of math, mind telling me > why that would be advantageous here? > > Thanks! > Hamy > > On May 14,

[android-developers] Re: Finding if two line segments intersect

2009-05-14 Thread Hamy
Raphael, It's been a while since I was doing this kind of math, mind telling me why that would be advantageous here? Thanks! Hamy On May 14, 7:02 pm, Raphael wrote: > On Thu, May 14, 2009 at 4:42 PM, Hamilton Turner wrote: > > > > > Hi all, > > I have been searching for something like this for

[android-developers] Re: Finding if two line segments intersect

2009-05-14 Thread Raphael
On Thu, May 14, 2009 at 4:42 PM, Hamilton Turner wrote: > Hi all, > I have been searching for something like this for a while, finally made > what I think is a decent solution on my own, and wanted to share it with the > community. Comments would be appreciated, I think I may have some small bugs

[android-developers] Finding if two line segments intersect

2009-05-14 Thread Hamilton Turner
Hi all, I have been searching for something like this for a while, finally made what I think is a decent solution on my own, and wanted to share it with the community. Comments would be appreciated, I think I may have some small bugs in the equality checking if the lines are parallel (I mi

[android-developers] how to add prebuild apk to the emulator build

2009-05-14 Thread Layeeq
Hi, I am trying to figure how to add a prebuilt apk file to the emulator build. Can some help? Thanks, Layeeq --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send em

[android-developers] Re: Another question about Animation - animate an imageview across several layouts

2009-05-14 Thread Sheepz
anyone? any ideas? On May 12, 5:23 pm, Sheepz wrote: > Hi, I want to be able to make an imageview move from point a to b > while going through several different views. > For example, say I have a table layout, is there any way an imageview > can move from the topleft cell to the bottomright cell

[android-developers] Looking for presenters for the Silicon Valley Android meetup?

2009-05-14 Thread atea...@gmail.com
I am currently looking for developers interested in presenting at the Silicon Valley Android meetup. The meetup will be hosted by Motodev in Sunnyvale on June 16. If you would like more information or are interested in presenting please contact me. This is an opportunity to showcase what you ar

[android-developers] dynamic voltage frequency scaling

2009-05-14 Thread sonya
Does android suppoer DVFS right now? I looked into scaling_cur_freq and there were two different frequencies which i get 245000 and 384000. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] Obtaining field of view of camera

2009-05-14 Thread mscwd01
Hey, Quick question: Is there a method of obtaining the field of view for a phones camera (horizontal and vertical)? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Re: Animation Xml Resource and CycleInterpolator tag: FAIL

2009-05-14 Thread Romain Guy
Cycle interpolator does not exist. And it's not how you specify an animation's interpolator anyway :) On Thu, May 14, 2009 at 2:34 PM, TjerkW wrote: > > I specified an animation resource using xml: > > http://schemas.android.com/apk/res/android";> >                        android:fromAlpha="0.0"

[android-developers] Animation Xml Resource and CycleInterpolator tag: FAIL

2009-05-14 Thread TjerkW
I specified an animation resource using xml: http://schemas.android.com/apk/res/android";> Exactly as explained here: http://developer.android.com/guide/topics/resources/available-resources.html#animation What am i doing wrong here? I am getting this Exception: 05-14 21:19:57.081

[android-developers] Re: How do I add a "EditText" Field to an AppWidget (RemoteViews)

2009-05-14 Thread Romain Guy
Or more precisely, the search widget is NOT an appwidget. It's part of Home. On Thu, May 14, 2009 at 2:05 PM, Dianne Hackborn wrote: > It is as much a hack as it was in previous versions of the platform. > > On Thu, May 14, 2009 at 12:56 PM, Philip May > wrote: >> >> I have heared, that it is n

[android-developers] Re: How do I add a "EditText" Field to an AppWidget (RemoteViews)

2009-05-14 Thread Dianne Hackborn
It is as much a hack as it was in previous versions of the platform. On Thu, May 14, 2009 at 12:56 PM, Philip May wrote: > I have heared, that it is not possible to add an EditText field to a > AppWidget. Now I am asking how it can be possible that there is the Google > search widget that is doin

[android-developers] Re: How do I add a "EditText" Field to an AppWidget (RemoteViews)

2009-05-14 Thread Jeff Sharkey
Dianne already answered this question when you asked it in another thread: http://groups.google.com/group/android-developers/msg/ea4ff18cdb941635 j On Thu, May 14, 2009 at 12:56 PM, Philip May wrote: > I have heared, that it is not possible to add an EditText field to a > AppWidget. Now I am a

[android-developers] Re: Getting the user's own email address

2009-05-14 Thread Jeff Sharkey
Although not officially supported, you might try getting the owner's contact details: Uri.withAppendedPath(Contacts.People.CONTENT_URI, "owner"); And you'll need to ask for the "android.permission.READ_OWNER_DATA" permission to read owner data. Like I said, it's not part of the published Contac

[android-developers] Re: What uniquely identifies an application?

2009-05-14 Thread Alexey Volovoy
life is beautiful i've discovered ant replace command :) import com.test.prod.R import com.test.dev.R Don

[android-developers] google calendar in g1

2009-05-14 Thread Peterman
Hi to all I would like test android calendar application of g1 emulator (android sdk). Anybodys knows how to install this program in a emulator? In a physical device is installed but not in a emulator... thanks --~--~-~--~~~---~--~~ You received this message becau

[android-developers] java.lang.VerifyError

2009-05-14 Thread Nithin
Hi, I added a third party jar in my application and tried to run, but its showing, java.lang.VerifyError... What maybe he reason for this issue, please help Thanks Nithin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[android-developers] Re: Dev Phone can not see paid apps using the 1.1 holiday release

2009-05-14 Thread Guillaume Perrot
I can see paid applications in France with ADP1 / Cupcake recovery image! On 1 avr, 15:50, Eric wrote: > The HTC 1.1 image and instructions that you have linked to is what I > originally put on the phone and still could not see any paid apps, even my > own which are not copy protected.  After se

[android-developers] loading apk resources into a WebView

2009-05-14 Thread Jason Proctor
thanks for the response. yeah it all works fine, i had the resources in the wrong place. btw, it is not necessary to declare internet permission in order to access stuff from the APK. nor should it be, IMHO. >This works for me: >E.g. In one of my apps, I load an HTML page as follows: > >webV

[android-developers] How do I add a "EditText" Field to an AppWidget (RemoteViews)

2009-05-14 Thread Philip May
I have heared, that it is not possible to add an EditText field to a AppWidget. Now I am asking how it can be possible that there is the Google search widget that is doing exactly this. Is the widget a hack? Thanks, Philip -- Weitergeleitete Nachricht -- Von: Datum: 14. Mai 2009

[android-developers] Re: loading apk resources into a WebView

2009-05-14 Thread Streets Of Boston
This works for me: E.g. In one of my apps, I load an HTML page as follows: webView.loadUrl("file:///android_asset/help/helpgube.html"); Below is a snippet from the helpgube.html: And here a snippet from helpgubecss.css body { BACKGROUND-POSITION: 0px 0px; BACKGROUND-IMA

[android-developers] Re: loading apk resources into a WebView

2009-05-14 Thread Mark Murphy
> thanks for the response. do you have 1.5 versions of those projects > btw? i'd just update them, but in practice i've found that the > updater always complains that the projects are too old, and the > creator, which pre-1.5 used to just replace the bits of the project > hierarchy that were missi

[android-developers] Re: Animated progress in Imageview

2009-05-14 Thread Mark Murphy
> That seems like it would work except I can't figure out how to create > a RotateAnimation object. new RotateAnimation(0, 360); > There doesn't seem to be any method I can > directly use to create and set the animation resource to. ? > It gives > constructors for creating from resources, usin

[android-developers] Re: Getting the user's own email address

2009-05-14 Thread Dianne Hackborn
I don't believe you can. And there isn't really "the user's own address" -- they can just as well have an address (or two or three) in the Email app, and never use Gmail at all. On Thu, May 14, 2009 at 11:28 AM, Anna PS wrote: > > Hi, > > I'd like to retrieve the user's own email address, as con

[android-developers] loading apk resources into a WebView

2009-05-14 Thread Jason Proctor
thanks for the response. do you have 1.5 versions of those projects btw? i'd just update them, but in practice i've found that the updater always complains that the projects are too old, and the creator, which pre-1.5 used to just replace the bits of the project hierarchy that were missing wit

[android-developers] Re: What uniquely identifies an application?

2009-05-14 Thread Mark Murphy
> Here is simple example - i have app with package1. i want to use same > activity with package2-n apps. How i rewrite reference to R. so it can > universal ? Now as you can see i put two imports to packages where i > expect R will be generated by ant. > > package com.test; > import android.app.Ac

[android-developers] Re: Animated progress in Imageview

2009-05-14 Thread Romain Guy
The title bar uses a RotateDrawable. The animation is driven by the ProgressBar widget. On Thu, May 14, 2009 at 12:25 PM, Al wrote: > > On May 13, 9:31 pm, "Mark Murphy" wrote: >> I'd vote for RotateAnimation, personally, but that's only because I've >> used it for the scenario you're describin

[android-developers] Re: Animated progress in Imageview

2009-05-14 Thread Al
On May 13, 9:31 pm, "Mark Murphy" wrote: > I'd vote for RotateAnimation, personally, but that's only because I've > used it for the scenario you're describing. > That seems like it would work except I can't figure out how to create a RotateAnimation object. There doesn't seem to be any method I

[android-developers] Re: What uniquely identifies an application?

2009-05-14 Thread Alexey Volovoy
Well android resources are in android.R package . always. To pass a resource ID i need to know what it is. To find out what it is - i need reference R. May be i didn't get what exactly you're suggesting. Here is simple example - i have app with package1. i want to use same activity with package2-n

[android-developers] Re: loading apk resources into a WebView

2009-05-14 Thread Mark Murphy
> i'm using file:///android_asset/resourcename to access apk resources, > as various online resources and the WebKit doc page suggest, but i'm > getting no success. Visit: http://commonsware.com/AdvAndroid/ and download the source code. In there, you will find the WebKit folder containing a pai

[android-developers] loading apk resources into a WebView

2009-05-14 Thread Jason Proctor
i'm using file:///android_asset/resourcename to access apk resources, as various online resources and the WebKit doc page suggest, but i'm getting no success. the docs say that apk asset access is "more restricted" post-1.0, without being specific. do i need to declare a permission or somethi

[android-developers] Re: What uniquely identifies an application?

2009-05-14 Thread Mark Murphy
> So now i want to create two applications with intent > to put them on the market. To do that i'll have to have different > packages in manifest, which will lead to the fact that R.java will be > generated in two different places. Which will make my references to R > from my android code not reso

[android-developers] Re: How to get OpenGLContext class in Android 1.5 SDK

2009-05-14 Thread Yusuf T. Mobile
OpenGLContext appears to have disappeared in 1.5, including the Android platform source code and documentation (except a residual mention here: http://developer.android.com/guide/topics/graphics/opengl.html). Depending on what you are doing, you may want to use the new API GLSurfaceView, which was

[android-developers] Re: What uniquely identifies an application?

2009-05-14 Thread Alexey Volovoy
> We currently don't have a good story for this especially since, as you > found and said in your first post, the R class package depends on the > project. One solution is to move android-agnostic code in a separate > project building a jar library that you then package in your various > android

[android-developers] Getting the user's own email address

2009-05-14 Thread Anna PS
Hi, I'd like to retrieve the user's own email address, as configured in their Gmail application (purpose: just so I can pre-fill a form field for 'Your email'). Is this possible in Android, maybe through one of the ContentProviders, or would it breach privacy in some way? thanks, Anna --~--~---

[android-developers] Custom drawable shadow - how to make it (light-)grey?

2009-05-14 Thread olko
I have a subclassed drawable - using it as an info balloon on maps. Everything's fine besides one thing - it throws a shadow which is of the same colors as the info balloon. Does anybody know how to make the shadow (light-)grey - like usual drawable shadow? --~--~-~--~~~---

[android-developers] Re: What uniquely identifies an application?

2009-05-14 Thread Raphael
On Thu, May 14, 2009 at 10:19 AM, Alexey Volovoy wrote: > > On Apr 28, 12:41 pm, Raphael wrote: >> Your question isn't quite clear. You might want to rephrase it. >> > How to create to packages from  same code base ? We currently don't have a good story for this especially since, as you found a

[android-developers] Re: Marker Info Window

2009-05-14 Thread Wouter
Thank you so much for the link! Indeed this is very usefull already but making a fully featured pop-up like in the Maps application would be very nice! Thx On May 10, 12:22 pm, "Alistair." wrote: > This page makes a start and should give you some ideas. > > http://blog.pocketjourney.com/2008/03

[android-developers] For Orkut, Facebook,myspace users and windows Tips and tricks

2009-05-14 Thread meh.altaf
- http://orkuttipss.blogspot.com/ - Orkut Smiley Collection to Spice Up Your Orkutting... - Hack - Lock Orkut Header on Top of Screen

[android-developers] Re: ListView: Get the Highlighted Item

2009-05-14 Thread Romain Guy
getSelectedPosition(). This won't work in touch mode though, since the selection disappears when the user touches the screen. On Wed, May 13, 2009 at 12:38 PM, Vinicius Santos wrote: > Dear all, I'm having trouble to get the index of the active highlighted Item > on a List View. > > Please, help

[android-developers] Re: Question on performance of layout inflater

2009-05-14 Thread Romain Guy
It won't make much of a difference. I prefer the second approach because it doesn't involve extra code and is thus easier to maintain. On Wed, May 13, 2009 at 11:21 PM, Guru wrote: > > I have question on what is the best approch to take.I have a header view in > all my screens of the app. > > So

[android-developers] Re: gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread Romain Guy
> It would be great though if things like these (i.e. that > RelativeLayout ignores layout_gravity) would appear somewhere in the > documentation. It's not immediately apparent to people why for some > layouts the gravity is simply ignored, and for others it's not. Well no, it's an assumption you

[android-developers] Re: What uniquely identifies an application?

2009-05-14 Thread Alexey Volovoy
On Apr 28, 12:41 pm, Raphael wrote: > Your question isn't quite clear. You might want to rephrase it. > How to create to packages from same code base ? > For your post subject: what identifies an application is the package > name that you provide in the AndroidManifest.xml. I'm very well aware

[android-developers] Re: Dynamically getting application context

2009-05-14 Thread jrgraf...@googlemail.com
Thanks guys, didnt think of sending a broadcast, seems like the best idea, since then I wont need to do any context caching (: On May 13, 1:40 pm, adamphillips12 wrote: > Well there's a few things you can do in this situation. > > You can do this: > > public class MyClass { >   public void doPro

[android-developers] Re: Android-Calendar, How to get first day of week?

2009-05-14 Thread Jeff Sharkey
Keep in mind that GregorianCalendar is actually quite heavy from a Java perspective. In fact, you will probably see a few-second delay when first creating it, as it reads heavy timezone data from disk. The android.text.format.Time class was designed to provide much of the same functionality, but

[android-developers] Re: Many Lists in one Layout ?

2009-05-14 Thread UBZack
BTW, please ignore the layout_below attributes of each ListView in that xml I posted, they're wrong, sorry! On May 14, 10:05 am, UBZack wrote: > I'm guessing that all of your layouts except one are ending up with a > zero width, or zero length.  In any case, the simplest way I can think > of to

[android-developers] Re: How to select open GL objects from motion event?

2009-05-14 Thread Streets Of Boston
You can map it onto the 3D world. You just have to do some math. Get the x and y coordinates of your touch-event. Then you have to do this for both z=0 (near plane) and z=1 (far plane): Translate the line (x,y,0) --> (x,y,1) in screen-coordinates into your 3D coordinates (hint: use gluUnProject(

[android-developers] Re: How do I add a "EditText" Field to an AppWidget (RemoteViews)

2009-05-14 Thread Jeff Sharkey
Here's a previous discussion that should answer your question: http://groups.google.com/group/android-developers/browse_thread/thread/a50a2aff0c8c754d/ j On Thu, May 14, 2009 at 5:09 AM, pMay wrote: > > Hello, > > I am trying to add a "EditText" Field to an AppWidget. > I took the AppWidget ex

[android-developers] Re: Is it faster to draw directly on a portrait or a landscape layout?

2009-05-14 Thread a druid
I don't know the actual G1 hardware. On some HW devices however even hardware rotation has its price like - power consumption - memory bandwidth issues If the architecture has shared memory between application processor and display controller, then even HW rotation might have one read and write

[android-developers] How to select open GL objects from motion event?

2009-05-14 Thread Gerald
Hi, I need to use GLSurfaceView to render some objects, and move or select the objects by finger touch. By overriding the onTouchEvent, I can receive incomming motion events. The motion event contains x and y position in the view, but can't map to open GL 3D world. Is there any way to know which o

[android-developers] Re: Unable to open files

2009-05-14 Thread Marco Nelissen
How are you actually trying to open the files, and what is the error/exception you're getting? On Wed, May 13, 2009 at 12:00 PM, SlumberMachine wrote: > > No matter what I do I am unable to open a file, either in my app's > data directory or on the sdcard and also in a folder on the sdcard. > T

[android-developers] Re: Android Power Management

2009-05-14 Thread Dianne Hackborn
Please ask these questions on android-platform. Also the "Android kernel" is Linux, so you want to look in to what that does (plus the few specific drivers Android uses with it). On Wed, May 13, 2009 at 10:23 PM, Prashant Bhujang < prashant.bhuj...@aricent.com> wrote: > Dear All, > > > > Androi

[android-developers] Re: User input in an AppWidget?

2009-05-14 Thread Dianne Hackborn
It is still built in to home, like it was in previous versions. (And it does far more than an EditText -- it has a auto complete text view, which is customized for special behavior there.) On Thu, May 14, 2009 at 5:37 AM, pMay wrote: > > How did they code the Google Search Widget? > Is that a "

[android-developers] Re: gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread Dianne Hackborn
On Thu, May 14, 2009 at 9:15 AM, matthias wrote: > It would be great though if things like these (i.e. that > RelativeLayout ignores layout_gravity) would appear somewhere in the > documentation. It's not immediately apparent to people why for some > layouts the gravity is simply ignored, and for

[android-developers] Re: Change custom title view of window at run time

2009-05-14 Thread idev
This is what the whole thing looks like. The first time I set title, it works fine (in onCreate). The next time I set it, it works fine (in searchHandler). The third time when I do it (in reloadHandler), the click listeners are not registered and the text in the text view does not change. I had i

[android-developers] Re: dynamically setting drawSelectorOnTop

2009-05-14 Thread damnesia
ok. it turns out that the real problem was TableRow.LayoutParams(2, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT). i changed it to TableRow.LayoutParams(2) and it works as expected. thanks again. On May 13, 11:10 pm, Romain Guy wrote: > Oops my bad, you were talking about *Spinner*. Spi

[android-developers] Re: adb install failure with return code -12

2009-05-14 Thread Raphael
On Wed, May 13, 2009 at 7:55 PM, HUANG Quan wrote: > > hi guys, >    I just installed android sdk1.5 on a ubuntu 8.04 machine. The IDE > is eclipse3.4 with ADT. >    I created a HelloAndroid project with only the automatically > generated code. It compiled successfully and worked on the emulator.

[android-developers] Re: How to debug android source code using eclipse?

2009-05-14 Thread Raphael
2009/5/14 Nio : > > Thanks Keith,but the link can't be open. Could you tell me the steps > to getting up? Try this one: http://developer.android.com/guide/developing/device.html R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: ListView filtering with soft keyboard

2009-05-14 Thread Strickidinho
Thanks for the reply. I'll not implement a filte feature on my list. I've found out that there is a bug (Issue 2078) with listview and checkbox items. And until this is fixed the whole thing makes no sense. I hope this bug will be fixed soon. On 14 Mai, 16:58, Romain Guy wrote: > The emulator (

[android-developers] Re: Eclipse : Unknown error: SDK is not loaded yet. * upgrade failed *

2009-05-14 Thread Raphael
Please check: 1- that you put the SDK path in windows > preferences > android => Note that this pref dialog should list the 3 sdk targets available in 1.5_r1. 2- that you selected the SDK target (1.1 or 1.5) in the properties of your project. R/ On Wed, May 13, 2009 at 8:35 PM, chrispix wro

[android-developers] Re: Prevent clearing Canvas in onDraw() ?

2009-05-14 Thread ellipsoidmob...@googlemail.com
By overriding onDraw you're taking responsibility for drawing the whole view, so you have to draw everything everytime I don't know the layout of your UI, but possibly you can use a view layout with view subclasses such as ImageView - these will then take care of their own drawing evenrs. --~--~-

[android-developers] Created APNs don't show up in APN list (fw 1.5)

2009-05-14 Thread jappit
Hi, I have a piece of code that creates some APNs with this call: -- getContentResolver().insert(Uri.parse("content://telephony/carriers"), apnData); -- The APNs are correctly created both on fw 1.1 and 1.5 (a query correctly returns them) but on fw 1.5 they don't show up in the device APN settin

[android-developers] Re: gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread matthias
Guys, thanks for clearing up! I'll file a bug against the documentation then, because there it says: "public static final int gravity Specifies how to place an object, both its x and y axis, within a larger containing object." Which is true for layout_gravity, but not gravity. Apart from that

[android-developers] calendar bu g?

2009-05-14 Thread andylau
I am sorry。maybe this bug is found already。 when we long press the none-current month day, then the popup is displayed。 we select the “New event” item to create a new event, then we will find that the time is current month day。 --~--~-~--~~~---~--~~ You received t

[android-developers] Re: Enabling LOGD messages in Webkit

2009-05-14 Thread Carol
I want to know how to enable log messages in native webkit C++ code too. I tried the steps posted by "Anonymous" in this discussion (using logcat on my G1 device). I'm able to get logs for some of the webkit files (e.g. webcore\dom\Node.cpp), but unable to get logs for some other files (e.g. web

[android-developers] how can the contact be writen to SIM card?

2009-05-14 Thread 蓝思中
Hi guys, I am trying to store a contact in the SIM card, but I found nothing for it in the G1 phone. Then, I assumed that it may be because G1's application doesn't use the API for that storage, so I tried the following code, ContentValues values = new ContentValues(); > values.put(

[android-developers] Re: Android power-on process

2009-05-14 Thread Tim Bird
On Tue, May 12, 2009 at 11:29 PM, Mark Murphy wrote: > Questions regarding the Android firmware are best asked on a list > pertaining to the Android firmware: > > http://source.android.com/discuss It's not obvious to me which list that would be. The only two that I see that might be firmware-re

  1   2   >