[android-developers] Re: Web Service and Authentication

2008-12-03 Thread Malefico
I have to acces my Web service using Android.. and i would like to know the best approach.. I think im not the only person who have this problem with Android O. On 3 Dic, 19:24, Michael <[EMAIL PROTECTED]> wrote: > This is a bit off-topic on an Android development group, as there's no > Android

[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Dave Sparks
The black screen is probably the result of the 2D engine trying to composite from an empty camera preview frame buffer. The video push buffer surfaces were a late addition to SurfaceFlinger to facilitate the use of video hardware pipelines. I'm not surprised there are some rough edges because it

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread EboMike
Thanks, Romain. I'm grabbing them from a server, but you're right, if anything, I should convert and re-save them in a smaller format before caching them locally. Well, I just tried to get it running quickly :) One laaast thing - You mentioned that an app has a 16MB heap. How is that split up? A

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread Romain Guy
Well you could start by not loading such huge images in a Gallery. Even if the recycler was working correctly it is a LOT of data to read and to decode. It's also a lot of wasted memory (and it also slows drawing down since the bitmaps are drawn rescaled.) You should use BitmapFactory.Options or B

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread EboMike
Thanks a lot for the very quick replies. One last thing: Do you happen to have any remote idea about when the next SDK release is scheduled? My app is currently running out of memory a lot :) On Dec 3, 11:13 pm, Romain Guy <[EMAIL PROTECTED]> wrote: > A memory leak is actually totally expected i

[android-developers] Bitmap.getPixels()

2008-12-03 Thread jman
I painted a transparent green curve on top of a background bitmap. When I use Bitmap.getPixels() to get the result into byte array, I always get a black curve. The curve position is correct but color isn't. Is there anything I need to do before calling Bitmap.getPixels ()? Thanks. --~--~--

[android-developers] Re: Where is the source codes of status bar?

2008-12-03 Thread CXF
Thank you. Just found it in \frameworks\base\services\java\com\android\server \status The status bar is a service. Not in frameworks\base\core. :) On Dec 4, 1:00 am, Jean-Baptiste Queru <[EMAIL PROTECTED]> wrote: > This is probably a question that should be asked on the > android-platform maili

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread Romain Guy
A memory leak is actually totally expected in that case. Gallery, like ListView, GridView, etc. uses a recycling heap. Every time a view is unused, it is moved to the recycler. Unfortunately, if it's never taken out of the recycler... On Wed, Dec 3, 2008 at 11:07 PM, EboMike <[EMAIL PROTECTED]> w

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread EboMike
Thanks a lot, Romain! Question though - even if the gallery is not converting the views, why doesn't it release references to them as you move away? Say, I move from view 0 to view 1, with view 0 being completely off- screen, the gallery should remove its reference to view 0 since it is no longer

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread Romain Guy
I just checked and the bug is simply that Gallery does not convert the views. I'll try to fix it as soon as possible. On Wed, Dec 3, 2008 at 10:45 PM, EboMike <[EMAIL PROTECTED]> wrote: > > I've already asked this in http://groups.google.com/group/ > android-developers/msg/9cdbf47be2505810?hl=en"

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread EboMike
Hello Romain, thanks for your answer. The image I'm using is 1024x768. I've tried a bunch of different ones, but they were all around that size. The 32KB leaks sound like the BitmapFactory's input stream buffers. It should be possible to repro this behavior by creating a new Android app in Eclip

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread Romain Guy
If the convertView is always null and all the views you create are kept in the Gallery's recycler, there's definitely a bug. I would like to know however what is the size (in pixels) of the images you load in the Gallery. On Wed, Dec 3, 2008 at 10:45 PM, EboMike <[EMAIL PROTECTED]> wrote: > > I'v

[android-developers] Re: Play Video Files in Android

2008-12-03 Thread Dave Sparks
If you want a video player app for your G1, there are several available for free in the Market. If you are looking for sample code, check out the SDK sample code. There are also several workable snippets posted in various messages on this list. On Dec 3, 9:19 pm, Jatin <[EMAIL PROTECTED]> wrote:

[android-developers] Re: Is it mandatory to call the getSystemService() function by ecvery application?

2008-12-03 Thread Jean-Baptiste Queru
Using the Android source code as a reference about how to write applications for the SDK isn't necessarily a good idea. Those apps were written before there was a clear definition of the SDK APIs, and sometimes before the SDK APIs even existed (in fact, some of the APIs were created in response to

[android-developers] Re: Trouble inflating a view

2008-12-03 Thread Romain Guy
Apparently you were inflating a View from an adapter and putting that View in the wrong parent, which caused the ClassCastException. On Wed, Dec 3, 2008 at 10:22 PM, CaseyB <[EMAIL PROTECTED]> wrote: > > Ok, I am not sure exactly what the problem was but I fixed it my > creating the layout in cod

[android-developers] Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread EboMike
I've already asked this in http://groups.google.com/group/ android-developers/msg/9cdbf47be2505810?hl=en">This thread: Here is a pretty simple Gallery setup. It seems to leak with every image that's loaded (see the original thread for details). I'm tempted to file it as a bug, but I want to menti

[android-developers] Re: rebuilt browser to g1

2008-12-03 Thread Jean-Baptiste Queru
I'm not quite sure what you mean - the android browser app is built on top of WebView, which is in turn built on top of WebKit.. Writing a browser is a major task, even if you build it on top of WebView. JBQ On Wed, Dec 3, 2008 at 10:35 PM, ifelder <[EMAIL PROTECTED]> wrote: > > Curses. > How b

[android-developers] Re: rebuilt browser to g1

2008-12-03 Thread ifelder
Curses. How big of a pain would it be to write my own browser? it would be essentailly just a webview would it not? i dont understand why the android team put so much effort into building their browser up and not bulding up webkit... On Dec 3, 11:41 pm, Jean-Baptiste Queru <[EMAIL PROTECTED]> wr

[android-developers] Is it mandatory to call the getSystemService() function by ecvery application?

2008-12-03 Thread sunil kumar
Hi Android Developers I would like to know why some of the applications are not calling the getSystemService(TELEPHONY_SERVICE) function for getting the telephony services. For ex: App1:(RadioInfo.Java) is calling the above function to get the telephony service.Like .. getSystemService(TELEPHONY_

[android-developers] Re: Trouble inflating a view

2008-12-03 Thread CaseyB
Ok, I am not sure exactly what the problem was but I fixed it my creating the layout in code and instantiating an instance of it instead of trying to inflate it from xml. On Dec 3, 4:18 pm, CaseyB <[EMAIL PROTECTED]> wrote: > I made the change you suggested but I still get the same error.  It's >

[android-developers] Re: rebuilt browser to g1

2008-12-03 Thread Jean-Baptiste Queru
Indeed, the built-in android browser uses a variety of private system APIs, very unfortunately, which means that rebuilding it in order to be able to install it on a G1 as if it was a 3rd-party application is hard enough to be essentially almost imporsible. JBQ On Wed, Dec 3, 2008 at 4:22 PM, if

[android-developers] Re: Who maintains / supports Android core applications like MMS / Contacts / etc.?

2008-12-03 Thread Jean-Baptiste Queru
Every app that's been open-sourced as part of the Android Open-Source Project is maintained as part of Android. You've reported your bug in the right place, and your bug report is wonderfully detailed. Sadly, keeping up with all the incoming bugs has proven to be a challenge. You might find that

[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Anonymous Anonymous
Hi Ralf, A running ubuntu on virtual machine.. ubuntu 8.04 Eclipse 3.4(ganymede) Java - sun-java6-jdk Thanks again steve On Thu, Dec 4, 2008 at 10:52 AM, Ralf <[EMAIL PROTECTED]> wrote: > > Hmm interesting, would you please be able to indicate: > - Your host platform: linux, mac, windows > -

[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Ralf
Hmm interesting, would you please be able to indicate: - Your host platform: linux, mac, windows - Your version of Eclispe and java? I'll see if I can reproduce it. Thanks in advance, R/ On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous <[EMAIL PROTECTED]> wrote: > Hi , > > That error gone, i

[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Ralf
I uploaded a CL to fix this: http://r.android.com/5099 R/ On Wed, Dec 3, 2008 at 7:52 PM, Anonymous Anonymous <[EMAIL PROTECTED]> wrote: > Thank you Xav, > > When i try to execute "create_all_symlinks.sh" gives Error: Please execute > this from the device/tools/eclipse/script directory which cou

[android-developers] Play Video Files in Android

2008-12-03 Thread Jatin
Hello, Please let me know how to play the Video Files in the Media Palyer of the Android. I have push the .mp4 file inside the SD Card. Jatin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group

[android-developers] Who maintains / supports Android core applications like MMS / Contacts / etc.?

2008-12-03 Thread djpinoy
Hi there, I think I'm having an issue with how the MMS/SMS app handles MMS messages. I'd like to start digging into the issue myself, but my question for now is: Who maintains / supports these core Android applications (platform/packages/apps/*)? I've tried to document the bug as best I can usi

[android-developers] rebuilt browser to g1

2008-12-03 Thread ifelder
I changed the user agent variable (from 0 to 2) in the source code, compiled the source and swapped the system.img files in the android SDK emulator images folder (/android-sdk-linux_x86-1.0_r1/tools/lib/ images/system.img). The emulator loads the new browser fine and displays an iPhone user agen

[android-developers] Foreign Language support/Adding new system fonts

2008-12-03 Thread Eric
Can new system fonts be added to Android? Can applications refer to them? Several threads have addressed this, but I can't find a complete answer. The only method I have found to change system fonts is with "adb push". If I use adb to install a new font can an app use it? Or does Android only al

[android-developers] Re: Issue with pending messages and onDestroy()

2008-12-03 Thread Kevin
Perfect! My problem is now solved, and instead of canceling pending requests, I now reuse the partially completed dataset from the original instance. Thank you! On Dec 3, 9:07 am, "Eric M. Burke" <[EMAIL PROTECTED]> wrote: > Take a look at Ed Burnette's comment on this blog: > > http://androidg

[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Anonymous Anonymous
Hi , That error gone, i separately executed all the scripts... Now few more errors are like "assert cannot be resolved client.java ddmlib/src/com/android/ddmlib" "Button cannot be resolved to a type AllocationPanel.java ddmuilib/src/com/android/ddmuilib" "Can only iterate ov

[android-developers] Re: OpenGL Troubles on the G1

2008-12-03 Thread CaseyB
I'm using the GLSurfaceView from the examples and here's all of my initialization code: /***[Activity]***/ public class OpenGLES extends Activity { GLSurfaceView mView; /** Called when the activity is first created. */ @Override public void onCreat

[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Anonymous Anonymous
Thank you Xav, When i try to execute "create_all_symlinks.sh" gives Error: Please execute this from the device/tools/eclipse/script directory which couldn't find :( *"create_ddms_symlinks.sh and couple of others works fine , any thoughts? regards steve On Thu, Dec 4, 2008 at 7:52 AM, Xavier Duc

[android-developers] Re: hello

2008-12-03 Thread Protocol-X
If you do not want to be on this list then click on the "Edit my Membership" link and choose to quit the group On Dec 3, 10:04 pm, samuel <[EMAIL PROTECTED]> wrote: > I don't want to join this group now? > > Could you delete my account on the list? > > Because I always got lots of mail from this

[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
another quite alarming detail is that if i initially remove the video view from its tab in my activity's onCreate(), then that results in a black screen where the camera preview should be. if i leave the video view installed, then the preview works fine. this is somewhat baffling! --~--~

[android-developers] hello

2008-12-03 Thread samuel
I don't want to join this group now? Could you delete my account on the list? Because I always got lots of mail from this group which is bothered me for a long time. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
well, looks like the workaround isn't working. in onTabChange() between the list selector tab and the tab with the videoview in it, i call - videoTabView.addView (videoView); videoView.setVideoPath (path); videoView.start (); and i get just a black screen. also, even uninstalling the video vi

[android-developers] TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
thanks for the response. i think the bug, tersely described, is that setting a SurfaceView's visibility to GONE (or indeed INVISIBLE) should probably release any hold on the screen. and yes -- my fix is to dynamically add and remove the relevant/offending views as their corresponding tabs bec

[android-developers] Re: HTTP compression lost when using 3G connection

2008-12-03 Thread HCH
If you are doing socket based communication to an HTTP server and tell it that you accept gzipped data then you'll get back gzipped data if it supports it. If the network (T-Mobile's proxy) thinks that's a bad idea and removes your accept gzip header then you won't get back gzipped data. If the

[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Dave Sparks
I'm sure this is an artifact of the way we handle video overlays - they are treated differently than a regular surface. If I understand the behavior, I would agree that it's a bug. As a workaround, you will probably need to tear down the VideoView. For camera preview, you should be able to get aw

[android-developers] Re: Distorted Images taken from Camera

2008-12-03 Thread Dave Sparks
It's not easy to debug code we haven't seen. Can you post a snippet? On Dec 3, 1:42 pm, ryan84c <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to develop an Android app that will allow users to take > pictures. I've tried just about every sample out there, but one > problem I keep having is all

[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Xavier Ducrohet
Actually, you need to go into development/tools/eclipse/scripts and run ./create_all_symlinks.sh This will prebuild some libraries (like androidprefs.jar ping.jar, as well as others), and make them available to the plugin projects. Adding the projects to your plugin projects will not work as the

[android-developers] Plug in in contact/calendar

2008-12-03 Thread Louis
Hi, All: Is possible to add a plug-in/Menu in the Contact application? For example, if user select some contacts, and the 3rd party menu will be insert into the system default one, like "Search in XXX". Then after select the menu, the 3rd party service or activity can be called. Welcome any help

[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Ralf
You need to add the AndroidPrefs and PingService as projects to your workspace or add their source to your classpath. You can find them in git under development/tools/. R/ On Wed, Dec 3, 2008 at 5:51 PM, Anonymous Anonymous <[EMAIL PROTECTED]> wrote: > Hi All, > > When ever i try to add ddms pro

[android-developers] Re: For modular requirement

2008-12-03 Thread Louis
Thanks a lot also On Nov 30, 5:28 pm, "Xiaoliang Ding" <[EMAIL PROTECTED]> wrote: >   Thanks Dianne. Your approaches are very helpful. We will try them both. > >   Thanks >   Ding > > 2008/11/30 Dianne Hackborn <[EMAIL PROTECTED]> > > > A good way to do this is publish it as a service in another

[android-developers] Custom Style

2008-12-03 Thread Protocol-X
Hello, I am trying to implement a custom style to a progress bar. I have the style but i cannot seem to find any documentation on how to actually add it since there is no style folder that can be accessed that i see atleast. Can anyone help? http://schemas.android.com/apk/res/ android">

[android-developers] Re: java.awt.polygon equivalent in android?

2008-12-03 Thread Mike Reed
If you're looking for polygons, try either android.graphics.Path, or android.graphics.Canvas.drawPoints(...) On Dec 3, 2008, at 4:31 PM, chas__123 wrote: Hi, I'm trying to draw an n-dimensional polygon and unable to find an equivant api to awt.polynomial. Does anyone know if there is one? r

[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Dianne Hackborn
There could well be a bug here, nobody has done this kind of thing as far as I know, and the code for handling a SurfaceView is quite complicated and could easily have bugs in this area. So feel free to file a bug. That said, I can't make any promises about this being addressed any time soon, as

[android-developers] Eclipse Error while adding ddms

2008-12-03 Thread Anonymous Anonymous
Hi All, When ever i try to add ddms projects(app,ddmlib and ddmuilib) to eclipse am getting the many errors, eg : "project app missing required java project : 'AndroidPrefs' "project app missing required java project : 'PingService' and hence ending with lots errors everywhere, am i need to edit

[android-developers] TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
i'm looking at the source for TabHost and it turns out that when a tab is selected, its view is set to visibility GONE. hence me setting it to INVISIBLE afterwards probably isn't helping! either way, i think making a SurfaceView GONE should probably stop it claiming chunks of screen and interf

[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Ward Willats
>but then tried subclassing it and >returning false in gatherTransparentRegion() as you suggested. >unfortunately this doesn't affect the behaviour - upon switching to >the playback tab after a preview, the black rectangle remains. Well.poop. >did i misunderstand your message? Nope. Unfort

[android-developers] TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
thanks for the response. the view hosting the camera preview is indeed a surface view. i was using a regular SurfaceView, but then tried subclassing it and returning false in gatherTransparentRegion() as you suggested. unfortunately this doesn't affect the behaviour - upon switching to the pl

[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Ward Willats
Assuming one of these is a surface view, it may be asking its parent container to be transparent so it can, as the docs say, "punch a hole" in the view hierarchy, since the surface is Z-ordered behind the native views. The parent here is the FrameLayout in the tab host that contains the tab co

[android-developers] Application Context

2008-12-03 Thread Cezar Augustus Signori
Hi! It would be pretty good to obtain the application context from a static method, without the use of an Activity object. I mean, there is a lot of frameworks that do it and its really very useful.. Something like Context.getCurrentInstance() would help a lot.. Someone know anything about tha

[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Dianne Hackborn
I wouldn't be surprised if this doesn't work. :} On Wed, Dec 3, 2008 at 3:55 PM, Jason Proctor <[EMAIL PROTECTED]> wrote: > > hey all, > > i have TabActivity which does camera previews in one tab and has a > VideoView in another. they don't get on very well - seems like each > thinks it has contr

[android-developers] TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
hey all, i have TabActivity which does camera previews in one tab and has a VideoView in another. they don't get on very well - seems like each thinks it has control of the screen. in particular, once a preview has been done in the camera tab, then the VideoView tab has a black rectangle the

[android-developers] Re: When an app needs Google account credentials...

2008-12-03 Thread androidian
Folks, I just had a look in the existing Android issues log, and there's one there already requesting this same functionality. (http:// code.google.com/p/android/issues/detail?id=1073&can=1&q=account %20login&colspec=ID%20Type%20Version%20Security%20Status%20Owner %20Summary). Please vote for it

[android-developers] gestureDetector. Where is the onUp?

2008-12-03 Thread polo777
Hi everyone, I am trying to use GestureDetector to detect when a user "press" an element in a list and then release the pression (kind of onUp). // Detect various events and gesture on the gallery final GestureDetector gestureDetector = new Gestur

[android-developers] Re: HTTP compression lost when using 3G connection

2008-12-03 Thread melody
Thanks for the suggestion. "Content-Type: text/xml; charset=utf-8" is what I get in the response header. Just as a test, I tried sending back "Content-Type: text/html" instead, but that didn't change anything with regards to compression. Jean-Baptiste Queru wrote: > I'm not familiar enough w

Re: Fw: [android-developers] Re: Android and bluetooth

2008-12-03 Thread Nick Pelly
I can see there is a use case for this. If we were to do this, it would be through a scary sounding bluetooth permission. "This application can connect to untrusted Bluetooth devics". We'll have to think about this a little. The first step is to get any Bluetooth API out. Let me work on that fir

[android-developers] Re: HTTP compression lost when using 3G connection

2008-12-03 Thread Jean-Baptiste Queru
I'm not familiar enough with the low-level protocols used in 2G or 3G, so I don't know whether there's any compression happening at that level. It sounds like the data is indeed not recompressed by the proxy at the HTTP level (even though I believe that such compression would be beneficial). What

[android-developers] Re: HTTP compression lost when using 3G connection

2008-12-03 Thread melody
I was doing my testing with my own custom written http client (based on Java.net.Socket). In all tests, I sent a Accept-Encoding: gzip, deflate header. The data I was receiving back from my server was not compressed when using 3G, but it was compressed when I was using wifi (which doesn't cause

[android-developers] Re: Replacing Dialer, IM, and SMS Apps

2008-12-03 Thread [EMAIL PROTECTED]
Hi, Is there a way to just change the app launched when the user presses the CALL (green) button ? TIA Shimon On Oct 14, 9:05 am, hackbod <[EMAIL PROTECTED]> wrote: > If you were to ship your own device, you could either pre-configure > the settins to already have that as the default, or simp

[android-developers] Re: Overriding Contacts View

2008-12-03 Thread [EMAIL PROTECTED]
Hi, Wow that was quick - thanks. I know this is the intent. Here is what I did: - I have added it to my manifest XML -

[android-developers] Re: Distribution of updates.

2008-12-03 Thread Don Pellegrino
Thanks for the replys. Direct support for update managment in Market would be the ideal situation. Has Google posted anyting about timing for addition of this feature? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: HTTP compression lost when using 3G connection

2008-12-03 Thread Jean-Baptiste Queru
The compression is standard HTTP compression when seen from the client. As I understand (but I'm not an authority in this domain), if you use the Android HTTP stack, the decompression will happen transparently for you. If you're rolling out your own HTTP code you'll have to do the decompression

[android-developers] Re: HTTP compression lost when using 3G connection

2008-12-03 Thread melody
Hi Jean-Baptiste Queru, Thanks for the info. Just wanted to clarify a minor point. When you say that the data is compressed when it is sent over the air, are you saying that the compression and decompression happens at a layer that I never see? Is the Android OS handling the decompression of t

[android-developers] Is there a way to access the calendar?

2008-12-03 Thread Xargon
I want to perform actions (Intent) on the G1 based on calendar entries, like meetings. Is there a way to either read the calendar from the phone or send something to the phone when a calendar entry is added/updated? The only calendar on the G1 I know of is google calendar, but maybe there is a ano

[android-developers] Distorted Images taken from Camera

2008-12-03 Thread ryan84c
Hi, I'm trying to develop an Android app that will allow users to take pictures. I've tried just about every sample out there, but one problem I keep having is all my image are being distorted. Has anyone ever had this problem? This only happens when I take a picture using my source code. The cam

Re: Fw: [android-developers] Re: Android and bluetooth

2008-12-03 Thread whitemice
Hi Nick Thanks for getting back to me. >>We are likely to prevent Bluetooth data connections (RFCOMM) from apps unless >>the two phones have been paired. It's really hard to make security work any >>other way.<< Right, so none of these Symbian apps are possible on Android… Nokia Sensor (http:/

[android-developers] Re: OpenGL Troubles on the G1

2008-12-03 Thread David Turner
the emulator only runs the Android software OpenGL renderer; while the G1 comes both with the software renderer and a hardware-accelerated one that talks to the graphics chip. Which one your application will end up using depends on which GL configuration you're asking for (I believe that you'll get

[android-developers] Question: How to access to the contact information

2008-12-03 Thread wei zou
Experts, I try to retrieve the contact information from android.provider.Contacts.People.CONTENT_URI in my Activity application. However, the query always gives me error. Any idea why? The code is like: String[] projection = new String[] { android.provider.Contacts.Peo

[android-developers] java.awt.polygon equivalent in android?

2008-12-03 Thread chas__123
Hi, I'm trying to draw an n-dimensional polygon and unable to find an equivant api to awt.polynomial. Does anyone know if there is one? rgds, C --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" gr

[android-developers] Re: creating and writing files

2008-12-03 Thread alexdonnini
Hi Mark, Thanks for the quick reply and the pointer. I replaced new FileWriter("/data/"+fileName) with openFileOutput(fileName, 0) it worked as openFileOutput writes into files (or creates them if they do not exist) in an application's private storage space. The documentation for getFilesDir

[android-developers] OpenGL Troubles on the G1

2008-12-03 Thread CaseyB
I just got my G1 yesterday and it's an AMAZING device!! I am having a bit of trouble with it though. I have written a little OpenGL test app that runs fine in the emulator, but just shows a black screen on the G1. I can choose to run on the emulator or the G1 from eclipse and just by switching

[android-developers] Re: Trouble inflating a view

2008-12-03 Thread CaseyB
I made the change you suggested but I still get the same error. It's dying down in the code that's trying to layout the screen it looks like. Hmmm On Dec 2, 11:23 am, Romain Guy <[EMAIL PROTECTED]> wrote: > Hi, > > The line: > View.inflate(FileBrowser.this, R.layout.icon, null); > > Should

[android-developers] Re: Problem in Android-JNI IPC

2008-12-03 Thread limpwhizzkid
You'll need to add network access permissions to the manifest for the Android application that is loading the shared object. For the second issue, I had noticed that message queues work fine on the emulator, but fail on target. After a closer examination using strace, I realized that system call

[android-developers] android:gravity in ImageView

2008-12-03 Thread sagy.galor
hi when trying to align my ImageView to right side of my LinearLayout nothing hapend it work fine witn TextView what am i doing worng thanks sagy here is my layout xml http://schemas.android.com/apk/res/android"; android:orientation="vertical" android:layout_width="fill_parent"

[android-developers] Re: Capturing frames form MediaPlayer

2008-12-03 Thread Dave Sparks
The next SDK release will have a feature for grabbing a video thumbnail. You can't grab the video frame buffer because it isn't mapped into the application memory space. I suspect an app with the right privileges could take a screenshot, but I don't know the details of how that works. On Dec 3,

[android-developers] Re: start your application on camera button

2008-12-03 Thread Dianne Hackborn
The call button starts an activity, it doesn't send a broadcast, as described in the doc. (Yes this is inconsistent with the camera button and the camera button should probably be changed.) On Wed, Dec 3, 2008 at 11:32 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > Hi, > > I cant get this t

[android-developers] Re: Overriding Contacts View

2008-12-03 Thread Dianne Hackborn
This is the intent launched by the green button: http://code.google.com/android/reference/android/content/Intent.html#ACTION_CALL_BUTTON On Wed, Dec 3, 2008 at 11:42 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > Hi, > > Can you point me to where I can read on how to do this ? > (I mean get

[android-developers] Re: TelephonyManager.listen Freezes when the screen is shutted down!

2008-12-03 Thread vekexasia
It could be.. Thansk for the Fast Reply.. But.. How can i be sure about this? I cannot simulate a change of cell- id :) Thanks :) On Dec 3, 9:01 pm, "Marcio Alexandroni" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm not sure about it, but would a Wake Lock solve the problem? > PARTIAL_WAKE_LOCK ens

[android-developers] Re: How to open a .dex file with emulator?

2008-12-03 Thread Dan Bornstein
On Wed, Dec 3, 2008 at 4:55 AM, Paulo Weber <[EMAIL PROTECTED]> wrote: > How to open a .dex file with emulator? Can you be more specific? What are you trying to accomplish? -dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[android-developers] Re: com.google.wireless.gdata

2008-12-03 Thread AndroidEngineer
Yet you had them in the previous version of the library? Uh huh. I see. On Dec 2, 10:42 pm, Jean-Baptiste Queru <[EMAIL PROTECTED]> wrote: > I'll try to simplify. > > In a nutshell, the com.google.* APIs are Google-specific add-ons that > are not part of the Android core. Those APIs won't be pres

[android-developers] Re: TelephonyManager.listen Freezes when the screen is shutted down!

2008-12-03 Thread Marcio Alexandroni
Hi, I'm not sure about it, but would a Wake Lock solve the problem? PARTIAL_WAKE_LOCK ensures the CPU is running, but the screen may be off. Regards, Marcio Alexandroni www.cialogica.com w  Tel. 55 11 3717-2345    Cel. 55 11 9989-8316 [EMAIL PROTECTED] marcioalexandroni -Original Message

[android-developers] Re: Including SQLite database with application

2008-12-03 Thread Semprebon
Downloading it once is probably the best approach, and also allows you to release updates to the database that your app can check for. You could reduce the bandwidth some by compressing it and having the app decompress it. On Dec 3, 1:50 pm, burton miller <[EMAIL PROTECTED]> wrote: > i'm not tryi

[android-developers] Re: Google Dell To Android

2008-12-03 Thread loty
Dude - enough already. Is there a moderator? Please can this dude!!! On Dec 3, 12:57 am, "Xavier Live Tech.S" <[EMAIL PROTECTED]> wrote: > Google And Dell Are At The Point Of A Huge Merger. Launching A new > phone to run on Android OS on a 3G network. A complete android > interface and stylish ph

[android-developers] Re: creating and writing files

2008-12-03 Thread Mark Murphy
alexdonnini wrote: > Hello, > > Using a call such as > > new FileWriter("/data/"+fileName) > > causes an IO exception. Because that's not a good spot for you to be putting your own data. Use Context#getFilesDir() to find the base directory for data storage for your application, or write them

[android-developers] Re: Compass X & Y inverted on G1 phone?

2008-12-03 Thread Ian
Hi Koush, Thanks for the response On Dec 3, 11:30 am, Koush <[EMAIL PROTECTED]> wrote: > Ahh, you are right, HTC has it reversed. The Y value needs to be > negated for both the accelerometer and compass to align with the > documentation: but what I'm seeing is different to that. FOR THE AC

[android-developers] TelephonyManager.listen Freezes when the screen is shutted down!

2008-12-03 Thread vekexasia
hi, on my onCreate() Activity function i wrote this: <-- CambioCellula myCellula=new CambioCellula(); ... TelephonyManager x=(TelephonyManager)this.getSystemService (Context.TELEPHONY_SERVICE); x.listen(myCellula, PhoneStateListener.LISTEN_CELL_LOCATION); --> Where CambioCe

[android-developers] Re: Overriding Contacts View

2008-12-03 Thread shimo...@gmail.com
Hi, Can you point me to where I can read on how to do this ? (I mean get called when the user pressed the GREEN button). TIA Shimon On Oct 9, 10:22 pm, hackbod <[EMAIL PROTECTED]> wrote: > Just implement the same intent protocols you want to handle.  For > pressing the green button, the intent

[android-developers] creating and writing files

2008-12-03 Thread alexdonnini
Hello, Using a call such as new FileWriter("/data/"+fileName) causes an IO exception. Based on documentation for the FileWriter constructor used above, the IO exception may be caused by the inability to create a file. If I "push" in the data directory a file named fileName (i.e. the value of

[android-developers] Re: Problem in Android-JNI IPC

2008-12-03 Thread Dianne Hackborn
Hi, this is not about developing for the SDK, so should be moved to one of the open source groups. Thanks. On Wed, Dec 3, 2008 at 6:10 AM, Pankaj Munjal <[EMAIL PROTECTED]>wrote: > > Hello folks, > > I have implemented a JNI layer for communication between the Android > Java Application and Andr

[android-developers] Re: Google Dell To Android

2008-12-03 Thread Dianne Hackborn
Are you talking about developing applications for android? It doesn't look like it to me. Thus this is probably the wrong group. Try android-discuss for this kind of material. On Wed, Dec 3, 2008 at 9:03 AM, Xavier Mathews <[EMAIL PROTECTED]>wrote: > > This is on topic "ANDROID" please stop re

[android-developers] Re: market problem

2008-12-03 Thread jacek
I have successfully reposted my nyt.flix too it is back on the market the star rating and user comments are unchanged by the download counters seem reset to 0 we'll see what happens The market website could definitely see some improvement; in particular, some email could be sent to inform us abou

[android-developers] Re: Neeeeeed HELP......How to get the text's length after TextView.setText()?

2008-12-03 Thread Dianne Hackborn
On Wed, Dec 3, 2008 at 9:31 AM, Mark Murphy <[EMAIL PROTECTED]> wrote: > Most likely, your views are not yet laid out when you are calling > test(). Either delay your call to test() until the views are laid out > (e.g., onResume() might be late enough), or manually request a layout() > of your roo

[android-developers] Re: how can i detect my g-phone on the PC via USB?

2008-12-03 Thread Robert Green
I'm still waiting on that Vista 64 driver... On Dec 3, 11:06 am, Mark K <[EMAIL PROTECTED]> wrote: >   Set your phone on debug by going to settings -> applications -> > development, then plug into your PC, when you get the new hardware > found, dialog, point it to the USB driver downloaded from t

[android-developers] Re: start your application on camera button

2008-12-03 Thread [EMAIL PROTECTED]
Hi, I cant get this to work. I am trying this for the CALL_BUTTON and on the emulator. Added the lines below to my manifest. Created the MyReceiver class just like you do here. Then trying to register the receiver in OnCreate: IntentFilter filter = new IntentFilter ("android.intent.act

[android-developers] Re: Database Backup when updating my app

2008-12-03 Thread Dianne Hackborn
As long as your new version is signed with the same certificate and has the same manifest package name, updating is just a matter of installing the new version, which will replace the current version and retain its existing data. On Wed, Dec 3, 2008 at 10:40 AM, pabbot <[EMAIL PROTECTED]> wrote:

[android-developers] Re: Compass X & Y inverted on G1 phone?

2008-12-03 Thread Koush
Ahh, you are right, HTC has it reversed. The Y value needs to be negated for both the accelerometer and compass to align with the documentation: A constant describing an accelerometer. Sensor values are acceleration in the X, Y and Z axis, where the X axis has positive direction toward the right

  1   2   >