[android-developers] Re: Retrieve phone number for given contact

2008-12-03 Thread glenys
Hi, I looked at the stack trace, and realised that I needed permissions to read the contacts. Added that and now it is working fine. Thanks a lot!! Glenys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: G1 Linux

2008-12-03 Thread Al Sutton
pLeAsE bArE tHiS iN MiNd; *http://tinyurl.com/2yqfx2* Ralf wrote: Plus One. On Tue, Dec 2, 2008 at 2:22 PM, Dianne Hackborn [EMAIL PROTECTED] wrote: Because He Was Enthralled By The Awesomeness Of It, Like I Am Too. It Is Awesome! On Tue, Dec 2, 2008 at 2:20 PM, Xavier Mathews [EMAIL

[android-developers] Re: market problem

2008-12-03 Thread sam
It just fixed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL

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

2008-12-03 Thread whitemice
Hi Nick While we are on the subject, I am looking for Android *Ad-hoc* Bluetooth support. Example: Alice and Bob both have my client running on their phones, and walk within Bluetooth range of each other in a social setting. I want the application to: (a) Be able to detect the other Bluetooth

[android-developers] Re: 2D over 3D

2008-12-03 Thread fcalzada
Yes this is what I've done with M3G, and i was about to implement this startegy when i found a workaround using NumericSprite, LabelMarker samples form the APIDemo. On Dec 2, 8:11 pm, Robert Green [EMAIL PROTECTED] wrote: You can just do one square billboard positioned such that it is

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

2008-12-03 Thread Anonymous Anonymous
if its 32 bit you can try this http://dl.google.com/android/android_usb_windows.zip On Tue, Dec 2, 2008 at 4:35 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello everybody... ...thanks for the great job you are doing lately I have a question that is driving me crazy. .how

[android-developers] Re: Distribution of updates.

2008-12-03 Thread Al Sutton
Hi Don, OI Update is the best option there is at the moment for checking for version upgrades. It does rely on developers providing update information as part of their apps or keeping an up to date listing for the app on AndAppStore.com (which not all developers do), so it's not perfect, but

[android-developers] Re: Debug in Dalvik

2008-12-03 Thread martin d.
Hi Davis, check if this helps you: http://code.google.com/android/reference/adb.html#stdout You can redirect stderr and stdout to the normal logfiles. MartinD: On Dec 3, 12:39 pm, [EMAIL PROTECTED] wrote: Hi, For some reason, I need to print some runtime inforamtion in Dalvik. I found

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

2008-12-03 Thread Mark Murphy
burton miller wrote: these solutions will not work for me. i have a 4.5mb database, which i do not want to duplicate by copying it out of the apk and into a directory. copying it from the web could potentially be very slow as well. i can't believe that there is not a better solution to

[android-developers] Re: XML parsing prob

2008-12-03 Thread Mark Murphy
eyedol wrote: Can't figure out how to achieve this. I was to get the values for the tag thumb it works fine if the thumb tag shows once, but if it increases, I get an exception thrown. Exception java.lang.IndexOutOfBoundsException: Invalid location 1, size is 1 snip The Java code to fetch

[android-developers] Re: market problem

2008-12-03 Thread joshv
It appears to be back up. I republished and all my ratings and comments are back in the store. The developer console though shows no ratings/downloads... Hopefully it catches up. On Dec 3, 2:51 am, sam [EMAIL PROTECTED] wrote: It just fixed.

[android-developers] Re: Does Android support any XML Database??

2008-12-03 Thread Mark Murphy
brad wrote: I need to use a XML Database in Android for my thesis. Does Android support any XML Database?? I am not aware of anyone having put a true XML database on Android. AFAIK, XML databases typically are deployed on servers, with significantly more RAM, storage, and CPU power than an

[android-developers] PhoneStateListener GarbageCollection

2008-12-03 Thread blau
I'm trying to figure out the best way to have a PhoneStateListener survive as long as possible and be recreated if necessary. TelephonyManager telephonyManager = (TelephonyManager) aContext.getSystemService(Context.TELEPHONY_SERVICE);

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

2008-12-03 Thread Jean-Baptiste Queru
There are quite a few significant issues with the sensor API as it currently exists in the G1, where many aspects were too loosely defined, and where there are a few bugs. A later version of the Android API is expected to resolve those issues (and to provide backward-compatibility with the

[android-developers] Looking for Talented Developers

2008-12-03 Thread [EMAIL PROTECTED]
Tenth Muse Enterprises is in search of developers with experience in Android and with the ability to expand our ideas to other platforms. Currently we have 2 projects (Perseus and Proteus) that are in need of talented software engineers, one a relatively simple but impactful product that will

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

2008-12-03 Thread CXF
Hi, guys: Where is the source codes of status bar? Thank you! --CXF --~--~-~--~~~---~--~~ 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

[android-developers] Re: Media Player Error -38,0

2008-12-03 Thread Brian
I am also getting the Error (-17,0) when trying to play a video file...here's my code. I cannot see anything in here that would cause a problem. Any insight? The video file *should* play fine. public class VideoActivity extends Activity { private String _videoPath; private

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

2008-12-03 Thread sweety
I did something like this within my code: public void test(){ TextView tv = (TextView)findViewById(R.id.text_view); tv.setText(blablabla); int width = tv.getWidth(); int height = tv.getHeight(); } When test() is called(I am sure it's not called in the view or its parent's

[android-developers] Web Service and Authentication

2008-12-03 Thread Malefico
Hi, I want to implement a web service with authentication.. what is the best approach? I develop a web service in c# with VisualStudio .net and i conume it usin ksoap2.. but i don't know how to make it secure. Thx O. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Testing application

2008-12-03 Thread Dorn Hetzel
I've just been testing on my phone. I hadn't learned until recently about being able to load .apk's from my own website so I just uploaded my test to market under demo and named it something like TestDontDownload :)Still got some downloads and one star reviews :) On Wed, Dec 3, 2008 at

[android-developers] Re: XML parsing prob

2008-12-03 Thread Digestor
I guess the problem is in this line: Job job = jobs.get(i); I seems to me (according to your xml sample) that there is only one job. So in the second run of the for-loop the IndexOutOfBoundsException-Exception occurs. Good luck --~--~-~--~~~---~--~~ You

[android-developers] Re: How do I find qualified Android Mobile Application Developers

2008-12-03 Thread Mark K
I think the bulk of the experienced and talented Android developers are on the left coast, not to sound too provincial. Also most of the experienced Android developers are already employed, being as how there has been a sudden increase in demmand. MM On Dec 2, 11:39 

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

2008-12-03 Thread Jean-Baptiste Queru
This is probably a question that should be asked on the android-platform mailing list. Thanks, JBQ On Tue, Dec 2, 2008 at 11:12 PM, CXF [EMAIL PROTECTED] wrote: Hi, guys: Where is the source codes of status bar? Thank you! --CXF --~--~-~--~~~---~--~~

[android-developers] Re: Image capture

2008-12-03 Thread Mark K
You need to use the camera class in android.hardware, you can grab the byte[] the camera captures by use of the camera callback methods. M On Dec 2, 2:52 pm, fala70 [EMAIL PROTECTED] wrote: Using : Intent intent = new

[android-developers] Re: my PacMan version released

2008-12-03 Thread Mark K
I'll ckeck it out! On Dec 2, 12:37 pm, Andrea [EMAIL PROTECTED] wrote: Dear members, I've just published my Pacman version on AndAppstore.com and on SlideMe.org . It is still under development, so please test and report me bugs, comments and whatever you think maybe useful. I'm

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

2008-12-03 Thread Mark Murphy
sweety wrote: I did something like this within my code: public void test(){ TextView tv = (TextView)findViewById(R.id.text_view); tv.setText(blablabla); int width = tv.getWidth(); int height = tv.getHeight(); } When test() is called(I am sure it's not called in the

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

2008-12-03 Thread Nick Pelly
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. Nick Android Systems Engineer On Wed, Dec 3, 2008 at 1:37 AM, whitemice [EMAIL PROTECTED] wrote: Hi Nick While we are on the

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

2008-12-03 Thread Eric M. Burke
Take a look at Ed Burnette's comment on this blog: http://androidguys.com/?p=2084 The simplest way is to implement onRetainNonConfigurationInstance() to save some data that will be kept across the destroy. You use getLastNonConfigurationInstance() in the new instance of the Activity to recover

[android-developers] Re: Web Service and Authentication

2008-12-03 Thread Michael
This is a bit off-topic on an Android development group, as there's no Android content. --~--~-~--~~~---~--~~ 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] Re: Iptables

2008-12-03 Thread Koush
You won't be able to get iptables onto an actual phone unless it is rooted. Incidentally, iptables has already been cross compiled. It's actually being used on rooted phones to make them serve as wireless routers. See this thread: http://forum.xda-developers.com/showthread.php?t=444004 On Dec

[android-developers] GroupMembership query filtering seems to be broken

2008-12-03 Thread jarkman
I'm seeing some very strange behaviour from the GroupMembership provider. I'm trying to filter for the members of a single group, but (depending on the group ID I filter on) my query results come back with either too many people (some people appear twice, with group IDs that should be excluded by

[android-developers] Database Backup when updating my app

2008-12-03 Thread pabbot
Hi everyone! I was wondering how should I proceed if I want to update my own application. I mean, I'm currently developing a typical app, which stores all the data on a SQLite Database. The point is that once I've delivered the application to my customer and he's been playing around with it for

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

2008-12-03 Thread Koush
That actually sounds like it is working properly. On the G1 accelerometer, (and all other HTC devices), the positive Z axis is face up, the positive X axis is from the center of the screen to the right, and the positive y axis is from the center of the screen to the mouthpiece. Hence, if you

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

2008-12-03 Thread burton miller
i'm not trying to be difficult - i've been a desktop developer for many years - but the desktop systems have a LOT more storage, so the paradigm is fundamentally different than a phone. i'm very hesistant to ship a 4.5mb database and duplicate it all inside the tiny sliver of user storage

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

2008-12-03 Thread Dianne Hackborn
Your best option is to copy it to the SD card. I don't see any chance if supporting SQLite on an database embedded in a .apk any time soon. Ignoring whatever issues there are in SQLite just to do this kind of thing, I wouldn't want to count on Android 3.x running who knows what later version of

[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

[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: 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-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 the

[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 root

[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

[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

[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 Android

[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 the

[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

[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

[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 to a

[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 phone.

[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 trying

[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

[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 present

[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

[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 ensures

[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 to

[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] 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 ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;

[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] 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 be:

[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: 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] 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

[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-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

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

[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

[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

[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

[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: 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: 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 - receiver android:name=CallButtonIntentReceiver

[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 simply

[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: 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).

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

[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 with

[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: 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 control of

[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

[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

[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

[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.

[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

[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] 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] 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?

[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? layer-list

[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 .apk, which

[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

[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 helps

[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

[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 my

[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

[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] 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

[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

[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

[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] 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 group

[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

[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

  1   2   >