[android-developers] Re: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE in 1.0 and 1.5

2009-06-25 Thread hunter
Thanks. On Jun 26, 1:25 pm, Dianne Hackborn wrote: > There was a bug in 1.5 with this, that was fixed in the most recent security > update.  You apparently aren't running a system with that security update. > > > > On Thu, Jun 25, 2009 at 8:53 PM, hunter wrote: > > > Hi, all: > >    I have a ap

[android-developers] Multiselect List View and Key Event

2009-06-25 Thread Muthu Kumar K.
Hi All, I have the Multi select list view in my project. Here i am using the custom adapter to build the list view. The code as follows, public static class EfficientMultiSelectionAdapter extends ArrayAdapter implements CompoundButton.OnCheckedChangeListener { public EfficientMultiSelectionAdap

[android-developers] Re: OnSharedPreferenceChangeListener not listening anymore in 1.5??

2009-06-25 Thread gymshoe
I tried implementing OnSharedPreferenceChangeListener as well (1.5_r2) and could not get it to work. Since I never had working code in a prior Android version, this could be due to a mistake in my coding. However, I just switched to using onPreferenceChangeListener() and it worked fine... Jim O

[android-developers] How can LinearLayout know child's focusable?

2009-06-25 Thread jusun...@gmail.com
Hi. Expert! I have a LinearLayout that have 4 buttons children. so I like to know whether my button is focusable or not when I press a arrow key. and I like to know whether my button is clicked or not when I click a child button. LinearLayout.onFocusChanged function is not called when child has

[android-developers] Re: 30 Days of Android Applications

2009-06-25 Thread Maps.Huge.Info (Maps API Guru)
The source for day 17 and 18 are missing... Keep up the good work, only 8 days left! -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 andro

[android-developers] how to create thumbnail generated after ending video recording

2009-06-25 Thread cindy
In 1.5, is there any API I can used to generate Video thumbnail? 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 android-developers@googl

[android-developers] Re: Passing in a Bitmap as the EXTRA_STREAM parameter when launching an Intent

2009-06-25 Thread Sujay Krishna Suresh
one thing u could do is use a fileobserver, check when the file is opened,accessed n closed, & on close delete it... this is also jus a suggestion... i havent tried it yet... On Fri, Jun 26, 2009 at 11:13 AM, Sujay Krishna Suresh < sujay.coold...@gmail.com> wrote: > If u wanna delete the file onc

[android-developers] Re: Passing in a Bitmap as the EXTRA_STREAM parameter when launching an Intent

2009-06-25 Thread Sujay Krishna Suresh
If u wanna delete the file once the Target activity is over, u can do that in ur onActivityResult(). but i wont guarantee that this will always work bec, if the activity internally triggers a service n dies then u'll have a problem deleting it... if u r mainitaining the status of the file(sent or y

[android-developers] Re: Passing in a Bitmap as the EXTRA_STREAM parameter when launching an Intent

2009-06-25 Thread n179911
Thank you. But if I write the image to a file, and invoke an Intent ACTION_SEND, passing that image to the intent. When/how can I delete the file? I can't rely on the ACTION_SEND removes that file for me, since it does not know I wrote the Bitmap to a temp file before I invoke the ACTION_SEND.

[android-developers] Re: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE in 1.0 and 1.5

2009-06-25 Thread Dianne Hackborn
There was a bug in 1.5 with this, that was fixed in the most recent security update. You apparently aren't running a system with that security update. On Thu, Jun 25, 2009 at 8:53 PM, hunter wrote: > > Hi, all: >I have a application with > "android:sharedUserId="android.uid.system"" in its

[android-developers] Re: How to control ethernet via android application

2009-06-25 Thread Dianne Hackborn
Sorry, applications can't do that. On Thu, Jun 25, 2009 at 7:05 PM, nail wrote: > > dear all, > > i try to control the ethernet via application > > for example: > > the original ethernet information is > > "eth0up 192.168.10.12 255.255.255.0 0x1043" > > i want it to become > > "eth0

[android-developers] Re: testing uses-permission

2009-06-25 Thread Dianne Hackborn
There is no difference between installing on the app store or through adb as far as the permissions you get or any other behavior of your app. You definitely want to request the camera permission if you are using the camera; there may be an issue in the platform where sometimes it is not enforced

[android-developers] Re: Passing in a Bitmap as the EXTRA_STREAM parameter when launching an Intent

2009-06-25 Thread Sujay Krishna Suresh
If u need the image, u definitely have to write it to a file... Use the Images.EXTERNAL_CONTENT_URI.buildUpon() to build a new uri for ur image & then use getcontentresolver.openoutputstream to get the outputstream for the uri, & write the image content to the outputstream... now u hv persisted ur

[android-developers] Re: Got media player error in sdk 1.5 r2

2009-06-25 Thread manoj
Hi, thanks for your reply. Its worked for me. Can you please send me any reference document which specifies the above content (uri of media). Thanks, Manoj. On Jun 25, 8:47 pm, Marco Nelissen wrote: > On Thu, Jun 25, 2009 at 8:27 AM, manoj wrote: > > > String[] videoProjection = new String[]

[android-developers] Re: testing uses-permission

2009-06-25 Thread Sheado
Thanks for your response Odessa. My app isn't crashing (i'm expecting it to), even though I don't even have any uses-permissions setup. I even looked in the app manager, and it showed no permissions. Is this because I'm not installing via the app store? I guess I'll find that out soon. Still tho

[android-developers] INSTALL_FAILED_SHARED_USER_INCOMPATIBLE in 1.0 and 1.5

2009-06-25 Thread hunter
Hi, all: I have a application with "android:sharedUserId="android.uid.system"" in its AndroidManifest.xml. This application is not signed with the platform key. In 1.0, I use "adb install " to install it but failed with "INSTALL_FAILED_SHARED_USER_INCOMPATIBLE" which is OK because it is no

[android-developers] JIS conversion is ignored!

2009-06-25 Thread Hiro
I prepared following method to convert JIS character string to UTF8 on Android SDK v.1.5.. However when I pass JIS character array into JIS the returned string value is same as input. I supposed it should return "undefined" or UTF8 string, Would anybody tell me why this phenomena is occurred?

[android-developers] xmlpullparser don't write in xml?

2009-06-25 Thread brilliant winger
I have one question. I would like to chage attributevalue. ex... to How ? well. I use other parser? plz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] How to control ethernet via android application

2009-06-25 Thread nail
dear all, i try to control the ethernet via application for example: the original ethernet information is "eth0up 192.168.10.12 255.255.255.0 0x1043" i want it to become "eth0 down 192.168.10.12 255.255.255.0 0x1043" and this can be done by command line "netcfg e

[android-developers] Re: Problem when set system clock using SystemClock.setCurrentTimeMillis

2009-06-25 Thread hunter
I tried, but still not work. I also found someone met the same problem long long ago in v0.9, and google experts answers: ** User apps cannot set the time. Only the system processes can. This is for security, but also

[android-developers] OpenGL Textures must specify GL_TEXTURE_MIN_FILTER and GL_TEXTURE_MAG_FILTER

2009-06-25 Thread CraigsRace
This tricked me up for a few hours and I couldn't see anywhere that is was discussed. When running on the Emulator, you don't have to specify the GL_TEXTURE_MIN_FILTER and GL_TEXTURE_MAG_FILTER. However, when running on the HTC G1, you do! So make sure you have something like this in you code:

[android-developers] Re: Sensor and Compass APIDemo failing on emulator 1.5

2009-06-25 Thread Dianne Hackborn
But also, there is no way you are going to be able to implement a working app like this without doing it on real hardware. It would be kind-of like trying to implement a touch user interface without a touch screen. :) On Thu, Jun 25, 2009 at 10:05 AM, Mark Murphy wrote: > >> Is there any update

[android-developers] Re: Need Soft Keyboard & IME Details

2009-06-25 Thread Dianne Hackborn
On Wed, May 27, 2009 at 2:16 PM, Sam wrote: > Is there a way to force the use of the soft keyboard I built in my > application (they are in the same AndroidManifest.xml) without having > the user "activate" the keyboard in "Locale & Text"? No, for security reasons applications are not allowed to

[android-developers] Re: join two tables

2009-06-25 Thread Yusuf T. Mobile
A MatrixCursor is one way: ContentResolver contentResolver = getContentResolver(); Cursor peopleCursor = contentResolver.query( Contacts.People.CONTENT_URI, new String

[android-developers] Passing in a Bitmap as the EXTRA_STREAM parameter when launching an Intent

2009-06-25 Thread hap 497
HI, >From the JavaDoc, the EXTRA_STREAM parameter when launching an intent needs to be an URI. How can I pass a Bitmap object which I get from launching a "android.provider.MediaStore.ACTION_IMAGE_CAPTURE" intent? /** * A content: URI holding a stream of data associated with the Intent,

[android-developers] Re: android crash when volume up

2009-06-25 Thread l hx
maybe below had been happened. E/AudioFlinger( 635): not enough memory for AudioTrack size=262208 D/MemoryDealer( 635): AudioTrack (0x23340, size=1048576) D/MemoryDealer( 635): 0: 00023378 | 0x | 0x00040040 | A D/MemoryDealer( 635): 1: 00023400 | 0x00040040 | 0x00040040 | A D/

[android-developers] Re: android crash when volume up

2009-06-25 Thread l hx
not every time. but when android run some time and maybe it ringing many times On Thu, Jun 25, 2009 at 11:17 PM, Marco Nelissen wrote: > Does this happen every time, or only after/while running a certain > application? > > > > On Thu, Jun 25, 2009 at 6:56 AM, l hx wrote: > >> who know why? >> >>

[android-developers] Re: Seekbar thumb animation

2009-06-25 Thread Protocol-X
Well my problem is i actually want to change the thumb image after it has been created like say a different one for 25 50 and 75% but it vanishes. On Jun 22, 8:31 pm, az9702 wrote: > AnimationDrawable can be used to implement simplethumbanimation such > as blinking. > > * Create animation in ani

[android-developers] Re: Need Soft Keyboard & IME Details

2009-06-25 Thread Hong
"Is there a way to force the use of the soft keyboard I built in my application (they are in the same AndroidManifest.xml) without having the user "activate" the keyboard in "Locale & Text"?" I'd like to know the above as well. I have situations where different soft keyboard will be used for dif

[android-developers] Re: How To Keep ListView Header From Scrolling With ListView Content

2009-06-25 Thread Mike
I use the same view for my rows as I do my table header, so in order for them to size correctly (make sure the columns in the header line up with the column in the rows), they have to be within the same container to have the same width, correct? That's all I meant by needing to be in the same Vie

[android-developers] Re: 6502 Emulator

2009-06-25 Thread fadden
On Jun 25, 1:13 am, ndatta wrote: > Oh, I see. Any particular reason? Is a JIT planned in a future > release? Thanks. We do intend to support JIT compilation in a future release. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[android-developers] Re: Problem using Debug.setAllocationLimit

2009-06-25 Thread fadden
On Jun 25, 4:48 am, StefanK wrote: > Either way this does not appear to be enabled by default in the > emulator or the device. Does that mean that most of the the allocation > tracking methods in the Debug classes do not work either? The allocation counting stuff should work. It's tied to WITH_

[android-developers] Re: Execute an activity repeatedly after a definite interval of time

2009-06-25 Thread Peli
If your activity is always in the foreground while taking pictures, you could use postDelayed() to call your picture taking routine again after some time. Peli www.openintents.org On 25 Jun., 21:29, Sharmila wrote: > I have an activity imageCapture.java which extends activity and takes > pictur

[android-developers] How to recover stopped activities

2009-06-25 Thread Thomas
Hi All, I've some problems with a task. There are an activity A stopped and I start activity B in the same task. But if activity A is stopped, activity B needs to discover that and launch activity A. Can someone help me? Thanks a lot. --~--~-~--~~~---~--~~ You r

[android-developers] Execute an activity repeatedly after a definite interval of time

2009-06-25 Thread Sharmila
I have an activity imageCapture.java which extends activity and takes pictures.I want to execute this activity repeatedly after a definite interval of time. I can't figure out how to do this...!!Do I need to make ImageCapture a service? This is what I want to do...As soon as the user press start

[android-developers] join two tables

2009-06-25 Thread NTDYLF
Hello all, I have two tables I want to (inner) join, Contacts.People and Contacts.ContactMethods. The result will be displayed in a ListActivity. After looking into this, it appears that I should use CursorJoiner. So the code would look something like this: // 1) prepare cursors C

[android-developers] Re: Efficiently drawing destructable terrain

2009-06-25 Thread MrChaz
take a look at this talk http://code.google.com/events/io/sessions/WritingRealTimeGamesAndroid.html He has a bunch of slides comparing various methods for rendering 2d sprite type objects. On Jun 24, 6:39 pm, Chris Stockton wrote: > Hello, > > I am faced with a challenge of drawing destructable

[android-developers] Re: LinearLayout in LinearLayout

2009-06-25 Thread Mr.No
dont work, only if i setOrientation to vertical. On 25 Jun., 17:21, JdbcDroid wrote: > try to use l1.setOrientation(...) just before > l1.addView(...) > > On Jun 25, 4:42 pm, "Mr.No" wrote: > > > Ive tried it with layoutparams its the same. > > the default layoutarams will be assigned to the l

[android-developers] Re: Problem when set system clock using SystemClock.setCurrentTimeMillis

2009-06-25 Thread Mr.No
Try this permission: android.permission.WRITE_SETTINGS On 25 Jun., 13:26, hunter wrote: > Hi, all: >    I want to set system clock by SystemClock.setCurrentTimeMillis, but > met following error: > > W/SystemClock( 1287): Unable to open alarm driver: Permission denied > >    So, can someone tell

[android-developers] Re: WebView Link with SDK 1.5

2009-06-25 Thread John
The same issue is posted at: http://osdir.com/ml/AndroidDevelopers/2009-02/msg03441.html Is it a SDK 1.5 bug?? On Jun 23, 3:59 pm, John wrote: > With previous SDK, clicking on the link of telephony number triggers > the dialer. But it does not work with new SDK, is it right? Thanks! > > -John

[android-developers] Re: Strange TabHost NullPointerException

2009-06-25 Thread nEx.Software
I get no errors when I use TrackBall click to select a tab in TabActivity. Tested on my apps targeting each 1.1 SDK and 1.5 SDK. Now, I am not using separate activities for my tab contents, so that may make a difference. On Jun 25, 2:21 am, Explore Android wrote: > I am also facing the same issu

[android-developers] Re: Relative Layout XML attributes have no obvious programmatic equivalent.

2009-06-25 Thread Romain Guy
I don't know of any XML property that cannot be set via the Java API. 2009/6/24 Pavel Lahoda : > > Romain, > > I have a same question as John ? How can I access some properties > (such as here in RelativeView, but there are plenty of others) through > the Java API ? It seems that some properties

[android-developers] Re: Sensor and Compass APIDemo failing on emulator 1.5

2009-06-25 Thread Mark Murphy
> Is there any update on this? > I need to build a compuss application but the API Demo doesn't work in > the emulator. You will need actual hardware to test sensor-related applications. Partly, this is due to the emulator bug. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App D

[android-developers] Problem when set system clock using SystemClock.setCurrentTimeMillis

2009-06-25 Thread hunter
Hi, all: I want to set system clock by SystemClock.setCurrentTimeMillis, but met following error: W/SystemClock( 1287): Unable to open alarm driver: Permission denied So, can someone tell me which permission I should acquire and how to acquire it? Thanks. --~--~-~--~~--

[android-developers] How to attach a Bitmap when launching ACTION_SEND intend

2009-06-25 Thread hap 497
Hi, I have this code: Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); startActivity(intent); which successfully launches an Messaging App on android. But how can i attach a Bitmap object when launching the intent? I have read http://developer.android.com/reference/android

[android-developers] Does anyone know about CTS(Compatibility Test Suit)?

2009-06-25 Thread Zhiguo Cheng
Google said CTS(Compatibility Test Suit) would be released, while I can not find it until now. Does anyone know about CTS detail? and I wonder the requirement for track ball in CTS. Track ball is necessary for Android device? Can it pass the CTS? As we know, HTC G1, G2 consist of a track ball. -

[android-developers] Re: Getting ESN number of a Phone

2009-06-25 Thread Ewan Benfield
Hi, Take a look at android.os.Build. You can find the code that runs when you look up this information via Settings > About Phone from the home screen in com.android.settings.DeviceInfoSettings.java in the Android sources. (in packages/apps/Settings/src/com/android/settings) cheers, Ewan On Ju

[android-developers] android cannot parse return value when using xmlrpc

2009-06-25 Thread Arie Meir
Hi guys , I'm using pskink's xmlrpc library which is great piece of work. I am trying to integrate the xmlrpc android client with my server side written in java. I've downloaded apache xmlrpc, and their client-server sample works fine. When i run their client vs. their server all works fine. W

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-06-25 Thread Ericase Jang
Hi, I got the same problem. Has anyone already solved it? --~--~-~--~~~---~--~~ 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 unsub

[android-developers] Re: How to add some animation on App Widget ?

2009-06-25 Thread Adam
fwiw just adding layoutAnimation tag to components causes them to correctly animate the first time they are displayed in the widget: which is vaguely pleasing the first time the widget is added -- but i'd really like to be able to force the animation to play on content / vis

[android-developers] Re: Sensor and Compass APIDemo failing on emulator 1.5

2009-06-25 Thread Declan
Is there any update on this? I need to build a compuss application but the API Demo doesn't work in the emulator. Thanks, Declan DeathStick.org On May 29, 3:12 am, Sahil Arora wrote: > Hi, > What do u mean by a virtual box?? > > Regards, > Zhubham. > > On Thu, May 28, 2009 at 7:00 PM, Brett Cha

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-06-25 Thread sasq
I get this to work fine through something like audioTrack.setPositionNotificationPeriod(bufSize/8); audioTrack.setPlaybackPositionUpdateListener(this); ... public void onPeriodicNotification(AudioTrack track) { int frames = track.getPositionNotifi

[android-developers] RFCOMM API

2009-06-25 Thread Long
Hi, What is the latest status of the RFCOMM support in android? I'd like to write an application using RFCOMM to communicate with PC. I don't want to rebuild a custom image. I just want my application can run on a HTC Magic. Is that doable now? I heard of there is an application bluex ca

[android-developers] Re: Getting ESN number of a Phone

2009-06-25 Thread Ewan Benfield
Hi, Take a look at android.os.Build. You can find the code that runs when you look up this information via Settings > About Phone from the home screen in com.android.settings.DeviceInfoSettings.java in the Android sources. (in packages/apps/Settings/src/com/android/settings) cheers, Ewan On Th

[android-developers] Test on a real HTC Magic via the web

2009-06-25 Thread kolel
Hi, I work for a company called Perfecto Mobile (used to be Nexperience). See www.perfectomobile.com . We enable access to real mobile devices via the web. You can install your app on the device and test it as if you were holding the device in your hands. We just introduced the HTC Magic to our s

[android-developers] Using XMLBeans with 1.5 causes Dalvik errors

2009-06-25 Thread Robbie
Hi everyone, Here's the situation: I have a schema that I put through XMLBeans and generated the java sources from it. I want to take those java files and use them in my 1.5 app, but when I try and build the project, I get this error: Conversion to Dalvik format failed: Unable to execute dex: nul

[android-developers] findViewById return null

2009-06-25 Thread sean guo
06-25 07:37:52.745: ERROR/AndroidRuntime(1722): Uncaught handler: thread main exiting due to uncaught exception 06-25 07:37:52.774: ERROR/AndroidRuntime(1722): java.lang.RuntimeException: Unable to start activity ComponentInfo{goodteamstudio.rdc/goodteamstudio.rdc.MainMenu}: java.lang.NullPointerE

[android-developers] RIL and datacall (CSD)

2009-06-25 Thread Mile Davidovic
Hello I tried to establish datacall between android phone and other phone, and I failed. AFAIK, CSD is recognized using %CPI (call progress infromation), looking in reference-ril.c:onUnsolicited it seems that RIL handle following unsolicited commands: * CTZV: Unsolicited result code for time zone

[android-developers] Efficiently drawing destructable terrain

2009-06-25 Thread Chris Stockton
Hello, I am faced with a challenge of drawing destructable terrain. My current and surely naive approach is as follows. Excuse formatting, posting from my g1 and don't have the code with me so the math in the rectf might be wrong be advised, but it does work, visually; it is just a fps nerf. Terr

[android-developers] media player that plays bbc radio (streaming)

2009-06-25 Thread sundrani
Does any one know (atleast i don't) of a media player that plays live bbc radio? I have searched alot on android market but unable to fine one. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" grou

[android-developers] Re: Relative Layout XML attributes have no obvious programmatic equivalent.

2009-06-25 Thread Pavel Lahoda
Romain, I have a same question as John ? How can I access some properties (such as here in RelativeView, but there are plenty of others) through the Java API ? It seems that some properties are only possible to set when constructing the view from the XML : this is pretty strange. Can you comment

[android-developers] Re: Strange TabHost NullPointerException

2009-06-25 Thread Explore Android
I am also facing the same issue, not sure this is framework issue or application issue. Any experts have a say on this issue? (I am working with Android 1.5 SDK) On Jun 17, 2:26 pm, roland wrote: > I just found a strange issue in my application which contains a > ListView. When one item is click

[android-developers] How to attach a Bitmap when launching ACTION_SEND intend

2009-06-25 Thread hap497
Hi, I have this code: Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); startActivity(intent); which successfully launch an Messaging App on android. But how can i attach a Bitmap object when launching the intent? I have read http://developer.android.com/reference/andro

[android-developers] Re: Wat to buy???

2009-06-25 Thread Vinay Avasthi
HTC has launched HTC Magic in India yesterday. The price being quoted is approx Rs. 30K. You should get it in any store that sells HTC phones. Sujay Krishna Suresh wrote: > Hi everyone, > i live in India and i wanna own an android phone... > can anyone gimme suggestions as to wat

[android-developers] How to adjust large image automatically in WebView

2009-06-25 Thread treetop
Hi, By using WebView, I have loaded some html content contains image(large size, for example, 800*600) and text. For text, it can perform line wrapping automatically. But for image, it will enable the horizontal scroll even if "setHorizontalScrollBarEnabled" is set to false. Is there any method t

[android-developers] Database

2009-06-25 Thread jiramot
How can i copy my database from res/raw to database path I try InputStram in = getResources().openRawResource(R.raw.mydata); OutputStram out = new FileOutputStram("/data/data/mypackage/databases/ mydata/db"); byte[] buff = new byte[1]; int len; while( (len = in.read(buff)) > 0){ out.write(buf

[android-developers] How to adjust large image automatically in WebView

2009-06-25 Thread treetop
Hi, By using WebView, I have loaded some html content contains image(large size, for example, 800*600) and text. For text, it can perform line wrapping automatically. But for image, it will enable the horizontal scroll even if "setHorizontalScrollBarEnabled" is set to false. Is there any method t

[android-developers] How to attach a Bitmap when launching ACTION_SEND intend

2009-06-25 Thread hap497
Hi, I have this code: Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); startActivity(intent); which successfully launch an Messaging App on android. But how can i attach a Bitmap object when launching the intent? I have read http://developer.android.com/reference/android/

[android-developers] Re: findViewById returns null MapView when following maps tutorial

2009-06-25 Thread sean.guo
public class HelloMapView extends MapActivity { LinearLayout linearLayout; MapView mapView; ZoomControls mZoom; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { supe

[android-developers] Re: Null reference for ImageView

2009-06-25 Thread sean.guo
06-25 07:37:52.745: ERROR/AndroidRuntime(1722): Uncaught handler: thread main exiting due to uncaught exception 06-25 07:37:52.774: ERROR/AndroidRuntime(1722): java.lang.RuntimeException: Unable to start activity ComponentInfo {goodteamstudio.rdc/goodteamstudio.rdc.MainMenu}: java.lang.NullPointer

[android-developers] Re: Accelerometer

2009-06-25 Thread Sundog
> 9.8m/s^2 is an approximation, however the accelerometer is being influenced > by forces and noise, the only way to over come it would be to sample the > noise and then try to cancel it out. Or you can simply integrate the result over time. --~--~-~--~~~---~--~~

[android-developers] Re: Accelerometer

2009-06-25 Thread Delta Foxtrot
2009/6/26 kalyan simhan > there seems to be some problem with my accelerometer... > the values of x,y,z fluctuate even when it is stationary.. kept > in one place... why is this.. how can i overcome it.. > what is the unit of the value im getting.. im guessing 1 unit = 1g > 9.8m/s^2 is an approx

[android-developers] click animation

2009-06-25 Thread tstanly
hi all, when click a image button, i want to the moment button can give a "light", like we clicked the list items... this can tell you,you already click. how to do that? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[android-developers] Re: how can i pass object in intent?

2009-06-25 Thread Balwinder Kaur (T-Mobile)
If you make your object implement the Parcelable Interface, you can pass it through the Intent Object using putExtra(String name, Parcelable value). In your new activity you can access the same object using getParcelableExtra(String name) For more information pls refer to http://developer.androi

[android-developers] Re: weird drawing on bitmap to canvas

2009-06-25 Thread Nightwolf
Try using the following: Rect bounds = new Rect(); mFontPaint.getTextBounds(mText, 0, mText.length(), bounds); mCanvasBitmap.drawText(mText, 0, bounds.height(), mFontPaint); On Jun 25, 1:20 am, sleith wrote: > thx for reply > did u mean font's paint? > i believe it's not that the font is cannot

[android-developers] Re: How To Keep ListView Header From Scrolling With ListView Content

2009-06-25 Thread Marco Nelissen
On Thu, Jun 25, 2009 at 8:46 AM, Mike wrote: > > Thanks guys. This does work provided the ListView and the header View > are within the same parent ViewGroup. Can you give an example of when they would not be? > I would, however, like to request that the ListView be enhanced with > two new me

[android-developers] Re: Got media player error in sdk 1.5 r2

2009-06-25 Thread Marco Nelissen
On Thu, Jun 25, 2009 at 8:27 AM, manoj wrote: > > String[] videoProjection = new String[] { >                        android.provider.MediaStore.Video.Media._ID, >                        android.provider.MediaStore.Video.Media.TITLE, >                        android.provider.MediaStore.Video.Media

[android-developers] Re: How To Keep ListView Header From Scrolling With ListView Content

2009-06-25 Thread Mike
Thanks guys. This does work provided the ListView and the header View are within the same parent ViewGroup. I would, however, like to request that the ListView be enhanced with two new methods: void addHeaderView(View v, Object data, boolean isSelectable, boolean scrollsWithContent) void addFoo

[android-developers] Re: Got media player error in sdk 1.5 r2

2009-06-25 Thread manoj
you can also try it experience the problem. On Jun 25, 8:27 pm, manoj wrote: > String[] videoProjection = new String[] { >                         android.provider.MediaStore.Video.Media._ID, >                         android.provider.MediaStore.Video.Media.TITLE, >                         andro

[android-developers] Re: Got media player error in sdk 1.5 r2

2009-06-25 Thread manoj
String[] videoProjection = new String[] { android.provider.MediaStore.Video.Media._ID, android.provider.MediaStore.Video.Media.TITLE, android.provider.MediaStore.Video.Media.DATE_ADDED, android.provider

[android-developers] Accelerometer

2009-06-25 Thread kalyan simhan
hi all... there seems to be some problem with my accelerometer... the values of x,y,z fluctuate even when it is stationary.. kept in one place... why is this.. how can i overcome it.. what is the unit of the value im getting.. im guessing 1 unit = 1g where g= 9.8m/s2... kindly help! thanks in advan

[android-developers] Re: Got media player error in sdk 1.5 r2

2009-06-25 Thread Marco Nelissen
How? On Thu, Jun 25, 2009 at 8:20 AM, manoj wrote: > > Actually, I got those uri's using ContentResolver. > > On Jun 25, 8:10 pm, Marco Nelissen wrote: > > On Thu, Jun 25, 2009 at 4:42 AM, manoj > wrote: > > > > > Hi friends, > > > > > I have written a small media player app which plays media

[android-developers] Re: LinearLayout in LinearLayout

2009-06-25 Thread JdbcDroid
try to use l1.setOrientation(...) just before l1.addView(...) On Jun 25, 4:42 pm, "Mr.No" wrote: > Ive tried it with layoutparams its the same. > the default layoutarams will be assigned to the layout. > > On 25 Jun., 16:26, Peli wrote: > > > You have not set any layout > > parameters.http://

[android-developers] Re: Got media player error in sdk 1.5 r2

2009-06-25 Thread manoj
Actually, I got those uri's using ContentResolver. On Jun 25, 8:10 pm, Marco Nelissen wrote: > On Thu, Jun 25, 2009 at 4:42 AM, manoj wrote: > > > Hi friends, > > > I have written a small media player app which plays media files stored > > in sdcard. > > > For audio files I got the following ex

[android-developers] Re: How to save the logs from the phone to a file with out eclipse

2009-06-25 Thread Rotor
please someone ? anyone...? i realy need to colect problems from the field On Jun 23, 12:45 pm, RTX wrote: > i want to let the users send me thelogsfrom the device > i wonder how do i extract thelogsin to a file on the device ? --~--~-~--~~~---~--~~ You rece

[android-developers] Re: how to change a typeFace on a textView from remoteView

2009-06-25 Thread Rotor
How do i render the text to an image on the fly On Jun 1, 10:55 am, Jeff Sharkey wrote: > Because widgets live in other processes, they can only use system > typefaces, and not additional fonts that might be internal to your > package.  One way around this would be to render your font onto a > B

[android-developers] Update message - how to check whether app has run before?

2009-06-25 Thread Anna PS
Hi all, I want to show an update message for a new release - the first time the user opens the updated version of my app, a pop-up dialog should appear, saying what's new, with an OK button. After the user has read it once, it shouldn't appear again. Is there any inbuilt Android variable I can c

[android-developers] Re: android crash when volume up

2009-06-25 Thread Marco Nelissen
Does this happen every time, or only after/while running a certain application? On Thu, Jun 25, 2009 at 6:56 AM, l hx wrote: > who know why? > > D/VolumePanel( 652): onVolumeChanged(streamType: 2, flags: 4) > E/AudioFlinger( 635): no more track names availlable > E/AudioTrack( 652): AudioFli

[android-developers] Re: Got media player error in sdk 1.5 r2

2009-06-25 Thread Marco Nelissen
On Thu, Jun 25, 2009 at 4:42 AM, manoj wrote: > > Hi friends, > > I have written a small media player app which plays media files stored > in sdcard. > > For audio files I got the following exception: > > E/MediaPlayerService( 35): Couldn't open fd for > content://media/KeypressReturn.ogg/audio

[android-developers] Re: How to get the media files stored in sdcard?

2009-06-25 Thread Marco Nelissen
Query the media content provider. On Thu, Jun 25, 2009 at 2:04 AM, manoj wrote: > > Hi, > > I want to show the list of media files (.mp3, .mp4...etc) available in > sdcard. > > How can I do this? > > Thanks, > Manoj. > > > --~--~-~--~~~---~--~~ You received this

[android-developers] how can i pass object in intent?

2009-06-25 Thread zeeshan
Hi Dear, is it possible to pass an object to the intent so i can access that object in my new activity? --~--~-~--~~~---~--~~ 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] job oppurtunities now

2009-06-25 Thread bride
job oppurtunities now http://unitedapperal.tripod.com/id24.html click here above link and see more details about job oppurtunities s, find more reliable things about job. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[android-developers] Re: LinearLayout in LinearLayout

2009-06-25 Thread Mr.No
Ive tried it with layoutparams its the same. the default layoutarams will be assigned to the layout. On 25 Jun., 16:26, Peli wrote: > You have not set any layout > parameters.http://developer.android.com/reference/android/widget/LinearLayout.La... > > l2.setLayoutParams(new LayoutParams(LayoutP

[android-developers] Re: LinearLayout in LinearLayout

2009-06-25 Thread Peli
You have not set any layout parameters. http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html l2.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); Peli www.openintents.org On Jun 25, 3:28 pm, "Mr.No" wrote: > Hi folks, > ive

[android-developers] Re: How to make chat window?

2009-06-25 Thread Peli
You can try DroidDraw to design the appearance of your chat window: http://www.droiddraw.org/ Peli www.openintents.org On Jun 25, 3:52 pm, Gulfam wrote: > Hi everybody, > > Currently I am working on chat messenger and I want to make chat > window. any one can help me regarding this > any use fu

[android-developers] Re: LinearLayout in LinearLayout

2009-06-25 Thread Mr.No
Ive fixed it, but its strage, if i create it from xml file it dont throws an exception. Within the code i must turn off the baseline alginment. On 25 Jun., 15:28, "Mr.No" wrote: > Hi folks, > ive  a little problem: > > Why is the following code causing an exception? > The Code throws a "mBaseli

[android-developers] AudioTrack create failure

2009-06-25 Thread l hx
who know why? E/AudioFlinger( 635): not enough memory for AudioTrack size=262208 D/MemoryDealer( 635): AudioTrack (0x23340, size=1048576) D/MemoryDealer( 635): 0: 00023378 | 0x | 0x00040040 | A D/MemoryDealer( 635): 1: 00023400 | 0x00040040 | 0x00040040 | A D/MemoryDealer( 6

[android-developers] Re: help with onchildclick in ExpandableListView

2009-06-25 Thread polzifer
-SOLVED- longclickenabled="false" was set in XML. removed that at it's working On 17 Jun., 12:40, polzifer wrote: > i wanted to add the the longclick is starting the contextmenue and > working. > > On 17 Jun., 12:11, polzifer wrote: > > > I need a solution how to get the OnChildClick working

[android-developers] android crash when volume up

2009-06-25 Thread l hx
who know why? D/VolumePanel( 652): onVolumeChanged(streamType: 2, flags: 4) E/AudioFlinger( 635): no more track names availlable E/AudioTrack( 652): AudioFlinger could not create track, status: -12 E/ToneGenerator( 652): AudioTrack->initCheck failed E/ToneGenerator( 652): ToneGenerator init f

[android-developers] Notification Flag: "FLAG_ONLY_ALERT_ONCE" not working?

2009-06-25 Thread polzifer
The "FLAG_ONLY_ALERT_ONCE" seems to be not working for Notifications, as the notification.sound and the notification.vibrate doesn't play once, but loop? Does anyone else experience the same Problem? --~--~-~--~~~---~--~~ You received this message because you are

  1   2   >