[android-developers] Re: Highlight part of the text in a textview object

2010-04-18 Thread patbenatar
Sorry, bolding and italicizing is the extent of my text formatting knowledge with Android. Anyone else know more about this? On Apr 17, 5:33 am, Sebastian Müller sebastia...@gmail.com wrote: Thanks a lot for your answer. This works great for the Bold thing, but background isnt

[android-developers] Re: Avoid restarting http request on orientation change

2010-04-18 Thread Michael Elsdörfer
Depending on your specific needs, a service might make sense, but for simple cases, it's not strictly necessary. You can instead use Activity.onRetainNonConfigurationInstance(), which allows you to pass live Java objects to the new Activity instance - i.e., for example an AsyncTask object. Just

[android-developers] Re: glCopyTexImage2D - Success anyone?

2010-04-18 Thread Robert Green
Great! I'm glad you got it to work. FYI - CopyTexImage2D is a pipeline stall so you will want to set up your rendering order to account for that. I'm not sure how to optimize but I would try having it be as near to last as possible to start with. I don't know how to get the SubImage function

[android-developers] Re: requestLocationUpdates issue

2010-04-18 Thread Bob Kerns
Actually, just because something is a background service does NOT mean it is running in a different thread. Background services run in the main thread. I suspect that this point of confusion may be involved in your problem, though I don't quite spot the problem. Also, you have a handler there

Re: [android-developers] Re: Selling outside the Android Market-- Use Google Checkout to sell direct from website??? SlideMe.Org??

2010-04-18 Thread Shane Isbell
On Sat, Apr 17, 2010 at 7:57 PM, George | SlideME george.slid...@gmail.comwrote: Wish to also say thank you to Paul for uploading his application to SlideME, considering the negativity of this thread from an ex-partner. I am sure Paul and many others will be well looked after as best as we

[android-developers] Re: glTexImage2D very slow on phones like Nexus one

2010-04-18 Thread Eong
Thanks, Mario. I think it's somewrong with the driver or the chip. It's not just a bandwidth problem. If it's really a bandwidth problem, it only has 1/7 bandwidth of milestone? (150ms compare to 20ms with a full screen tex).That's very funny. I'm working on some libs, which will be used for our

[android-developers] Socket + SurfaceView + multiplayer game problem. Need Help

2010-04-18 Thread croco
Hi all, I'm developping a simple realtime action game 4 Android. It works nice. but now i want deal with animation FPS and i'm facing a big problem i can't solve since couple days now. I started from the famous Lunar Android sample using facebook. got 55-60 frame per second on my G1. it smelt

[android-developers] Re: glTexImage2D very slow on phones like Nexus one

2010-04-18 Thread Robert Green
Eong, All Mario and I are trying to say is that the thing you are trying to do (upload textures every frame) is generally not considered a good practice and workarounds usually exist that are more efficient, especially if you can target higher levels of opengl or use extensions like

[android-developers] Is the bad MotionEvent/Touch slowdown stuff actually fixed on first-gen 2.1 updates?

2010-04-18 Thread Robert Green
Just wondering if anyone can speak on this yet. I'd really like to know what the state of that fix is as 2.1 is rolled out onto first generation (MSM7200-based) devices. As it stands, I don't see much of a problem with touch eating up CPU on the Droid and N1 but those are much faster phones so I

[android-developers] Re: memory problem with image... but strange...

2010-04-18 Thread Kofa
It wasn't solved, now it ask for less memory but still outOfMemory sometimes. I really don't know what to do if anyone knows how to solve it, please tell me!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Is the bad MotionEvent/Touch slowdown stuff actually fixed on first-gen 2.1 updates?

2010-04-18 Thread Robert Green
Actually I take it back about the emulators. I just tested again in the 2.1 emulator and realized that in my first test, I was holding the finger down on the screen but unlike a device, it doesn't send constant motion events if you hold the cursor still. Moving the cursor (touch) around caused

[android-developers] OutOfMemory problem

2010-04-18 Thread Kofa
I really don't know why it's giving me this error... I load an ImageView with an image of 692kb .jpg, using scroll options, so you can scroll it around... the strange it's that when the mobile it's connected to the VM it's less possible to happen. So...how can I prevent this? is there anyway that

Re: [android-developers] Socket + SurfaceView + multiplayer game problem. Need Help

2010-04-18 Thread satish bhoyar
Hi, I am not big Android programmer .. I cant solve this problem ... but wish to learn this cocept like u have ,Socket + surfaceView is there any specific link that u have through which i can learn abt this ..? please send me if u can ... thanks, satish On Sun, Apr 18, 2010 at 1:48 PM,

[android-developers] Re: Is the bad MotionEvent/Touch slowdown stuff actually fixed on first-gen 2.1 updates?

2010-04-18 Thread Mario Zechner
I can confirm that the issue is still there in Android 2.0.1 on my Milestone as well (and more pronounced) on my HTC Hero which still runs 1.5. I put together a quick test that you can download from http://file-pasta.com/file/0/touchflood.apk (Note: it's 300kb because i used a game dev framework

[android-developers] Re: Is the bad MotionEvent/Touch slowdown stuff actually fixed on first-gen 2.1 updates?

2010-04-18 Thread Robert Green
I've tried sleep() and have switched to wait(1000), notify() / yield() as outlined by some other devs. I have no empirical evidence that one works any better than the other. Both consume a range between 25-36% of the CPU by system_process while touching. That's a full third of the CPU of the

[android-developers] Disable or Override the Car Dock App

2010-04-18 Thread shookie10
Is there any way to disable or override the car dock app? I want the application that I am writing to be able to launch when the device is placed into the car dock. I have created a BroadcastReceiver for my app but the standard car dock app displays, not my app. I know that my broadcast

Re: [android-developers] Disable or Override the Car Dock App

2010-04-18 Thread Mark Murphy
shookie10 wrote: Is there any way to disable or override the car dock app? You should be able to provide an alternative to the car dock app by having an activity with an intent-filter with the CATEGORY_CAR_DOCK category. I would expect the user to then get a choice of what activity to start

[android-developers] Re: Socket + SurfaceView + multiplayer game problem. Need Help

2010-04-18 Thread croco
FYI, I've raised to 18 FPS by using LinkedBlockingQueue instead of 8FPS with while design in Socket writer. But we are far from 60FPS per second. Any help? Thanks Luc On 18 avr, 10:18, croco zeug...@gmail.com wrote: Hi all, I'm developping a simple realtime action game 4 Android. It works

[android-developers] Re: Clear defaults programmatically

2010-04-18 Thread Menion
I'm using this code ... hope it helps PreferenceManager.getDefaultSharedPreferences(context).edit().clear().commit(); On Apr 16, 11:09 am, Bonifaz bonifaz.kaufm...@gmail.com wrote: Does anyone know how to clear defaults of my own app by code. I know that a user can always go to Manage

[android-developers] Disabling records in a List View

2010-04-18 Thread Prathamesh Shetye
I have a list view which is populated via records from the database. Now i have to make some records visible but unavailable for selection, how can i achieve that? here's my code public class SomeClass extends ListActivity { private static ListString products; private

Re: [android-developers] Disabling records in a List View

2010-04-18 Thread Mark Murphy
Prathamesh Shetye wrote: I have a list view which is populated via records from the database. Now i have to make some records visible but unavailable for selection, how can i achieve that? Step #1: Create your own subclass of ArrayAdapter Step #2: Override areAllItemsEnabled() in that

[android-developers] Re: Disabling records in a List View

2010-04-18 Thread Prathamesh Shetye
Thanks Mark, I'll try it out. Cheers! On Apr 18, 6:20 pm, Mark Murphy mmur...@commonsware.com wrote: Prathamesh Shetye wrote: I have a list view which is populated via records from the database. Now i have to make some records visible but unavailable for selection, how can i achieve

[android-developers] Re: HTC Desire keyboard problem

2010-04-18 Thread jamesc
Hi Michael It'll be the Sense UI's IME which has different behaviour to the stock Android IME. Sadly, I'd suggest that you get your hands on a Sense UI- equipped device (even a Hero, which whilst it has 1.5 on it, may help you track that issues). When you say that ACTION_UP doesn't work, is this

Re: [android-developers] Re: What's wrong with this location code?

2010-04-18 Thread Michael Thomas
patbenatar wrote: Perhaps you are forgetting about the chain and theodolite provider. Mike- What are those? The LocationManager class only has these two provider constants: GPS_PROVIDER, NETWORK_PROVIDER. I was just making a funny, but the larger point is to not code things as if

[android-developers] Using Selector to change ImageButton's background while keeping the content image

2010-04-18 Thread Sebastian Mauer
Hi there, I am currently trying to customize ImageButton to show different draweables as background of the Button while keeping the image set via the src attribute. That's my custom_button.xml: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Re: Disabling records in a List View

2010-04-18 Thread Prathamesh Shetye
Hi Mark, Here's what I did My Existing Class extending ListActivity / ***/ public class LifeProducts extends ListActivity { private static ListString products; private static

Re: [android-developers] Re: Is the bad MotionEvent/Touch slowdown stuff actually fixed on first-gen 2.1 updates?

2010-04-18 Thread Ralf Schneider
I have already talked a lot about the touch slow down in this forum. There is another observation I would like to add, may be this can help to track the problem down. One of my projects is an Argumented Reality Game. Of course this kind of App eats energy (CPU cycles) like crazy: In my app I

[android-developers] Need some knowledge on android emulator | Please Help

2010-04-18 Thread Thisara Rupasinghe
Hi All, I'm interested in doing some enhancements to android emulator (implement webcam on emulator). Therefore I'm following the android source and emulators source to get basic understanding the connection between modules. But its really hard to understand it for someone who is new to

Re: [android-developers] Re: Disabling records in a List View

2010-04-18 Thread Mark Murphy
Prathamesh Shetye wrote: Hi Mark, Here's what I did My Existing Class extending ListActivity / ***/ public class LifeProducts extends ListActivity { private static ListString

[android-developers] Re: Disabling records in a List View

2010-04-18 Thread Prathamesh Shetye
never mind, solved it, cheers mate! On Apr 18, 8:26 pm, Prathamesh Shetye prathamesh.she...@gmail.com wrote: Hi Mark, Here's what I did My Existing Class extending ListActivity / *** /

[android-developers] Re: OutOfMemory problem

2010-04-18 Thread Streets Of Boston
How big, in pixels, is the image? On Apr 18, 5:50 am, Kofa elk...@gmail.com wrote: I really don't know why it's giving me this error... I load an ImageView with an image of 692kb .jpg, using scroll options, so you can scroll it around... the strange it's that when the mobile it's connected to

Re: [android-developers] Re: glCopyTexImage2D - Success anyone?

2010-04-18 Thread Andres Colubri
FYI - CopyTexImage2D is a pipeline stall so you will want to set up your rendering order to account for that. I'm not sure how to optimize but I would try having it be as near to last as possible to start with. Thanks for the recommendation. In fact, I'm using it as the very last function in

[android-developers] Re: What's wrong with this location code?

2010-04-18 Thread Maps.Huge.Info (Maps API Guru)
Personally, I wouldn't be making any coding plans for using the Galileo system for location handling any time this decade. It will be amazing if the EU manages to organize it into a working system in any lifetime of current OS's or apps for that matter. Think of how long it took to get a working

Re: [android-developers] Re: Selling outside the Android Market-- Use Google Checkout to sell direct from website??? SlideMe.Org??

2010-04-18 Thread Shane Isbell
On Sun, Apr 18, 2010 at 12:04 AM, Shane Isbell shane.isb...@gmail.comwrote: On Sat, Apr 17, 2010 at 7:57 PM, George | SlideME george.slid...@gmail.com wrote: Wish to also say thank you to Paul for uploading his application to SlideME, considering the negativity of this thread from an

[android-developers] Re: SlidingDrawer handle

2010-04-18 Thread Pinheiro
Thanks, Bob! Unfortunately, it seems Launcher's handle is not accessible (at least it's not in the SDK). Bummer, will have to reinvent the wheel and make my own :-( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Problems with big buttons using android:duplicateParentState

2010-04-18 Thread marco.alexander.schmitz
is there nobody who can help me? 2010/4/17 Marco Alexander Schmitz marco.alexander.schm...@googlemail.com Hi you all, today I've got a silly little problem and I hope you can help me out. I want to create a big button that contains a bitmap and some text. So I created a container

[android-developers] aidl.exe is missing from tool directory

2010-04-18 Thread Anurag Singh
Hello All I had install SDK 2.0. I am not able to locate aidl.exe in tool directory. Please help to locate. Is there any location from where I can download? Thanks In Advance. Anurag -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] aidl.exe is missing from tool directory

2010-04-18 Thread Mark Murphy
Anurag Singh wrote: I had install SDK 2.0. I am not able to locate aidl.exe in tool directory. It will not be in the top-level tools directory, but in a platform-specific tools directory. For example, if you have installed the SDK in C:\SDK, you will find the Android 2.1 version of aidl.exe in

Re: [android-developers] aidl.exe is missing from tool directory

2010-04-18 Thread Anurag Singh
Thanks a lot, I got the same. I had install SDK 2.0. I am not able to locate aidl.exe in tool directory. It will not be in the top-level tools directory, but in a platform-specific tools directory. For example, if you have installed the SDK in C:\SDK, you will find the Android 2.1 version of

[android-developers] Can i get this layout with List view??

2010-04-18 Thread SheikhAman
Hi. please find the link to attached file, i need to have this kinda layout. is it possible?? well perhaps it is, but im not getting it how to do it. i want to specify the whole layout in the xml, but it gives runtime error here's the link to the blue print of desired layout:

[android-developers] Handling Orientation Changes in AppWidgets

2010-04-18 Thread Adam Brookman
We have created an AppWidget that takes user inputted text into an EditText and displays a calculated amount of text inside a TextView on the Home Screen. We calculate the amount of text based on the AppWidgetInfo.minWidth, minHeight attributes. We do this to simulate scrolling; we cut up the

[android-developers] Re: requestLocationUpdates issue

2010-04-18 Thread Tejas
If you're going to do that, why involve a handler at all? Now suppose, I use any other function in my service class instead of handler and say I'm performing a time consuming task in that function. If the onDestroy method of the service is called, I assume that it will terminate my function

[android-developers] Portrait/landscape question

2010-04-18 Thread Isaac Wagner
I've got an app that I don't want to auto-rotate. Currently, I've got it set up so that it is always in portrait mode. However, I'd like to add a setting to my preferences where the user can choose either portrait or landscape mode. Is there a way to force screen rotation? Or, could I perhaps

Re: [android-developers] Can i get this layout with List view??

2010-04-18 Thread Anurag Singh
I think, it's not right way. TextView android:id=@+id/widget39 android:layout_width=wrap_ content android:layout_height=wrap_content android:text=TextView android:layout_alignParentBottom=true android:layout_alignParentLeft=true Button android:id=@+id/widget38 android:layout_width=wrap_content

Re: [android-developers] Portrait/landscape question

2010-04-18 Thread Anurag Singh
Specify in your manifest file into Activity block as android:ScreenOrientation=portrait I've got an app that I don't want to auto-rotate. Currently, I've got it set up so that it is always in portrait mode. However, I'd like to add a setting to my preferences where the user can choose either

Re: [android-developers] Handling Orientation Changes in AppWidgets

2010-04-18 Thread Anurag Singh
Implement OnConfigurationChanged() function of your Activity and also mention in your manifest as android:configChanged=s=orientation How can we tell our AppWidget to recalculate the amount of text displayed on screen orientation change? Is this possible? How would you solve this problem?

Re: [android-developers] Handling Orientation Changes in AppWidgets

2010-04-18 Thread Anurag Singh
Implement OnConfigurationChanged() function of your Activity and also mention in your manifest as android:configChanges=orientation How can we tell our AppWidget to recalculate the amount of text displayed on screen orientation change? Is this possible? How would you solve this problem?

Re: [android-developers] Portrait/landscape question

2010-04-18 Thread Isaac Wagner
On Sun, Apr 18, 2010 at 2:24 PM, Anurag Singh anusingh...@gmail.com wrote: Specify in your manifest file into Activity block as android:ScreenOrientation=portrait My question is, how do I change the orientation through my program? I want the user, through a settings option, to be able to

Re: [android-developers] Portrait/landscape question

2010-04-18 Thread Justin Giles
Why would you want to allow them to set it in settings when Android handles the rotation automagically? All you have to do is have a xml file in your layout directory, then for landscape have a xml file (with the same name) in your layout-land directory. When in portrait mode Android looks to

[android-developers] Do the USB drivers work on XP64?

2010-04-18 Thread ThomasWrobel
I have two machines, one a WindowsXP32, and one 64. Both with AMD64 chips. I have eclipse on both, and the SDK on both. I'm using the usb drivers with the HTC Legend (http:// groups.google.com/group/android-developers/browse_thread/thread/

[android-developers] Defining an XML vertical line drawable

2010-04-18 Thread Caspa
Hello, I'm trying to figure out how to define a verical line (1px thick) to be used as a drawable. to make a horizontal one, it's pretty straightforward: shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=line stroke android:width=1dp android:color=#FF/

Re: [android-developers] Portrait/landscape question

2010-04-18 Thread Isaac Wagner
On Sun, Apr 18, 2010 at 3:25 PM, Justin Giles jtgi...@gmail.com wrote: Why would you want to allow them to set it in settings when Android handles the rotation automagically? All you have to do is have a xml file in your layout directory, then for landscape have a xml file (with the same name)

[android-developers] Re: Is the bad MotionEvent/Touch slowdown stuff actually fixed on first-gen 2.1 updates?

2010-04-18 Thread Robert Green
The fundamental issue is that there are too many instructions per event being executed. There is no way around it other than optimizing the event handling code in KeyInputQueue. No amount of waiting or sleeping will fix that because those events must run through that code and that code appears

Re: [android-developers] Portrait/landscape question

2010-04-18 Thread Mark Murphy
Isaac Wagner wrote: On Sun, Apr 18, 2010 at 3:25 PM, Justin Giles jtgi...@gmail.com wrote: Why would you want to allow them to set it in settings when Android handles the rotation automagically? All you have to do is have a xml file in your layout directory, then for landscape have a xml file

[android-developers] Re: Bluetooth pairing request

2010-04-18 Thread Rafał Grzybowski
But when the devices are paired using Settings/Wireless networks/Wi- Fi then the notification is skipped and the dialog is shown immediately. I need the same... On Apr 14, 11:15 am, VovaN vladimir.nedashkivs...@gmail.com wrote: If you click on notification dialog'll  appear. It's Android

Re: [android-developers] Re: Performance comparison NDK vs SDK

2010-04-18 Thread Ralf Schneider
Pre-scale the background image to match the device resolution. Split the background image in texture tiles like 256x256, 128x128, Blitt the tiles separately. 2010/4/8 lixin China smallli...@gmail.com Hi Schneider: As you said avoid scale the texture. Could you tell me the solution how

Re: [android-developers] Portrait/landscape question

2010-04-18 Thread Isaac Wagner
This discussion list gets a lot of people asking questions where they are barking up the wrong tree. It is commonplace to inquire about their rationale for barking up that tree and steer them in the direction of more common patterns. Sometimes, the barking is indeed up the correct tree, but

[android-developers] Native Bluetooth programming

2010-04-18 Thread Rafał Grzybowski
I'd like to create native library for Java (using Android NDK) for Bluetooth. I have read a sample from http://blog.bruary.net/2009/07/android-bluetooth-hacking-using-ndk.html but I cannot get hci_get_route working on my HTC Legend. It returns ENODEV, Bluetooth is enabled and appropriate

[android-developers] app that 'animates' drawing

2010-04-18 Thread Rob Y.
I'm trying to learn about Android programming by rewriting a C app I've moved from DOS to X-windows to Windows as a learning tool. It's just a silly little app that draws symmetrical 'game of life' patterns on the screen in a kaleidoscopic fashion. It's structured so that the patterns do their

Re: [android-developers] Re: SlidingDrawer handle

2010-04-18 Thread Chris Eby
It looks like you have to dig a little deeper. The images and the layout referencing them are in the Launcher package, which is open source. http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=blob;f=res/layout-land/launcher.xml On Sun, Apr 18, 2010 at 12:04 PM, Pinheiro

[android-developers] Re: Do the USB drivers work on XP64?

2010-04-18 Thread DonFrench
Nope, they don't work on XP-64. On Apr 18, 12:28 pm, ThomasWrobel darkfl...@gmail.com wrote: I have two machines, one a WindowsXP32, and one 64. Both with AMD64 chips. I have eclipse on both, and the SDK on both. I'm using the usb drivers with the HTC Legend (http://

[android-developers] Re: Is the bad MotionEvent/Touch slowdown stuff actually fixed on first-gen 2.1 updates?

2010-04-18 Thread Mario Zechner
For fun i extended the example i posted earlier. It now feature cpu usage output derrived from /proc/stat which should be enough to given an indication of the slow down occuring due to touch events. The setup: - A GLSurfaceView - An OnTouchListener that does nothing but return true - A simple

[android-developers] Re: app that 'animates' drawing

2010-04-18 Thread Rob Y.
Poking around here some more, it seems like the problem is the way SurfaceView double-buffers output. You kind of have to draw the entire surface every time. I had tried unlocking and relocking on every 'delay' call, but that didn't work either, presumably because the relock produced an

[android-developers] Re: Selling outside the Android Market-- Use Google Checkout to sell direct from website??? SlideMe.Org??

2010-04-18 Thread Koxx
Hi, after a long talk with George and some 'lost' emails, I finally managed to be paid few days ago (April 8). The main problem was with invoice. It is very difficult to know what is needed by SlideMe to get your payout. You need to request payout balance (we should receive a summary each month ?

[android-developers] Transfer List of specific objects across intents

2010-04-18 Thread raqz
Hi, I wish to send a list of type MyFriend from one activity to another. I dont find a bundle.put.. for such an requirement in the api's. Is there a way somebody could suggest through which I could transfer different kinds of data. Thanks, Raqeeb -- You received this message because you are

[android-developers] Compiling FFMpeg as NDK Shared library

2010-04-18 Thread sfomra
Has any one successfully compiled ffmpeg for use as a shared library?? I tried the doing what http://oo-androidnews.blogspot.com/2010/02/ffmpeg-and-androidmk.html says but i keep getting the following message on compile Android NDK: Building for application 'ffmpeg-org' make: *** No rule to

Re: [android-developers] Re: Selling outside the Android Market-- Use Google Checkout to sell direct from website??? SlideMe.Org??

2010-04-18 Thread Shane Isbell
Cool, at least something is coming out of SlideME. George, I have a general policy of not attacking people personally, but in this case, I'll make an exception because I think it is warranted. You are a dishonest individual. You came on this list and publicly accused me of being the reason

[android-developers] Re: requestLocationUpdates issue

2010-04-18 Thread Bob Kerns
OK, I understand your thinking a bit better, so hopefully I can explain a bit better. onDestroy() is only called when your application is idle. The system will NEVER directly call a lifecycle method except when the main thread is idle If you are running some long-lived function from, say,

[android-developers] Re: app that 'animates' drawing

2010-04-18 Thread Rob Y.
I guess the only mechanism that would work is to maintain a bitmap of the whole Surface and draw *that* incrementally.  Then on each 'delay' request, lock the Surface and copy the entire bitmap in to draw the next 'frame'.  Ouch. Tried this, and it seems to work. Still eager for suggestions

[android-developers] Re: onSharedPreferenceChanged() Not Called in Live Wallpaper (WallpaperService) Engine

2010-04-18 Thread shaun
Operator head spacing I just looked at AndroidManifest.xml again and I noticed I accidentally left the configuration for the service to run in a new process each time instantiated (via android:process=:myprocessname. I was experimenting with this at one point during another debugging session.

[android-developers] Re: Clear defaults programmatically

2010-04-18 Thread Bonifaz
This clears the preferences, but not the default flag set by a user when a Intent Chooser is shown to him/her. Am I right? How can I get back the Intent Chooser Dialog when a user previously set my app as default. I know you can go to Manage Applications and click clear defaults but how do I do

[android-developers] Re: Can i get this layout with List view??

2010-04-18 Thread SheikhAman
Oops! Sorry.. here is the correct one- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent RelativeLayout android:id=@+id/widget28

[android-developers] Re: Can i get this layout with List view??

2010-04-18 Thread SheikhAman
ohh, all of the tags didnt have '' with them. I have already added them but they weren't copied dont know why, so thats not a problem. On Apr 19, 6:12 am, SheikhAman shekh.a...@gmail.com wrote: Oops! Sorry.. here is the correct one- ?xml version=1.0 encoding=utf-8? LinearLayout

[android-developers] spinner question: how to detect the selection of an already selected item?

2010-04-18 Thread greg
I have an activity with a ListView check list and a spinner that controls the sort order of the items in that check list. One of the sort options is to move the checked items to the beginning of the list. I would like to allow users to check some items in the list, select the 'sort by checks'

[android-developers] Re: Audio Mixing

2010-04-18 Thread ani
I found the solution to my problem: Service.startForeground. This call makes sure my background service will keeps its priority when its running in the background. The SDK has a nice example that works across all API levels:

Re: [android-developers] Re: A problem about -rpath-link

2010-04-18 Thread kerl.d.w
Thanks a lot. I think this problem maybe could not be solved. I just use relative path to do the link. 2010/4/16 andrej sarkic andrej.sar...@gmail.com You should read this first: http://developer.android.com/sdk/ndk/index.html On Apr 15, 9:45 pm, Ke Wu kerl@gmail.com wrote: Hi all,

[android-developers] How to get wifi account and password in code?

2010-04-18 Thread Levi
How to get wifi account and password in code? Please tell me if you know ,thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Android Appending Values Received From Server

2010-04-18 Thread raqz
Hi, I am trying to receive some data from a servlet on to android. It works fine for the first run but if in case I happen to use the same activity again, the previous data is getting appended to the new data. Could some one please tell me what is wrong. Why dont the variables get re initialized

[android-developers] Re: Can i get this layout with List view??

2010-04-18 Thread SheikhAman
Ohk, Things went fine, and i was able to design a new layout like this- ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget101 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; RelativeLayout

[android-developers] Re: requestLocationUpdates issue

2010-04-18 Thread Tejas
Hi Bob, Thanks a lot for this. This helped me to understand a lot of things. I found out a good way for starting/stopping a service here: http://www.brighthub.com/mobile/google-android/articles/34861.aspx What do you think of this one ? Cheers, Tejas On Apr 18, 7:03 pm, Bob Kerns r...@acm.org

[android-developers] GetLocation of the phone

2010-04-18 Thread raqz
Hi, I am trying to retrieve the GPS location of the phone. I believe I cannot create an object of the class which stores the location in a variable. So that once the class gets instantiated I use a get method and retrieve the content in the variable. So I am trying to do this

[android-developers] VIBRATE permission not showing on device or emulator

2010-04-18 Thread jk-bk-vk
Hi, Been wrestling with uses-permission in AndroidManifest.xml for about 1/2 a day, so I may be blinded by my frustration I've been cleaning up my app (removing debug code, experimental stuff to blackbox things I didn't understand, etc.). As part of this, I removed some uses-permission

[android-developers] Opengl

2010-04-18 Thread risha
Let me know how to set up a background image in opengl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Need Help on Quick Search

2010-04-18 Thread Amit A
Any help on this?.. Thanks, Amit On Tue, Apr 13, 2010 at 12:04 PM, Amit A android.a...@gmail.com wrote: Hi, I wanted to have one more Search with different search UI on the Home Screen(addition to Quick search box) which can search through restricted applications and provide user additonal

Re: [android-developers] GetLocation of the phone

2010-04-18 Thread Anurag Singh
Have you set uses permission in manifiest file. uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / - Anurag Singh Hi, I am trying to retrieve the GPS location of the phone. I believe I cannot create an object of the class which stores the location in a variable. So that

[android-developers] Re: GetLocation of the phone

2010-04-18 Thread raqz
yes.. its getting the locations all right..but i am unable to save the location somwhere so that i can use it later. thats the whole issue I just thought of something... if I start a service that does the onLocationChanged stuffit would get the gps locations and store it (somewhere in the

[android-developers] Re: GetLocation of the phone

2010-04-18 Thread raqz
i have been getting the locations fine...thats not issue..so please be assured that i have set the manifest file right... i just need to send the lcoations to another activity and i am not able to do that i just thought of this...start a service that would collect gps data at regular

[android-developers] Re: Map app with GPS is not working in Nexus One

2010-04-18 Thread SREEHARI
Hi All, Thanks for ur replyBut my doubt is why I am getting exception in nexus one onlyI tried the same code with G1.It is working fine in that.Ok...anyway I will try with requestLocationUpdates Regards, SREEHARI. -- You received this message because you are subscribed to

[android-developers] Re: Android Appending Values Received From Server

2010-04-18 Thread Bob Kerns
What exactly do you mean by second usage? Just pressing the home key and then tapping your program icon won't create a new activity instance, unless the old one has been deleted. You can't depend on it being deleted, in fact, you'd prefer it not be. Study the diagram in the Activity class

[android-developers] ArrayIndexOutOfBoundException while reading the file

2010-04-18 Thread pramod.deore
hello everybody, I am developing one application in that I am reading one file in parts (I am reading 102400 bytes at a time ) and sending it to server. size of file is more than 5mb. I had write following method to read the file public void readFile() { try {

[android-developers] Re: Moving two views together

2010-04-18 Thread Sonic..
Hey, if you could please give me more details for the same. I'm still a starter in android development. On Apr 13, 6:34 pm, social hub shubem...@gmail.com wrote: hack into onmove onscroll onfling methods and pass them to  other view On Tue, Apr 13, 2010 at 6:25 AM, Sonic..

[android-developers] Re: Is the bad MotionEvent/Touch slowdown stuff actually fixed on first-gen 2.1 updates?

2010-04-18 Thread Robert Green
Excellent work, Mario. I think it's quite clear that the input processing code in Android needs help. Eating 20-30% of a Cortex A8 is a pretty big deal. On Apr 18, 4:21 pm, Mario Zechner badlogicga...@gmail.com wrote: For fun i extended the example i posted earlier. It now feature cpu usage

[android-developers] Re: Moving two views together

2010-04-18 Thread Sonic..
I'll reframe my question. I'm not using a scrollview anymore. I have two lists being displayed in my activity. I heard that using a listview within a scrollview causes issues. So I need a way where in I can scroll both the lists simultaneously. Does that mean I need to override some functions of a