[android-developers] Re: How to implement the iphone style multitouch zoomIn zoomOut to a polygon on a GLSurfaceView?

2011-10-07 Thread saex
thanks Studio, i finally did it using this guide: http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847 On 6 oct, 16:37, Studio LFP wrote: > There is nothing in that example that says you have to be using a canvas. > > Any view th

Re: [android-developers] Re: ListView Row not firing the click event

2011-10-07 Thread NaveenShrivastva
Now expandable listview child click work fine but listview row child click not working. On Fri, Oct 7, 2011 at 12:25 PM, NaveenShrivastva wrote: > Thanks very i have resolved the issue, i want to share you issue > resign is layout handling in frame layout need liner layout with > button > > > On

Re: [android-developers] Re: ListView Row not firing the click event

2011-10-07 Thread NaveenShrivastva
Now expandable listview child click work fine but listview row child click not working. On Fri, Oct 7, 2011 at 12:47 PM, NaveenShrivastva wrote: > Now expandable listview child click work fine but listview row child > click not working. > > > On Fri, Oct 7, 2011 at 12:25 PM, NaveenShrivastva > w

[android-developers] Re: Target to one device in market

2011-10-07 Thread albnok
You don't - if you want to filter a device you do it when you upload your app and change its visibility settings in the Android Market. On Oct 5, 2:53 am, franzisco2011 wrote: > What I must modify in my manifest to target only a device? > For example only for "Nexus S" or "samsung galaxy tab" --

Re: [android-developers] In AutoCompleteVeiw calling setAdapter() and setThreshod() gives error

2011-10-07 Thread Kostya Vasilyev
The compiler is right - your curly braces are not matching up. The code you highlighted should be inside onCreate, not like it is now. -- Kostya Vasilyev 07.10.2011 9:04 пользователь "KK" написал: > Hi All, > I'm trying a sample code available on the web, in which I'm trying to test > AutoComple

[android-developers] Re: How does edit box(EditText) receive user's input?

2011-10-07 Thread albnok
When you click the Submit button, get the string via the EditText's getText().toString(). On Oct 2, 10:26 am, matt dw wrote: > hi all, > > I has read the related source codes about edit box(EditText.java and > TextView.java). But i didn't understand how edit box get user's input. > > it is transf

[android-developers] How to transform not POT images into POT bitmaps to use them on textures for openGL?

2011-10-07 Thread saex
Im doing my first steps on OpenGL-ES. Atm i can load Power of Two (POT) textures on a square polygon that i can rotate and zoom on the screen. If i try to load a non POT png, then, the texture appears white. What I need to do some trick to transform non POT textures into POT bitmaps to fill the te

[android-developers] Best way to send data between devices?

2011-10-07 Thread André
I'm wondering if anyone can point me in a good direction to send data from my app on one device to my app in another device the best way? Was thinking about making the app connect to a online database and have it constantly check for updates. Would this be the best way? //André -- You received t

Re: [android-developers] Best way to send data between devices?

2011-10-07 Thread shaman virk
make a server , if a device 'A' wants to send data to other device'B', 'A' will send data to server and server will send data to 'B' use Cloud To Device Messaging "C2DM" technique for push notification from server to 'B' -- You received this message because you are subscribed to the Google Group

[android-developers] Generate screen motion events on android through usb

2011-10-07 Thread Ahmed Abdelfattah
I want to control Android using the open accessory mode (usb) from another device Is it possible to generate touch screen events : act as a click or multi touch event or write on the keyboard ? If so , is it possible to keep the app which does that running in background and fully control the smart

[android-developers] Why is Asynchronous call with Selector taking a lot of CPU usage?

2011-10-07 Thread B.Arunkumar
Hi, We are using an Asynchronous socket call with selector with the same code as given in this link: http://tutorials.jenkov.com/java-nio/selectors.html for reading image frames from a Camera using RTSP. However, we find that we are getting a high CPU Usage of the order of 25% just for

Re: [android-developers] Re: Home Button

2011-10-07 Thread I-Sheng Lin
I am amazed that the code works. Have been looking for it a super long time sent from my Droid. On Oct 7, 2011 12:14 PM, "Zsolt Vasvari" wrote: > Wow, that's a serious bug. So what happens if a rogue app does this? > You are forced to hard reboot the phone by holding the down the power > button?

[android-developers] Re: Best way to send data between devices?

2011-10-07 Thread André
Thanks, this was exactly what i needed! On Oct 7, 10:09 am, shaman virk wrote: > make a server , if a device 'A' wants to send data to other device'B', 'A' > will send data to server and server will send data to 'B' > > use Cloud To Device Messaging "C2DM" technique for push notification from >

[android-developers] Re: Bitmap 32 bitperpixel image to Bitmap 8 bitperpixe image

2011-10-07 Thread Ravijadhav
Thanks a lot gjs, The only query now i have is that will the same code work in android?? does android support awt and other java 2 classes??? On Oct 7, 10:30 am, gjs > Hi, > > try > thishttp://stackoverflow.com/questions/3922172/java-awt-image-bufferedima... > > Regards > > On Oct 6, 9:35 pm, Ra

[android-developers] Framework Sensor Support

2011-10-07 Thread dani maoz
Hi How the framework decide from which sensor to read the relevant data, For example if i have two accelometer sensor attach how can i configure the framekwork to receive information to read from the second one Thanks -- You received this message because you are subscribed to the Google Groups "A

[android-developers] Avoiding POT rule for Opengl Textures: Overlapp a transparent POT bitmap with non POT bitmap?

2011-10-07 Thread saex
i need to load non POT bitmaps into my opengl es app for android. What i need is to overlap my non POT bitmap into another bitmap with POT size. I need to overlap the non POT bitmap in the center of the POT bitmap. How can i do it? i tryed with createScaledBitmap but it stretches the image and i

[android-developers] Android Menu

2011-10-07 Thread ANKUR GOEL
Hi all i want to set some text at the corner of every menu in android coming from server besides that i have the menu text and icon of every menu Can i set some extra parameter to it If yes suggest me some ways . Thanks and Regards:- Ankur Goel 09019040351 S/W Engg. -- You received this mes

Re: [android-developers] Re: activity running in background problem

2011-10-07 Thread Narendra Bagade
After pressing back button,will call finish() method which destroy activity B. On Wed, Oct 5, 2011 at 10:20 PM, lbendlin wrote: > Why is an activity in the background for so long? You should use a service > for non-UI tasks. > > -- > You received this message because you are subscribed to the G

[android-developers] ACTION_IMAGE_CAPTURE & ACTION_VIDEO_CAPTURE

2011-10-07 Thread perumal316
Hi All, In my application, I am using "android.provider.MediaStore.ACTION_IMAGE_CAPTURE & ACTION_VIDEO_CAPTURE" intents to take pictures and videos which will then be send over to the backend. How do I retrieve the default pathname of the intents? One way is to use "putExtra(android.provider.Medi

[android-developers] how can i install arabic font to my android (xperia x8)

2011-10-07 Thread amantsolit...@gmail.com
hello.. hope u can tell me how to do it.. because its a bit ridiculous cos im used in arabic.. n it just came out in boxes.. hope that anybody cn help me.. ASAP.. TQVM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

[android-developers] Re: Vizio tablet (Android 2.3)

2011-10-07 Thread jim.n...@noydcom.com
the image is gone, can you repost? On Oct 4, 9:26 am, bob wrote: > I got a Vizio tablet (Android 2.3) from Walmart.  Now that it's been > slightly after 15 days so I can't return it, this error keeps showing > up: > > http://i1190.photobucket.com/albums/z449/m75214/vizio.png > > The tablet refuse

[android-developers] Profile Details

2011-10-07 Thread Durai P
Hi friends, I am creating a profile app, i got sound , brightness values. So i need to store the settings values. Which is the best storing place for profile details. Kindly help me, Thanks in advance, -- You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] opengl es sphere tutorial

2011-10-07 Thread grebwerd
Hello, Could anyone point me to a really good tutorial on how to create a 3D sphere from scratch using triangle strips or triangle fan using opengl es? Many thanks a head of time. Drew -- You received this message because you are subscribed to the Google Groups "Android Developers" group

[android-developers] bringing back the activity to foreground

2011-10-07 Thread kabilan thennarasu
I have used moveTaskToBack(true); to move the activity to background; can someone tell me how to bring back the activity to the foreground; -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develop

[android-developers] Focus Ring not aligned with control - Please Help!

2011-10-07 Thread Mark Stutts
I am developing a mobile web application with the focus on iDevices and Androids. When on the Android platform, if I select an input control like a textbox the focus ring is like 8px skewed from the control and the top of the focus ring is drawn right through the center on the textbox. How do I f

[android-developers] How to detect nearby devices

2011-10-07 Thread juankar
Heey!! I have an idea for a good application but I am not sure of which approach to take. The problem I have is this: I want to make an application which detects people around running the same application within a range of, let's say, 50m. Is there a 'simple' way to achieve this? Also, my app sho

[android-developers] Custom LongPress duration

2011-10-07 Thread Guillaume LACHAUD
Hi ! I want to change the timeout before a touch becomes a longclick. What is the best way to start ? Is it possible ? Can we change ViewConfiguration values ? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group

[android-developers] Launch popup window from service

2011-10-07 Thread emiusa
hi all, I need to launch a popup window from a service to do something specific inside my application. I do not seem to find a good way to do it. Inside onCreate() I create the popup window but when I launch it with showAtLocation I get this error: 10-06 13:39:49.573: ERROR/AndroidRuntime(5966):

[android-developers] Redrawing / Refreshing / Reseting with user's input

2011-10-07 Thread es0329
An Activity in my app allows for the user's name to be entered (in an EditText widget), and the user's score to be entered (in an EditText widget). The same screen indicates the user's number of attempts (in a TextView widget). Once the user has entered their name and score, they'll click "Next" (

[android-developers] Capture onKeyPress event in Android webkit browser

2011-10-07 Thread AndroidWD
I am developing an android web application in xhtml. I have few blocks (Div) and would like to move between one block to another using the arrow keys. So I tried to capture the onKeyPress event. Unfortunately it is not getting fired. The same callback function when registered for onClick event work

[android-developers] Compilation error on my if else statement

2011-10-07 Thread Isaac Ng
I have an error on 'else' code on if-else statment. What's wrong, pls advise. Thank you. //click on one of chapters list.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView parent, View view, int position, long id) { Stri

[android-developers] Can't update event on phone's calendar from code

2011-10-07 Thread atraudes
I've posted this question herewithout any luck. I'm attempting to update a calendar's event on my phone from my code, but context.getContentResolver().update keeps returning 0, and of course there are

[android-developers] Unable to save a logo/bitmap to the Contacts List; able to save name,mobile no.

2011-10-07 Thread Kumar Krishnamoorthy
Android:Java: === I'm able to save name & mobile no. to the Contacts List - i get a new item. However, i'm unable to save a logo/bitmap along-with this new item (to the Contacts List) Pls send me working code (app source) that solves this problem. Thanks, regards, Kumar kumark...@yah

[android-developers] lifetime issues with loaders created from fragments with setRetainInstance(true)

2011-10-07 Thread Jeremy Drake
Hello, I am currently working on a tab-based app. I am using Fragments for the tabs, and in some of these fragments I am using a Loader to perform background loading of data from the internet. This seems to currently be the most recommended way to go. In order to prevent the data from getti

[android-developers] SU Request

2011-10-07 Thread JD
Can someone please give me a clear, simple, short, and most importantly, working example of how to edit a database that another app created? After days and days of searching, it's amazing that nobody seems to truly understand how to do this. All I find is the same old post, copied and pasted all ov

[android-developers] HTML5 video tag and Amazon S3

2011-10-07 Thread Alen Mujezinovic
Hello group I've run into a problem today that I can't solve. We're building a small app that stores video files on S3 and offers playback in the browser. This works fine on desktop browsers and iOS mobile devices but when trying to play the videos on Android an error message pops up: *Cannot

[android-developers] What is the wake lock policy in 2.3?

2011-10-07 Thread Tien Kooshi
Hi, I'm developing a backup service that contact with another through network. There are wake lock held and released iteratively for the whole transmission but the process is always killed by system because of "Excessively wake lock ...". This is my code snippet for the problem. private void

[android-developers] RuntimeException: SlidingDrawer cannot have UNSPECIFIED dimensions

2011-10-07 Thread awtDroid
Not sure why I am getting this exception because I have specified the width and height as such:

[android-developers] Custom long-press duration

2011-10-07 Thread Guillaume LACHAUD
I am trying to change the default long-press duration. I know that it is set in ViewConfiguration. Is there any way to change this value ? What would be the best way to achieve this ? Overriding onTouchEvent ? Thanks -- You received this message because you are subscribed to the Google Groups

[android-developers] android 3.2 IME picker on status bar

2011-10-07 Thread Jimen Ching
Hello, I've implemented an IME package with 3 input method services. In android 3.2, there is a status bar keyboard icon that allows the user to change the input method. I can see my input methods listed. The problem is, the icon and the text label used in the list is the value used for the

Re: [android-developers] Re: Automatic way to change versionCode (and/or versionName) in manifest

2011-10-07 Thread Peter Holcroft
I took your advice and scripted it. Here is my solution if anyone just wants to implement it easily in 2 minutes. Windows only, sorry. AndroidBuild++ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

[android-developers] Re: Soft keyboard 'Done' button

2011-10-07 Thread Piraba
I have same issue.I couldn't fix this.If you fix this issue please let me know. http://stackoverflow.com/questions/7659570/android-oneditoractionlistener-actionid-give-0-when-i-click-done-key Here also i created one group .: subject is : Android OnEditorActionListener() method's actionId give 0

[android-developers] my left side not working

2011-10-07 Thread remon ramses
i have ideos x5 my left side in te screen not working all the ok button locate at the left side ... can any bod help me in that ..like change the button sites og alternative button in another site -- You received this message because you are subscribed to the Google Groups "Android Deve

[android-developers] my left side not working

2011-10-07 Thread remon ramses
my ideos x5 left sie of the screen not working.can an body helping me because ever thing needs tge left side ..like yes or start buttons in games..can i change the direction of the screen -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] ERROR: cannot recover key (Eclipse)

2011-10-07 Thread Mik
Dear all, Disclaimer: I am not sure this is an ADT/Android tools problem or rather an eclipse one. I went back to my old android app after several months. I had stored the key and alias on a svn server, so that even if corrupted I can always recover them. I have tried now to export a signed vers

[android-developers] Newbie Question About Eclipse and SDk

2011-10-07 Thread Mark Phillips
I am just "diving into Android development", and I have a question about setting up Eclipse with the SDK. My development machine runs Linux version 3.0.0-1-amd64 (Debian 3.0.0-3), and I understand the SDk is 32 bit. Do I install the 32 bit Eclipse or the 64 bit Eclipse? Does it matter? Or, should I

[android-developers] data persistence from onDestroy to onCreate

2011-10-07 Thread King Salamon
Can anyone please offer a detailed coding example showing how to keep textView after a configuration change-such as a screen rotation? I would like the user to be able to spin the device, and see the data that was in the textView before the device was rotated. I have read the documentation -but I r

[android-developers] SDK problem

2011-10-07 Thread Wojciech
Hi everyone who's reading this. I've recently tried to install all packages as it's specified but my sdk can't find the path to jdk. I'm running win 7 64 bits and Eclipse can handle that. How to I add another environment variable or modify existing one? -- You received this message because you ar

[android-developers] Android OnEditorActionListener() method's actionId give 0 when I click Done key

2011-10-07 Thread Piraba
I have created own keyboard for my application. Applciation contain TableLayout that contain ArrayList of products.That table row created dynamically & contain EditText also. When User click on the EditText, it should get open keyboard. Up to this point working fine. Problem is when user enter qua

[android-developers] Re: Soft keyboard 'Done' button

2011-10-07 Thread Piraba
same problem i also facing i decalre like this , but didn't take acttionId ... why? final EditText txtQty = new EditText(this); txtQty.setHeight(1); txtQty.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 42)); txtQty.setInputType(InputType.TYPE_CLASS_PHO

[android-developers] Fwd: Screen rotation clears TextView

2011-10-07 Thread King Salamon
Can anyone provide a detailed code example for this issuesomething more than " use the OnSavedInstance method..." I need help solving this---I understand that the activity is destroyed and recreated when the screen rotates---so howexactly do I make sure that the textView elements dont get washe

[android-developers] Re: Serializable subclass of non-serializable class

2011-10-07 Thread Lew
'Serializable' is ill-suited for persistence to disk. 'Parcelable' isn't much better. They're intended for in-process or inter-process transfers of data, not persistence. Don't use them. 'Serializable', in particular, imposes a huge maintenance burden, in that it locks down implementation

[android-developers] Re: Screen rotation clears TextView

2011-10-07 Thread King Salamon
sorry if this is redundant--I've been trying to post a reply to this thread---Can anyone please supply a full coding example for resolving this issue. I want users to be able to rotate the device and not loose the the data that is displayed in the textView. Example: Gold score card app that rec

[android-developers] Cannot resolve com.google.android.maps.GeoPoint

2011-10-07 Thread Sunghun Park
Hi everyone. I am beginner to Android. I am struggling with setup a Android project in Eclipse but lots of error are happening. I downloaded and setup AVD and AVD works well. I look into AndroidManifest.xml and the project is using API Level4 (SDK1.6). So I set my project to Android 1.6 and also A

[android-developers] Add the widgets in my application

2011-10-07 Thread Zeeshan Abid
hi guys, I ma working on a launcher. I want to add the widgets of installed application in my app. can anyone tell that what would be the steps that i add the appwidgst and launch it. Thanks in advancce -- Zeeshan Abid -- You received this message because you are subscribed to the Google Grou

[android-developers] Truncated JSONObject

2011-10-07 Thread phosphor
I developed a TV app and service a while ago, to track my media storage. the service sends data in JSON format. The wife got a new phone so I'm trying to consume the service from the android SDK. I tried the followinf code but I end up with truncated data: // Send GET req

[android-developers] How to start activity without creating new one?

2011-10-07 Thread Charley Smith
I tried to set attribute android:launchMode="singleTask" for calling Activity, but it still does not works as I expect I need that method onCreate(Bundle bundle) to be called only once, but it still calls each time when I start Activity. I want ensure that activity is not created each time when it

[android-developers] ADB bringup on Android Kernel 3.0

2011-10-07 Thread gvlad...@gmail.com
Hi, I am new to USB device drivers, I have to bringup USB ADB with Android Kernel 3.0, When I try to enable ADB using echo 1 > /sys/class/android_usb/android0/enable, Kernel Crashes Occurs. Can some one help me how do I debug this and what could be the reason for a Kernel Crash [ 118.03] Unab

[android-developers] Can not get referrer string correctly

2011-10-07 Thread satoshik
I'm using com.android.vending.INSTALL_REFERRER to track some information about installation. My application was working perfectly but suddenly does not works. I can still catch the intent of INSTALL_REFERRER, but the contents of extras has changed. The download link url is something like that. htt

[android-developers] Re: when will the source code be back?

2011-10-07 Thread Arvind Mohan
Same here, Awaiting for android sources to be back. Arvind. -- 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-dev

[android-developers] USB Bluetooth

2011-10-07 Thread tushar
Hi, I am enabling USB Bluetooth on Set top box.I am able to send the files to various phones but not able to reveive any.below erros it shows while connecting: 1.Authorization Rejected.Also the UUDI is not of OPP 2.mBtClass is NULL. 3.GetServiceAttribute Failed What does these errors mean? below i

[android-developers] how to disable setting tools of default camera.

2011-10-07 Thread Akhilesh Mani
Hi, Please tell me how to disable setting tools of default camera. Regards. Mani. -- 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] debugging using a device on MAC OS Lion

2011-10-07 Thread lbstr
I have a little problem on connecting HeroTab M10 HT-PAD 1051 Tianfeng tablet (its chinese and it doesn't have any vendor ids) to my mac os lion OS...Can anybody help? Note: I have already tried EasyTether soft but couldn't get how it works...I couldn't even connect to a device not talking about d

Re: [android-developers] In AutoCompleteVeiw calling setAdapter() and setThreshod() gives error

2011-10-07 Thread KK
Thanks Kostya... 2011/10/7 Kostya Vasilyev > The compiler is right - your curly braces are not matching up. > > The code you highlighted should be inside onCreate, not like it is now. > > -- > Kostya Vasilyev > 07.10.2011 9:04 пользователь "KK" написал: > > > Hi All, > > I'm trying a sample co

[android-developers] Re: Json - 2 Emulators

2011-10-07 Thread Paul Turchenko
Why not use tcpip to do that? Just setup port forwarding in adb On Oct 6, 9:35 pm, Diogo Salaberri wrote: > Hello guys, I want to transfer data from a emulator to another emulator, > running on the same machine. But when the SMS was received, the message > isn't like the message was send. Looks l

Re: [android-developers] Re: Json - 2 Emulators

2011-10-07 Thread Diogo Salaberri
Any tutorial for port forward ? On Fri, Oct 7, 2011 at 8:46 AM, Paul Turchenko wrote: > Why not use tcpip to do that? Just setup port forwarding in adb > > On Oct 6, 9:35 pm, Diogo Salaberri wrote: > > Hello guys, I want to transfer data from a emulator to another emulator, > > running on the sa

[android-developers] Re: Garbage collector running every second... Normal?

2011-10-07 Thread Jean-Michel
No Kris, I just did not think about it, and apparently it does (trigger ANR). I have transformed my service in IntentService and I have not had the problem since. I think it is solved, but it was a bit touch and go I am not 100% suree yet. Thanks JM -- You received this message because you are

[android-developers] Re: Avoiding POT rule for Opengl Textures: Overlapp a transparent POT bitmap with non POT bitmap?

2011-10-07 Thread Adam Ratana
What is this for, perhaps that will give a better understanding? In your other thread I suggested packing the textures into a POT sized image. This can be done non-programmatically, in photoshop or GIMP for example. You may also want to turn inScaling off if you're loading bitmaps using the B

Re: [android-developers] SU Request

2011-10-07 Thread Kristopher Micinski
You can't do this in the API. It's impossible... On Thu, Oct 6, 2011 at 8:55 AM, JD wrote: > Can someone please give me a clear, simple, short, and most > importantly, working example of how to edit a database that another > app created? After days and days of searching, it's amazing that > nobo

[android-developers] Re: Units of measurement

2011-10-07 Thread niels
Thanks for the info. As result of another discussion I already had a look at the DisplayMetrics class. They clearly state there, that I can't rely on dip because it's just based on the default density (160dpi, 240dpi, 320dpi, etc.) which is nearest to the device's real density. So this (official) d

[android-developers] activity launches with wrong layout orientation

2011-10-07 Thread Simon
Hi, I have an activity that I have two layouts defined for: one for landscape and one for portrait. So in my layout folder I have activity.xml and activity_landscape.xml. When I am switching around orientation on my device the proper layout is loading on orientation change. However, if I am in

[android-developers] activity launches with wrong layout orientation

2011-10-07 Thread Simon
Hi, I have an activity that I have two layouts defined for: one for landscape and one for portrait. So in my layout folder I have activity.xml and activity_landscape.xml. When I am switching around orientation on my device the proper layout is loading on orientation change. However, if I am in

Re: [android-developers] Re: Units of measurement

2011-10-07 Thread Kostya Vasilyev
The quantized density value (160/240 etc) is used by resource loading code, and so can be expected to be there. Some devices deliberately use a value that is not the closest match to the actual physical density, but it's the same for all applications on the device. The xdpi and ydpi can sometimes

Re: [android-developers] Re: Home Button

2011-10-07 Thread TreKing
On Thu, Oct 6, 2011 at 10:13 PM, Ubiracy Santos wrote: > the users cannot exit. the application in other words will be a embedded > software > Then build your own version of the platform. Then you will have full control. ---

[android-developers] Scenario where initLoader() does not call onLoadFinished()

2011-10-07 Thread kaciula
I have a simple activity with one fragment. The fragment uses a CursorLoader to load some data from a ContentProvider. I just call initLoader() inside onActivityCreated() and I populate the UI in onLoadFinished(). If I switch orientations, everything works as expected (onLoadFinished() is called

[android-developers] Re: HTC and LG haven't implemented Android in the right way

2011-10-07 Thread MobileVisuals
I have implemented this according to your approach now. I replaced attenuated points with texture mapped quads. I implemented bilinear filtering and alpha test. It works, but the visual quality is not good. It doesn't look at all as good as with Point sprites and size attenuation. It looked shiny

[android-developers] Building my own Android OS for S3C6410

2011-10-07 Thread Mike L.
I need to be able to access the different ports on my S3C6410 board. Most importantly the Analog to digital converter. I am wondering how big of a project it is to compile my own Android OS and if anyone can give me some time saving pointers. -- You received this message because you are subscribe

[android-developers] Re: Framework Sensor Support

2011-10-07 Thread CVS
Hi Dani, Android assumes (and rightly so far) that ONLY one sensor of each "type" is present on the device. Mulitiple sensors of same "type" are not supported in the framework. If ur device has multiple sensors of same type onboard and you *really* want to enable both, then 1. Enable the kernel

Re: [android-developers] Re: overlapped nodes in graph

2011-10-07 Thread TreKing
On Fri, Oct 7, 2011 at 12:50 AM, bhumi kania wrote: > I was asking about the sample algorithm that is removing the overlapped > node in the hierarchical view. > "Sample algorithm"? > Now I have to draw this hierarchy. > The graph is ready but some nodes are overlapped somewhere. > So I need to

Re: [android-developers] Building my own Android OS for S3C6410

2011-10-07 Thread Appaholics
You should ask this on the android-building and android-porting lists. This list deals with the SDK. The people there would know this kind of stuff better than us. Thanks On Fri, Oct 7, 2011 at 7:14 PM, Mike L. wrote: > I need to be able to access the different ports on my S3C6410 board. > Most

[android-developers] Re: Building my own Android OS for S3C6410

2011-10-07 Thread Mike L.
Thank you On Oct 7, 9:47 am, Appaholics wrote: > You should ask this on the android-building and android-porting lists. This > list deals with the SDK. The people there would know this kind of stuff > better than us. > > Thanks > > On Fri, Oct 7, 2011 at 7:14 PM, Mike L. wrote: > > I need to be

Re: [android-developers] Reduce Application Heap size

2011-10-07 Thread TreKing
On Fri, Oct 7, 2011 at 1:28 AM, Karthik A wrote: > Is there any other way to reduce like using command prompt, or API? Um ... no. You allocate stuff. The heap grows proportional to how much you allocate. If you don't want it to grow that much, don't allocate that much. You can't magically redu

Re: [android-developers] Reduce Application Heap size

2011-10-07 Thread Karthik A
Thank you very much TreKing for your very useful immediate reply. On Fri, Oct 7, 2011 at 7:19 PM, TreKing wrote: > On Fri, Oct 7, 2011 at 1:28 AM, Karthik A wrote: > >> Is there any other way to reduce like using command prompt, or API? > > > Um ... no. > > You allocate stuff. The heap grows pr

[android-developers] Re: HTC and LG haven't implemented Android in the right way

2011-10-07 Thread MobileVisuals
The default Galaxy doesn't use Point sprites with size attenuation. It looks like it is just using plain points with spinning textures in the background. It looks like all the points have the same size. Galactic Core doesn't use Point sprites either. It looks like it is just using spinning textur

Re: [android-developers] Re: Units of measurement

2011-10-07 Thread Studio LFP
Kostya, I'll have to keep this in mind. I guess the hardware manufacturers decide if they want to follow the rules fully or not in a lot of cases. You would think that this would be one of the things that manufacturers would do correctly since it's so easy to get right from their perspective.

[android-developers] Re: activity running in background problem

2011-10-07 Thread Studio LFP
What exactly are you trying to accomplish? You want activity B to not be killed? Or a set of code to help you remember where B was and recreate it? Steven Studio LFP http://www.studio-lfp.com On Wednesday, October 5, 2011 6:58:36 AM UTC-5, Rafa Maas wrote: > > I have a IM client and this is my

Re: [android-developers] Compilation error on my if else statement

2011-10-07 Thread Nick Risaro
First learn java, then remove the ; at the end of the lines inside the if condition On Thu, Oct 6, 2011 at 12:28 AM, Isaac Ng wrote: > if (item.equalsIgnoreCase("I. The Global Business Environment")); > Should be if (item.equalsIgnoreCase("I. The Global Business Environment")) -- You received

[android-developers] Re: How to detect nearby devices

2011-10-07 Thread Studio LFP
The only way I know people have done this is a simple GPS location update to a server. The server then checks for others that have reported back and returns those that are under a specified range. I think that may be your only option. Steven Studio LFP http://www.studio-lfp.com -- You receiv

[android-developers] Re: overlapped nodes in graph

2011-10-07 Thread Studio LFP
So you are storing data from a server and drawing a graph on a canvas? Your explination is throwing me off a bit since you say you have multiple activities, which is an object in Android, but could be something like a playtime activity also. If you are just getting data from a server, you could

Re: [android-developers] Re: HTC and LG haven't implemented Android in the right way

2011-10-07 Thread Kostya Vasilyev
Looking at the "dull" screenshot, I can see that your sprites are wrong - they don't have transparency around the "point" itself. The black square quads are clearly visible, and they shouldn't be. The brightness level is what you put in the textures, you should be able to make them as bright a

[android-developers] EditText with custom behavior

2011-10-07 Thread Raffaele Sgarro
I want my custom EditText to behave like this - When app starts it seems a TextView (ie normal text on solid color background, cursor not shown) - When users taps, it changes its appearance to look "selected" (ie a different background, still cursor not displayed) - When user long

[android-developers] Re: Compilation error on my if else statement

2011-10-07 Thread Studio LFP
You are really going at that the hard way. When using a ListView, checking for a string on a view is really inefficient. You could use the "position" or the "id" as a trigger point and use a case statement to make it faster and easier. list.setOnItemClickListener(new OnItemClickListener() { @O

[android-developers] Re: EditText with custom behavior

2011-10-07 Thread Ubiracy Santos
public class CustomEditText extends EditText { //code here } -- 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-deve

Re: [android-developers] SDK problem

2011-10-07 Thread Marcin Orlowski
Use zipped SDK, not .exe (with installer). Known issue. Regards, Marcin Orlowski *Tray Agenda * - keep you daily schedule handy... *Date In Tray* - current date at glance... WebnetMobile on *Facebook * and *Twitt

[android-developers] Re: EditText with custom behavior

2011-10-07 Thread Raffaele Sgarro
package com.example.custom.edit.text; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.LinearLayout; public class CustomEditTextActivity extends Act

[android-developers] Re: EditText with custom behavior

2011-10-07 Thread Raffaele Sgarro
Link to pastebin I hope someone can help me. It seemed a trivial task when I designed my project, but know I really can't go on. I pasted a self contained Android activity with my custom widget. You only need to create a new Android project with the following sett

[android-developers] How can i declare this GridView programatically (Java code)?

2011-10-07 Thread saex
I need to declare this gridView programaticalle, all with java code: http://schemas.android.com/apk/res/android"; android:id="@+id/gridview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:columnWidth="90dp" android:numColumns="auto_fit" android:verticalSpacing="10dp

[android-developers] Fwd: Framework Sensor Support

2011-10-07 Thread dani maoz
Thanks you for the reply, Can you post example, or point to the code where i have to change in order to support to configure sensor support. Where can find additional information to "switch sensor" functionality Here is a link i found http://processors.wiki.ti.com/index.php/Android_Sensor_Portin

Re: [android-developers] Re: Json - 2 Emulators

2011-10-07 Thread Christopher Van Kirk
Sounds like an excellent way to bankrupt your customer. On 10/7/2011 12:06 PM, Zsolt Vasvari wrote: Are you using SMS as a transport layer for JSON? Doesn't sound like a good idea. On Oct 7, 2:35 am, Diogo Salaberri wrote: Hello guys, I want to transfer data from a emulator to another emulat

Re: [android-developers] Re: Json - 2 Emulators

2011-10-07 Thread Diogo Salaberri
It's just for tests. I want to communicate 2 emulators cause bluetooth isn't avaiable. Another way to do ? On Fri, Oct 7, 2011 at 12:49 PM, Christopher Van Kirk < christopher.vank...@gmail.com> wrote: > Sounds like an excellent way to bankrupt your customer. > > > On 10/7/2011 12:06 PM, Zsolt Va

  1   2   >