Re: [android-developers] Re: dialog placement

2011-04-02 Thread skink
Kostya Vasilyev wrote: > Pskink - I believe you need to add transparent padding on the right, as wide > as the balloon's size on the left. > thanks Kostya, that works! it's minimal waste of resources but anyway it made a trick pakink -- You received this message because you are subscribed to

Re: [android-developers] Re: How to capture key events from View subclass

2011-04-02 Thread Rich E
Got it sorted. It seems that just returning a standard BaseInputConnection isn't enough to make the TextView editable. I needed to use the following subclass of BaseInputConnection. Thanks Daniel :) class MyInputConnection extends BaseInputConnection { private SpannableStringBuilder _edita

[android-developers] Media Scanner failing on

2011-04-02 Thread Paul
I posted this over on StackOverflow weeks ago, but not even a nibble - hoping someone here has seen this or has any suggestions. http://stackoverflow.com/questions/5207221/android-problem-with-media-scanner-not-running I have an app that user's can draw with, and then 'export' that drawing as a .

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-02 Thread TreKing
On Sat, Apr 2, 2011 at 8:40 PM, Alaeddine Ghribi wrote: > I have a problem in the Import class that i can't recognize it ! What does that mean? - TreKing

[android-developers] Re: Working With Multiple Widget Sizes

2011-04-02 Thread Jake Colman
> "KV" == Kostya Vasilyev writes: KV> 2011/4/2 Jake Colman >> Kostya, >> >> Thanks for the detailed reply. >> >> For those events that are shared by the two receivers, what >> happens if only one sized widget is actually on the home screen? >> The system sends the

[android-developers] TabActivity problem when tab change it lost it state

2011-04-02 Thread Master Mind
i have three tabs in my app. in first tab there is a textbox and listview for search when user search the list is populated but when user change the tab and come back the listview and text box both are cleared. any one having the solution for this. saving and restoring state manually is long proce

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-02 Thread Alaeddine Ghribi
Well i have an export menu button, and when i tap on it, this class is "executed", the normal way: case R.id.importer: Intent i = new Intent(this,Import.class); startActivity(i); return true; I have a problem in the Import class that i can't recognize it

Re: [android-developers] (File export) What's going on with my code?[NEED HELP]

2011-04-02 Thread TreKing
On Sat, Apr 2, 2011 at 7:26 PM, Alaeddine Ghribi wrote: > and i want to export it to the SDCARD, i writed the code(wondering if it's > correct) and the class is not called > "The class is not called" ? Classes aren't "called". Can you clarify the problem?

Re: [android-developers] Re: Honeycomb screenOrientation not working

2011-04-02 Thread Dianne Hackborn
There is *no* reason to make the layout portrait-only. If you have one layout, just put it in layout/ and leave it at that. If there are other restrictions globally on the kinds of screens your device will work on then express that elsewhere (setting a forced screen orientation, saying you don't

Re: [android-developers] Re: Hardware key combination capture

2011-04-02 Thread Dianne Hackborn
Remapping the search button can't break stuff, because the search button is not something required by the platform so apps shouldn't rely on it being there. The only required buttons are home and menu (and I guess the power button). On Sat, Apr 2, 2011 at 5:18 PM, Doug wrote: > On Apr 1, 8:59 a

Re: [android-developers] Re: Custom Url support in Android

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 8:14 PM, Doug wrote: > Unless you're an internet heavyweight like Google.  Then you can > invent the market:// scheme and make people use it. And some Google engineers, Ms. Hackborn among them, are not fans of that, either -- she's said as much on this list. -- Mark Murph

[android-developers] (File export) What's going on with my code?[NEED HELP]

2011-04-02 Thread Alaeddine Ghribi
Hi, I have data stored in a file in /data/data and i want to export it to the SDCARD, i writed the code(wondering if it's correct) and the class is not called, please try to help me to solve the problem, THANK YOU: public class Import extends Saves { private Context context; pu

[android-developers] Re: Hardware key combination capture

2011-04-02 Thread Doug
On Apr 1, 8:59 am, ncerezo wrote: > I fully understand the security issues in capturing all the keystrokes > or special keys like home or end call. However, there should be a way > to assign an application to a given hardware key or at least to trap > some of the hardware keys. No, there shouldn'

[android-developers] Re: Custom Url support in Android

2011-04-02 Thread Doug
On Apr 2, 3:54 am, Mark Murphy wrote: > > Converting of myprotocol  to standerd protocols like htto etc is not > > an option since this url scheme has been ported to other OS platform > > and this has to be done the same way on android too. > > Then fix the other OS platform. You should not be inv

[android-developers] Re: Best Ads for Android Apps

2011-04-02 Thread Russell DuRoss
I'm using Google Adsense and I'm satisfied with it, but I admit that I haven't tried any of the others. Also, Adsense seems to be in a perpetual state of Beta, so the future is unclear, especially since I think Google now owns Admob as well. On Apr 1, 7:44 am, ccalvo wrote: > Hi Friends, > > I'm

Re: [android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-04-02 Thread Dianne Hackborn
The window will be resized to wrap its content. Be sure in your 9-patch that you have correctly indicated the content area along the right and bottom edges. If that isn't the problem, you can use hierarchyviewer to see what is going on with the layout of the view hierarchy if your window. You do

[android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-04-02 Thread Nick Longinow
Getting much closer. But not quite. I've got my customized background (nine patch) built and assigned to the alert window. But, its huge while the dialog list items are normal size. I did alert.getWindow().setLayout(50, 50) to resize that window but it has no effect. Still have this huge backgro

[android-developers] Re: Launching Google maps from another app

2011-04-02 Thread ip332
You are mixing several tasks into one question. Split them and it will be much easier: 1. Geocoding (convert street address into lat,long pair) is the first task. But all items in your "set of addresses" should be converted into x,y pairs. 2. Each such pair (lat/long) should be used in the Overlay

Re: [android-developers] Re: Add a new resource and an old resource is no longer found

2011-04-02 Thread TreKing
On Sat, Apr 2, 2011 at 4:51 PM, trans wrote: > In the mean time I switched to using res/raw and read the file in manually. > That works too. Stuff in the XML folder is optimized though so you should probably use unless you have a good reason to not. -

[android-developers] Re: File handling in android

2011-04-02 Thread lbendlin
getPackageName() -- 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+unsubscr...@googlegroups.com For more

[android-developers] Creating 9-patch Images on Device

2011-04-02 Thread Matt M
Hello, I am trying to create 9-patch images using bitmaps on the device. I am aware of the draw9patch tool and I know how to use it however the images in question are customized by the user thus using the tool and adding images as resources is out of the question. My research has led me to this d

[android-developers] Re: dialog placement

2011-04-02 Thread Nick Longinow
Figured it out - mAlert.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.fifth)); beautiful. Thanks for this idea On Apr 2, 4:26 pm, Nick Longinow wrote: > Could I ask how you got the transparent area at the top and left?  I > have tried this custom dialog and I get a whit

[android-developers] Re: Add a new resource and an old resource is no longer found

2011-04-02 Thread trans
On Apr 2, 5:42 pm, TreKing wrote: > On Sat, Apr 2, 2011 at 4:09 PM, trans wrote: > > > > Then I added a new file, `dictionary.xml`. > > > > Where did you add that xml file? > > > To `res/values` with the rest of them. > > Yeah, no. You own xml files go in the rex/xml folder. The ones in res/val

Re: [android-developers] Re: dialog placement

2011-04-02 Thread Kostya Vasilyev
Pskink - I believe you need to add transparent padding on the right, as wide as the balloon's size on the left. 03.04.2011 1:11 пользователь "Dianne Hackborn" написал: > If you merge two drawables into the same windowBackground drawable, this is > no different than what you are doing now. > > Gene

Re: [android-developers] Re: Add a new resource and an old resource is no longer found

2011-04-02 Thread TreKing
On Sat, Apr 2, 2011 at 4:09 PM, trans wrote: > > > Then I added a new file, `dictionary.xml`. > > > > Where did you add that xml file? > > To `res/values` with the rest of them. Yeah, no. You own xml files go in the rex/xml folder. The ones in res/values are "special".

Re: [android-developers] Re: dialog placement

2011-04-02 Thread Dianne Hackborn
If you merge two drawables into the same windowBackground drawable, this is no different than what you are doing now. Generally the window background is just a frame, and an icon or other stuff is drawn by the view hierarchy inside of the window. On Sat, Apr 2, 2011 at 2:44 AM, skink wrote: > >

[android-developers] How to capture frames from real time video

2011-04-02 Thread Nilay
Hello All, I am currently working on the Android Multimedia framework, Specially For Video. My query is, How to differentiate frames while capture a Video from Android Camcorder. I need Help related with it. Thanks In Advance. -- You received this message because you are subscribed to the Goo

[android-developers] Re: Add a new resource and an old resource is no longer found

2011-04-02 Thread trans
On Apr 2, 4:25 pm, TreKing wrote: > On Sat, Apr 2, 2011 at 2:55 PM, trans wrote: > > Then I added a new file, `dictionary.xml`. > > Where did you add that xml file? To `res/values` with the rest of them. -- You received this message because you are subscribed to the Google Groups "Android De

Re: [android-developers] Re: Mac phone

2011-04-02 Thread Oliver Crow
I found I had this problem with my xperia x10, I installed PDAnet, which installs further drivers for your individual phone. On 2 Apr 2011, at 22:03, lbendlin wrote: > as long as you have checked the development box on your phone it will work > with an Intel Mac and OSX 10.6.5 plus > > Some

[android-developers] Re: touch screen with two finger gesture to magnify or shrink

2011-04-02 Thread lbendlin
here's an example http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-3-understanding-touch-events/1775?tag=mantle_skin;content -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to an

[android-developers] Re: Mac phone

2011-04-02 Thread lbendlin
as long as you have checked the development box on your phone it will work with an Intel Mac and OSX 10.6.5 plus Sometimes you have to reboot your phone while leaving it connected for ADB to "see" it again. -- You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: does NFC in gingerbread support card simulate?

2011-04-02 Thread JMC114
Hey Michael, Why - may I ask - do you think this possibility will not be made available to android phones? It seems to me it's a rather important part of NFC. The part where it makes phones compatible to existing infrastructures based on RFID (without changing those infrastructures), namely those

[android-developers] Re: Monkeyrunner not capturing screenshot correctly

2011-04-02 Thread Diego Torres Milano
Add more delay to see it this solves the problem. On Apr 2, 1:56 pm, SJ wrote: > I have also seen not 100% perfect screenshot. > There is only one function in Monkeyrunner to take Snapshots: > > com.android.monkeyrunner.MonkeyDevice.takeSnapshot > Gets the device's screen buffer, yielding a scree

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Raghav Sood
Okay Mark. Thanks a lot. I finally got it! On Sun, Apr 3, 2011 at 2:08 AM, Mark Murphy wrote: > On Sat, Apr 2, 2011 at 4:27 PM, Raghav Sood wrote: > > Sorry Mark. I am 13 years old and a little confused. Please try just once > > more. I need to find out what image is currently in the image view

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 4:27 PM, Raghav Sood wrote: > Sorry Mark. I am 13 years old and a little confused. Please try just once > more. I need to find out what image is currently in the image view. How can > I do that? Just try once more. :: sigh :: There are many possible ways an image can get i

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Raghav Sood
Right now I have an Imageview. When someone taps it it switches to a new image with a red outline. I managed this with Mark's help. Now I need to know if the image in the Image view is the red outlined one or not. If it is not then when the image is touched it should chnge to the outlined one and v

[android-developers] alarm setting

2011-04-02 Thread niju
i am facing issues for setting alarm through android code. I gone through most of the documents on net about alarmmanager and how to use it but nothing worked. please find the code am using ,is it the right way for setting alarm . for eg: i am setting it for 8 AM morning .but its not

[android-developers] Re: Mac phone

2011-04-02 Thread Spiral123
No driver is needed for a Mac. Check your cables. It's the #1 reason for Mac connection problems. Use the apple USB prober to make sure that the phone is recognized when plugged in. On Apr 2, 4:11 pm, bob wrote: > I got a Huawei Ascend, and I don't know how to get it working on Mac. > I don'

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread TreKing
On Sat, Apr 2, 2011 at 3:27 PM, Raghav Sood wrote: > I need to find out what image is currently in the image view. How can I do > that? Why? What are you actually trying to achieve? - TreKing

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Raghav Sood
Sorry Mark. I am 13 years old and a little confused. Please try just once more. I need to find out what image is currently in the image view. How can I do that? Just try once more. On Sun, Apr 3, 2011 at 1:54 AM, Mark Murphy wrote: > On Sat, Apr 2, 2011 at 4:21 PM, Raghav Sood wrote: > > Oh. Ri

Re: [android-developers] Is there any method in Android through which we can add some message secretly in the end of Video clip?

2011-04-02 Thread TreKing
On Sat, Apr 2, 2011 at 2:56 PM, Nilay wrote: > My query is, Is there any method in Android through which we can add some > message secretly in the end of Video or Video Frame? > W ... T .. F ... - Tr

[android-developers] Re: dialog placement

2011-04-02 Thread Nick Longinow
Could I ask how you got the transparent area at the top and left? I have tried this custom dialog and I get a white border around my view. Is it the "use windowBackground" idea? What object are you setting with that attribute? Is it the Dialog? On Apr 1, 12:36 pm, pskink wrote: > hi, > > i wa

Re: [android-developers] Add a new resource and an old resource is no longer found

2011-04-02 Thread TreKing
On Sat, Apr 2, 2011 at 2:55 PM, trans wrote: > Then I added a new file, `dictionary.xml`. Where did you add that xml file? - TreKing - Chicago tr

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 4:21 PM, Raghav Sood wrote: > Oh. Right sorry. Seeing as thiss will not work do I use something like > getResources().getIdentifier to find the current image in the image view? I have explained the situation twice, and I do not feel like pasting it in again a third time. I

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Raghav Sood
Oh. Right sorry. Seeing as thiss will not work do I use something like getResources().getIdentifier to find the current image in the image view? On Sun, Apr 3, 2011 at 1:45 AM, Mark Murphy wrote: > On Sat, Apr 2, 2011 at 4:06 PM, Raghav Sood wrote: > > sorry my fault. I wasn't specific enough.

[android-developers] Re: Honeycomb screenOrientation not working

2011-04-02 Thread Kevin
Yeah I can see why it's a good idea to always have a default. In the case of this app though, I don't know if a generic layout would work for both layout and portrait, it would usually extend off the screen in one direction or another. I suppose I could put it in a scrolling layout for the defaul

Re: [android-developers] Re: Mac phone

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 4:11 PM, bob wrote: > I got a Huawei Ascend, and I don't know how to get it working on Mac. > I don't think it works on Mac. > > Do you usually have to install some drivers?  Do the phones usually > come with Mac drivers? There are no Mac drivers for any phone, AFAIK. It sh

[android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-04-02 Thread Nick Longinow
Successfully got a .9.png file created and applied it to my ListView - looks very nice. Problem - the AlertDialog I want to use it for seems to add a rectangle with white interior as a container or border around my ListView. I'd like it to be transparent, and only show the ListView. Do I have to

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 4:06 PM, Raghav Sood wrote: > sorry my fault. I wasn't specific enough. Should I pur R.drawable.imagename > or what? R.drawable.imagename is an integer so what would be the drawable > version of that? There is no "Drawable version of that". At the risk of quoting myself:

Re: [android-developers] Re: Honeycomb screenOrientation not working

2011-04-02 Thread Mark Murphy
Well, that's a risky setup anyway. *Always* have one of *every* resource in the default resource set (e.g., one of every layout in res/layout/). Override as needed. On Sat, Apr 2, 2011 at 4:03 PM, Kevin wrote: > That ID is the layout file, but it's in /res/layout-port/ I don't have > a /res/layou

[android-developers] Re: Mac phone

2011-04-02 Thread bob
I got a Huawei Ascend, and I don't know how to get it working on Mac. I don't think it works on Mac. Do you usually have to install some drivers? Do the phones usually come with Mac drivers? On Apr 2, 2:51 pm, "Maps.Huge.Info (Maps API Guru)" wrote: > Every one I've tried works with the Mac. >

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Raghav Sood
sorry my fault. I wasn't specific enough. Should I pur R.drawable.imagename or what? R.drawable.imagename is an integer so what would be the drawable version of that? On Sun, Apr 3, 2011 at 1:28 AM, Mark Murphy wrote: > On Sat, Apr 2, 2011 at 3:53 PM, Raghav Sood wrote: > > I found that out. I

[android-developers] Re: Honeycomb screenOrientation not working

2011-04-02 Thread Kevin
That ID is the layout file, but it's in /res/layout-port/ I don't have a /res/layout/ or /res/layout-land/. So it must not be looking in / res/layout-port/ even though it's supposed to always use the portfolio orientation... It works fine on 2.2 and lower, I don't get it. On Apr 2, 12:48 pm, Mar

Re: [android-developers] Is there any method in Android through which we can add some message secretly in the end of Video clip?

2011-04-02 Thread Mark Murphy
No. On Sat, Apr 2, 2011 at 3:56 PM, Nilay wrote: > Hello All, > > I am working on Android Multimedia Framework, > > My query is, Is there any method in Android through which we can add > some message secretly in the end of Video or Video Frame? > > Please If any method or program is there then he

Re: [android-developers] setting alarm

2011-04-02 Thread Mark Murphy
calendar.set(Calendar.HOUR_OF_DAY,1); calendar.set(Calendar.MINUTE,12); This is 1:12am, not 8am. Also: -- Use Calendar.getInstance() -- Do not forget that if it is after 1:12am today (which is to say, the bulk of the day), this time will be in the past On Sat, Apr 2, 2011 at 3:57 PM, niju wrot

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 3:53 PM, Raghav Sood wrote: > I found that out. I need to use this for an if else. What value do I need to > put on the other side of the ==? How should I know? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blo

[android-developers] setting alarm

2011-04-02 Thread niju
Hi, i am facing issues for setting alarm through android code. I gone through most of the documents on net about alarmmanager and how to use it but nothing worked. please find the code am using ,is it the right way for setting alarm . i am setting it for 8 AM morning .but its not wo

[android-developers] Is there any method in Android through which we can add some message secretly in the end of Video clip?

2011-04-02 Thread Nilay
Hello All, I am working on Android Multimedia Framework, My query is, Is there any method in Android through which we can add some message secretly in the end of Video or Video Frame? Please If any method or program is there then help me. Thanks In advance. -- You received this message becaus

[android-developers] Add a new resource and an old resource is no longer found

2011-04-02 Thread trans
Hi-- I had a res/values directory like so: colors.xml dimens.xml strings.xml Everything worked fine. Then I added a new file, `dictionary.xml`. Now when I run my app I get a Resources$NotFoundException for a resource that is in the dimens.xml file. I don't see any reason for it. Any one

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Raghav Sood
I found that out. I need to use this for an if else. What value do I need to put on the other side of the ==? Thanks On Sun, Apr 3, 2011 at 1:19 AM, Mark Murphy wrote: > On Sat, Apr 2, 2011 at 3:40 PM, Raghav Sood wrote: > > Got the assigning working. Does this method return a value like > > R

[android-developers] Re: Mac phone

2011-04-02 Thread Maps.Huge.Info (Maps API Guru)
Every one I've tried works with the Mac. Evo Droid Nexus One Magic I think you'll find it's not an issue. -John Coryat -- 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.c

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 3:40 PM, Raghav Sood wrote: > Got the assigning working. Does this method return a value like > R.drawable.imagename or some other thing. No, R.drawable.imagename is an integer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://co

Re: [android-developers] Re: Honeycomb screenOrientation not working

2011-04-02 Thread Mark Murphy
Have you looked in your R.java file (assuming you have the exact R.java file corresponding with the production code) to see what resource has the ID of 0x7f03? If your layout is in res/layout/, Android will always find it. On Sat, Apr 2, 2011 at 3:43 PM, Kevin wrote: > I do have a stack trac

[android-developers] Re: Honeycomb screenOrientation not working

2011-04-02 Thread Kevin
I do have a stack trace, it crashed in the onCreate method when calling setContentView with a ResourcesNotFoundException. This seems to indicate that it was trying to load the landscape xml layout, which of course doesn't exist since it's supposed to always be portrait and I didn't make a landscap

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Raghav Sood
Got the assigning working. Does this method return a value like R.drawable.imagename or some other thing. On Sun, Apr 3, 2011 at 12:54 AM, Raghav Sood wrote: > Thanks Mark, > > Got it working > > > On Sun, Apr 3, 2011 at 12:51 AM, Mark Murphy wrote: > >> On Sat, Apr 2, 2011 at 3:14 PM, Raghav So

[android-developers] Re: in-app billing problems

2011-04-02 Thread Tony
Update : after one day and a half, I am trying my code again and this time everything works :-). So I guess it is my fault to try something right after the announcement... :-) Two notes, though : 1) you need to have a real credit card assigned to your google test account (and you will be charged

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Raghav Sood
Thanks Mark, Got it working On Sun, Apr 3, 2011 at 12:51 AM, Mark Murphy wrote: > On Sat, Apr 2, 2011 at 3:14 PM, Raghav Sood wrote: > > I need to use this function: > > > > public Drawable getDrawable (). > > > > How do I assign this to a variable and which type of variable do I need. > > Pres

Re: [android-developers] assign drawable to variable not imageview

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 3:14 PM, Raghav Sood wrote: > I need to use this function: > > public Drawable getDrawable (). > > How do I assign this to a variable and which type of variable do I need. Presumably, you need a Drawable variable. You assign it the same way you assign anything else in Java.

Re: [android-developers] Honeycomb screenOrientation not working

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 3:06 PM, Kevin wrote: > I have a small app that has the screenOrientation set to "portrait" in > the manifest file for the single activity it contains. > > It works fine, except for Honeycomb devices, which users are reporting > to me that if they are holding the device in l

[android-developers] assign drawable to variable not imageview

2011-04-02 Thread Raghav Sood
Hi, I need to use this function: public Drawable getDrawable (). How do I assign this to a variable and which type of variable do I need. Also is there a better way of finding out an imageview's current image resource? Thanks -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.c

[android-developers] Honeycomb screenOrientation not working

2011-04-02 Thread Kevin
I have a small app that has the screenOrientation set to "portrait" in the manifest file for the single activity it contains. It works fine, except for Honeycomb devices, which users are reporting to me that if they are holding the device in landscape position, the app will crash instead of remain

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Thanks Mark and TreKing, It works perfectly now. I am not new to Java. I have been working with it for over 2 years but not very often. I am just a little out of practice and maybe need to refresh my memory.Thanks for the links anyways. Thanks On Sun, Apr 3, 2011 at 12:27 AM, TreKing wrote: >

Re: [android-developers] ImageView change image

2011-04-02 Thread Mark Murphy
Oh, sorry. You need to make that be a data member of your activity. You moved the whole line into onCreate(). You need to declare the data member where you had it, but not initialize it until onCreate(). You appear to be new to Java. I *strongly* encourage you to take some time and learn Java outs

Re: [android-developers] ImageView change image

2011-04-02 Thread TreKing
On Sat, Apr 2, 2011 at 1:53 PM, Raghav Sood wrote: > How do I fix this? Learn Java. Then look up "scope". - TreKing - Chicago transit tracking ap

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
No. that image is definitely there. The word "button" is getting underlined. It says that it cannot find it. I think it is because button is declared in the other method. How do I fix this? On Sun, Apr 3, 2011 at 12:17 AM, Mark Murphy wrote: > You do not have a drawable resource named m1s, most l

Re: [android-developers] Re: OutofMemoryError on Thunderbolt: HttpClient.execute

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 2:36 PM, Nathan wrote: > Is there anyway to change the global settings for buffer size? Rebuild the firmware is the only solution, AFAIK. > There are some connections I don't control, such as the dispatch on > Google Analytics. Oy. Short of Analytics fixing this in their

Re: [android-developers] ImageView change image

2011-04-02 Thread Mark Murphy
You do not have a drawable resource named m1s, most likely. On Sat, Apr 2, 2011 at 2:44 PM, Raghav Sood wrote: > Okay I fixed that but now the line in red cannot find the button imageview. > > public class class extends Activity { > > >     /** Called when the activity is first created. */ >    

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Okay I fixed that but now the line in red cannot find the button imageview. public class class extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCont

[android-developers] Low latency audio

2011-04-02 Thread Peter Eastman
How is low latency audio in Gingerbread supposed to work? It added the android.hardware.audio.low_latency flag to the manifest with the description, "The application uses a low-latency audio pipeline on the device and is sensitive to delays or lag in sound input or output." But how do I actually u

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Sorry my fault. forgot to remove the imageview declaration from top. On Sun, Apr 3, 2011 at 12:07 AM, Raghav Sood wrote: > Okay I fixed that part now but it still force closes. My code now is: > > public class class extends Activity { > ImageView button = (ImageView)findViewById(R.id.l1m1);

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Okay I fixed that part now but it still force closes. My code now is: public class class extends Activity { ImageView button = (ImageView)findViewById(R.id.l1m1); public OnClickListener mCorkyListener = new OnClickListener() { public void onClick(View v) { button.setImageR

[android-developers] Re: OutofMemoryError on Thunderbolt: HttpClient.execute

2011-04-02 Thread Nathan
Is there anyway to change the global settings for buffer size? There are some connections I don't control, such as the dispatch on Google Analytics. Nathan On Mar 29, 2:36 pm, Nathan wrote: > On Mar 29, 2:20 pm, Mark Murphy wrote:> On Tue, Mar > 29, 2011 at 5:15 PM, Nathan wrote: > > > Until

[android-developers] Mac phone

2011-04-02 Thread bob
Can someone recommend an android phone that will definitely let me do development for it on the Mac? I'm thinking of getting the Optimus, but it's nonrefundable, so if it doesn't work on Mac, it's a waste of $200. -- You received this message because you are subscribed to the Google Groups "Andr

[android-developers] Re: Monkeyrunner error for device

2011-04-02 Thread SJ
Looks like connection between monkeyrunner script and monkeyrunner daemon on device broken. is it always happen or sparadically? Can u try to remove all extra Apps and repeat? On Apr 1, 9:12 pm, saadhuboy wrote: > I am trying to use monkeyrunner to automate a few tests on the device > but keep ru

Re: [android-developers] ImageView change image

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 1:55 PM, Raghav Sood wrote: > Thanks Mark, > > This is what I got from the phone log: :: snip :: > 04-02 23:04:46.726 E/AndroidRuntime(25262): Caused by: > java.lang.NullPointerException > 04-02 23:04:46.726 E/AndroidRuntime(25262): at > android.app.Activity.findViewById(A

[android-developers] Re: C/C++ Integration With Android...

2011-04-02 Thread SJ
Check here: http://smartctl.net/android/ndk-r5.php On Apr 1, 1:59 pm, iliTheFallen wrote: > Hi All, > > I want to integrate C/C++ to Android Platform. Java Virtual Machine > has a native support for calling C/C++ methods or importing dll files. > My question is "Does Dalvik Virtual Machine(DVM)

[android-developers] Re: How can we get handle of GUI controls in Android?

2011-04-02 Thread SJ
I think it requires kernel level monitor. Maybe you should start from getting source code of android. Write driver to enumarate all controls of foreground apps. SJ On Mar 31, 4:57 am, Ella wrote: > The same question from me. > > We know, A GUI automation testing tool -- monkey runner is there, i

[android-developers] Re: Monkeyrunner not capturing screenshot correctly

2011-04-02 Thread SJ
I have also seen not 100% perfect screenshot. There is only one function in Monkeyrunner to take Snapshots: com.android.monkeyrunner.MonkeyDevice.takeSnapshot Gets the device's screen buffer, yielding a screen capture of the entire display. Which function have you mention? On Mar 31, 2:31 am, lb

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Thanks Mark, This is what I got from the phone log: 04-02 23:04:46.576 I/ActivityManager( 1368): Start proc com.raghavsood.mpfor activity com.raghavsood.mp/.matchpuzzler: pid=25262 uid=10113 gids={3003} 04-02 23:04:46.726 E/AndroidRuntime(25262): FATAL EXCEPTION: main 04-02 23:04:46.726 E/AndroidR

[android-developers] Re: ImageView setColorFilter, what to do for a bitmap?

2011-04-02 Thread Tim Jones
You can create a new scratch bitmap with a copy of the data and then blt it back onto the target bitmap like so: Paint p = new Paint(); p.setColorFilter(); Canvas c = new Canvas(target); c.drawColor(Color.BLACK); c.drawBitmap(scratchBitmap, 0, 0, p); -- You received this message because you

Re: [android-developers] ImageView change image

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 1:41 PM, Raghav Sood wrote: > I am testing it on my phone. The emulator has never finished booting on my > computer. How to I write errors to the logfile on the phone? Stack traces are automatically written to LogCat on the phone. Use adb logcat, DDMS, or the DDMS perspecti

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
I am testing it on my phone. The emulator has never finished booting on my computer. How to I write errors to the logfile on the phone? On Sat, Apr 2, 2011 at 11:08 PM, Mark Murphy wrote: > Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine > LogCat and look at the stack trace as

Re: [android-developers] ImageView change image

2011-04-02 Thread Mark Murphy
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your "force close". On Sat, Apr 2, 2011 at 1:33 PM, Raghav Sood wrote: > Hi everyone, > > My code is as follows: > > import com.raghavsood.mp.R; > > import android.app.Activity;

[android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Hi everyone, My code is as follows: import com.raghavsood.mp.R; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ImageView; public class class extends Activity { ImageView button = (ImageView)fi

[android-developers] Re: touch screen with two finger gesture to magnify or shrink

2011-04-02 Thread lbendlin
The ontouchevent syntax has changed since multitouch is supported. Check the new documentation. On Apr 1, 11:56 pm, a a wrote: > I think most of people have played the "angry birds". It can magnify > or shrink background when you move your two finger. > > I want to get the two start point like a

Re: [android-developers] Re: Activity lifecycle

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 12:28 PM, b_t wrote: > And is there any way to force stop activity A to test if > my onRestoreInstanceState and onSavedInstanceState implementation > works > when returning from B? Sure. Rotate the screen. By default, that will destroy and recreate the activity. > In my de

[android-developers] Re: Activity lifecycle

2011-04-02 Thread b_t
And is there any way to force stop activity A to test if my onRestoreInstanceState and onSavedInstanceState implementation works when returning from B? In my device A is never destroyed. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] EditText to filter a listview

2011-04-02 Thread Igor Nesralla Ribeiro
Hi, i have a edittext and a listview ... I want to do thiswhen the users type on a edittext this will filter a listview But...the problem is the listview returns nothing when I type someword that i have in the list. Can anyone help me ? or there any another simple way to do this H

Re: [android-developers] Re: Help me to realize preferences scheme to use it between activities

2011-04-02 Thread TreKing
On Sat, Apr 2, 2011 at 3:56 AM, Peter Webb wrote: > The OP said he had two applications. > Where did he say that? I see: On Thu, Mar 31, 2011 at 4:58 AM, Sergey K wrote: > (My first and main *activitiy *must be form with login + password) ... My > currently code work only in one *activity*, i

Re: [android-developers] Layout Buttons have no gradient on Droid X

2011-04-02 Thread Kostya Vasilyev
It is. The Droid X uses a very distinctive dark theme. Perhaps rather than using the #CDCDCD literal value, one could look up some similar color in the theme. Then on the Droid X it might be something that fits with the overall color scheme of the device. -- Kostya 2011/4/2 lbendlin > I though

  1   2   >