[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 >a

[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 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 with sticking

[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 >wrote: &

[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 on

[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 >maintaina

[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. t

[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

[android-developers] question about viewgroup margins

2009-09-08 Thread Jason Proctor
same stuff i am. wtf??) >What is top_view? > >On Thu, Sep 3, 2009 at 2:12 PM, Jason >Proctor wrote: >> >> sorry - i thought that mentioning i'd tried setPadding() and >> MarginLayoutParams was enough to give an idea of what the code looked >> like.

[android-developers] How to display a local file in the browser?

2009-09-08 Thread Jason Proctor
this is excellent news! this has always been a mega-pain to work around. thanks j >local file access from the browser will be available in one of the >upcoming sdk releases. thanks! > >2009/9/8 riosalado <miaowe...@gmail.com> > >Hi Megha, > >Could you provide more

[android-developers] Sending Email

2009-09-08 Thread Jason Proctor
>Only if you include your own SMTP code. ACTION_SEND will always prompt >the user, at least if they choose one of the built-in apps. did we ever get to the bottom of why JavaMail doesn't work on Android? some Dalvik translation problem IIRC -- jason.vp.engineering.particle --~--~-~--~

[android-developers] WebView : can we select text in Java ?

2009-09-08 Thread Jason Proctor
>You can use loadUrl() with "javascript:" URLs. ah yes good point, j'ai l'oublier. can't get results that way, but i suppose something called via addJavascriptInterface() could report results. >However, I don't know where you'd get the DOM ID, unless it was via >a call from Javascript >into J

[android-developers] Re: JDOM 1.1.1 could not load default SAX parser with android sdk-windows-1.5_r3

2009-09-08 Thread Jason Proctor
i never had any luck getting Xerces going on Android. too much weird stuff confusing the Dalvik translator. you can explicitly set the parser that the SAX stuff uses, but i don't remember the exact call right now. the default SAX parser on Android is the Apache Harmony one, again IIRC. >When

[android-developers] WebView : can we select text in Java ?

2009-09-08 Thread Jason Proctor
the regular WebKit has a method to run arbitrary javascript and return any results. if you gave the text a DOM ID then you could select it via this method. unfortunately it looks like the Android interface to WebKit doesn't include this facility. >make it a DOM node than its possible as most

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-08 Thread Jason Van Anden
first - there is a slight paradigm shift involved. Feedback appreciated. Thank You, Jason Van Anden http://www.bubblebeats.com On Tue, Sep 8, 2009 at 6:31 AM, Lee wrote: > > I posted earlier in this thread about my app Tasker. I've since had a > chance to > put up some mater

[android-developers] Using a hyperlink to do something

2009-09-04 Thread Jason Proctor
thing can be done. it's pretty straightforward. hth J >Jason, > >Thanks for the response. This is turning into a *thing* now. I'm >starting to think it can't be done or there is a serious bug in >Android that won't let it work. > >But my question now is,

[android-developers] question about viewgroup margins

2009-09-04 Thread Jason Proctor
-out won't work here for some reason. any help appreciated. j >What is top_view? > >On Thu, Sep 3, 2009 at 2:12 PM, Jason >Proctor wrote: >> >> sorry - i thought that mentioning i'd tried setPadding() and >> MarginLayoutParams was enoug

[android-developers] Re: Integrate with "Share" menu from Gallery

2009-09-04 Thread Jason Proctor
i do exactly this and i get the URI as such -- Uri contentURI = (Uri) extras.get ("android.intent.extra.STREAM"); works reliably for me. hth >Hello, I hope you will read this question, because this problem is >driving me crazy: > >It's about the Gallery application. I've registered my applica

[android-developers] screen orientation not honoured when called from "share" ?

2009-09-04 Thread Jason Proctor
i set screenOrientation to "portrait" inside my , and usually this keeps things pointing the right way. however, i allow users to share pics & videos via the "share" menu in the various Camera apps etc, and it seems like if the host app is in landscape, then orientation doesn't change back to

[android-developers] WebView data caching

2009-09-03 Thread Jason Proctor
> >On Sep 2, 4:07 pm, Jason Proctor >wrote: >> the loadData() methods don't enter anything into the history and >> rather more awkwardly don't set the current URL. so if you call >> loadData() and then getUrl() you'll find that they don't match up.

[android-developers] question about viewgroup margins

2009-09-03 Thread Jason Proctor
ew? > >On Thu, Sep 3, 2009 at 2:12 PM, Jason >Proctor wrote: >> >> sorry - i thought that mentioning i'd tried setPadding() and >> MarginLayoutParams was enough to give an idea of what the code looked >> like. >> >> // assuming >> ViewGr

[android-developers] question about viewgroup margins

2009-09-03 Thread Jason Proctor
, Sep 3, 2009 at 12:00 PM, Jason >Proctor wrote: >> >> anyone? this is a fairly simple thing to want to do, and the >> documented ways of doing it don't work. do i log a bug? >> >> >> >>>hey -- i'm programmatically adding views to a LinearL

[android-developers] Re: question about viewgroup margins

2009-09-03 Thread Jason Proctor
anyone? this is a fairly simple thing to want to do, and the documented ways of doing it don't work. do i log a bug? >hey -- i'm programmatically adding views to a LinearLayout inside a >ScrollView and i'm running into some issues setting margins and >padding etc for child views of the Linea

[android-developers] Re: Using a hyperlink to do something

2009-09-03 Thread Jason Proctor
i'm not sure whether this is possible in a TextView, but in a WebView, you can override the handling of clicks on URLs and do pretty much whatever you like. check out WebViewClient.shouldOverrideUrlLoading(). >Is it possible to use a hyperlink in android to do something other >than open a we

[android-developers] Re: WebView data caching

2009-09-02 Thread Jason Proctor
the loadData() methods don't enter anything into the history and rather more awkwardly don't set the current URL. so if you call loadData() and then getUrl() you'll find that they don't match up. it's not really clear what WebKit is supposed to do in these circumstances, but i think as a minim

[android-developers] question about viewgroup margins

2009-09-02 Thread Jason Proctor
hey -- i'm programmatically adding views to a LinearLayout inside a ScrollView and i'm running into some issues setting margins and padding etc for child views of the LinearLayout. i've tried child.setPadding() and adding the view with a MarginLayoutParams set up right, but the child view stil

[android-developers] Re: Publishing Upgrades on Android Market ... Still Relevant?

2009-08-31 Thread Jason Van Anden
this question please? >> >> On Aug 29, 8:46 am, Jason Van Anden wrote: >> >> >> >> > Are the docs on the Developer site regarding Publishing out of date? >> > In other words, is the Market still considered Beta and do users >> > actually need

[android-developers] Publishing Upgrades on Android Market ... Still Relevant?

2009-08-29 Thread Jason Van Anden
Are the docs on the Developer site regarding Publishing out of date? In other words, is the Market still considered Beta and do users actually need a web service to compare their versions with so they can query the Market for updates? This is what is on the Android Developer site: http://develop

[android-developers] Re: How to launch VideoCamera Activity and then read tge file created?

2009-08-28 Thread Jason Proctor
ok so i tried this approach too, and got it to work. call getData() off the incoming intent and that's the URI to the recorded file. hth >Hi, > >I am launching the VideoCamera activity from my main activity but not >able to get a callback to read the file created. Does anyone have an >example

[android-developers] zero SIZE and DURATION for video?

2009-08-27 Thread Jason Proctor
our app restricts the size of video uploads and i was hoping to advise the user that the length of video selected was bad *prior* to upload, rather than having them wait for an error message. SIZE is documented as the length of the file, and DURATION as the length of the video in milliseconds,

[android-developers] extension -> mime type mapping

2009-08-27 Thread Jason Proctor
is there an Android resource for this? i'm using URLConnection.getFileNameMap() but it seems that the droid implementation has nothing in there. tx -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[android-developers] java question

2009-08-26 Thread Jason Proctor
works ok for me. Class theClass = Class.forName ("com.company.whatever..."); Method method = theClass.getMethod ("main", new Class...); method.invoke (...); of course the class has to be visible to the activity - "in the class path" as it were. just like a regular VM. Java wouldn't be much of

[android-developers] Download file from server

2009-08-25 Thread Jason Proctor
well i don't know then. that code works for me here. if you like, you can direct-message me the hostname and user/pw etc and i can try it here. >Yes I can. > >On Aug 26, 1:57 am, Jason Proctor >wrote: >> can you connect to that server using the command line? >

[android-developers] Download file from server

2009-08-25 Thread Jason Proctor
net.URL.openStream(URL.java:674) >08-26 01:50:28.038: WARN/System.err(4963): at >com.ska.connectServer.download_me(connectServer.java:133) >08-26 01:50:28.048: WARN/System.err(4963): at >android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: >1123) >... > >T

[android-developers] Download file from server

2009-08-25 Thread Jason Proctor
ok. looks like the dalvik vm found a piece of java bytecode it didn't like. this can happen with some java compilers. one solution is to compile the FTP library yourself, if the source is available. HOWEVER another is to use plain old URL.openStream(), like this - InputStream is = null; F

[android-developers] Download file from server

2009-08-25 Thread Jason Proctor
gives. I think >thhere are some limitations and I want to learn what are possible >problems. > > >On Aug 26, 12:35 am, Jason Proctor >wrote: >> some people on this list are clever, but they're not mind-readers. >> >> polite request to posters

[android-developers] Re: Download file from server

2009-08-25 Thread Jason Proctor
some people on this list are clever, but they're not mind-readers. polite request to posters: POST ALL THE ERROR INFORMATION YOU CAN. thanks. >Hi I am tryin to connect server and download file from server. Here is >my code > > >Ftp ftp = new Ftp("hostname","user","password"); > t

[android-developers] Re: How to launch VideoCamera Activity and then read tge file created?

2009-08-25 Thread Jason Proctor
i've never tried this approach, but an alternative could be doing a query on the video media content provider and sorting by descending insert time. (offhand i can't remember the name of the column, but it's there in MediaColumns somewhere.) hth >Hi, > >I am launching the VideoCamera activity

[android-developers] Re: Please, some layout help.

2009-08-25 Thread Jason Van Anden
I recommend using DroidDraw ...compare how it does what you are trying to do OR paste your code into it and try tweaking. http://www.droiddraw.org/ Jason Van Anden BubbleBeats, LLC http://www.bubblebeats.com On Tue, Aug 25, 2009 at 6:17 AM, Jiri wrote: > > Hello list, > > i think

[android-developers] pass data to new activity

2009-08-24 Thread Jason Proctor
the API details are all there in the SDK docs. the list isn't here to write your application for you. http://developer.android.com/reference/packages.html also i'd recommend reading up on activities and intents in general. that's how Android works. you need to know this stuff. hth >can you

[android-developers] Re: SD Card file name.

2009-08-21 Thread Jason Proctor
android.os.Environment.getExternalStorageDirectory() IIRC. >Is there way, from the emulator, to get the SD Card file name / path? > -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "And

[android-developers] Re: WebView opening browser

2009-08-19 Thread Jason Proctor
the default WebViewClient opens links in a browser window. if you install a new one with setWebViewClient(), you can override this behaviour. >Morning all, > >Can someone shed some light on why a inline webview into which I pass >a URL is now opening a browser session for the URL instead of >

[android-developers] Canvas.drawBitmapMesh() with colour takes forever?

2009-08-18 Thread Jason Proctor
seems like adding a colour transform to drawBitmapMesh() incurs quite a performance penalty. in my case, i'm transforming a full-screen image with a 20x20 mesh, and the difference is 550ms versus 100ms. wow. is there a way round this? or a better way of doing colour space transforms? thanks -

[android-developers] Re: Flash-style Mask in 2D Graphics

2009-08-18 Thread Jason Proctor
you can do this with the Canvas.drawMesh() thing, but i doubt it's the best way to do it. you might be able to implement a custom MaskFilter? >I'm trying to figure out how to draw a bitmap to the canvas in such a >way that only part of it is actually drawn. The part that would be >drawn corre

[android-developers] Re: Can I Hide native phone app GUI when incoming call comes

2009-08-18 Thread Jason Proctor
there was a thread on this subject a while back and the authoritative answer from Dianne was that the native phone UI can not be changed or overridden. >Hi, > >I am developing a phone application with my own GUI , I want to >receive incoming call event. >I am able to receive it using Broadcas

[android-developers] Video with MediaRecorder

2009-08-17 Thread Jason Proctor
yeah you probably want to capture to /sdcard/ /videotest.3gp most definitely is not writable to a regular android app! other than that your code is pretty much the same as mine. >Hi Jason, perhaps you could help me with my code. I was trying to >capture video for two weeks now w

[android-developers] Multi-touch

2009-08-17 Thread Jason Proctor
output of toString()? You are >setting yourself up to break in the future.) > >On Mon, Aug 17, 2009 at 12:44 PM, Jason Proctor ><<mailto:jason.android.li...@gmail.com>jason.android.li...@gmail.com> >wrote: > > >update: i'm not seeing the x2 and y2 coordin

[android-developers] Multi-touch

2009-08-17 Thread Jason Proctor
update: i'm not seeing the x2 and y2 coordinates in event.toString(), at least on a release cupcake kernel. maybe the guy was using an older kernel, with residual code following the (presumed) removal of the multitouch stuff? (and this now gels with the other multitouch hack, which is a relief

[android-developers] Multi-touch

2009-08-17 Thread Jason Proctor
the page works for me. the upshot is that MotionEvent.toString() includes dumps of x2 and y2 which are the last coordinates of the second touch point. slight complication is that they are not reset on a single touch event so a client would have to track them and detect a new multitouch event

[android-developers] AlphaAnimation not working! Help!?

2009-08-14 Thread Jason Proctor
i think it's something to do with animating out of your activity to a window you don't control. i recently asked a simple question about whether this was possible and the answer was no. you might be running into that. >And >alphaAnimOUT.setDuration(1000); > > -- jason.software.particle --

[android-developers] AlphaAnimation not working! Help!?

2009-08-14 Thread Jason Proctor
do you set a duration for the animation? >Little more detail: > >I have attached an animation listener and I can see that on start and >on end animation are being triggered properly but still nothing >happens visually except that I see the screen barely flickering... > -- jason.software.partic

[android-developers] Regarding the Java Version

2009-08-14 Thread Jason Proctor
on the Mac, it's more than an environment variable. you have to select the Java preference order in the control panel. ISTR that the version can be requested on an individual application basis, though i'm not sure that's possible for command line stuff like ant etc. on a Linux machine, setti

[android-developers] cancelling pending Toasts

2009-08-13 Thread Jason Proctor
i'm writing an application that demonstrates various gesture algorithms, and Toast after each one is detected. of course if the user goes all hogwild then the Toasts back up. can i flush the Toast queue somehow? tx -- jason.software.particle --~--~-~--~~~---~--~--

[android-developers] IOException while reading a raw resource.

2009-08-13 Thread Jason Proctor
for the full file. > >If I do two sequential one byte reads it's fine... but a single 2 byte >read (using read(byte[])) it throws the exception. The exception is >thrown by AssetManager.readAsset. > >On Aug 13, 2:09 pm, Jason Proctor >wrote: >> why is there a 1mb

[android-developers] IOException while reading a raw resource.

2009-08-13 Thread Jason Proctor
why is there a 1mb file limit in this case? and is the restriction 1mb in the amount of stuff read, or in the size of the file? could you maybe open the file, skip a megabyte, then continue to read the second megabyte? >1048576 is the file limit >If you have bigger file split it -- jason

[android-developers] how to get notified(or Listen) for the changes in SD card

2009-08-13 Thread Jason Proctor
alternatively, the regular java File class has a lastModified() method. you could run a Service which has a Timer of some sort and then messages your activity when the mod time on the appropriate directory changes. >You might want to look at the following java libraries and see whether >you

[android-developers] Re: can someone help with hello world?

2009-08-12 Thread Jason Proctor
might i politely suggest the android-beginners list for this question? good luck :-) >well, i am a noob at java.. so i decided to start at the android dev >guide and go through their tutorials. naturally i started with this >one: http://developer.android.com/guide/tutorials/hello-world.html. i

[android-developers] Video with MediaRecorder

2009-08-12 Thread Jason Proctor
. > Hi Jason. > What do you mean with "my own MediaRecorder code"? > > >On Jul 17, 11:50 am, Jason Proctor >wrote: >> if you're using the camera on the emulator, then you have to disable >> auto orientation changes to get it to work. at least,

[android-developers] Running linux commands from java code

2009-08-12 Thread Jason Proctor
IMHO, much better to do this from Java with File.listFiles() much fewer clock cycles die this way :-) >Runtime.getRuntime().exec("ls -a"); > > >-- >Roman Baumgaertner >Sr. SW Engineer-OSDC >·T· · ·Mobile· stick together >The views, opinions and statements in this email are those of the >author

[android-developers] WHY is there a NULL POINTER EXCEPTION? Been confusing me for a while.

2009-08-11 Thread Jason Proctor
i have this problem quite a lot -- how to get context when off in some callback somewhere. usually i arrange to pass a context in as a construction parameter and then provide that for the calls that need it. works for me! g'luck j >Jason, thanks a lot, it turns out the context

[android-developers] WHY is there a NULL POINTER EXCEPTION? Been confusing me for a while.

2009-08-11 Thread Jason Proctor
Never heard of a finally block... it sounds like it isn't getting >called, i'll look into adding this. > >I'm positive filename & contents aren't null. > >On Aug 11, 4:44 pm, Jason Proctor >wrote: >> what is line 39 in your source file? >> >

[android-developers] Re: WHY is there a NULL POINTER EXCEPTION? Been confusing me for a while.

2009-08-11 Thread Jason Proctor
what is line 39 in your source file? are the filename and contents non-null? btw, i'd recommend closing the output stream writer in a finally block. finalizers aren't guaranteed to get called. >I have two methods, one reads files and one writes the given string to >a file. >For some reason,

[android-developers] inter-activity animations

2009-08-10 Thread Jason Proctor
is it possible to override "system" transitions such as desktop->activity, activity->dialog, etc? thanks much -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] action.SEND activity leaking windows?

2009-08-10 Thread Jason Proctor
i have an activity which implements action.SEND so that it gets listed in the Camera "share" menu. the activity basically does some authentication then does an HTTP upload of the item being shared. the authentication & upload operations are performed by AsyncTasks, and in each i show and hide

[android-developers] AsyncTask reuse

2009-08-10 Thread Jason Proctor
asks/etc) in the >java.util.concurrent package. > >On Aug 7, 2:02 pm, Dianne Hackborn wrote: >> If you don't like it, use your own Thread or the slightly higher-level >> HandlerThread and implement the semantics you want. >> >>

[android-developers] AsyncTask reuse

2009-08-07 Thread Jason Proctor
i'm fine with the single running instance model. not so much the totally unreusable model, which is the one followed by AsyncTask. java.util.Timer is the same way, but that's no excuse for imitation ;-) > there is a difference in "can be used only once" and "single >running instance is allo

[android-developers] Tracking Pointer Events in Android Browser

2009-08-07 Thread Jason Van Anden
work around (or determined that this was impossible and gave up)? Thank You, Jason Van Anden http://www.smileproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

[android-developers] PackageManager ComponentInfo error getting assets?

2009-08-06 Thread Jason Proctor
ponent in your own class, just use new >ComponentInfo(getContext, MainBarf.class). > >On Thu, Aug 6, 2009 at 4:52 PM, Jason Proctor ><<mailto:jason.android.li...@gmail.com>jason.android.li...@gmail.com> >wrote: > > >replying to myself here. > >if i make

[android-developers] Re: PackageManager ComponentInfo error getting assets?

2009-08-06 Thread Jason Proctor
replying to myself here. if i make the ComponentInfo with getContext() and the full name of the class, then the PackageManager does not barf getting resources for it. however, if i use discrete package name & component name, eenoworkee. example (works) info = new ComponentInfo (getContext ()

[android-developers] AsyncTask reuse

2009-08-06 Thread Jason Proctor
mes per second so the GC will >be just fine. > >On Thu, Aug 6, 2009 at 4:00 PM, Jason >Proctor wrote: >> >> is it true that AsyncTasks can only be executed once? IMHO they >> should be reusable, one-use classes just give the GC m

[android-developers] AsyncTask reuse

2009-08-06 Thread Jason Proctor
is it true that AsyncTasks can only be executed once? IMHO they should be reusable, one-use classes just give the GC more of a job. -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Androi

[android-developers] programmatic screenshot

2009-08-06 Thread Jason Proctor
ls guys can say more, but right now it looks like this device isn't available to regular SDK apps. >Sorry to be slow, but I thought the code I posted IS trying "/dev/ >graphics/fb0" and not "/dev/fb0". What am I missing? > > >On Aug 6, 10:53 am, Jason Proc

[android-developers] PackageManager ComponentInfo error getting assets?

2009-08-06 Thread Jason Proctor
my application caches static resources in its /assets directory and implements a content provider to provide them to a WebView on request. i kinda have to drive around the houses a bit because it seems i can't get a linear file descriptor on an asset, i get "this resource is zipped" or somesuc

[android-developers] programmatic screenshot

2009-08-06 Thread Jason Proctor
on my machine at least, fb0 is in /dev/graphics, rather than /dev. you might try that... >I noticed that in the native code, the way they capture the >framebuffer data is by calling "int fb = open("/dev/graphics/fb0", >O_RDONLY);" > >I tried to do that with Java, by calling "File f = new File("/

[android-developers] MIDI Support in Android 1.5 SDK

2009-08-06 Thread Jason Scharf
I am lost as to what route I should take, or if this is even currently feasible in the SDK code + Dalvik. Cheers, Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

[android-developers] Why is it Giving Out Put Twice

2009-08-05 Thread Jason Proctor
what's the value of c.getCount() after the getAllRows() call? >no no Nelissen , you missed the first field of the out put . It's >the same id number that's repeated. >1 "12c/2",",","India","Kolkata" >2 "227",",","India","Kolkata" >1 "12c/2",",","India","Kolkata" >2 "227",",","India","Kolkata"

[android-developers] ddms auto-clearing log

2009-08-04 Thread Jason Proctor
sorry if this is a FAQ, i don't see it anywhere. why does Mac ddms get itself into this auto-log-clearing mode every now and again? i get max 4 lines or so of log before it decides to zap it. can't imagine why anyone would want that functionality when there's a handy "zap log" widget right the

[android-developers] Soft keyboard - full alpha-numeric, but defaulting to numbers

2009-08-03 Thread Jason
For cases where you know a user is likely to enter a number before characters, is it possible to set an EditText View's soft keyboard/IME default to the "numbers input" yet still retain all it's alpha-numeric capabilities? I can get the keyboard to automatically shift to the numbers input by sett

[android-developers] Re: Images not loading on the phone

2009-08-03 Thread Jason
Pulkit, I had a similar problem. It seems that BitmapFactory silently fails (returning null) when BufferedInputStream blocks while fetching from the connection (I think). If the BufferedInputStream is coming from an SD source, it works because it doesn't block (I think). The solution for me was

[android-developers] Canvas + Bitmap + ColorMatrixFilter is great. How to SAVE the bitmap?

2009-08-03 Thread Jason Proctor
the problem i think is that the filters and transforms and all that are done in native code, then that code writes to the frame buffer. getting that stuff back and turning it into a java Bitmap would be expensive. can you draw into an offscreen bitmap somehow? ISTR something being possible al

[android-developers] Re: everyone likes compliments :*)

2009-07-31 Thread Jason Proctor
:-) ah the subtleties of spelling... >Step 7 of exercise 3 in the Notepad Tutorial at > >http://developer.android.com/guide/tutorials/notepad/notepad-ex3.html > >mentions that "onPause() and onResume() are also complimentary >methods." Sadly, when they ran, I didn't receive any. > >- Greg

[android-developers] how to arrange for onNewIntent() ?

2009-07-29 Thread Jason Proctor
>Jason Proctor wrote: >> i have two activities, the first accepts some user input and sets the >> second's configuration to do stuff. the droid way of doing this, >> correct me if i'm wrong here, is to set the configuration in the >> intent using putExtra

[android-developers] how to arrange for onNewIntent() ?

2009-07-29 Thread Jason Proctor
i have two activities, the first accepts some user input and sets the second's configuration to do stuff. the droid way of doing this, correct me if i'm wrong here, is to set the configuration in the intent using putExtra() and then override onNewIntent() to pick up the new intent each time. o

[android-developers] Canvas.drawBitmapMesh()

2009-07-28 Thread Jason Proctor
i'm using Canvas.drawBitmapMesh() to warp images and the like but i'm not 100% sure what's going on with the transform. can someone point me to a primer on this? Googling for various things hasn't brought anything up. thanks much -- jason.software.particle --~--~-~--~~-

[android-developers] Re: Unicode characters via resource element

2009-07-28 Thread Jason Van Anden
Is no one biting because I used "no avail" twice? On Mon, Jul 27, 2009 at 1:21 PM, Jason Van Anden wrote: > I posted this in beginner to no avail. Perhaps this is one for developers > ... > > I want to use unicode characters in a toast. I can do this via code. > &

[android-developers] Unicode characters via resource element

2009-07-27 Thread Jason Van Anden
no avail: No Title \u2639 If you know the answer - pls correct! Thank You, Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Re: SurfaceView speed optimization suggestions (or just kick it up to openGL)?

2009-07-23 Thread Jason Van Anden
It is not b/c of the GC. Garbage does accumulate ... but I am triggering the GC to clear after the easing finishes. Jason On Thu, Jul 23, 2009 at 2:58 PM, MrChaz wrote: > > Are your hiccups being caused by the GC firing? A quick look at > Logcat should tell you if it is. > >

[android-developers] SurfaceView speed optimization suggestions (or just kick it up to openGL)?

2009-07-23 Thread Jason Van Anden
bitmap before engaging my scrolling/easing and move the bitmap instead of adjusting the graphics. Feedback super appreciated. Thank You, Jason Van Anden http://www.smileproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: CacheManager Example

2009-07-22 Thread Jason Proctor
CacheManager is a WebKit thing, not an Apache HttpClient thing. AFAIK, HttpClient has no automagic caching. if you want to cache results, you'll have to do it manually. this may turn out to be a blessing :-) >Can anyone please provide a small example of the CacheManager in use. >I currently

[android-developers] animations constrained by transformations?

2009-07-22 Thread Jason Proctor
} > >Note that I have plans for a much more flexible animation system in a >future version of Android. > >On Wed, Jul 22, 2009 at 11:44 AM, Jason >Proctor wrote: >> >> using the stock animation system, it looks like i'm constrained in >> behaviour by t

[android-developers] animations constrained by transformations?

2009-07-22 Thread Jason Proctor
using the stock animation system, it looks like i'm constrained in behaviour by the Transformation class. i'd like to animate by changing a mesh, can the system support this? -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because yo

[android-developers] Re: How to Speed up Animation

2009-07-22 Thread Jason Van Anden
I found the presentation super helpful as well ... after you watch it tho, refer to this ... http://developer.android.com/guide/practices/design/performance.html It covers most of the important points he makes. Jason Van Anden http://www.smileproject.com On Wed, Jul 22, 2009 at 12:03 PM, Roman

[android-developers] playing local 3gp video file causes PVMFErrNotSupported

2009-07-21 Thread Jason Proctor
probably want to make that a nice full file: Uri, perchance >You should specify the full path to the file, not just its name. > > >On Tue, Jul 21, 2009 at 1:58 PM, MannyNS wrote: >> >> Hi everyone, >> >> I plan to have a 3gp video file that will come with the installation >> package, it will

[android-developers] Re: test

2009-07-20 Thread Jason Proctor
i'm seeing your messages. if you have a gmail account, you most likely won't see your own posts back. this is because gmail thinks that any message sent from your account is its own cc: which it uses for conversation tracking. IMHO, gmail should *not* filter a message sent by the same address

[android-developers] Re: Can't open server socket on port 80 ?

2009-07-20 Thread Jason Proctor
>Hello ! > >Iwas developping an app which need to open serversocket. > >But, when i open one on poet 80, this throw a BindException :/ iven >with the INTERNET permission. >Open on other port work (ex: 8080). > >Does this mean android not allow me to use this socket ? > >Thank in advance :) ! > >PS

[android-developers] how to extract RAW HTML using WebView

2009-07-20 Thread Jason Proctor
>m8 wrote: >> Is there a way to get the RAW HTML using the WebView? > >Not that I am aware of. you could ask WebView for its current URL and then submit a request for that resource yourself. but this isn't guaranteed to work reliably. -- jason.software.particle --~--~-~--~~

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Jason Van Anden
Thanks for the feedback. Jason On Sat, Jul 18, 2009 at 9:40 PM, John Smith wrote: > 2009/7/19 Jason Van Anden > >> I need to zoom-in/zoom-out for my app. Multitouch would be the most >> obvious way to go about this *sigh*. >> > > No it's not the most obviou

[android-developers] Alternatives to Multitouch

2009-07-18 Thread Jason Van Anden
alternative approaches. A one fingered zoom? Thanks, Jason Van Anden --~--~-~--~~~---~--~~ 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@googlegro

[android-developers] Timer & TimerTask latency

2009-07-17 Thread Jason Proctor
seems like i'm running into some latency issues with the regular Java Timer and TimerTask classes. does Android have preferred classes for doing the same kind of thing? tx -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you ar

[android-developers] Android video and the browser

2009-07-17 Thread Jason Proctor
>I was under the impression the OP wasn't an Android developer. Click >handlers and MediaPlayers wouldn't be an option for somebody just trying >to make their Web site more Android browser-friendly. > >OTOH, I may have interpreted the OP incorrectly... no it's me that has it wrong. apologies to t

[android-developers] Re: Android video and the browser

2009-07-17 Thread Jason Proctor
is coming, hopefully soon. that's if Apple stop messing it up. until then, you can do this the long way round. install a click handler then when a link to your video fires, route off to your activity which plays the movie using MediaPlayer. not so much work. >This may not be the proper pla

<    3   4   5   6   7   8   9   10   11   >