Re: [android-developers] Re: Cannot define a float as a resource?

2010-12-22 Thread Dianne Hackborn
This is 500dp in the tall dimension? The two screens have different aspect ratios, so the tall/wide dimensions are different. The scaling factor between mdpi (160) and hdpi (240) is 1.5. 800 / 1.5 == 533. 480 * 1.5 == 720. (And of course those aren't the only aspect ratios. QVGA is even short

[android-developers] Camera zoom problem

2010-12-22 Thread Atik
Hi guys. my code snippet is working fine for the imageview zooming in out. but i want to take the camera preview for zooming, my code snippet is havingmBitmap which is taking image from drawable.. i want to place the surface view/ or camera preview for the same. please suggest how to replace bit

[android-developers] Re: Cannot define a float as a resource?

2010-12-22 Thread Zsolt Vasvari
Thanks, Dianne. I am now just retrieving an int from 0 - 100 and divide it by 100 and set it as the weight. It works fine, but it's just extra code and I am lazy person, which is why I asked. :) On a related question: I am defining the width of my pop-up window as 500dp, this fits nicely into m

[android-developers] Why Gallery background complexity?

2010-12-22 Thread jotobjects
Just wondering why there is so much complexity involved in getting the platform Gallery background. The SDK provides a theme that contains an attribute that is a drawable resource. The theme is not a drawable so it can't be used in a layout as a background. The example given is - http://develo

[android-developers] Re: home screen widget drag or scroll

2010-12-22 Thread Veeresh Kalmath
ScrollView can be added to Widgets, for that need to do changes in the android framework. Change the annotation of the view in framework @RemoteView and build the framework and use them in widgets as in activities. By this method we can use any views supported in normal activities by changing the a

Re: [android-developers] Re: Logcat messages related to killing process on low memory condtion

2010-12-22 Thread Dianne Hackborn
I don't have an example to paste. If your device has lots of RAM (512) and you are running Froyo, you may never see it. You can try to get it to happen by going to the browser and opening a heavy-weight page (or running some other app that takes a lot of memory). 2010/12/22 xwk > I guess I kno

[android-developers] Re: Which JSON Parser is better

2010-12-22 Thread cool.manish
Hi Brill, I am sorry, I didn't get your point. I am very new in this field and don't know, if gson is a binary format then how will it effect? As per my knowledge about gson, I can give one String to it which has JSON data in it, it will parse it and then i can search for a particular object or v

[android-developers] Re: Galaxy Tab vs. G Tablet - My first experiences

2010-12-22 Thread JonFHancock
I haven't tried the Samsung, but I agree about viewsonic's awful UI. I did actually flash a custom ROM within minutes of unboxing. The vega-n firmware is excellent, and with the market fix, it is a very useful device. If you're not into flashing custom roms, don't buy a g tablet. On Dec 22, 10:1

Re: [android-developers] Re: Error inflating class linearlayout

2010-12-22 Thread TreKing
On Thu, Dec 23, 2010 at 12:48 AM, pramod.deore wrote: > Actually if suppose there are 12 list items, then these 2 buttons are shown > 12 times and > list of items and checkboxes are not visible. > Sounds like you are using this layout as the entry for a list view. Don't do that. Split your layout

[android-developers] Re: Which JSON Parser is better

2010-12-22 Thread Brill Pappin
Isn't gson a binary format? MongoDB talks about using GSON over JSON. IMO I'd simply use the one built into the platform. - Brill Pappin -- 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] Re: Error inflating class linearlayout

2010-12-22 Thread pramod.deore
Actually if suppose there are 12 list items, then these 2 buttons are shown 12 times and list of items and checkboxes are not visible. What I want is these buttons are must shown only once above the list items. and it must be visible after user scroll down the list ? On Dec 23, 11:42 am, TreKing w

[android-developers] Re: Logcat messages related to killing process on low memory condtion

2010-12-22 Thread xwk
I guess I know how to see kernel log now. Just use dmesg command in adb shell. However, what's the OOM killer message looks like? On 12月22日, 下午3时26分, Dianne Hackborn wrote: > There is a message in the kernel log from the OOM killer. The only thing > you will see in the normal logcat output is th

[android-developers] Which JSON Parser is better

2010-12-22 Thread cool.manish
Hi All, I want to use some JSON parser in my application. I get to know about lots of available JSON parser like Android default org.json library, JSONTokenizer, gson, jackson etc. Is there any benifit of using gson rather than Android default parser? I am bit confused which one of them is bette

Re: [android-developers] Re: Error inflating class linearlayout

2010-12-22 Thread TreKing
On Thu, Dec 23, 2010 at 12:39 AM, pramod.deore wrote: > After checking spelling mistake it runs but it add 2 buttons every time > Every time ? Every time what? Are you using this as the layout for a entry in a list view? Because then that would be expected. -

[android-developers] Re: Error inflating class linearlayout

2010-12-22 Thread pramod.deore
After checking spelling mistake it runs but it add 2 buttons every time. http://schemas.android.com/apk/res/ android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">

Re: [android-developers] Error inflating class linearlayout

2010-12-22 Thread TreKing
On Thu, Dec 23, 2010 at 12:22 AM, pramod.deore wrote: > 12-23 11:36:51.096: ERROR/AndroidRuntime(699): Caused > by: java.lang.ClassNotFoundException: android.view.linearlayout in loader > > what is wrong here? Thanks > My guess: "linearlayout" != "LinearLayout" --

[android-developers] Re: Logcat messages related to killing process on low memory condtion

2010-12-22 Thread xwk
Dianne, Thanks. But where I can see the kernel log then? On 12月22日, 下午3时26分, Dianne Hackborn wrote: > There is a message in the kernel log from the OOM killer. The only thing > you will see in the normal logcat output is the framework reacting to the > process(es) disappearing. > > On Tue, De

[android-developers] Error inflating class linearlayout

2010-12-22 Thread pramod.deore
I have one xml file which through error as Error inflating class linearlayout. Here I want to display one button and below that I want a list of checkboxes and items (string). My xml file is http://schemas.android.com/apk/res/ android" android:orientation="horizontal" android:layout_width

[android-developers] Galaxy Tab vs. G Tablet - My first experiences

2010-12-22 Thread Brill Pappin
A while ago someone was asking which tablet they should pick up for development. I thought I'd input another two cents now that I have something to compare. So, I have managed to get my hands on a new Galaxy Tab and a new G Tablet. Short answer on which is better, go with the Galaxy Tab even thou

[android-developers] ACM Bangalore::3rd Annual Quiz and Challenge of Code felicitation::Revised Date-8th Jan,2011

2010-12-22 Thread Raman Shrivastava
Dear All, ACM Bangalore is glad to announce "3rd Annual Quiz" for the IT community based in Bangalore. The event is scheduled on 8th January, 2011 and has big prizes to be offered for the winners and to the audience. The first three prizes would be Rs. 25000, Rs.15000 and Rs. 8000 respectively and

Re: [android-developers] problem with andrioid Tablet

2010-12-22 Thread praveena ankitha
For uninstall adb command is adb uninstall of that apk file name On Thu, Dec 23, 2010 at 11:21 AM, Narendra Bagade wrote: > Hi All, > I have to uinstall apk form my android tablet. > I am using command adb uninstall apkname.apk. > but getting error like, > Can't dispatch DDM chunk 4d505251:

[android-developers] Re: android bluetooth

2010-12-22 Thread Jags
thanks IV, I guess i could not put my [oint across properly. Beep is at headsets control, i know. Now when the headset is paired, and my custom application plays a beep, does it automatically beep in the headset or in the handset ? if it automatically beeps in the headset, good, if not what can i

[android-developers] problem with andrioid Tablet

2010-12-22 Thread Narendra Bagade
Hi All, I have to uinstall apk form my android tablet. I am using command adb uninstall apkname.apk. but getting error like, Can't dispatch DDM chunk 4d505251: no handler defined Failure. Please help me to uinstall apk for my device . -- Regards, Narendra . -- You received this message because

Re: [android-developers] Scaling Down

2010-12-22 Thread Kumar Bibek
WebView has a property called setInitialScale. You can try that. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Dec 23, 2010 at 11:19 AM, cuil yahoo wrote: > What i mean is my HTML Content comes haphazardly, all the icons in it seems > to have converged. The UI of the

Re: [android-developers] Scaling Down

2010-12-22 Thread cuil yahoo
What i mean is my HTML Content comes haphazardly, all the icons in it seems to have converged. The UI of the feature has gone for a toss...So in any way is it possible to scale down the whole web page to say a particular percentage so that it appears presentable. I must admit though that i am new

[android-developers] Online Training Sap,Data Warehousing,Microsoft Technologies,Testing,SAS,Oracle,j...@bigclasses

2010-12-22 Thread big class
Knowledge doesn’t comes easily. It comes through cost, efforts and last of all but not least through a skilled craftsman. I represent Bigclasses. Bigclasses.com is a global online IT training company. We offer virtual online training on all major IT Technologies Like SAP/ Oracle/Data WH/Testing Too

[android-developers] Re: Limitations of the MapView and MapActivity design

2010-12-22 Thread lbendlin
I am trying to port my iOS application to Android. Yup, you guessed it - the iOS application uses multiple mapviews, and it works nicely. In the Android app I don't need the mapviews all at the same time. So I try to destroy the mapview already in the onPause method of my first activity (by removi

Re: [android-developers] SAX parsing problem..

2010-12-22 Thread TreKing
On Wed, Dec 22, 2010 at 6:12 AM, Abhilash baddam < abhilash.androiddevelo...@gmail.com> wrote: > Can any one send me the example on sax parsing. You should be able to find plenty of samples using Google. ---

Re: [android-developers] MMS messages

2010-12-22 Thread Yves Liu
I left a break point in my code, and it never triggered for SMS_receive. I even put MMS_receive, and it didn't work. Any suggestions? On Tue, Dec 21, 2010 at 5:49 PM, xiaoxiong weng wrote: > I believe it's the same as SMS_receive but you parse the data as > setType("image/png"); > I might be wr

Re: [android-developers] Scaling Down

2010-12-22 Thread TreKing
On Wed, Dec 22, 2010 at 2:53 AM, cuil yahoo wrote: > could anyone please help me with the scaling down ? What do you mean by "scaling down"? - TreKing

Re: [android-developers] Re: How to disable back button..?

2010-12-22 Thread Abhilash baddam
okay thanks for all of your suggestions ...everything is working is fine. On Thu, Dec 23, 2010 at 4:17 AM, Streets Of Boston wrote: > Note that this will work only for phones running 2.0 and up. > For phones running 1.6 and lower, you need to handle the key-down and > key-up of the back-key. > >

[android-developers] Unable to load default SVN Client

2010-12-22 Thread cellurl
I have a new version of eclipse called eclipse-java-helios-SR1- win32.zip It didn't have svn, so I did help->install New Software-> http://subclipse.tigris.org/update_1.6.x and choose these two items: Subversion Client Adapter provides a common API for Subversion client functionality. Subclipse

Re: [android-developers] Re: Portrait and Landscape in Emulator

2010-12-22 Thread cuil yahoo
Thank You for the help. On Thu, Dec 23, 2010 at 10:29 AM, praveena ankitha wrote: > Hi try this one Switch to previous layout orientation (for example, > portrait, landscape) KEYPAD_7 > > On Thu, Dec 23, 2010 at 10:25 AM, Kumar Bibek wrote: > >> A simple google search could have given you enough

[android-developers] Re: What is the structure of the Android PackageManagerService?

2010-12-22 Thread Geet
Ok Thank you. On Dec 22, 5:00 pm, FrankG wrote: > > But for that I need to understand "how the installation happens, the > > sequence of steps being called". > > What Mark and Dianne wanted to point out is that all questions related > to your solution are out of scope of this group. > > And that

Re: [android-developers] Re: Portrait and Landscape in Emulator

2010-12-22 Thread praveena ankitha
Hi try this oneSwitch to previous layout orientation (for example, portrait, landscape)KEYPAD_7 On Thu, Dec 23, 2010 at 10:25 AM, Kumar Bibek wrote: > A simple google search could have given you enough info. Ctrl+F11 wont work > on a MAC :) > > > Kumar Bibek > http://techdroid.kbeanie.com > http:

Re: [android-developers] Re: Portrait and Landscape in Emulator

2010-12-22 Thread Kumar Bibek
A simple google search could have given you enough info. Ctrl+F11 wont work on a MAC :) Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Dec 23, 2010 at 10:20 AM, Nidhi Sunil wrote: > > Hi, > > Press Ctrl+F11. > > On Dec 23, 9:46 am, cuil yahoo wrote: > > Hello, > > >

[android-developers] Re: Portrait and Landscape in Emulator

2010-12-22 Thread Nidhi Sunil
Hi, Press Ctrl+F11. On Dec 23, 9:46 am, cuil yahoo wrote: > Hello, > > I am trying to test my application in my emulator, but i am unable to switch > over from portrait view to landscape view. > > Could anyone please help me out ? > > Thanks > Cuil -- You received this message because you are

[android-developers] Portrait and Landscape in Emulator

2010-12-22 Thread cuil yahoo
Hello, I am trying to test my application in my emulator, but i am unable to switch over from portrait view to landscape view. Could anyone please help me out ? Thanks Cuil -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Re: TabHost not working in Froyo

2010-12-22 Thread KG
For anyone who finds this later, I came up with a solution. I was trying to emulate a button bar anyway and, after some digging, found out how to do it. Found the answer at this link: http://stackoverflow.com/questions/3265265/android-using-activitygroup-to-embed-activities Hopefully that'll he

[android-developers] Re: Developing for Galaxy Tab

2010-12-22 Thread Sarwar Erfan
On Thursday, December 23, 2010 3:47:03 AM UTC+6, Damien wrote: > > I am really keen to provide assets for each supported device size. > > > http://developer.android.com/guide/practices/screens_support.html Go through this articl

[android-developers] Re: Horizontal & Vertical Scroll View

2010-12-22 Thread John Gaby
That is disappointing. From the other posts, it sure seemed like people had gotten it to work. I had actually found some code which modified the ScrollView code to do bidirectional scrolls, but it did not compile, and I was hoping that it would not be necessary to try and figure out why. This see

[android-developers] Re: resultCode in onActivityResult returns 0

2010-12-22 Thread pramod.deore
oh yes, Bibek but I don't know how to add button in listview. I don't have .xml file I am showing list using ArrayAdapter. Now what I want is to add 2 buttons (Ok, clear all) to this list. because I don't have xml file I am confused how to add buttons. On Dec 23, 8:14 am, Kumar Bibek wrote: > We

[android-developers] Re: Anybody seen a slowdown in sales?

2010-12-22 Thread stymie
I have not been selling a huge amount but 15-20 per day for the past month since I started developing.The past 2 days I have only sold 4 and 5 respectively. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

Re: [android-developers] Re: resultCode in onActivityResult returns 0

2010-12-22 Thread Kumar Bibek
Well, that you will have to decide. If there can be multiple selections, then I would expect a button called "Done" which the user has to press when he is done selecting. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Dec 23, 2010 at 8:41 AM, pramod.deore wrote: > Hel

[android-developers] Re: Libgdx vs. andengine

2010-12-22 Thread Mario Zechner
Cool. Let me know how it went. Good luck, have fun! On 23 Dez., 03:44, Pedro Duque wrote: > Mario, > > thank you for your informed and quite complete post. > > My main concern is that I don't want to divert too much from Android > concepts and I'm afraid that using Lidgdx will lead me into new a

[android-developers] Re: resultCode in onActivityResult returns 0

2010-12-22 Thread pramod.deore
Hello, from where should I call finish(). And how I know that user has finished selecting list items. On Dec 22, 3:58 pm, "pramod.deore" wrote: > In my list view there are checkboxes and  suppose user want to select > multiple items if suppose he select 3 items then? Is that mean code > execute b

[android-developers] Re: OpenGL Problem with Sphere Texture Mapping

2010-12-22 Thread Mario Zechner
On 22 Dez., 20:42, Robert Green wrote: > 3DVec normal = (sphereCenter - point).normalize(); 3DVec normal = (point - sphereCenter).normalize(); Or your world will be upside down. Unless my brain is totally borked :) (could well be, 4am here...) -- You received this message because you are subsc

Re: [android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2010-12-22 Thread Kristopher Micinski
Many people have this problem, this implements a Bluetooth Piconet, this is why this is using seven different UUIDs for the Bluetooth socket. I went through this example and saw how it is implemented, it is similar to how we implement this client/server functionality in a few of our applications in

[android-developers] 2.3 emulator and xhdpi support

2010-12-22 Thread James Wang
Hi, We want test our app for xhdpi device and found no way to let emulator to support xhdpi even by setting desnsity of avd to 320. Have anybody had successful experience about it> Please share it. Thanks. James -- You received this message because you are subscribed to the Google Groups "And

Re: [android-developers] Re: Libgdx vs. andengine

2010-12-22 Thread Pedro Duque
Mario, thank you for your informed and quite complete post. My main concern is that I don't want to divert too much from Android concepts and I'm afraid that using Lidgdx will lead me into new and strange concepts from Android while AndEngine is more "integrated" with Android way. Anyway I'll fo

[android-developers] Re: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-22 Thread Tor Norbye
We have just released a new snapshot development build: http://tools.android.com/download It should make reordering in the outline work much more smoothly -- in addition to a rewritten drag & drop you now have + and - actions (not buttons, but keyboard shortcuts as well as context menu items). See

Re: [android-developers] Re: uninstall command is undocumented for ADB

2010-12-22 Thread Dianne Hackborn
The text I quoted was from running on a Mac. It's not like the code turns off the help text if it is compiled for a Mac. :) (Though that would be kind-of funny to do, I guess!) On Wed, Dec 22, 2010 at 5:59 PM, Indicator Veritatis wrote: > Andrew Esh has already pointed out that he sees it docum

Re: [android-developers] Re: uninstall command is undocumented for ADB

2010-12-22 Thread Dianne Hackborn
On Wed, Dec 22, 2010 at 5:55 PM, Indicator Veritatis wrote: > That is mildly interesting, but it has nothing to do with BokSen's > question. > "Also, I think there should be an update command for adb, it's a real pain to have to launch uninstall and then install every time you want to test a buil

Re: [android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2010-12-22 Thread 苗鹏
I looked at the FBTClickLinkCompete 'source, for (int i = 0; i < Connection.MAX_SUPPORTED && myBSock == null; i++) { for (int j = 0; j < 3 && myBSock == null; j++) { myBS

[android-developers] Re: Custom View with Children Implemented onGestureListener

2010-12-22 Thread argon gold
I have the following scenario public class CustomView extends absSpinner implements onGestureListener{ Other Functions here @Override public boolean onSingleTapUp(MotionEvent e) { // TODO Auto-generated method stub return false; } } and Main Activity Class as follows

[android-developers] Re: uninstall command is undocumented for ADB

2010-12-22 Thread Indicator Veritatis
Andrew Esh has already pointed out that he sees it documented. But he did not say whether he was seeing it so documented on a Mac. I too see it documented, but I am running on Fedora. That said, I find it very unlikely that it would be documented on the Linux build but not on the Mac build. It see

[android-developers] Re: uninstall command is undocumented for ADB

2010-12-22 Thread Indicator Veritatis
That is mildly interesting, but it has nothing to do with BokSen's question. On Dec 22, 2:25 pm, Dianne Hackborn wrote: > And the -r option on install: > >   adb install [-l] [-r] [-s] - push this package file to the device > and install it >                                  ('-l' means forward-

Re: [android-developers] Horizontal & Vertical Scroll View

2010-12-22 Thread Dianne Hackborn
You can't put a horizontal scroll view in a vertical scroll view. You probably just want to take the implementation of scroll view and modify it to suit your needs. On Wed, Dec 22, 2010 at 3:21 PM, John Gaby wrote: > I need to be able to have a view which scrolls both horizontally and > vertica

[android-developers] Re: Giving up wake up lock / Idle timeout for HistoryRecord: Always

2010-12-22 Thread Indicator Veritatis
The problem you describe is certainly peculiar. But in any case, in order for anyone to help you, we need more information. So, for example, when you say "i try to debug with Eclipse", are you setting a breakpoint? Where are you setting it? Are you getting the error message before or after hitting

Re: [android-developers] Cannot define a float as a resource?

2010-12-22 Thread Dianne Hackborn
Oh also you can just do a percentage dimension ("50%") and retrieve it with a base value of 1 or 100 as desired. On Wed, Dec 22, 2010 at 5:40 PM, Dianne Hackborn wrote: > You can use them as attributes, but unfortunately right now there is no way > to get them as direct resources. > > Well you ca

Re: [android-developers] Cannot define a float as a resource?

2010-12-22 Thread Dianne Hackborn
You can use them as attributes, but unfortunately right now there is no way to get them as direct resources. Well you can probably do it by being tricky -- use to define a raw resource, and Resources.getValue() to retrieve its value. (One reason why this doesn't exist is if it made entries in R.

Re: [android-developers] Re: Anybody seen a slowdown in sales?

2010-12-22 Thread Mark Carter
My sales seem to be back to normal now. Yeah, I buy the theory about the buy button, no pun intended. Maybe now users have got used to it... On 23 December 2010 06:44, Zsolt Vasvari wrote: > That's a very good point about the buy button. > > I have mixed feelings about the new client. It kind

Re: [android-developers] Re: Can we delay the ANR dialog

2010-12-22 Thread Dianne Hackborn
Possibly. Contributions welcome, too. :) On Wed, Dec 22, 2010 at 4:34 PM, Bob Kerns wrote: > Indeed. Could we have a way to speed it up, for testing purposes, > please? It'd be a good companion for StrictMode, or perhaps a policy > within StrictMode? > > > On Dec 21, 9:52 pm, Dianne Hackborn w

[android-developers] Cannot define a float as a resource?

2010-12-22 Thread Zsolt Vasvari
Am I missing something or there is no mechanism to define a float value as a resource? I am trying to have a locale dependent weight added to some of my buttons. Right now, as a workaround, I am defining the weight as an Integer and then divide and manualy set it. But why would there be such a s

[android-developers] Re: Can we delay the ANR dialog

2010-12-22 Thread Bob Kerns
Indeed. Could we have a way to speed it up, for testing purposes, please? It'd be a good companion for StrictMode, or perhaps a policy within StrictMode? On Dec 21, 9:52 pm, Dianne Hackborn wrote: > Absolutely not.  The ANR dialog is shown well after the app has caused > enough delay to be notic

[android-developers] Re: LVL and 2.3 Emulator

2010-12-22 Thread Xavier
Hello Google, any solution?¿? On 22 dic, 05:59, Brill Pappin wrote: > Anyone think they never do? -- 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

[android-developers] Re: Libgdx vs. andengine

2010-12-22 Thread Mario Zechner
Full disclosure: i'm the developer of libgdx. I think both have it's merits. Andengine will get you up and running faster than libgdx but is less flexible and slower in terms of rendering speed. It has a couple of nice features though that libgdx doesn't have (and vice versa). Libgdx is not a gam

[android-developers] How to have a dynamically generated URL in a WebView start a new activity?

2010-12-22 Thread Brian J. Coan
I have an Activity with a WebView, which is loaded from a HTML file under assets. I am implementing a custom WebViewClient to intercept certain URLs for processing within the host app; all other URLs should spawn a new browser activity. I have this working for any explicit URL in the HTML file. Wha

[android-developers] Horizontal & Vertical Scroll View

2010-12-22 Thread John Gaby
I need to be able to have a view which scrolls both horizontally and vertically (e.g. like a browser view). I have seen several posts where people have put a horizontal scroll view inside a vertical scroll view. I have tried to do that, but I only get vertical scrolling. The following is the cod

[android-developers] CountDownTimer doen't work during device in deep sleep?

2010-12-22 Thread optimusgeek
I use CountDownTimer for counting 24hours with 1minute interval. but It seems that the onTick() not called when device in deep sleep. When I check the millisUntilFinished value after activating device, The value was not match first but after few seconds, It show correct value. I think, when device

[android-developers] Re: How to disable back button..?

2010-12-22 Thread Streets Of Boston
Note that this will work only for phones running 2.0 and up. For phones running 1.6 and lower, you need to handle the key-down and key-up of the back-key. On Dec 22, 2:37 pm, Prateek Jain wrote: > Hi, > > If you just want to disable the back button and do nothing, you can > try this - > > @Overri

[android-developers] Re: Anybody seen a slowdown in sales?

2010-12-22 Thread Zsolt Vasvari
That's a very good point about the buy button. I have mixed feelings about the new client. It kind of feelks like a lipstick on a pig. I don't think people using the new client will be able to discover apps any more than with the old one. Yes, the longer descriptions are welcome, but that's pro

Re: [android-developers] Re: uninstall command is undocumented for ADB

2010-12-22 Thread Dianne Hackborn
And the -r option on install: adb install [-l] [-r] [-s] - push this package file to the device and install it ('-l' means forward-lock the app) ('-r' means reinstall the app, keeping its data) ('

[android-developers] Developing for Galaxy Tab

2010-12-22 Thread Damien Cooke
Hi All, I am interested in providing graphic images for an application I have written for Android 2.1. My issue is I can use the screen size to specify the galaxy in 2.2 but what do I do in 2.1. Stretching seems like a dumb idea to me, if you have a high resolution device you don't want to str

[android-developers] Re: New market features

2010-12-22 Thread Eric Kraft
I would guess how many pixels the image is downsized to is dependent on the device, which is why they didn't give specifics. -- 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@googlegrou

[android-developers] Re: Internal refresh of app

2010-12-22 Thread Leon Moreyn-Android Development
Thanks Mark. I will do the track-allocations first. On Dec 22, 2:07 pm, Mark Murphy wrote: > On Wed, Dec 22, 2010 at 1:44 PM, Leon Moreyn-Android Development > > wrote: > > ok. Would there be a way to track memory to determine where the leak > > is coming from? > > Use DDMS's track-allocations f

[android-developers] New market features

2010-12-22 Thread kernelpanic
anyone know what this really means? Feature Graphic: 1024w x 500h 24 bit PNG or JPEG (no alpha) Will be downsized to mini or micro what sizes are "mini" and/or "micro" ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

[android-developers] Re: Proguard problem after 2.3 update

2010-12-22 Thread jtoolsdev
I disabled the Proguard build from Eclipse by commenting out the proguard.cfg reference in default.properties. Then did a "Refresh" from the project's menu so it would take effect. On Dec 22, 7:20 am, licorna wrote: > Is there any way to disable this functionality. I just want to keep working >

Re: [android-developers] Thread problems

2010-12-22 Thread Mark Murphy
Ah, sorry, I missed that. On Wed, Dec 22, 2010 at 2:58 PM, Kostya Vasilyev wrote: > 22.12.2010 22:15, Mark Murphy пишет: >> >> activity run on the main application >> thread (which you are blocking) > > Mark, > > I don't believe this is the case. > > In fact, Schoel wrote this in his original mes

[android-developers] Re: Proguard problem after 2.3 update

2010-12-22 Thread mukgup
I am also getting problem with compiling the project with combination of linux (sdk updated r8), android-2.2, ant (1.8.1 ant -version says compiled on April 30 2010 ) and proguard. The problem i am getting from ant script is: .../ant/main_rules.xml:430: Expecting class path separator ':' bef

[android-developers] Re: Inputs from the Android Camera

2010-12-22 Thread ko5tik
You can put whatever you like as overlay over camera surface view (except another surface view ) See our android sample in javaocr project: http://sourceforge.net/projects/javaocr/ On Dec 22, 2:20 pm, Atik wrote: > hi, > so i have downloaded the source of camera app of android. > > and finally i

[android-developers] Re: Bitmap Matrix Rotate

2010-12-22 Thread nirm
OK, Thats my question how do i reuse it? Can you provide me an example? Thanks Nir On Dec 22, 9:05 pm, Robert Green wrote: > No.  Load it once and reuse it, otherwise you will suffer some nasty > performance. > > On Dec 22, 10:35 am, nirm wrote: > > > > > Hello, > > > I have a bitmap that i wan

[android-developers] Re: TabHost not working in Froyo

2010-12-22 Thread KG
Shameless self bump On Dec 22, 12:44 am, KG wrote: > Hi Everyone, > > I have a TabHost in my app that works on my test device running > Android 2.1 (and all previous versions via the emulator).  However, > the tabs do not display when Running on Android 2.2 (Froyo) or later. > All there is is the

[android-developers] Re: NFC Demo errors?

2010-12-22 Thread JoeSchmoe
If you're using Eclipse, just right click on the projectBuild Path- >Add External Library On Dec 8, 10:00 am, phillin77 wrote: > Dear Dominik, > > I'm new to Android development, > I use Eclipse and had opened the NFCDemo project which Android 2.3 > provided > Can you kindly explain more deta

Re: [android-developers] Thread problems

2010-12-22 Thread Kostya Vasilyev
22.12.2010 22:15, Mark Murphy пишет: activity run on the main application thread (which you are blocking) Mark, I don't believe this is the case. In fact, Schoel wrote this in his original message: I've checked the thread id of the thread in which queryUserSave is called and the thread id in

[android-developers] Re: How do i multi select images in the Gallery and send there URL to my activity?

2010-12-22 Thread Hans-Erik
On 22 Dec, 20:48, bruce wrote: > What you want is ACTION_SEND_MULTIPLE. You will receive a set of > Uris. Thanks Bruce! Coming from Java, Any book you can recommend learning android infrastructure? -- You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Re: How do i multi select images in the Gallery and send there URL to my activity?

2010-12-22 Thread bruce
What you want is ACTION_SEND_MULTIPLE. You will receive a set of Uris. Something like if (Intent.ACTION_SEND_MULTIPLE.equals(action)) && Intent.hasExtra(Intent.EXTRA_STREAM)) { ArrayList list = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM); for (Parcelable p : list) {

[android-developers] Re: OpenGL Problem with Sphere Texture Mapping

2010-12-22 Thread Robert Green
Oh here is a faster method - http://www.mvps.org/directx/articles/spheremap.htm For each point (Assuming Y=up): 3DVec normal = (sphereCenter - point).normalize(); float U = asin(normal.x)/PI + 0.5 float V = asin(normal.y)/PI + 0.5 for z=up: float U = asin(normal.x)/PI + 0.5 float V = asin(normal

[android-developers] Re: How to disable back button..?

2010-12-22 Thread Prateek Jain
Hi, If you just want to disable the back button and do nothing, you can try this - @Override public void onBackPressed() { // Your code here, If you wish to write any, else no need. :-) } Thats it !!! Cheers, Prateek On Dec 22, 5:06 pm, Abhilash baddam wro

[android-developers] Re: OpenGL Problem with Sphere Texture Mapping

2010-12-22 Thread Robert Green
Also I should add that your sphere normal should be (sphereCenter - point).Normalize() and will be a 3D vector. Normals are 3D, UVs are 2D. On Dec 22, 9:09 am, pedr0 wrote: > Please see the link and reply inside  this post if you have not an > account on OpenGL forum, the question is over there.

[android-developers] Re: OpenGL Problem with Sphere Texture Mapping

2010-12-22 Thread Robert Green
pedro, your problem has nothing to do with android. I think you may need a 3D refresher to solve it. Normals are not UVs. Your UVs will depend on how you want to map, but the easiest way to do it is to map from the sphere center out using angles, like this. Since GL has 2D texture coordinate 0

[android-developers] Re: How do i multi select images in the Gallery and send there URL to my activity?

2010-12-22 Thread Hans-Erik
On 22 Dec, 20:17, Mark Murphy wrote: > ACTION_SEND only supports sending one item. Thanks for your reply Do you know any other way to do this? My Activity is dormant and awaken by the user selecting images. There has to be another way to do this right? -- You received this message because you

Re: [android-developers] How do i multi select images in the Gallery and send there URL to my activity?

2010-12-22 Thread Mark Murphy
ACTION_SEND only supports sending one item. On Wed, Dec 22, 2010 at 12:45 PM, Hans-Erik wrote: > hi > In the gallery I have added my Item to the share menu. But i can only > get one image and making my Activity start. This code give me the URL > for one image. Is it possible to set up the Gallery

Re: [android-developers] Thread problems

2010-12-22 Thread Mark Murphy
On Wed, Dec 22, 2010 at 10:11 AM, Schoel wrote: > I have a function call from a large engine (which I can not change) > which asks the user whether to save or not. Before this function call > returns, I need an answer from the user whether to save. Ask the save/no-save question before doing whate

Re: [android-developers] Re: Internal refresh of app

2010-12-22 Thread Mark Murphy
On Wed, Dec 22, 2010 at 1:44 PM, Leon Moreyn-Android Development wrote: > ok. Would there be a way to track memory to determine where the leak > is coming from? Use DDMS's track-allocations feature, or use DDMS to dump the heap to an HPROF file for analysis with Eclipse MAT. -- Mark Murphy (a C

[android-developers] Re: Bitmap Matrix Rotate

2010-12-22 Thread Robert Green
No. Load it once and reuse it, otherwise you will suffer some nasty performance. On Dec 22, 10:35 am, nirm wrote: > Hello, > > I have a bitmap that i want it to rotate all the time. > This bitmap is placed in a SurfaceView. > My question is: Do i have to create the bitmap every time i want it to

[android-developers] Re: Internal refresh of app

2010-12-22 Thread Leon Moreyn-Android Development
ok. Would there be a way to track memory to determine where the leak is coming from? On Dec 22, 12:34 pm, Dianne Hackborn wrote: > You are almost certainly leaking memory.  You need to fix the leaks.  There > are some blog posts and discussions on this list about fixing leaks. > > On Wed, Dec 22,

Re: [android-developers] Thread problems

2010-12-22 Thread Kostya Vasilyev
Oh, and one more thing: the activity not getting displayed likely has something to do with the thread going into a wait state right after you call startActivity. Since the call to queryUserSave comes from background thread (as I understand from your email), you could use runOnUIThread() with a

[android-developers] Bitmap Matrix Rotate

2010-12-22 Thread nirm
Hello, I have a bitmap that i want it to rotate all the time. This bitmap is placed in a SurfaceView. My question is: Do i have to create the bitmap every time i want it to rotate? here is my code it is placed is the on draw method: leftMatrix.setRotate(degrees++, coords.getX()+bitmap.getWidth()

Re: [android-developers] Thread problems

2010-12-22 Thread Kostya Vasilyev
Just to add my two cents: You didn't include information on what s_Semaphore is, but I'm guessing it's from java.concurrent. Although I'm not too familiar with this package, the docs say this: http://download.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/Semaphore.html Conceptually,

  1   2   >