[android-developers] Re: Portrait/landscape question

2010-04-18 Thread Bob Kerns
Well, actually, it IS explained in another location (http:// developer.android.com/intl/de/guide/topics/manifest/activity- element.html). You so often have to look in two or three different pieces of documentation to get the full story... It amounts to "a suitable default for the device". I guess

[android-developers] how to depress the onLongClick() when drag a view

2010-04-18 Thread sheng wang
Hi, I have a View and I can drag it. It also has a onLongClick() method so it can respond to the long press on the screen. The problem is when I drag it , the onLongClick will also be triggered . Anyone have an idea to depress the long click detection when i move it . Thanks in advances. Shawn.

[android-developers] Pass ArrayList parameters between two activities.

2010-04-18 Thread Ke Wu
-- Forwarded message -- From: Ke Wu Date: 2010/4/19 Subject: Pass ArrayList parameters between two activities. To: android-developers@googlegroups.com Hi all, Today I met a problem, I need to pass a ArrayList from an activity to another. I dont know what the Intent exactly d

[android-developers] Re: Portrait/landscape question

2010-04-18 Thread Bob Kerns
If you'd like a quick tour of all the options for setRequestedOrientation(), my app, SmartVolume Free, does this, and lets you control what value to supply to setRequestedOrientation() in a preference setting. (The default is to not set it at all, and use the system's setting). Of course, it's not

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

2010-04-18 Thread Eong
Sorry, I mean write the frame to a pixel buffer. I think fbo is a ES2 feature, right? What about the other ES1 phones? As a developer, you can't just give up the 75% users. On 4月19日, 下午2时20分, Eong wrote: > Hi, >   I'm writing this part for video output. >   This is for video output at most of the

Re: [android-developers] Re: Game develop like "Air Attack" touching screen event

2010-04-18 Thread a a
I add android:focusableInTouchMode="true" in my xml and try to override the @Override public void setFocusableInTouchMode(boolean focusableInTouchMode) { Log.d("harvey", "setFocusableInTouchMode"); } But still can work when

Re: [android-developers] Re: Game develop like "Air Attack" touching screen event

2010-04-18 Thread a a
Dear Robert, How can i calls setFocusableOnTouchEvents(true)? where can i wrote? 2010/4/17 Robert Green : > Make sure your view calls setFocusableOnTouchEvents(true) > > On Apr 16, 4:44 am, a a wrote: >> Dear all, i tested below, but it don't work >> >> 1. I wrote my GodsendView >> public class

[android-developers] help

2010-04-18 Thread subrat kumar panda
hello everybody, This is subrat, i have some problem with preference screen. in my preference screen there are 4 checkboxes & 2 lists. so, my problem is if i do any change to checkbox or list(means, if i check one unchecked checkbox or vice versa as, or i select a value from list), i want 2 post t

[android-developers] Pass ArrayList parameters between two activities.

2010-04-18 Thread Ke Wu
Hi all, Today I met a problem, I need to pass a ArrayList from an activity to another. I dont know what the Intent exactly do when I use putExtra to pass in an ArrayList object. I guess MyClass need to implement Parcelable interface, so I just did it. But still, it does not work. Ma

Re: [android-developers] Re: GetLocation of the phone

2010-04-18 Thread Anurag Singh
Store in a Bundle pass to your activity public void onLocationChanged(Location loc) { if (loc != null) { double lat=loc.getLatitude(); double lon=loc.getLongitude(); Bundle bundle = new Bundle(); bundle.putDouble("lat", lat);

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

2010-04-18 Thread Eong
Hi, I'm writing this part for video output. This is for video output at most of the time. Our decoder write the screen to a pixel buffer. And then I need to draw it to the screen. So, you mean, I can use FBO to do this? I'm not very familiar with fbo stuffs. Could you give more hint? Thank yo

[android-developers] help

2010-04-18 Thread subrat kumar panda
Hello everybody, This is subrat, in my app i want 2 change the background and text color of preference screeen. in my preference screen there are 4 checkboxes & 2 lists. i have used the following code to change background color: getWindow().setBackgroundDrawableResource(R.drawable.White);

[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

[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 wrote: > For fun i extended the example i posted earlier. It now feature cpu > usage output derrived from /p

[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 wrote: > hack into onmove onscroll onfling methods and pass them to  other view > > On Tue, Apr 13, 2010 at 6:25 AM, Sonic.. wrote: > > > Hello, > > > I currently

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

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

[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

Re: [android-developers] GetLocation of the phone

2010-04-18 Thread Anurag Singh
Have you set uses permission in manifiest file. - 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 once the class gets instantiated I use a get method > and retrieve

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

[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

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

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

[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 wrote: > OK, I

[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- http://schemas.android.com/apk/res/android"; > Things stay fine until i assign the adapter to the list i have created- public class MainActivity extends Activity { /** Called when the activity is first crea

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

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 > You should read this first: > > http://developer.android.com/sdk/ndk/index.html > > On Apr 15, 9:45 pm, Ke Wu wrote: > > Hi all, > > I got a new clue, in the rpath-li

[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: http://developer.android.com/intl/de/resources/samples/ApiDemos/src/com/ex

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

[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 wrote: > Oops! > Sorry.. > here is the correct one- > > > http://schemas.android.com/apk/res/ > android" >     android:orientatio

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

2010-04-18 Thread SheikhAman
Oops! Sorry.. here is the correct one- http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > Please tell. On Apr 18, 11:11 pm, Anurag Singh wrote: > I think, it's not ri

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

[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, onStart(

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 develo

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

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

2010-04-18 Thread raqz
Hi, I wish to send a list of type 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 subscrib

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

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

[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 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:// > groups.google.com/group/android-develop

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 wrote

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

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

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, b

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 > Hi Schneider: > As you said avoid scale the texture. Could you tell me the solution > how to render backgroun

[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 wrote: > If you click on notification dialog'll  appear. It's Android behavior. > > On Mar 30, 11:02 am, Ra

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

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

Re: [android-developers] Portrait/landscape question

2010-04-18 Thread Isaac Wagner
On Sun, Apr 18, 2010 at 3:25 PM, Justin Giles 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) > in your "l

[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: http://schemas.android.com/apk/res/android"; android:shape="line"> The question is, how to make this line vertical? Yes, there ar

[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/ 2b54d2ce1202b04b/dd6f9152cd50d64b?lnk=gst&q=usb+#dd6f9152cd

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

Re: [android-developers] Portrait/landscape question

2010-04-18 Thread Isaac Wagner
On Sun, Apr 18, 2010 at 2:24 PM, Anurag Singh 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 change the orientat

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

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

2010-04-18 Thread Anurag Singh
I think, it's not right way. You have mention Button in a TextView. - Anurag Singh 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

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

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

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

[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: http://lh6.ggpht.com/

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 versio

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 C

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

[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 > 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 (LinearLayout) with clickable="true". >

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

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 wrote: > > > 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 ex-partner. I

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

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 th

[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 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 the VM it's

[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 wrote: > Hi Mark, Here's what I did > > My Existing Class extending ListActivity > > / > *** > / > public class LifeProduc

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 List pro

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

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 proc

[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 List products; private static List active

[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: http://schemas.android.com/apk/res/android";> And this is the actual definitio

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 th

[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

[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 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 that? > > Step #1:

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 subcl

[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 List products; private DataHelper dh;

[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 wrote: > Does anyone know > how to clear defaults of my own app by code. > > I know that a user can always go to Manage Applications, find my app > a

[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 wrote: > Hi all, > > I'm developping a simple realtime action game 4 Android. > It works nice. but now

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 with the CATEGORY_CAR_DOCK category. I would expect the user to then get a choice of what activity to start when they dock

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

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

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

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, croc

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

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

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

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

  1   2   >