Re: [android-developers] Viewing android Device logs?

2009-10-30 Thread Jason Proctor
dsukhram wrote: I am able to view error logs while debugging an app with logcat in Eclipse. However I have run into issues where my app runs fine on the emulator but throws errors when I put it on my G2. My question is, how do I view the errors that it is throwing on my actual device?

[android-developers] idiot's guide to using layout:gravity?

2009-10-29 Thread Jason Proctor
i have a linear layout with two buttons. i'd like the first to be at the left edge of the container, and the right to be at the... right edge. layout gravity is advertised to do this but i don't seem to be able to influence placement with it at all. i've had the gravity affect the text inside

[android-developers] CursorAdapter question

2009-10-28 Thread Jason Proctor
CursorAdapter is great, i'm a big fan. i notice that both newView() and bindView() are passed Cursors, indicating that extracting stuff from the Cursor and sticking it in the view should happen inside those overrides. however in the source for CursorAdapter.getView() i see that bindView()

[android-developers] CursorAdapter question

2009-10-28 Thread Jason Proctor
Actually, newView() should just create the empty views, so bindView() can be used for binding in either the new-view or recycled-view cases. yes, either newView() shouldn't be passed a Cursor, implying that bindView() will set it up later, or newView() and bindView() should be exclusive inside

[android-developers] Multitouch support in Android 2.0

2009-10-27 Thread Jason Proctor
the G1 hardware does support multitouch. there has been a kernel browser hack available for a while which enables zooming, at least. i played with it and adapted the java side for my own purposes. IMHO there was a better way to do it, but it works well enough for what it provides. Does

[android-developers] Google: please change your release process

2009-10-27 Thread Jason Proctor
I probably came across a bit harsh; that was a reaction to other posts in this and related threads. I apologize for that. the deodorant reference was funny, though. -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: How to share preferences between apps ?

2009-10-26 Thread Jason Proctor
consider implementing cross-app preferences using a custom content provider perchance? (might be overkill, but nicer than hardwiring paths IMHO.) I have a need to share preferences between two apps, where one app writes the preferences and the other needs read only access. I notice that

[android-developers] Re: Service stops?

2009-10-25 Thread Jason B.
I agree. If you are starting the service by binding to it with the activity, once the activity goes away the bind will go away and the OS will think there is no reason to keep the service up. If the service was started using a pending intent from the activity, the service then is started by the

[android-developers] Re: WebView + Cookie Problem

2009-10-23 Thread Jason Proctor
i use this mechanism and it works for me. do you log out what's going on in this section and see if anything untoward is happening? I have a server that sends my android app a session cookie used for authenticated communication. I am trying to load a WebView with a URL pointing to that same

[android-developers] Re: Not able to connect device using adb -d shell command from vista

2009-10-23 Thread Jason Proctor
that means it's working :-) Hello, I am trying to use adb -d shell command to start a shell on device (android dev 1 phone ) from my vista command line. But whenever I try giving such command it does not open any shell or interaction on the phone device. But instead it goes to the next line

[android-developers] Not able to connect device using adb -d shell command from vista

2009-10-23 Thread Jason Proctor
adb doesn't tell you what's going on nor does it open a new window or anything like that. the $ prompt is the shell *on the phone*. what happens if you type ls at the $ prompt? Hello Jason, adb -d shell supposed to be opening a shell on phone deivce. But in my case it is not happening. Re

[android-developers] Re: startActivity and the back button

2009-10-22 Thread Jason Proctor
I am starting an external activity from my application and would like the back button to return the user to the point in my application where they started the activity. Is this possible? that's the default action, unless you do something special in your onActivityResult() or onResume(). --

[android-developers] ListViews in tabs

2009-10-21 Thread Jason Proctor
It is what I got working way back when, though I think 65px may be a better height, and I have not yet tested the theory on QVGA, native 1.6 uses-screens, and whatnot. I'm going to be doing some more research on tabs in different screen resolutions tomorrow (for a new chapter in a new edition of

[android-developers] Re: Is it possible to access raw data of a bitmap (in order to try fade/blur effect)?

2009-10-21 Thread Jason Proctor
i implemented some full-screen fades and blurs for a recent project. doing it in Java resulted in, er, suboptimal performance, so i went native. i passed the results of image.getPixels() to the native function and did the transforms there. on the G1 and ADP, the performance was OK. I want

[android-developers] Re: Using Webkit/Webview for Android UI instead of native UI

2009-10-21 Thread Jason Proctor
yes you can. use a WebViewClient to deal with clicks on links, invent some new URL schemes to implement app logic, etc. call back to Java code using the Javascript interface. we tried this approach, but gave up on it due to issues with the WebKit interface and the performance of heavy

[android-developers] Is it possible to access raw data of a bitmap (in order to try fade/blur effect)?

2009-10-21 Thread Jason Proctor
on that thanks, so i didn't need to go any further :-) Thank you Jason. I was hoping it's possible with Java. Do you use Direct Buffers to pass data from Java to C? image.getPixels() probably creates a copy of actual image. And it also seems as an area for improvements. On Oct 21, 9:49 pm, Jason

[android-developers] Re: can I get a Google wave invitations?

2009-10-21 Thread Jason Chen
and/or removed from the archives. Thanks, -Jason --~--~-~--~~~---~--~~ 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: Google wave invitations...?

2009-10-21 Thread Jason Chen
will be moderated or removed from the archives. Thanks, -Jason --~--~-~--~~~---~--~~ 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] ListViews in tabs

2009-10-21 Thread Jason Proctor
I ask for 24 hours, I get 17 or so. Everybody's in such a rush... ;-) :-) i waited a little longer to reply... -- Skipping the 62px of padding and using a LinearLayout to stack the TabWidget and FrameLayout is now working. So, you can have a TabHost hold a LinearLayout which holds the

[android-developers] stop the Google wave invitation replies? ta

2009-10-20 Thread Jason Proctor
i think it's safe to assume by now that the OP has run out of invitations. even if you think not, you might want to reply directly to him rather than polluting the list. -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message because

[android-developers] TabHost crash (was: hardcoded borders)

2009-10-20 Thread Jason Proctor
anyone any ideas about this? did the XML layout rules for TabHost change in 1.5? i now don't have anything at all in my onCreate() beyond the super() call, and i still get the same TabHost crash. thanks in advance. Tough to tell without seeing your code. If you're not using TabActivity, be

[android-developers] TabHost crash (was: hardcoded borders)

2009-10-20 Thread Jason Proctor
Jason Proctor wrote: anyone any ideas about this? did the XML layout rules for TabHost change in 1.5? i now don't have anything at all in my onCreate() beyond the super() call, and i still get the same TabHost crash. thanks in advance. Your FrameLayout needs to be a child of TabHost

[android-developers] TabHost crash (was: hardcoded borders)

2009-10-20 Thread Jason Proctor
I can state positively that the layout shown there works on 1.5 and 1.6. You can grab full projects with that layout from: http://commonsware.com/Android/ (scroll down and click on the Source Code link in the Details section, on the right side of the page) Look at Fancy/Tab, Fancy/DynamicTab,

[android-developers] TabHost crash (was: hardcoded borders)

2009-10-20 Thread Jason Proctor
No, that should still be supported, AFAIK. But, since it doesn't buy you much, you may as well stick with what's working for you and be done with the matter. i wish it worked! now i'm seeing the other problems - TabHost complaining it can't find views that are clearly there, ListViews inside

[android-developers] ListViews in tabs

2009-10-20 Thread Jason Proctor
well, i'm sorry to bang on about this all the time. are there caveats to putting ListViews in tabs? something to do with a ListView's infinite height (kinda) etc? scrolling views in tabs? the symptom i'm seeing is that a ListView will draw over the tabs in the TabHost. i've tried making them

[android-developers] ListViews in tabs

2009-10-20 Thread Jason Proctor
Nope. I have an application that has four ListViews in four tabs on its main activity. *something* seems different. i can swap out the ListViews for other kinds of view, and everything looks fine. switch back to a ListView, and boom. Your ListViews then are not children of your FrameLayout,

[android-developers] ListViews in tabs

2009-10-20 Thread Jason Proctor
well the solution was to leave the TabHost to its own devices. in a somewhat weird departure from usual Android layout habits, i made everything inside the TabHost fill_parent, then just balanced the weight of the TabHost against other top-level elements in the layout. does layout_weight not

[android-developers] ListViews in tabs

2009-10-20 Thread Jason Proctor
i take it back. the real fix was adding paddingTop=62px to the FrameLayout. is this what makes the room for the TabWidget? feels a little odd... -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Anyone else notice more frequent GC in 1.6?

2009-10-19 Thread Jason Van Anden
this thread that there is more going on here so my assumptions may be wrong. At any rate - I am happy things are running better. Thanks for the improvement! Jason Van Anden http://www.bubblebeats.com On Mon, Oct 19, 2009 at 12:46 AM, Dianne Hackborn hack...@android.comwrote: Yeah, I don't know

[android-developers] android record video(3gp) to remote server

2009-10-19 Thread Jason Proctor
just a knee-jerk here, but i think the problem might be that the recorder requires random access to the resource to write meta information etc. easy to rewind a file and update it, not so easy on a socket. Can you explain better your problem ? Can you receive data side server ? On 19

[android-developers] hardcoded border in custom title?

2009-10-19 Thread Jason Proctor
in my app i replaced the window title with a custom graphic, but no matter what i set the title layout's parameters to, i get a few px of grey border at the left, right, and bottom. is there any way to get rid of it? (i'd just take the title away and replace with a graphic, which looks fine,

[android-developers] hardcoded border in custom title?

2009-10-19 Thread Jason Proctor
Jason Proctor wrote: (i'd just take the title away and replace with a graphic, which looks fine, but my app has a TabActivity and AFAIK i can't put a graphic above the tabs. if someone knows a solution to this (too), then great.) Sure you can. Just put it above your TabHost

[android-developers] hardcoded border in custom title?

2009-10-19 Thread Jason Proctor
Jason Proctor wrote: thanks. i did wonder whether this was possible, but i ran into all kinds of crashes inside TabHost until i started doing most of the setup in Java, which wasn't the idea at all. I'd publish some code, but the example I have at the ready was for a consulting customer

[android-developers] hardcoded border in custom title?

2009-10-19 Thread Jason Proctor
Tough to tell without seeing your code. If you're not using TabActivity, be sure to call setup() on your TabHost after you get it via findViewById(). If you are using TabActivity, be sure to ask it for your TabHost. yes, i'm doing that. currently i can only get it to work right if i make the

[android-developers] hardcoded border in custom title?

2009-10-19 Thread Jason Proctor
Tough to tell without seeing your code. If you're not using TabActivity, be sure to call setup() on your TabHost after you get it via findViewById(). If you are using TabActivity, be sure to ask it for your TabHost. trying again for declarative tabs here -- !-- contacts_view.xml --

[android-developers] Re: Disable context menu not working ... bug?

2009-10-18 Thread Jason Van Anden
confuse the user. Jason Van Anden http://www.bubblebeats.com http://www.twitter.com/bubblebeats On Sat, Oct 17, 2009 at 6:45 PM, Mark Murphy mmur...@commonsware.comwrote: Jason Van Anden wrote: I am setting setEnabled = false for a Context Menu item. The item appears grayed out ... but I

[android-developers] Anyone else notice more frequent GC in 1.6?

2009-10-18 Thread Jason Van Anden
else notice this? Jason Van Anden http://www.bubblebeats.com --~--~-~--~~~---~--~~ 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

[android-developers] Re: Anyone else notice more frequent GC in 1.6?

2009-10-18 Thread Jason Van Anden
Cool ... in this particular case I am glad its not me ... otherwise I might not touch any of the code again! Jason On Sun, Oct 18, 2009 at 4:33 PM, Nikolay Ananiev devuni...@gmail.comwrote: My game's animations are way more smoother in Android 1.6. Google did a great job optimizing 1.6

[android-developers] Disable context menu not working ... bug?

2009-10-17 Thread Jason Van Anden
I am setting setEnabled = false for a Context Menu item. The item appears grayed out ... but I can still click on it. When I do, the menu closes. This does not seem to like the correct behavior to me. Is this a bug or a misunderstood feature? Anyone else experiencing this? Using 1.6 Jason

[android-developers] Re: Alarm is canceled if app is stopped

2009-10-15 Thread Jason B.
I know this thread is talking a lot about task management. I think the original post was about making alarms that still occur even if the app is closed. This is how I do it: 1) Use AlarmManager service to schedule PendingIntents in the future (I.e. xx min from now) 2) Creat an

[android-developers] Re: Alarm is canceled if app is stopped

2009-10-15 Thread Jason B.
:34 pm, Jason B. jason.ba...@gmail.com wrote: Using that approach works great for my app.  That way it doesn't matter if my app ever gets killed.  The alarm will trigger in the future and the intent will restart my service I believe the point of this thread is that Task Killer apps will kill

[android-developers] strategies for low memory conditions

2009-10-14 Thread Jason Proctor
my app has a main activity with a list in it which then launches activities on it in response to pokes at the list. each list item has two Bitmaps associated with it, one small and one potentially large (~1mb). pokes at the graphic flip which Bitmap gets shown. after the user pokes too many

[android-developers] Re: ListActivity implements OnItemLongClickListener

2009-10-14 Thread Jason Proctor
the dialog that comes up when you long-click on a contact is actually a contextual menu. i've done this in my app for much the same reason and it's straightforward. call activity.registerForContextMenu(view), then implement View.OnCreateContextualMenuListener in your activity. when the user

[android-developers] How does Android decide if an Activity should be restarted after the Activity crashes?

2009-10-14 Thread Jason Proctor
does Android allow calling signal() to catch native code crashes? arranging for signal reception then communicating to the Java space that there's been a native library crash might be an option if so. Um. Regardless of how quickly the system restarts your activity, this is a wretched user

[android-developers] ListActivity implements OnItemLongClickListener

2009-10-14 Thread Jason Proctor
. Thanks. On Oct 15, 1:00 am, Jason Proctor jason.android.li...@gmail.com wrote: the dialog that comes up when you long-click on a contact is actually a contextual menu. i've done this in my app for much the same reason and it's straightforward. call activity.registerForContextMenu(view

[android-developers] Re: How did you localize your app?

2009-10-13 Thread Jason Van Anden
Wouldn't these words apply to any app? Is this resource available to the public? Jason Van Anden http://www.bubblebeats.com On Mon, Oct 12, 2009 at 3:51 PM, Brian Conrad brianjto...@gmail.com wrote: I haven't noticed if Android has done this but at least one other non-phone platform I

[android-developers] Re: How did you localize your app?

2009-10-13 Thread Jason Van Anden
Super idea. Thanks, j On Tue, Oct 13, 2009 at 11:00 AM, Steve steveoliv...@gmail.com wrote: Look in the RES folder under platforms in the SDK. There's all of the localized strings to support the default apps, so you can get things like, yes, no, cancel, etc. On Oct 13, 5:54 am, Jason Van

[android-developers] How did you localize your app?

2009-10-12 Thread Jason Van Anden
How have non-multilingual indy devs gone about translating their apps for different languages? I don't mean how do you localize ... I mean, how did you get translation done (paid, bartered, online translator, ...)? Did you notice an impact on downloads? Jason Van Anden

[android-developers] Re: How did you localize your app?

2009-10-12 Thread Jason Van Anden
language should I translate to? If my app was localized in Spanish would I get more downloads from Spain and Central America? If German would the German numbers look more like the UK numbers? Mostly asking this to see if anyone else can shed some light. Jason On Mon, Oct 12, 2009 at 12:45 PM

[android-developers] view visibility callbacks

2009-10-08 Thread Jason Proctor
is there something that gets called off a View when its visibility changes? i'm not seeing an onVisibilityChanged() or equivalent in the docs or code. thanks -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: ADC2 Submission List

2009-10-07 Thread Jason Van Anden
+1 On Wed, Oct 7, 2009 at 4:40 AM, Michael push0...@gmail.com wrote: Hi Tom, i received the following error: There were problems with the following fields:    * Url is too long (maximum is 75 characters) But there's no URL input field visible. (Using Firefox 3.5.3 on WinXP) On 6 Okt.,

[android-developers] Re: Installing USB Driver for G1

2009-10-04 Thread Jason B.
I had this problem with both XP and Vista. I can't remember the exact label but here is what I did to eventually solve it: 1) Install the Android SDK (the \android-sdk-windows-1.5_r3\usb_driver \x86 folder has usb drivers) 2) Connected my G1 via any USB cable (used a couple different ones,

[android-developers] Re: Android Market 1.6

2009-10-04 Thread Jason Van Anden
Of course the other problem is that there are clearly devs gaming the system. In entertainment this is particularly a bummer. I wish I could switch categories BubbleBeats is surrounded by sexy girls and 'soundboards' ... both of which contain collections of content that seems to violate

[android-developers] J2SE Java Application porting to Android

2009-10-04 Thread Jason
Hello. I'm trying to run J2SE JAVA Application on Android. As you know, the main problem is that J2SE classes such as awt, applet, and etc are not supported in Android. Consequently, this means that I should replace those many java classes with Android classes. So, Do you have some idea or

[android-developers] Re: WebView word touching ability?

2009-10-02 Thread Jason Proctor
the easy way to do this is to have each word be a link -- you can style it so that it doesn't look like it -- and then have a custom WebViewClient handle the link and do whatever you want. another way would be to have javascript pick up the touch and somehow determine which part of the DOM

[android-developers] EditText.onKeyUp() doesn't catch all keys

2009-10-02 Thread Jason Proctor
You can look at the java docs for the things in android.text that related to this, and ask questions you have from there. ..seems as if some people are too arrogant to give concrete help? Sorry, no offense ;) advising people to do a bit of research of their own before offloading their

[android-developers] Re: zipalign : could be done at distribution or installation time ?

2009-09-30 Thread Jason Van Anden
! I have 1.5 setup under Eclipse, did not deal with 1.6 yet. Advice appreciated. Thank You, Jason Van Anden www.bubblebeats.com On Mon, Sep 28, 2009 at 2:15 PM, Xavier Ducrohet x...@android.com wrote: On Mon, Sep 28, 2009 at 9:00 AM, Sheridan Hutchinson sheri...@shezza.org wrote: I just

[android-developers] inflater brings back child of view instead of view itself?

2009-09-30 Thread Jason Proctor
something weird is happening when i inflate a particular view and i wonder whether i'm running into some kind of namespace collision inside the resource/class space. i have a few custom views in my app and generally i park them in discrete XML files. the views are declared -- // myview.xml

[android-developers] inflater brings back child of view instead of view itself?

2009-09-30 Thread Jason Proctor
From the javadoc: * @return The root View of the inflated hierarchy. If root was supplied, * this is the root View; otherwise it is the root of the inflated * XML file. So in your case, parent is returned. ok, i get it, thanks. i'm not sure why this return

[android-developers] Re: Intent.putExtra (String name, String[] value) caching old value

2009-09-28 Thread Jason B.
do this, since if the first PendingIntent hasn't actually been used yet, and you try to create another one to be used later, it will match and grab the first and modify it, effectively getting rid of the first logical PendingIntent that would have been used. Jason On Sep 26, 6:59 pm, Jason B

[android-developers] Hey Google I need to know

2009-09-28 Thread Jason Proctor
seems like we need an android-adc list, too... If you post the name of the app, I'm sure the users on here can let you know if we have seen it. On Sep 28, 2:53 pm, omnitial omnit...@gmail.com wrote: i dont have an android phone, so i cant use the judging application. I dont know whether my

[android-developers] rules for inflating layouts

2009-09-28 Thread Jason Proctor
i'm running into some issues inflating layouts and i wonder whether i have something basic wrong. i have a ListView with a custom adapter etc, and of course the item View is custom too. i've been creating the item View in code, and everything works fine, including recycling them and all that.

[android-developers] rules for inflating layouts

2009-09-28 Thread Jason Proctor
zero. thanks in advance! The code would help :) On Mon, Sep 28, 2009 at 1:56 PM, Jason Proctor jason.android.li...@gmail.com wrote: i'm running into some issues inflating layouts and i wonder whether i have something basic wrong. i have a ListView with a custom adapter etc

[android-developers] rules for inflating layouts

2009-09-28 Thread Jason Proctor
in the custom item View... LinearLayouttop = (LinearLayout) findViewById (R.id.contact_top_layout); Try contactView.findViewById(). thanks for the response. that's effectively what i'm doing, as the findViewById() call is done from inside the ContactView. sorry if the code

[android-developers] rules for inflating layouts

2009-09-28 Thread Jason Proctor
parent.addView(theInflateChild), since ListView will do its own magic later on. On Mon, Sep 28, 2009 at 2:11 PM, Mark Murphy mmur...@commonsware.com wrote: Jason Proctor wrote: i thought by now you could read my mind :-) assuming that the XML enclosed in the post is in res/layout

[android-developers] rules for inflating layouts

2009-09-28 Thread Jason Proctor
own magic later on. On Mon, Sep 28, 2009 at 2:11 PM, Mark Murphy mmur...@commonsware.com wrote: Jason Proctor wrote: i thought by now you could read my mind :-) assuming that the XML enclosed in the post is in res/layout/contact_view.xml in the custom ListView... LayoutInflater

[android-developers] rules for inflating layouts

2009-09-28 Thread Jason Proctor
Ah, yes -- sorry, but the custom View was causing a mental block. There is an onFinishInflate() method you can override that gets control, well, when the inflate is finished. There, your children are ready and you can have them do what you want. onFinishInflate() is perfect, thanks. all my

[android-developers] Error generating final archive ... post Apple Software Update

2009-09-26 Thread Jason Van Anden
since I last worked on my app. I tried a few of the suggestions on the board - deleted debug.keystore and tried opening Eclipse using sudo. Neither did the trick. Anyone else? Suggestions super welcome. Thank You, Jason Van Anden www.bubblebeats.com

[android-developers] Re: Error generating final archive ... post Apple Software Update

2009-09-26 Thread Jason Van Anden
was simply trying things I found mentioned here in the forum. j On Sat, Sep 26, 2009 at 1:30 PM, Jason Van Anden jason.van.an...@gmail.com wrote: Today, when I try to run my app from Eclipse, I get Error generating final archive: Debug certificate expired on 9/21/2009 6:11pm. I ran Software Update

[android-developers] Re: Intent.putExtra (String name, String[] value) caching old value

2009-09-26 Thread Jason B.
time for setData(). Lee p.s. also see the flags you can use at the end of the getService call (read the PendingIntent docs). There's something like 'FLAG_REPLACE_CURRENT'. On Sep 25, 9:39 pm, Jason B. jason.ba...@gmail.com wrote: Hi, I'm creating an intent that I'm pushing

[android-developers] Intent.putExtra (String name, String[] value) caching old value

2009-09-25 Thread Jason B.
Hi, I'm creating an intent that I'm pushing to the AlarmManager so that a service will be run at a later time. I have a single string value I need to pass with the intent so the service knows what to do when it's onStart() is called. Here is the code that sets up my intent and pushes it to the

[android-developers] Re: webview crashes

2009-09-21 Thread Jason Proctor
i'm also seeing some occasional WebView crashes with multiple views up. seems to have calmed down without any code changes from me. my app contains a regular ListView which has a dynamic number of WebViews in it depending on various factors. most of the time it works splendidly, and WebView

[android-developers] Re: Please help me !

2009-09-21 Thread Jason Proctor
we have this thing called Google now. a simple search led me to this article -- http://developer.android.com/guide/tutorials/views/hello-mapview.html -- which was enough for me to get Maps and Overlays going. hth I want to display a overlay in maps ( as Overlay of MyLocation - The circle

[android-developers] Re: webview crashes

2009-09-21 Thread Jason Proctor
quick correction here -- i don't use WebViews inside ListViews. i meant a regular LinearLayout with a dynamic number of WebViews. sorry for any wasted keystrokes along the lines of *don't* do this hi all, I'm getting fairly regular crashes using WebView's in the underlying C code

[android-developers] How to show a dialog in thread.run()

2009-09-21 Thread Jason Proctor
you can do this with a very long-running AsyncTask which causes dialogs to be shown via the reportProgress() mechanism. i know i sound like a stuck record, but AsyncTask is very well thought out. props. Hello, One thing that you'll need to make sure to do is run this code on the UI thread.

[android-developers] Re: WebView - disallow breaking out

2009-09-21 Thread Jason Proctor
do you have a WebViewClient installed in this WebView instance? (personally i think that WebView should follow redirects, as that's usually the intent of the user/caller, but defeating the default behaviour ain't so bad, so...) I'm using WebView#loadUrl() to load page inside my app.

[android-developers] OpenGL 2D Game Framework

2009-09-21 Thread Jason Proctor
IMHO, this purpose would be better served by adopting a more liberal library type licence like LGPL or Mozilla. full GPL puts a lot of people off, for reasons already covered. Thanks for the suggestions guys, really appreciate it. I've had dozens of suggestions and thankyou's emailed in

[android-developers] WebView - disallow breaking out

2009-09-21 Thread Jason Proctor
is that the WebView is handling the redirect as a click on a link, and going through the installed WebViewClient. suboptimal, IMHO. Jason - I do want to redirect. What I also want is to stay in the original WebView window, right now it starts there but then app pops- up mobile browser and page

[android-developers] Re: Android Toast Duration

2009-09-20 Thread Jason Van Anden
I was hoping I could simply apply the theme in xml rather than have to create an Activity and apply it in onCreate. Thanks for clearing that up. Jason On Sat, Sep 19, 2009 at 3:08 PM, Dianne Hackborn hack...@android.com wrote: (Btw, Api demos has one or two examples of creating custom themed

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Jason Van Anden
example. Thank You, Jason On Thu, Jul 23, 2009 at 8:17 AM, Mohamed Amir mohamed.a...@gmail.com wrote: Is there a way to make the Toast last for longer time? I have tried this code                        Toast t = new Toast(this);                        View v = View.inflate

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Jason Van Anden
I am close to sorting this out ... I will post my code when I know I got it. There are a few threads on this topic that offer advice where an example would be more useful (IMHO). j On Sat, Sep 19, 2009 at 12:11 PM, Jason Van Anden jason.van.an...@gmail.com wrote: On Thu, Jul 23, 2009 at 6:34

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Jason Van Anden
: http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/ I sincerely hope that I am making a stupid, obvious mistake. Thank You, Jason On Sat, Sep 19, 2009 at 1:25 PM, Dianne Hackborn hack...@android.com wrote: On Sat, Sep 19, 2009 at 9:47 AM, Jason Van Anden

[android-developers] save new file into asset directory from app

2009-09-18 Thread Jason Proctor
i had all kinds of trouble trying to get WebKit to load local resources, and implemented my own content provider to deal with some kinds of content: URLs. i ran into issues even then, and eventually had the content provider cache stuff from my assets directory in /sdcard. hth Hi Mark, I

[android-developers] Trying to get Javascript on Android

2009-09-18 Thread Jason Proctor
yes indeed. we've scaled back a lot of the Javascript in our embedded WebViews due to performance issues. jQuery works fine for us, though, in places where it's necessary. I think a lot of developers, especially ones from the web world, forget that these mobile devices are like desktop

[android-developers] setting margins for ListView entries

2009-09-18 Thread Jason Proctor
i'm having a little trouble getting a ListView with custom views in it to look right, i wonder if i'm missing something basic. i'd like the scrollbar for the ListView to remain at hard right, but the actual view items to be inset inside the view frame. padding adds space inside the item view

[android-developers] save new file into asset directory from app

2009-09-18 Thread Jason Proctor
fighting with WebView. On Sep 18, 10:41 am, Jason Proctor jason.android.li...@gmail.com wrote: i had all kinds of trouble trying to get WebKit to load local resources, and implemented my own content provider to deal with some kinds of content: URLs. i ran into issues even then, and eventually had

[android-developers] Re: WebView.loadDataWithBaseURL bug

2009-09-18 Thread Jason Proctor
you probably want to set the web view client before calling any variant of load(). there are some strange things associated with loadDataWithBaseURL() and base URLs, search the archives. sometimes the WebView loads the base URL instead of the provided data, i've never really got to the

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-09-17 Thread Jason Proctor
and discovered that the BitmapFactory.decodeResource method now performs scaling based on screen density. wtf? IMHO decodeResource() shouldn't make any assumptions on usage. -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: handling expensive operations in the UI thread - posting result from worker thread to UI thread

2009-09-16 Thread Jason Proctor
i'd do this with an AsyncTask and use the progress reporting feature to communicate state to the UI thread. AsyncTask ftw! OK I'm reading this page: http://developer.android.com/guide/appendix/faq/commontasks.html#threading The code is as in the example (see below). In my application, the

[android-developers] Re: ?? HttpHostConnectException: Connection to http://127.0.0.1 refused ??

2009-09-15 Thread Jason Proctor
if the apache server is running on the computer that's running the emulator, then you need to use the 10.0.2.2 address rather than localhost/127.0.0.1. the latter refers to the emulator itself in this case. of course, if you really are running a server on the emulator, then you have a

[android-developers] Re: Android 1.6 SDK is here!

2009-09-15 Thread Jason D. Clinton
On Sep 15, 5:22 pm, Xavier Ducrohet x...@android.com wrote: http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here... Thank you. Where is the ADP1 image? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: ADC2 entries so far...

2009-09-14 Thread Jason Van Anden
You forgot BubbleBeats (in Entertainment)! http://www.bubblebeats.com Jason Van Anden On Sun, Sep 13, 2009 at 1:12 PM, Mobidev android.mobi...@gmail.com wrote: Its mid September and ADC team will soon launch the ADC 2 judging application. So far its been a great job by the ADC team

[android-developers] ArrayAdapter.add() within a TimerTask

2009-09-14 Thread Jason Proctor
discover AsyncTask and your worries will be over :-) i do all my async stuff with it now. problem solved. Again, I found the solution before the post made it through moderation. Anyway, the workaround I found was to use a android.os.Handler and use the postDelayed() function within it. If

[android-developers] intent filter issue

2009-09-14 Thread Jason Proctor
hey i was hoping for some guidance on an intent issue. my app has three main components -- a regular main/launch one which handles most of the functionality, a broadcast receiver which listens for phone state, and a view activity which shows stuff when the phone rings. the phone rings, the

[android-developers] intent filter issue

2009-09-14 Thread Jason Proctor
management that one needs to do with notifications, and there are a number of approaches you can take there depending on the semantics you want. On Mon, Sep 14, 2009 at 2:37 PM, Jason Proctor mailto:jason.android.li...@gmail.comjason.android.li...@gmail.com wrote: hey i was hoping for some guidance

[android-developers] Activity Vs View

2009-09-11 Thread Jason Proctor
for me the activity granularity is where functionality can be broken down to discrete tasks. is this piece of the program standalone? does it have defined inputs and outputs that could be used by other activities? etc. Generally speaking, it's better to design for simplicity and

[android-developers] Re: Broadcast Receivers help

2009-09-11 Thread Jason Proctor
officially, you can't replace the stock call UI. however, i've discovered that if your receiver hangs out for a bit before starting your UI activity, then you can displace the stock UI. it's quite funny, you see the system obligingly slide the stock one out of the way and bring in the new

[android-developers] Broadcast Receivers help

2009-09-11 Thread Jason Proctor
well you could Thread.currentThread().sleep(period) #hack :-) So, your saying use something like a wait(); statement? Since I really don't do much before running the activity, all is done in services before hand On Sep 11, 2:49 pm, Jason Proctor jason.android.li...@gmail.com wrote

[android-developers] Re: Security framework available on android??

2009-09-10 Thread Jason Proctor
sudeep -- posting massively general questions like this to the android dev list is probably not going to get you anywhere. if you're looking to develop a secure client for Android, you'd be best off coming up with a list of requirements for what that application is actually supposed to do.

[android-developers] Re: Linking Directly To An App In The Market?

2009-09-09 Thread Jason Van Anden
Was this ever resolved. I am looking to link to the Market from my webpage - ie: someone visits my webpage, I tell them to download from the market ... how exactly? Do I tell them to just do a search when they get there? Jason Van Anden http://www.bubblebeats.com On Tue, Feb 24, 2009 at 3:17

<    2   3   4   5   6   7   8   9   10   11   >