[android-developers] Re: How to start an Intent from preference page AND GET RESULTS?

2009-04-28 Thread Jason Parekh
The easiest solution for your situation is to refresh the summaries in your preference activity's onResume. Otherwise you'll have to override onPreferenceTreeClick and start the activity manually. (sent from phone) On Mar 6, 2009 7:37 PM, "Xin Zhao" wrote: Hey guys, I am trying to start an in

[android-developers] Re: 1.5 SDK problem with WebView.getZoomControls()

2009-04-28 Thread Jason Parekh
WebView instead of software compositing. Unfortunately, I'm not sure why you're seeing layout issues with the old zoom controls. Could you try changing the LinearLayout's layout_width to fill_parent? If this does not work, could you please post a screenshot? jason On Tue, Apr 2

[android-developers] runtime API level detection

2009-04-27 Thread jason...@spy.net
I'm trying to product a binary that is compatible with 1.1 and 1.5, but i'm having trouble with the ViewSwitcher class behaving different. I'd like to create a wrapper for it, but I need a way to programatically detect the api level at runtime. --~--~-~--~~~---~--~-

[android-developers] Re: Difficulty Resuming SurfaceView

2009-04-26 Thread Jason Van Anden
this helps someone else! Jason Van Anden http://www.smileproject.com On Sun, Apr 26, 2009 at 7:30 AM, Jason Van Anden wrote: > Not to beat a dead horse ... but other suggestions regarding how to > deal with the mis-registered list view issue would be super > appreciated.  My app

[android-developers] Re: Copy protection & License key management

2009-04-26 Thread Jason Van Anden
Is the copy protection in 1.5 any more robust in 1.5? On Apr 26, 2009 11:38 AM, "Jean-Baptiste Queru" wrote: The issue (1) with turning copy protection on (or off) was in Android 1.0/1.1, and there's been no fix for it made on top of those versions. I believe that it is fixed in 1.5, which mean

[android-developers] Re: Difficulty Resuming SurfaceView

2009-04-26 Thread Jason Van Anden
in the blog entry). Thanks, Jason Van Anden http://www.smileproject.com On Sun, Apr 26, 2009 at 6:49 AM, Jason Van Anden wrote: > This looks like it does what I have been trying to do ... except that I have > no way of knowing if it will resolve the problem that occurs when I ca

[android-developers] Re: Difficulty Resuming SurfaceView

2009-04-26 Thread Jason Van Anden
hat I have and wait to use 1.5 until it is ready for release). The mis-registration of the buffers is super weird ... esp since it only occurs when started from the activity with the surfaceview. Thank you, Jason On Apr 25, 2009 3:28 PM, "Mike Hearn" wrote: Does GLSurfaceView do wh

[android-developers] Re: Seeing Double ListView

2009-04-25 Thread Jason Van Anden
... am I trying to do the impossible by using a SurfaceView and ListView in the same app? What it looks like to me is that the double buffering on the list is getting flummoxed. j On Sat, Apr 25, 2009 at 1:25 PM, Jason Van Anden wrote: > I am wondering if anyone else is encountering t

[android-developers] Seeing Double ListView

2009-04-25 Thread Jason Van Anden
SurfaceView version draw over themselves mis-registered when I scroll long lists quickly. If anyone out there has had a similar problem and/or has an idea what might be going on and/or has a suggestion as to how to fix this, please do! Thank You, Jason Van Anden

[android-developers] dear list moderators

2009-04-24 Thread Jason Proctor
how long do i need to be on probation before my posts take less than a week to reach the list, if at all? -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: Difficulty Resuming SurfaceView

2009-04-24 Thread Jason Van Anden
Perhaps this would be a better way to inspire feedback. Is it possible to pause and resume a view based upon SurfaceView? What would be the correct way to restart the view so that the thread can begin drawing again? On Fri, Apr 24, 2009 at 1:29 PM, Jason Van Anden wrote: > I create

[android-developers] Re: Difficulty Resuming SurfaceView

2009-04-24 Thread Jason Van Anden
ed method stub } public boolean onSingleTapUp(MotionEvent event) { mX = event.getX(); mY = event.getY(); thread.do_draw(); return false; } } Thank You, Jason On Fri, Apr 24, 2009 at 1

[android-developers] Re: how to send mail in SDK 1.5

2009-04-22 Thread Jason Proctor
JavaMail works fine with JDK 1.5 here. what problems are you seeing? >Hi All, > >Javamail is not compatible with SDK 1.5. Do you know other ways I >can send mail automatically? > >Thanks, >Xian > > -- jason.software.particle --~--~-~--~~~---~--~~ You received

[android-developers] Early Look Android 1.5 SDK

2009-04-21 Thread Jason Proctor
>But will the official release will work on the ADP1? One more question >after 1.5 is released officially, do we still have to support for the >older versions or all gphone owners will have this update available on >their phones? fwiw, i'm running Haykuro's 5.0.1Gr3-signed.zip build on my ADP1 r

[android-developers] is video recording supported on 1.5pre?

2009-04-20 Thread Jason Proctor
i have here an ADP1 with a Haykuro ROM in it. mostly it seems to work fine. however, on calling setVideoEncoder(MediaRecorder.VideoEncoder.H264) however, i get app death with the following stack trace - 04-20 18:17:48.979: ERROR/AndroidRuntime(671): java.lang.RuntimeException: setVideoEncoder

[android-developers] list latency

2009-04-20 Thread Jason Proctor
anyone seeing list latencies of a day or so...? -- jason.software.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@googlegr

[android-developers] Distinguishing Between Edge and 3G network

2009-04-20 Thread Jason Proctor
futureproofing is hard when getNetworkType() returns a magic number. ideally there would be a getNetwork() which returned a reference to an object which had all the good network knowledge. (and magic numbers are unfortunately very common throughout the Android API.) >Keep in mind that in the

[android-developers] Re: Check if a View contains another View

2009-04-20 Thread Jason Proctor
you might be able to walk the child view's parents until you find the view you're looking for. >Is there a way to check if a view contains another certain view? I >have an AbsoluteLayout view that I add multiple views to (buttons). I >have a certain button, let's call it reportButton, and I wan

[android-developers] Re: Problem installation Android Development Tools

2009-04-20 Thread Jason
I'm also receiving this very same error, even on kunbuntu 8.04 with Eclipse 3.4 - 64bit (both RC1 and RC2), even with a fresh install. On Apr 17, 5:23 am, thewilli wrote: > Hi! > > I wanted to install ADT using my Eclipse 3.4 Ganymede and the internal > update function. I added the site "http://

[android-developers] Re: String comparison with Text in EditText with online data.

2009-04-17 Thread Jason Proctor
in the vast majority of cases, compare Java strings with equals() or equalsIgnoreCase() == tests for reference equality - ie the same *exact* string object, not just one which happens to have the same contents. >Hi, I'm trying to use the code below to connect to an online source, >then compa

[android-developers] How can I test the video recording functionality in the new emulator

2009-04-17 Thread Jason Proctor
right -- i got an error calling - recorder.setVideoSource (MediaRecorder.VideoSource.CAMERA) - which seemed to indicate that there isn't a shim for the video recording the way there is for still camera previews. >I don't believe that video recording works in the emulator. It >requires a har

[android-developers] Quality of paid applications on the Market...

2009-04-17 Thread Jason Proctor
google presumably wants to take over the desktop with Android on the coming tsunami of netbooks. IMHO personal computers are now workstations, so we need a new personal computer. the netbook is it - the platform will grow up out of the phone, as opposed to down from the PC. >Ok, you caught

[android-developers] ExampleAppWidget won't run

2009-04-15 Thread jason...@spy.net
I can't seem to get the ExampleAppWidget that comes in pre-1.5 to run, I added the Configure activity to the ApiDemos manifest, but now I'm getting this when I try to install the widget in the Home/Launcher app.. E/AndroidRuntime( 842): java.lang.RuntimeException: Failure delivering result Resu

[android-developers] is an AppWidget Configuration Activity required?

2009-04-15 Thread jason...@spy.net
I'm playing around with the new AppWidget API, I get the impression from the docs that I don't need an android:configuration attribute in my AppWidgetProviderInfo xml resource. Curiously though, when I try to add my AppWidget to the home screen, I just get a black textview that reads "Problem lo

[android-developers] Re: Context Menu calling Activity.onMenuItemSelected() instead of Activity.onContextMenuItemSelected()

2009-04-14 Thread Jason Parekh
The onMenuItemSelected dispatches to either onOptionsItemSelected or onContextItemSelected. If your onMenuItemSelected is overridden, could you ensure you're calling through to the super.onMenuItemSelected(...) implementation? jason On Tue, Apr 14, 2009 at 3:32 PM, Jack C. Holt wrote:

[android-developers] Re: More Than One Instance of Application

2009-04-10 Thread Jason Van Anden
I ran into this as well. Try adding this to the Activity tag ... android:launchMode="singleTask" Jason Van Anden http://www.smileproject.com On Thu, Apr 9, 2009 at 6:29 PM, Dianne Hackborn wrote: > It brings the currently running instance to the foreground. > > On Thu, Apr

[android-developers] Re: Buffering Background Image - Graphics Advice Sought

2009-03-30 Thread Jason Van Anden
Thanks, I will try this. My app has a lot of images drawn on a canvas, any of which can be moved and sized at any time by the user. They are in layers, and transparent, so that they can all be seen and manipulated. The graphics are circles at the moment. I tried running the app with a buffered

[android-developers] Re: Buffering Background Image - Graphics Advice Sought

2009-03-29 Thread Jason Van Anden
I sorted this out. i++ On Sun, Mar 29, 2009 at 12:31 PM, robotissues wrote: > > Still digging but I have example code. I am able to capture the > bitmap, but now the screen flickers. The idea here is that the > refresh_background flag gets raised when I need to hold the > background. Advice s

[android-developers] Re: Is it normal to play an audio during phone call?

2009-03-16 Thread Jason Van Anden
;, so I assumed he was talking about the 'Music' > application, which *does* pause. > > > On Mon, Mar 16, 2009 at 1:35 PM, Jason Van Anden > wrote: > > MediaPlayer keeps playing after I answer a call using my app. I was > > assuming that I was responsible for p

[android-developers] Re: Is it normal to play an audio during phone call?

2009-03-16 Thread Jason Van Anden
MediaPlayer keeps playing after I answer a call using my app. I was assuming that I was responsible for pausing it and was planning to figure out how this might be done (like, which intent I am listening for). Is the MP supposed to just pause automatically? i++ On Mon, Mar 16, 2009 at 4:08 PM,

[android-developers] Re: Intents and Uris, for Ringtone Picker

2009-03-12 Thread Jason Parekh
If you're using a preference activity, check out on the RingtonePreference, it does a lot of the boilerplate work for you. jason On Thu, Mar 12, 2009 at 12:02 PM, droozen wrote: > > I'd like to allow the user to choose a Ringtone from my application, > that I will play

[android-developers] Problem with Simple Audio Recorder Application : Android

2009-03-06 Thread Jason
Hi, I have written a simple Application to record audio. SD card is enabled in emulator using "./emulator -sdcard sd_card.img". when i enter this command, it displays warning saying "Audio output is failed". the application runs properly but i cant see the recorded file. output file is set to

[android-developers] Re: How to Thump? Name of Haptic Trigger.

2009-02-27 Thread Jason Van Anden
gt; > >> > On Fri, Feb 27, 2009 at 11:22 PM, Stoyan Damov >> > wrote: >> >> >> >> Surely Labyrinth (Lite - I don't have access to paid apps) requires >> >> Hardware controls/control vibrator. This permission is not that >> >> impor

[android-developers] Re: How to Thump? Name of Haptic Trigger.

2009-02-27 Thread Jason Van Anden
t; the vibration coming from? Also, it seems the harder the ball hits, > the stronger the (mini-)vibration. > > I would like to know what triggers this as well. > > On Feb 26, 11:50 pm, Jason Van Anden > wrote: > > Thank you for answering. I took some of the griping

[android-developers] Re: How to Thump? Name of Haptic Trigger.

2009-02-26 Thread Jason Van Anden
Thank you for answering. I took some of the griping personally about "why don't people take the minute to find ..." and/or choose the right forum. In this situation I do not know the syntax so its hard to find the info. That being said ... something physical actually does occur. Its the same t

[android-developers] Re: howto access music file properties?

2009-02-14 Thread Jason Van Anden
I sorted this out. MusicDroid example is a bit of a red herring. MusicStore is clearly the way to go! On another note ... can the Music App pre loaded with Android be accessed as a service? Essentially I would like to have the selected song pass back to my app. On Sat, Feb 14, 2009 at 11:36 AM

[android-developers] eclipse warnings and aidl generated classes

2009-01-30 Thread jason...@spy.net
Does anyone know of a way to suppress the eclipse warnings from classes generated by aidl? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

[android-developers] Re: Apple Granted Multitouch Patent

2009-01-27 Thread Jason Van Anden
/multitouchOverview.html Perhaps the deep pocketed one might be Palm ... here is a recent news article on some words between Apple and Palm on the IP ... http://venturebeat.com/2009/01/23/palm-will-defend-its-ip-too-says-former-apple-spokesperson/ Jason Van Anden www.smileproject.com On Tue, Jan 27, 2009 at

[android-developers] Re: Accessing preferences

2009-01-23 Thread Jason Parekh
You can use PreferenceManager.getDefaultSharedPreferences(this) from another activity. jason On Mon, Jan 19, 2009 at 9:24 PM, Ivan Soto wrote: > Hi, I'm having a hard time trying to understand how the preferences > activity works. > Right now I have an activity for my preferenc

[android-developers] Re: Progress Bar Color

2009-01-23 Thread Jason Parekh
Like he mentioned, create an XML in res/drawable that contains: http://schemas.android.com/apk/res/android"; android:pivotX="50%" android:pivotY="50%" android:fromDegrees="0" android:toDegrees="360"> and tweak the colors to your liking. This w

[android-developers] Re: AlertDialog.Buillder

2009-01-07 Thread Jason Parekh
There's a setItems that takes a CharSequence[], so convert your ArrayList to CharSequence[]. jason On Tue, Jan 6, 2009 at 6:30 PM, intbt wrote: > > I need to setItems from a generated ArrayList. > > Eclipse gives me an error that the setItems must be a int source. I > have

[android-developers] Re: Creating Context Menus

2009-01-07 Thread Jason Parekh
You could use AlertDialog to show a dialog similar to the ones shown by the context menu. Check out API Demos > App > Dialog > List dialog. jason On Wed, Jan 7, 2009 at 5:03 PM, Dan wrote: > > Hi, > > I was wondering if there was a way to create a context menu (or any &

[android-developers] Re: How To Start a RTSP connection

2009-01-02 Thread Jason
diaPlayer class, but it was easier for me to use a VideoView since I was playing back video. -Jason On Dec 24 2008, 11:30 pm, lucky wrote: > Kamil, > > Do you do such RTSP streaming test on emulator or G1 phone? > Or is it possible to test it on emulator? > > BRs > wjjsun

[android-developers] group delivery options settings ineffective

2008-12-17 Thread Jason Proctor
anyone else encountered this? the options offered here -- http://groups.google.com/group/android-developers/subscribe -- don't do anything any more. i said "no email" yesterday, but i'm still getting every email today. (if there's a better place for this email, please suggest. thanks. btw the

[android-developers] Re: apache httpclient usage in 1.0 r2 release

2008-12-17 Thread Jason Proctor
did you request internet permission for your application in your manifest file? (occurrence #3225 of this FAQ.) >Hi, > >Trying a simplge connection in andorid using the 3rd party library >Apache Client (these libs were present by default in M5 now that it is >removed, compiling by including th

[android-developers] hiding the title bar

2008-12-16 Thread Jason Proctor
>This works fine, when called in onCreate() of an activity: > >getWindow().requestFeature(Window.FEATURE_NO_TITLE); > >Or, as Andrew Stadler pointed out, you can use this in your in >your manifest: > >android:theme="@android:style/Theme.NoTitleBar" > >Note that these remove the title bar. They do

[android-developers] hiding the title bar

2008-12-16 Thread Jason Proctor
i'd like to hide the title bar, but it seems that the sample code -- requestWindowFeature (Window.FEATURE_NO_TITLE); -- doesn't do anything. is there a way that works? thanks, j --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[android-developers] Re: Android Dev Phone 1™

2008-12-12 Thread Jason
How luck you are! I have received similar email from Brightstar said my phone will be shipped within 3~5 days. Now after 5 days, no update at all. On Dec 12, 12:05 pm, "nutha...@gmail.com" wrote: > Following up on my earlier post...after failing to reach Brightstar > viaphone, I sent an email

[android-developers] Re: Android Dev Phone 1 + Shipping to Germany

2008-12-12 Thread Jason
How long have you been waiting for this tracking id, I ordered the dev phone1 5 days ago, but still no update. On Dec 11, 7:41 pm, patte wrote: > I got the tracking id from andr...@brightstarcorp.com - G1 is on its > way to Cologne ;-) > > On 10 Dez., 19:06, "ruwen@gmail.com" wrote: > > >

[android-developers] TabActivity vs VideoView vs Camera Preview contention

2008-12-06 Thread Jason Proctor
o facilitate the use of video hardware pipelines. I'm not surprised >there are some rough edges because it didn't get any testing outside >of the basic use cases. > >I suggest you log a bug. If you have a code snippet that demonstrates >the problem, that would be even better. &

[android-developers] Re: Custom Style

2008-12-05 Thread Jason Parekh
You can just use the default style of the horizontal progress bar and in addition set the progressDrawable to the resource for your XML file. jason On Wed, Dec 3, 2008 at 6:06 PM, Protocol-X <[EMAIL PROTECTED]> wrote: > > Hello, > > I am trying to implement a custom style to

[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
another quite alarming detail is that if i initially remove the video view from its tab in my activity's onCreate(), then that results in a black screen where the camera preview should be. if i leave the video view installed, then the preview works fine. this is somewhat baffling! --~--~

[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
fact of the way we handle video overlays - >>they are treated differently than a regular surface. If I understand >>the behavior, I would agree that it's a bug. >> >>As a workaround, you will probably need to tear down the VideoView. >>For camera preview, you should be

[android-developers] TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
way we handle video overlays - >they are treated differently than a regular surface. If I understand >the behavior, I would agree that it's a bug. > >As a workaround, you will probably need to tear down the VideoView. >For camera preview, you should be able to get away just clearing t

[android-developers] TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
i'm looking at the source for TabHost and it turns out that when a tab is selected, its view is set to visibility GONE. hence me setting it to INVISIBLE afterwards probably isn't helping! either way, i think making a SurfaceView GONE should probably stop it claiming chunks of screen and interf

[android-developers] TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
thanks for the response. the view hosting the camera preview is indeed a surface view. i was using a regular SurfaceView, but then tried subclassing it and returning false in gatherTransparentRegion() as you suggested. unfortunately this doesn't affect the behaviour - upon switching to the pl

[android-developers] TabActivity vs VideoView vs Camera Preview contention

2008-12-03 Thread Jason Proctor
hey all, i have TabActivity which does camera previews in one tab and has a VideoView in another. they don't get on very well - seems like each thinks it has control of the screen. in particular, once a preview has been done in the camera tab, then the VideoView tab has a black rectangle the

[android-developers] Re: Wifi Ip Address

2008-12-02 Thread Jason Parekh
>= 8) & 0xff).append('.'). append((addr >>>= 8) & 0xff).append('.'). append((addr >>>= 8) & 0xff); return buf.toString(); } jason On Tue, Dec 2, 2008 at 12:26 PM, Andrea <[EMAIL PROTECTED]> wrote: > &

[android-developers] Android on iPhone

2008-11-14 Thread Jason Proctor
>It's like putting OSX on a PC... possible if some hacker >really wanted to try, but you run in to all kinds of issues. this has been done many times. the only real issue is the piece of code that tries to detect real apple hardware. defeat that, and there are only normal hardware compatibility

[android-developers] shared preferences between applications

2008-11-14 Thread Jason Proctor
i'm using java.util.prefs.Preferences to maintain my apps' preferences, but it seems like one app can't read another's preferences, even if the path to them is the same. is this intended? should i be using a different root than userRoot() ? tx --~--~-~--~~~---~--~-

[android-developers] polite request for better error messages

2008-11-07 Thread Jason Proctor
and for bug fixes and new features. > >On Nov 7, 3:41 pm, Jason Proctor <[EMAIL PROTECTED]> wrote: >> happy to report that MediaRecorder, at least, helpfully logs -- >> >> 11-07 15:39:08.848: ERROR/AudioFlinger(33): Request requires >> android.permission.RECOR

[android-developers] telling the difference between G1 and emulator

2008-11-07 Thread Jason Proctor
barf. there has to be a nicer way. didn't someone way back discover that the "unique ID" of the hardware is null for the emulator? my memory is hazy... >Ugly, but the default getPreviewSize() is different for G1 versus >emulator... > >On Nov 8, 12:08 am, Jason Procto

[android-developers] Re: polite request for better error messages

2008-11-07 Thread Jason Proctor
happy to report that MediaRecorder, at least, helpfully logs -- 11-07 15:39:08.848: ERROR/AudioFlinger(33): Request requires android.permission.RECORD_AUDIO -- when an attempt to record is made without the proper permission. bravo! i live in hope that all of Android logs such messages someday.

[android-developers] telling the difference between G1 and emulator

2008-11-07 Thread Jason Proctor
> > but they come back generic. > >Yes, that's exactly how you tell. The real phone isn't generic. well, i'm getting identical results from system properties os.name, os.version, and os.arch. i kinda maybe expected a different results from os.arch, but both return OS_ARCH which is a little

[android-developers] modal dialogs

2008-11-07 Thread Jason Proctor
thanks for the response. ok so that's the accepted way to do it. great. >Fine. Yes, the only way to get a response from a button is via the >onClick() handler. So yes, you use that to start up a thread and put >up a progress dialog, then close it when the thread has done its long >transaction

[android-developers] modal dialogs

2008-11-07 Thread Jason Proctor
sigh. please read the message fully? thanks. it wasn't about blocking as a UI concept. >Eh, blocking on user input is rarely the way to do things. Your >activity has to be able to respond to other events - such as being >killed or put to sleep when the phone rings. A mobile phone is an >event

[android-developers] modal dialogs

2008-11-07 Thread Jason Proctor
i realise that this issue has most likely been done to death before i arrived on the android scene. i'm more looking for suggestions on logic flow than having a big moan about the lack of a modal show-dialog call. AFAICS, the only way of handling input to a basic text input dialog is to regis

[android-developers] telling the difference between G1 and emulator

2008-11-07 Thread Jason Proctor
is there a simple call to programmatically tell the difference? i was hoping that the System properties would have something, but they come back generic. tx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] Camera preview on G1 only works in landscape ?

2008-11-07 Thread Jason Proctor
this problem appears to be unit dependent. on my G1, the camera orientation is always wrong. on the G1 belonging to a colleage, it's correct. this would suggest that if i set rotation, it would fix some phones and break others. are the G1 hardware camera parameters documented anywhere apart fr

[android-developers] Re: removing preference file and its implication

2008-11-05 Thread Jason Parekh
The SharedPreferences keep a cache in memory. So, when you remove the file, it ends up using the cached value (false) from memory. Try rm'ing the file, killing your process (from Devices tab in eclipse), and then relaunching. jason On Wed, Nov 5, 2008 at 3:30 AM, [EMAIL PROTECTED] &l

[android-developers] Re: Can't return View derived class for BaseExpandableListAdapter? (used to work)

2008-11-05 Thread Jason Parekh
layout (parent) to store metadata for that child). So, in this case, this mcv view wlil eventually go into a ListView, but you're saying to use LinearLayout.LayoutParams. Instead, try using ListView.LayoutParams. jason On Wed, Nov 5, 2008 at 1:09 PM, Mark Wyszomierski <[EMAIL PROTECTED]

[android-developers] Re: SharedPreferences: editor.commit() always false even though it commits

2008-11-04 Thread Jason Parekh
, I'd suggest at least encrypting it with a key that's hard coded in your app (yes, this is still not secure, but at least it won't be stored plaintext). jason On Tue, Nov 4, 2008 at 1:51 PM, polo777 <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > Almost everythin

[android-developers] Re: Showing the options menu

2008-11-04 Thread Jason Parekh
Hmm, posting the call should only be necessary from onCreate (and the extra delay was only there for visual effect :) ). If you have time, could you please open a bug about the it not working unless you post it? Thanks! jason On Tue, Nov 4, 2008 at 10:03 AM, Mark Wyszomierski <[EMAIL PROTEC

[android-developers] Re: Showing the options menu

2008-11-04 Thread Jason Parekh
); jason On Tue, Nov 4, 2008 at 8:52 AM, Mark Wyszomierski <[EMAIL PROTECTED]> wrote: > > Hmm seeing as how this is not working, is there a way to inject a menu > button key press to get the menu to come up? > > Thanks > > Mark Wyszomierski wrote: > > Hi, > >

[android-developers] Re: disable item of list view in Alert Dialog

2008-11-04 Thread Jason Parekh
Hi Justin, Check out ListAdapter's areAllItemsEnabled and isEnabled. jason On Mon, Nov 3, 2008 at 9:12 PM, Justin <[EMAIL PROTECTED]> wrote: > > I want to disable some items in listview which is in the Alert Dialog > I implemet an Adapter and in getView() of Adapter I s

[android-developers] Re: Can't return View derived class for BaseExpandableListAdapter? (used to work)

2008-11-03 Thread Jason Parekh
Hi Mark, I just tried as you suggested with the ExpandableList1 sample, and I don't see any exceptions. Can you print the stack of the exception you're seeing? You can browse the source at http://git.source.android.com jason On Mon, Nov 3, 2008 at 2:33 PM, Mark Wyszomiers

[android-developers] Camera causing crash

2008-11-03 Thread Jason Proctor
others agree with your conclusion and are even pulling their apps from the market until there is a fix. i'm not spending any significant time with it until something happens, either. >I must conclude that camera support with Android is currently too >immature for serious and sustainable work.

[android-developers] Camera causing crash

2008-11-03 Thread Jason Proctor
>It is yuv422sp, which is equivalent to Android's YCbCr_422_SP. on the G1, Camera claims the preview format is number 16, YCbCr_422_SP, but it isn't. it's YCbCr, but in 411 format. hence smaller relative frame size than the emulator. it's close to YUV 411p, but the colour transform function is

[android-developers] Re: The constructor WifiInfo() is not visible

2008-11-02 Thread Jason Parekh
For more info, check out: http://code.google.com/android/reference/android/net/wifi/WifiManager.html jason On Sun, Nov 2, 2008 at 12:03 PM, Flappie <[EMAIL PROTECTED]> wrote: > > Yes i know.i'm a newbie. > But i'm currently learning the syntax of android using Eclipse.

[android-developers] Re: Activity menu icons

2008-11-02 Thread Jason Parekh
cIndex] = item; } } return N; } On Sun, Nov 2, 2008 at 11:30 AM, David Given <[EMAIL PROTECTED]> wrote: > Jason Parekh wrote: > [...] > > As an interim solution, you could, in your onCreateOptionsMenu, go > > through each menu item and do: > > > > Intent

[android-developers] Re: Media player Problem-The application videoplayer has stopped unexpectedly please try again.

2008-11-02 Thread Jason Parekh
Dagger, you need to look at the log (logcat view in eclipse, or adb logcat) to see the exact exception being thrown that crashes your app. with this info, figuring out the issue will be trivial. jason On Sun, Nov 2, 2008 at 9:32 AM, Dagger <[EMAIL PROTECTED]> wrote: > > someone

[android-developers] Re: Unregistering a statically defined BroadcastReceiver in code?

2008-11-02 Thread Jason Parekh
Hi Akbur, You can't "unregister" this receiver, but you can disable it. Check out PackageManager.setComponentEnabledSetting. jason On Sun, Nov 2, 2008 at 7:03 AM, Akbur <[EMAIL PROTECTED]> wrote: > > Dear all, > > I've registered my BroadcastReceiver

[android-developers] Re: Activity menu icons

2008-11-02 Thread Jason Parekh
ntent(); if (intent != null) item.setIcon(packageManager.getActivityIcon(intent)); jason On Sun, Nov 2, 2008 at 7:41 AM, David Given <[EMAIL PROTECTED]> wrote: > My application extensively uses menus constructed from activities > declared in the manifest, using Menu.addIntentOpt

[android-developers] Re: How to use indicatorLef and Right of ExpandableListView?

2008-11-01 Thread Jason Parekh
Yup, that's exactly what indicatorLeft/Right are for. What issues are you seeing? What vlaues are you setting those to? jason On Sat, Nov 1, 2008 at 9:01 PM, sori <[EMAIL PROTECTED]> wrote: > > I'm having trouble to set the position of group indicators on > Expandab

[android-developers] Re: ImageButton borders, vs. ImageView touch events

2008-11-01 Thread Jason Parekh
TION_UP events being made? ViewGroup.dispatchTouchEvent. It tracks a motion target that received the down (successful receipt is when the receiver returns true), and later delivers move and up events to that motion target. In our case, we returned false so the ImageView/Button doesn't ge

[android-developers] Re: ImageButton borders, vs. ImageView touch events

2008-11-01 Thread Jason Parekh
Hi Eric, When you get the ACTION_DOWN event, are you returning true? If not, this is probably the issue. The framework will only deliver future touch events (ACTION_MOVEs and the ACTION_UP) to that View if its touch listener or onTouchEvent returns true. jason On Sat, Nov 1, 2008 at 5:00 PM

[android-developers] Re: Windows TreeView/ListView Control equivalent for Android OS?

2008-11-01 Thread Jason Parekh
s, it contains examples of all of our widgets, and their use. jason On Sat, Nov 1, 2008 at 7:50 AM, ppcinfo <[EMAIL PROTECTED]> wrote: > > I'm a long time Windows Mobile app developer, and I'm making the > switch to Android. Question: Are there equivalent controls for the >

[android-developers] Problems writing to SD card of physical T-Mobile G1?

2008-10-31 Thread Jason Proctor
. Did you mean >"use for USB storage" under Settings->SD card or something else? > > >On Oct 27, 6:27 pm, Jason Proctor <[EMAIL PROTECTED]> wrote: >> writing to /sdcardon myG1failed until i turned off "act as USB >> disk" in theG1preferences. >

[android-developers] Re: How to construct View from XML resource file

2008-10-31 Thread Jason Parekh
Check out Api Demos, there is a Custom View example. Basically, you need a constructor that has this signature: public LabelView(Context context, AttributeSet attrs) { and in your XML: jason On Fri, Oct 31, 2008 at 1:49 PM, Mark Wyszomierski <[EMAIL PROTECTED]> wrote:

[android-developers] Re: Gesture detection

2008-10-31 Thread Jason Parekh
If you haven't already, can you try returning true in your onDown method? jason On Thu, Oct 30, 2008 at 4:18 PM, Rohit Mordani <[EMAIL PROTECTED]> wrote: > > I am facing the same problem. The onFling() method is never called. > > I THINK the problem is that in the emul

[android-developers] Re: API for Phone profiles

2008-10-31 Thread Jason Parekh
1.0 only has support for silent, vibrate, and normal profiles. You can use AudioManager.setRingerMode to switch between those. jason On Fri, Oct 31, 2008 at 4:40 AM, denismo <[EMAIL PROTECTED]> wrote: > > Hi, > > I couldn't find these so have to ask: remember on the

[android-developers] G1 camera capture crashage

2008-10-29 Thread Jason Proctor
hi, i have an application which opens a Camera and then installs itself as a preview frame handler. it then logs frames to the disk, gzipping them on the way so as to keep the file size manageable. this application works like a charm under the emulator. however on the G1, all shit breaks loos

[android-developers] VerifyError with javac but not with JDT?

2008-10-29 Thread Jason Proctor
i ran into something similar compiling the as-yet-unreleased-for-some-reason version 1.4 of the apache commons codec stuff. i wanted it to get the streaming versions of the Base64 codec, but it was not to be. compiled and worked fine on the Mac, but didn't pass the verifier (bad opcode ???) on

[android-developers] Problems writing to SD card of physical T-Mobile G1?

2008-10-27 Thread Jason Proctor
>No phones can do this --- it's a filesystem limitation; FAT simply can't >cope with more than one concurrent user. Only really specialised >filesystems can do that, and most of them require additional hardware to >synchronise the different users. > >If you want to allow the PC and the phone to ac

[android-developers] Problems writing to SD card of physical T-Mobile G1?

2008-10-27 Thread Jason Proctor
writing to /sdcard on my G1 failed until i turned off "act as USB disk" in the G1 preferences. >On Oct 25, 12:03 pm, blindfold <[EMAIL PROTECTED]> wrote: >> Have others encountered problems writing to theSDcardof aG1? >I've tried a small application that opens and writes text file into sd >ca

[android-developers] Getting the content of a web page.

2008-10-26 Thread Jason Proctor
what was that, the 100th time that was the problem? i really hope we get more granular exceptions and better messages etc with future SDKs. >That was it! Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "A

[android-developers] Getting the content of a web page.

2008-10-26 Thread Jason Proctor
ether to do it right, because my lower layers always do :-) hth >Jason, you're right about the efficiency of appending to a string. I >use it for short messages only. I use an input stream to create a DOM >document, which probably isn't efficient either. But then, if all y

[android-developers] Getting the content of a web page.

2008-10-26 Thread Jason Proctor
try logging the exception itself in the error cases. just printing "IOE" will get the fact that an IOException happened, but not any detail. my code is very similar to yours. HttpResponse = HttpClient.execute (HttpGet), InputStream = HttpResponse.getEntity ().getContent (). then after that i

[android-developers] quick question on camera preview format

2008-10-26 Thread Jason Proctor
thanks for the responses. i just fixed my YUV situation. the problem wasn't my code, seems like i had a corrupted YUV movie for some reason. worked fine on a fresh capture from the emulator. i had moved this functionality off the phone, but at least now i have the option of handling the YUV st

[android-developers] Re: RingtoneManager

2008-10-24 Thread Jason Parekh
RingtoneManager.setActualDefaultRingtoneUri(this, RingtoneManager.TYPE_RINGTONE, Uri.parse(data.getStringExtra(getRingtoneManager.EXTRA_RINGTONE_PICKED_URI))); jason > > } > > } > > Thank You in advanced! > > B.r.: > > Ernest > > > > --~--~-~--~~-

<    5   6   7   8   9   10   11   >