[android-developers] CSS support on WebView

2010-02-16 Thread farida
Hello All, I have a requirement of using a WebView to display the jsp pages from the server which uses JSTL. Here we have buttons in tabular form displayed using table tag and the first button needs to shown as selected with the CSS enabled for that selection. The buttons here are simple input

[android-developers] Re: 9-patch background image affects margins?

2010-02-16 Thread skink
On Feb 16, 1:16 am, Jason Proctor jason.android.li...@gmail.com wrote: i have list views with image views and text views etc in them, and i'm trying to fix up a situation where the background image of a list element changes in the pressed state. if there's a straightforward way of doing

[android-developers] Screen Orientation in Android

2010-02-16 Thread uday kiran
Hi All.. Im facing some problems on Screen Orientation in android. In my application one screen contains Name,Age(as EditTexts). When i click on Name EditText internal Keypad is opening and some of the buttons are hiding due to that keypad. I have some questions regarding this. 1) Whether i need

[android-developers] Re: use a button to move a cursor in a widget

2010-02-16 Thread Olivier
I tried public class MyWidget extends AppWidgetProvider { private static int id=0; public static class ActNext extends Activity{ public void onCreate(){ id=id+1; } } public void onUpdate(Context context, AppWidgetManager

Re: [android-developers] Re: how to Play music from AudioTrack

2010-02-16 Thread kavitha
Thanks skink. I get audio stream in mp3 format. So,Currently I write to a file and play it. Do I need to use any converter to convert mp3 to ogg format and then play? Thanks Kavitha On Tue, Feb 16, 2010 at 1:27 PM, skink psk...@gmail.com wrote: On Feb 16, 6:36 am, kavitha

[android-developers] implicit intents

2010-02-16 Thread dane131
hallo i have made two applications A and B.A binds to a service of B using an implicit intent: intent i =new Intent (level1.level2); Application B has a service that has an intent filter for actions of type level1.level2. The problem is that B is not always called.Sometimes it is called anad

[android-developers] Re: how to Play music from AudioTrack

2010-02-16 Thread skink
On Feb 16, 9:43 am, kavitha kavith...@gmail.com wrote: Thanks skink. I get audio stream in mp3 format. So,Currently I write to a file and play it. Do I need to use any converter to convert mp3 to ogg format and then  play? Thanks Kavitha oh yes, simple renaming track.mp3 - track.ogg

Re: [android-developers] USB driver doesn't work with Xperia 10

2010-02-16 Thread Jonas Petersson
Hi zeeshan, zeeshan wrote: i am not able to connect my Android device with debuger, it might be because my driver is not installed yet i am trying install my Sony Ericsson Xperia 10 driver but it doesn't work with my device is anybody know the problem ? Are you on Linux? Try lsusb and add

[android-developers] Re: implicit intents

2010-02-16 Thread dane131
problem solved..sorry for the posting On 16 Φεβ, 11:13, dane131 orestis...@gmail.com wrote: hallo i have made two applications A and B.A binds to a service of B using an implicit intent: intent i =new Intent (level1.level2); Application B has a service that has an intent filter for actions

Re: [android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-16 Thread Sean Hodges
It doesn't seem as good because it isn't as good. Have you looked at the supported gestures page I linked you to? http://www.synaptics.com/solutions/technology/gestures/touchpad All of the gestures that the screen used by the Nexus One claims to support would not be affected by the issues you

[android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-16 Thread Hekki
So Sean, your answer to that is simply : Don't use multitouch at all !! When you think that most games need more than one input, that gesture like pinch zooming are so very intuitive, it is very sad. And it's not only developpers who are finding that this completely sucks, it's actually

[android-developers] how to find the path of frameworks/base/include/utils/Asset.h ?

2010-02-16 Thread lei
I run into the problem of resource file size 1M bytes limitation on android device, and I heard that patching the aapt tool by editing frameworks/base/include/utils/Asset.h will overcome this limitation. But I could not find that path, and wonder is that path under the resources.arsc file in

Re: [android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-16 Thread Sean Hodges
So Sean, your answer to that is simply : Don't use multitouch at all !! No. My point was that you shouldn't rely on the touch screen for complex gestures (particularly multi-touch). Otherwise your game will be useless to anyone with a handset that doesn't support dual/multi touch, or has

Re: [android-developers] Re: how to Play music from AudioTrack

2010-02-16 Thread kavitha
yes,,skink, I tried playing ogg files. ogg files give very less gap (almost inconsiderable)than mp3. I need to convert and store into ogg format now. how to convert from mp3 to ogg format? Thanks Kavitha On Tue, Feb 16, 2010 at 3:00 PM, skink psk...@gmail.com wrote: On Feb 16, 9:43 am,

[android-developers] Re: USB driver doesn't work with Xperia 10

2010-02-16 Thread zeeshan
Thanks for your reply Jonas, i am using Windows 7. got the USB driver revision 3 by Android setup On Feb 16, 9:54 am, Jonas Petersson jonas.peters...@xms.se wrote: Hi zeeshan, zeeshan wrote: i am not able to connect my Android device with debuger, it might be because my driver is not

[android-developers] Re: USB driver doesn't work with Xperia 10

2010-02-16 Thread zeeshan
Thanks for your reply Jonas, i am using Windows 7. got the USB driver revision 3 by Android setup but it doesn't work with my device On Feb 16, 9:54 am, Jonas Petersson jonas.peters...@xms.se wrote: Hi zeeshan, zeeshan wrote: i am not able to connect my Android device with debuger, it might

[android-developers] Is it possible to change background color of Preference

2010-02-16 Thread Vincent
Hi, Does anybody know how to change the background color of Preference (PreferenceCategory, EditTextPreference ...) ? I wanna do like this: PreferenceCategory android:title=title_test android:background=@color/testColor But this doesn't work... I searched these by using google, but couldn't find

[android-developers] Re: Force Close just restarts the app?

2010-02-16 Thread Bob Kerns
There are two approaches to handling this, depending on what you want to accomplish. There's a per-Activity flag in the manifest: android:finishOnTaskLaunch=true. Use this on individual activities which should disappear, because they are ephemeral by nature. If the overall nature of the

[android-developers] Re: how to crop an image in android 2.x

2010-02-16 Thread Vaibhav Goel
By removing class-name and private restrictions, it works for the images picked from gallery but when i pass Uri of image after capturing it from camera, it gives Activity not found exception as shown below. Code used: Intent i = new

[android-developers] Re: Images from Xml

2010-02-16 Thread g...@devicedriven
hii look at the following tutorial http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html this explains xml parsing in a simple manner..or if you find that difficult you could use the default implementation of SAX parser ... Regards Gino On Feb 15, 5:52 pm,

[android-developers] Re: how to Play music from AudioTrack

2010-02-16 Thread skink
On Feb 16, 12:20 pm, kavitha kavith...@gmail.com wrote: yes,,skink, I tried playing ogg files. ogg files give very less gap (almost inconsiderable)than mp3. I need to convert and store into ogg format now. how to convert from mp3 to ogg format? http://linux.die.net/man/1/oggenc --

[android-developers] Your best practices: Taking photos via Intent

2010-02-16 Thread Marc Reichelt
Hi there! Currently I am working on an application where the user should be able to take photos. Right now I am using a self-made Activity for this, but this is far from being optimal - it works on the G1, but fails on the Nexus One. Is there any way how I can call a native camera app to take

[android-developers] Re: Using onRetainNonConfigurationInstance to keep Media player after orientation change

2010-02-16 Thread Martin Nilsson
It seems that my media player object is somehow destroyed when I use onRetainNonConfigurationInstance. I when I catch the object in createMediaPlayer below I can verify that mp != null. But when I try to get the current position with mp.getCurrentPosition() I get an exception and the activity

[android-developers] Re: Using onRetainNonConfigurationInstance to keep Media player after orientation change

2010-02-16 Thread Martin Nilsson
It seems that my media player object is somehow destroyed when I use onRetainNonConfigurationInstance. I when I catch the object in createMediaPlayer below I can verify that mp != null. But when I try to get the current position with mp.getCurrentPosition() I get an exception and the activity

[android-developers] camera activity sghown before lockscreen

2010-02-16 Thread techietone
hi all, i am using eclair 2.1 codebase on samsung spica target . the issue is reproducible by : 1. launch camera app 2. press end call key , press the end key again fastly. sometimes before showing the lockscreen , the previous camera ui is shown and then the lockscreen is shown. this happens

[android-developers] ListView scrolling issue/behavior

2010-02-16 Thread GDroid
Hi, I've encounter some kind of behavior which I'm not sure is correct. I've created an activity which consists of a button and a ListView inside a LinearLayout (Orientation = Vertical). When the activity is displayed nothing is selected. When I move the track-ball (G2 1.6) the first record in

[android-developers] Drawing a Pie Chart in Android

2010-02-16 Thread Maxood
I want to draw charts like pie charts to display stats in my Android app. As Android doesn't support Swing and AWT, i wonder how can i draw charts in Android? Please note that i don't want to use a third party tool. This is something i have come up with after looking into API Demos: package

[android-developers] Re: how to find the path of frameworks/base/include/utils/Asset.h ?

2010-02-16 Thread lei
oh, that could be the path of android source code. On Feb 16, 11:10 am, lei eirst...@gmail.com wrote: I run into the problem of resource file size 1M bytes limitation on android device, and I heard that patching the aapt tool by editing frameworks/base/include/utils/Asset.h will overcome this

[android-developers] Re: AndroidManifest errors in Eclipse

2010-02-16 Thread devanagari
can u please guide me how to write android.xml file for my application my program works under Eclips as a java application but when in android project it shows me error of androidmanifest.xml missing Please help Anil On Jan 22, 11:47 pm, Michael boggess coda5...@gmail.com wrote: Eclipse is

[android-developers] Simple Cursor Adapter - Listview Example

2010-02-16 Thread Sasikumar.S
Hi, Any simple cursor adapter with listview example ? -- Thanks Regards Sasikumar.S -- 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

Re: [android-developers] Re: USB driver doesn't work with Xperia 10

2010-02-16 Thread Jonas Petersson
zeeshan wrote: Thanks for your reply Jonas, i am using Windows 7. got the USB driver revision 3 by Android setup but it doesn't work with my device Can't help you there - I've only used Windows 7 for as long as it took me to figure out the hardware details needed to install Ubuntu ;-) (And

[android-developers] Streaming Sensor Data from Device to a server

2010-02-16 Thread Mjdgard
I would like to continuously send/stream sensor data (GPS, acceleration, etc.) from a device to a server. What would be the best technology to do this? Is it possible to use RTSP? What else would you recommend me to use? Thanks for any help, Martin -- You received this message because you are

[android-developers] special text scrolling

2010-02-16 Thread Houcem Berrayana
Hi all, I was trying to male a custom text scrolling. I could implement many types of scrolling using the scroller and linear interpolator. But I'm wondering if we can make text scrolling as bellow: _ | This is the original text | and it's very long || I

[android-developers] Re: special text scrolling

2010-02-16 Thread Houcem Berrayana
Oupps it's doesn't look good here ! :) On 16 fév, 14:51, Houcem Berrayana houcem.berray...@gmail.com wrote: Hi all, I was trying to male a custom text scrolling. I could implement many types of scrolling using the scroller and linear interpolator. But I'm wondering if we can make text

Re: [android-developers] Re: special text scrolling

2010-02-16 Thread Narendra Bagade
Use Morquee feature of textview like android:elipsize=Morquee in xml file Narendra On Tue, Feb 16, 2010 at 7:23 PM, Houcem Berrayana houcem.berray...@gmail.com wrote: Oupps it's doesn't look good here ! :) On 16 fév, 14:51, Houcem Berrayana houcem.berray...@gmail.com wrote: Hi all, I

Re: [android-developers] expanding android.jar

2010-02-16 Thread Mark Murphy
saru wrote: now please tell me is there any way like compiling source code or importing private class file into android.jar so that i can use this private APIs No, sorry. Private in this case means SDK applications should not be using. If you are developing your own firmware, you are not

[android-developers] Re: special text scrolling

2010-02-16 Thread Houcem Berrayana
Thanks you very much. This should help. But I'found that it scrolls only if it has the focus ! Is there any way to get the original source code and try to modify it? Regards, On 16 fév, 14:55, Narendra Bagade bagadenaren...@gmail.com wrote: Use Morquee feature of textview like  

[android-developers] Re: Reg: Android Game API

2010-02-16 Thread Richard Leggett
Take a look at Rokon (rokonandroid.com). Very active, version 2.0 is underway with lots of big changes. On Feb 15, 1:14 pm, TomM tomm.m...@gmail.com wrote: Hi All, I am new to android games development on mobiles.  can any one suggest me which API suitable to develop game. I am using Android

Re: [android-developers] Hint for Spinner?

2010-02-16 Thread TreKing
On Tue, Feb 16, 2010 at 12:37 AM, Chirayu Dalwadi chirayu.dalw...@gmail.com wrote: Hey TreKing, Can u show the code? Well, I _could_ ... but this is very straightforward so I leave it as an exercise to the reader =P. I assume you have a Spinner, it's adapter, and an OnClickListener set up

Re: [android-developers] Hint for Spinner?

2010-02-16 Thread Mark Murphy
TreKing wrote: On Tue, Feb 16, 2010 at 12:37 AM, Chirayu Dalwadi chirayu.dalw...@gmail.com mailto:chirayu.dalw...@gmail.com wrote: Hey TreKing, Can u show the code? Well, I _could_ ... but this is very straightforward so I leave it as an exercise to the reader =P. I assume you

[android-developers] Re: Sendin KeyEvents

2010-02-16 Thread yog
Hi all, Iam trying the same on linux application side. which ioctl i need to call to be successful, iam taking the scancodes as arguments for my application. But iam unable to print them on screen. In the driver Implementation, driver is calling input_report_key(); - input_event(); From here can

[android-developers] Menu throughout Application

2010-02-16 Thread MobDev
Hi, I have implemented a Menu within an Activity, but I'd like this Menu to exist throughout my whole application... How can thsi be achieved ? Should I be placing the public boolean onCreateOptionsMenu(Menu menu) method within every single Activity or is there some way to share the menu ?

[android-developers] Re: Streaming Sensor Data from Device to a server

2010-02-16 Thread Abhi
i m sure there r many ways to do this... the easiest way i wud do it is through sockets. Having the Client write everything to a file and the server pulling this information every few seconds. Abhi On Feb 16, 8:23 am, Mjdgard mjdg...@gmail.com wrote: I would like to continuously send/stream

[android-developers] Re: how to find the path of frameworks/base/include/utils/Asset.h ?

2010-02-16 Thread lei
it's very interesting, I just overcome the resource file size 1M bytes limitation by modifying the suffix of the file. i.e change the file of test to test.mp3 or test.mid. I do not know why, but it really works. It seems like android allow media file's size to exceed the limitation. On Feb 16,

Re: [android-developers] Menu throughout Application

2010-02-16 Thread Mark Murphy
MobDev wrote: Hi, I have implemented a Menu within an Activity, but I'd like this Menu to exist throughout my whole application... How can thsi be achieved ? Should I be placing the public boolean onCreateOptionsMenu(Menu menu) method within every single Activity or is there some way to

Re: [android-developers] Re: sending scancode values from linuxapplication

2010-02-16 Thread p. yog
Hi all, Iam writing an sendkey events application to display characters on screen, which takes scancodes as arguments by opening fd=/dev/input/event0 device and writes scan code to respective fd. Iam calling EVIOCGVERSION ioctl for registration. But Iam unsuccessful in seeing it on screen.

[android-developers] Re: Is it possible to change background color of Preference

2010-02-16 Thread Bob Kerns
I think you'll need to supply the android:layout attribute, and supply an alternative layout with the background set. You can find the default layout in the SDK at platforms/android-2.1/ data/res/layout/preference.xml If you just want to customize the widget portion, use android:widgetLayout

[android-developers] converting short array to byte array help

2010-02-16 Thread maxsap
Hello all , I am trying to make an application that would be able to send the user's voice over the network using RTP. I am using the ported stack from hsc (JLIBRTP) and I am able to record user's voice in a saperate thread. the problem is that jlibrtp uses has a class named RTPSession that is

[android-developers] edittext text with html formatting

2010-02-16 Thread social hub
I like to place text in editext with link to say one of the apps say navigation and I also want color part of the text in blue some in white. Are there any other widgets that support part coloring of the text some text in one color and other in diff color Thanks in advance for your help --

[android-developers] Issue with Android 2.0 Account API / getAuthTokenLabel() results in Resources$NotFoundException: String resource ID #0x0

2010-02-16 Thread Mariano Kamp
Hi, using the new Account API to access Google accounts I have code that works with Android 2.1, but breaks with Android 2.0.1. W/ResourceType(16375): No package identifier when getting name for resource number 0x E/JavaBinder(16375): *** Uncaught remote exception! (Exceptions are not

[android-developers] Re: edittext text with html formatting

2010-02-16 Thread social hub
do u guys see my email it seems like its not getting through the group On Tue, Feb 16, 2010 at 11:02 AM, social hub shubem...@gmail.com wrote: I like to place text in editext with link to say one of the apps say navigation and I also want color part of the text in blue some in white. Are

Re: [android-developers] Menu throughout Application

2010-02-16 Thread Frank Weiss
Although Mark's idea is workable, it may be bad OOD. It would work if all your apps are direct subclasses of Activity, but what if some are MapActivity, etc? I think the answer may depend on that and how you want to use the global menu. Using delegation, you could have each menu be created by the

Re: [android-developers] Re: edittext text with html formatting

2010-02-16 Thread Frank Weiss
We see it. Since this is a volunteer mail list, you may not get an answer for hours or days. Chances are if the answer is plainly in the docs, no one may reply anyway... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] why I can't see google's nexus one from eclipse

2010-02-16 Thread cindy
I need to test my application on nexus one. Why I could not see the device (connected to my USB port, with USB enable) from eclispe? Thanks! Cindy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Application Security

2010-02-16 Thread Frank Weiss
The key question is almost always how much more revenue would you get from your app if the code was obfuscated and hacker proof? Search the forum. There was some sage advice about devoting your energy to making the app delight the customers instead. -- You received this message because you are

[android-developers] Use of intents

2010-02-16 Thread Shekhar
Hi Folks, I am little confused with the use of intents used for sending data to activity from service. In my application I have to have startactivity from the service and have to pass data ,so that activity can utilize the data while launching.For this i have written the following code Intent

Re: [android-developers] Use of intents

2010-02-16 Thread TreKing
On Tue, Feb 16, 2010 at 11:45 AM, Shekhar shekhar...@gmail.com wrote: Now the service running in the background has to pass data to the activity continously for UI updates. You have a background service and an Activity running at the same time? Why? If you're trying to background work that

Re: [android-developers] Re: sending scancode values from linuxapplication

2010-02-16 Thread Dianne Hackborn
This is outside the bounds of the SDK, so you would be best off posting to android-porting. On Tue, Feb 16, 2010 at 8:22 AM, p. yog usb...@gmail.com wrote: Hi all, Iam writing an sendkey events application to display characters on screen, which takes scancodes as arguments by opening

[android-developers] Re: edittext text with html formatting

2010-02-16 Thread Diego Torres Milano
This might be what you need: http://developer.android.com/intl/de/reference/android/text/util/Linkify.html On Feb 16, 6:31 pm, Frank Weiss fewe...@gmail.com wrote: We see it. Since this is a volunteer mail list, you may not get an answer for hours or days. Chances are if the answer is plainly

[android-developers] stop mediaplayer from previous activity

2010-02-16 Thread MarcC
Can anyone tell me how to stop media player that was started in a previous activity? For ex. In activity-1 button pressed that did - mp.start(); then activity-2 starts for different layout with new buttons, then when button pressed, mp.stop is called, but does not stop the media from the first

Re: [android-developers] why I can't see google's nexus one from eclipse

2010-02-16 Thread Mark Murphy
cindy wrote: I need to test my application on nexus one. Why I could not see the device (connected to my USB port, with USB enable) from eclispe? You may need the latest USB driver. You might also need simply to kill and restart the adb daemon process, if you just installed the driver. --

Re: [android-developers] stop mediaplayer from previous activity

2010-02-16 Thread Mark Murphy
MarcC wrote: Can anyone tell me how to stop media player that was started in a previous activity? You can't directly, AFAIK. For ex. In activity-1 button pressed that did - mp.start(); then activity-2 starts for different layout with new buttons, then when button pressed, mp.stop is called,

Re: [android-developers] Menu throughout Application

2010-02-16 Thread Mark Murphy
Frank Weiss wrote: Although Mark's idea is workable, it may be bad OOD. It would work if all your apps are direct subclasses of Activity, but what if some are MapActivity, etc? Yup. :: wishes Java had Ruby's mixin capability for things like this :: -- Mark Murphy (a Commons Guy)

[android-developers] Re: why I can't see google's nexus one from eclipse

2010-02-16 Thread Hekki
Hi, Have you enabled both unknown sources and usb debugging on the phone ? These settings can be found on the settings menu of the phone under the item Application. Unknown sources must be checked. Then under Development, Usb debugging must be checked as well. After that you should be able to

[android-developers] Re: stop mediaplayer from previous activity

2010-02-16 Thread MarcC
Thank you Mark Do you happen to know where I can find an example of MediaPlayer as a Service? Did some searching but what I found didn't get me to where I wanted to be. The examples I found had a single audio being played and stopped via the service and I could not figure out how to add more

Re: [android-developers] Re: edittext text with html formatting

2010-02-16 Thread social hub
Thanks I did look at it What I like is basically as below I just finished reading book via RSS As above the first part of text is with different color and rest of the text color is in blue also via RSS is link to an internal application say RSS so in this case it will launch the intent say

Re: [android-developers] Re: stop mediaplayer from previous activity

2010-02-16 Thread Mark Murphy
MarcC wrote: Do you happen to know where I can find an example of MediaPlayer as a Service? I suspect the built in Music app works that way. In general, though, MediaPlayer isn't activity-specific, so it should work in a service just as it would in an activity. You might want to use the new

Re: [android-developers] Re: edittext text with html formatting

2010-02-16 Thread social hub
I did look at it What I like is basically as below I just finished reading book via RSS As above the first part of text is with different color and rest of the text color is in blue also via RSS is link to an internal application say RSS so in this case it will launch the intent say RSS:// is

[android-developers] Re: ItemizedOverlay.onTap() imprecise?

2010-02-16 Thread gnugu
And here is my answer: @Override protected boolean hitTest(SearchResultOverlayItem item, android.graphics.drawable.Drawable marker, int hitX, int hitY) { if (hitX -22 hitX 22 hitY 4 hitY

[android-developers] How to implement onMeasure() for my custom widget

2010-02-16 Thread silverburgh
Hi, I am trying to implement my own custom widget, but I am not sure how to implement the onMeasure() for my custom Widget. protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { ... } I want to put my custom widget in a linear layout, so that myWidget's width can fill up the

[android-developers] Re: 9-patch background image affects margins?

2010-02-16 Thread Jason Proctor
9patches affect padding (see bottom right black control lines) pskink great - thanks! -- jason.vp.engineering.particle -- 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] XMPP event synchronization for multiplayer game development

2010-02-16 Thread pyrogenix19
Hey all, I'm new to Java as well as Android development and I've just started a project on a multiplayer game. I'm thinking about using XMPP as an event protocol in a game client/server configuration where one android device would host a game and others would be able to join, with XMPP carrying

[android-developers] Android Emulator 2.1: Setting HTTP Proxy

2010-02-16 Thread donivem
Does anybody know the resolution to the problem of setting the HTTP proxy for the emulator. The cmd line option does not work. It's an essential to work behind a corporate firewall... Any help is appreciated... -Thx -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] to fix a credit card reader compatibility with android phones

2010-02-16 Thread Xiong Android
hello, do you want to support the work on hardware or software? regards mike On Mon, Feb 15, 2010 at 3:37 AM, Shaswat Nimesh shawtheg...@gmail.comwrote: Hi, I want to ask u guys a very , crazy may be stupid quest!!!. M thinking to write a module on compatibility of android with credit

[android-developers] Can we write android Junit testcases even we dont have source files?

2010-02-16 Thread pradeep
Hi Can any one please help with answers for the below questions. 1. Can we write android Junit Testcases for an application, without building the application In detail: I would like to test Calculator application and I dont have the Calculator Application source code. How Can I write Junit

[android-developers] Detecting if there is a screen unlock pattern?

2010-02-16 Thread paladin
Is there a way, some API one can call to detect if the user has set a screen unlock pattern or not? -- 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: Italics clipped in widget

2010-02-16 Thread Nolan Lawson
I saw this happen in my app, too. The only way I've been able to get around it is to add a nbsp; to the HTML. So e.g.: myTextView.setText(Html.fromText(myString + nbsp;)); On Feb 8, 11:03 am, songs coca.c...@gmail.com wrote: I've got a button with italics text in an app widget and the last

[android-developers] Help with sound app - optimizing

2010-02-16 Thread Waphomet
Hi everybody, I've been sarching in forums (and google) trying to find something helpful but I had no luck, so I hope someone here could help me because I'm quite lost. I'm trying to make a simple Piano -like app, so I can press a button and a sound will be playing as long as I'm pressing it. I

[android-developers] username and password for sample sync adapter

2010-02-16 Thread Sameer AM
Hello, I just got the sample sync adapter code running on the emulator, but how do I add account in it when it asks for username and password? And I have the following questions 1) SampleSyncAdapter is for 2.0 and in 2.0 emulator I don't see the Accounts Sync options in the Settings, am I

[android-developers] username and password for sample sync adapter

2010-02-16 Thread Sameer AM
Hello, I just got the sample sync adapter code running on the emulator, but how do I add account in it when it asks for username and password? And I have the following questions 1) SampleSyncAdapter is for 2.0 and in 2.0 emulator I don't see the Accounts Sync options in the Settings, am I

[android-developers] Displaying thumbnails of images (present at different locations in the sdcard) in a listview

2010-02-16 Thread Pankaj
Hi all, I have several images present in different folders in my sdcard. I would like to display a list of thumbnails. So what I have done is while rendering any row in the list I read the file in an input stream, get the byte array, decode it to obtain a bitmap and set it in an imageview. So

[android-developers] Failed binder transaction when passing byte[] (from camera) between intents

2010-02-16 Thread Bart
Hi, I have a problem with an app that lets the user take a picture. I've posted it on some forums already, but nobody seems to recognize the problem. Hopefully someone here knows a solution :) I've put the code of taking a picture in a seperate activity. Then I call the camera intent from my main

[android-developers] android password

2010-02-16 Thread as
Hi I am trying to create an android mobile application.I want user not to enter password for every activity.Only for the first time he gives password and it should be carried till the end. please suggest me . Thankyou. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: adb can't list my attached device

2010-02-16 Thread colin.t...@gmail.com
Are you using Linux, Mac or Windows ? If you are using Windows, there is a USB driver. If you are using a Mac, then it should just work. If you are using Linux, then you have to add a to the udev configuration. The docs have a good explaination of all of this here:

[android-developers] triggering onCreate with a non-null Bundle (or onRestoreInstanceState) from the emulator

2010-02-16 Thread kk
Hi all, I've recently done quite a bit of work on saving instance state and restoring using parcelables for custom data structures. My problem is that I don't know how to test this functionality on the emulator. I can trigger calls to onPause and onStop for my activity (if I navigate out of it)

Re: [android-developers] getRotationMatrix and getOrientation

2010-02-16 Thread Андрей Бабинов
How I know, better to transform the scene, not a camera. It would be faster. And you can use rotationMatrix directly for scene transformation. 2010/2/15 Tze Yun, Glenn Poh pohtze...@gmail.com: I'm using getRotationMatrix and getOrientation to change the camera's view (eyeX, eyeY and eyeZ for

[android-developers] Re: Andoid Apps Development

2010-02-16 Thread Yaseen Lanka
The android SDK comes with a Emulator, on which you can run all your apps. Places where some apps might need a actual hardware platform to test, there are many development boards which resembles a phone @ the hardware level, so you can always make use of one. More about emulator... @

[android-developers] NullPointerException in SmsManager.sendTextMessage

2010-02-16 Thread Jorim Jaggi
Hello I got a NullPointerException in SmsManager.java while trying to send an sms. CallStack: 02-15 07:55:22.646 E/smsETH (32500): Error while sending message 02-15 07:55:22.646 E/smsETH (32500): java.lang.NullPointerException 02-15 07:55:22.646 E/smsETH (32500): at

[android-developers] Custom BaseAdapter + dynamic updates = crash in ListView layout

2010-02-16 Thread whicken
Hi! I'm trying to get my first Android app stable enough for the marketplace, and I've hit a brick wall with one exception that I don't understand. Probably I'm doing something stupid, but I can't tell what, and after several hours googling and experimenting, I thought I'd see if I can get some

[android-developers] AudioTrack lag

2010-02-16 Thread Steve Lhomme
Hello, I'm trying to write an audio sink for my application. I am using the AudioTrack class and it works pretty well. In other words I get the audio to play correctly (stream mode). I am using it in C code via the NDK, but that shouldn't matter. The AudioTrack creation and feeding is done in a

[android-developers]

2010-02-16 Thread abo.emad
-- 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 options, visit

[android-developers]

2010-02-16 Thread abo.emad
-- 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 options, visit

[android-developers] Re: Using Nexus One as a development phone: Problem with USB driver under windows 7 64 bit

2010-02-16 Thread LukaszR
You can find USB driver file in Android SDK folder: \usb_driver \android_winusb.inf On Jan 26, 5:42 pm, Streets Of Boston flyingdutc...@gmail.com wrote: First unzip the zip file somewhere. You'll find an *.inf file in the unzipped directory. When you attach yourNexusOneto your PC, you will

[android-developers] how to put checkbox , text and image button in a linear layout

2010-02-16 Thread Arya
I am trying to put checkbox , text and image button in a row.. can anyone help me to do this.. Regards Arya -- 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] AudioTrack lag

2010-02-16 Thread Steve Lhomme
Hello, I'm trying to write an audio sink for my application. I am using the AudioTrack class and it works pretty well. In other words I get the audio to play correctly (stream mode). I am using it in C code via the NDK, but that shouldn't matter. The AudioTrack creation and feeding is done in a

[android-developers] null parameters in ksoap web services

2010-02-16 Thread elites86
Hi, Sorry but the problem persist. I had done every step you told me... this is my code, i hope you can help me ** Web Service *** WebService(Namespace:=http://minombre.com/;) _ WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)

Re: [android-developers] Re: Best Way To Implement An Activity That Lists Recipes

2010-02-16 Thread eric
Wouldn't it be lighter if you used a relative layout for your list items.. (just a suggestion.. ) On Tue, Feb 16, 2010 at 2:03 AM, Mark Murphy mmur...@commonsware.comwrote: erturne wrote: I may have to pick up your book. Does it cover accessing data over the network? :: begin brief

[android-developers] Phone Dialer Force Close Error

2010-02-16 Thread Desi
Hello, I have a Samsung Moment running 2.1 and every time I go to use the Phone dialer I get a Force Close error. Have you heard of this and can you assist with a fix. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Help with Camera.Parameters.getFlashMode()

2010-02-16 Thread Vertifi Software
Use Reflection to allow for conditional compile. This code snippet might help, although it shows calling setFlashMode, the concept is the same: Method methodSetFlashMode = null; Class?[] methodSetFlashModeSignature = new Class[] { String.class }; ListSize lSize =

[android-developers] Re: Best Way To Implement An Activity That Lists Recipes

2010-02-16 Thread mit
Actually i can really recommend the books, they are definitively in the upper class. You should like a casual writing style, though.. On 16 Feb., 01:38, erturne ertu...@gmail.com wrote: On Feb 15, 6:56 pm, Mark Murphy mmur...@commonsware.com wrote: erturne wrote: Let's say I create a

  1   2   >