[android-developers] Re: Server/Client in different machines

2009-07-17 Thread Jason Proctor
n Muhammad wrote: >thanks jason, > >i am able to connect but when i try to read data >from inputStream at server side i got exception >java.net.SocketException: Connection reset > >client: > >Socket socket = new Socket(SERVER_IP , 8626 ); >os = new DataOutputStream(soc

[android-developers] Video with MediaRecorder

2009-07-17 Thread Jason Proctor
if you're using the camera on the emulator, then you have to disable auto orientation changes to get it to work. at least, i picked this info off the network and it worked for me. i'm doing manual capture with my own MediaRecorder code, and remote capture with the vide capture intent, successf

[android-developers] WebView and HTTP Post requests

2009-07-16 Thread Jason Proctor
here's your problem, i think -- the getValue() method of the Apache Cookie class returns the value of the cookie, ie from jsessionid=blah would retrieve "blah" -- but -- the setCookie() method of the WebKit CookieManager class takes a parameter called "value", but it's referring to something

[android-developers] Server/Client in different machines

2009-07-16 Thread Jason Proctor
(did my previous post not make it? i don't see my posts so i can't tell. and list latency seems to be a random number again.) 10.0.2.2 is an emulator only alias. to connect to your computer from a real phone, you have to determine its DNS resolvable name or IP address and connect to that. t

[android-developers] Dose Android sdk 1.5 allow to create our own screen when a call is in or out

2009-07-16 Thread Jason Proctor
i've heard that the Google Voice client for Android does fruity things with the phone UI. i've not seen it yet though. has anyone here? >However, com.android.phone is an system class and will be the first >class to be loaded in the phone (before the home screen is been >loaded). That means it

[android-developers] Re: no route to host Exception on Socket

2009-07-16 Thread Jason Proctor
10.0.2.2 is an emulator-only alias to your computer. the address is not valid from a real device, unless the DHCP server is giving out addresses in that range. in order to connect to a server running on your computer from a real phone, you'll have to determine its name or IP address and connec

[android-developers] Dose Android sdk 1.5 allow to create our own screen when a call is in or out

2009-07-15 Thread Jason Proctor
if you bring up an Activity with UI when the phone state listener goes off, the call UI appears on top of it. you can hit the back button to get back to your Activity, but, again, there is no current way to override the call UI. you have to live with it for now. >Could i just intercept the i

[android-developers] Dose Android sdk 1.5 allow to create our own screen when a call is in or out

2009-07-15 Thread Jason Proctor
ISTR a response from Dianne not so long ago which said that the in-call experience is not currently changeable via the Java API. so in other words you'd have to modify the native parts of Android (the firmware) and then ship your own Android distribution. probably more work than you want to ta

[android-developers] how to find out the percentage of memory used by each process in the android

2009-07-15 Thread Jason Proctor
i've not looked at the NDK, but would it be possible to JNI to the regular Linux process APIs? >You could run the top command in the adb shell. The command comes with >busybox. > >The memory information include: >Statistics on memory usage, including total available memory, free >memory, used

[android-developers] Unable to write text file to sdcard on physical G1 device

2009-07-15 Thread Jason Proctor
making a File object does not create the actual file. usually it's created with a FileOutputStream or File.createNewFile() or somesuch. as always, reading the docs pays dividends :-) also i'd recommend writing some little Java command line programs to get the feel of things. that way you do

[android-developers] Re: Content rendering for WebView

2009-07-15 Thread Jason Proctor
>Hi > >Can anyone help me to understand how WebView decided which content it >can render and which it can't? For example I am inside a webview >select a link and if the link sends an XML file I want my application >to handle to data instead of WebView, > >Is this possible? > >Thanks, > >-Amit ins

[android-developers] WebView and HTTP Post requests

2009-07-15 Thread Jason Proctor
future WebKit HTTP requests. i have more confidence that this will work than the other way round. >But how does that help you get the cookie from a POST response and >then set the cookie on the WebView.? I can't find anyway to add a >cookie to a custom webview > >On Jul 15, 1:

[android-developers] WebView and HTTP Post requests

2009-07-15 Thread Jason Proctor
>DGupta wrote: >> So I'm attempting to connect to the Tumblr Dashboard using an HTTP >> Post. The Activity uses a WebView and I do an http post after creating >> the webview, but the redirect_to in the HTTP Post doesn't work with >> the WebView. I know my post works and isn't throwing errors,

[android-developers] content Uris built by Uri.Builder causing crashes

2009-07-15 Thread Jason Proctor
my app needs to edit Uris before presentation to ContentResolver and i'm seeing some weird behaviour with Uris built using Uri.Builder. here's some code. contentURI1 is built using the Builder -- Uri.Builder builder = new Uri.Builder (); builder.scheme ("content"); builder.authority (inURI.get

[android-developers] accessing local content from webview

2009-07-13 Thread Jason Proctor
i realise there's plenty of prior art around the network on this one, i'd like the official line if possible. i'm wondering why i can't reference static local content in a page which is coming in off the network. the specific situation i have is that my application's HTML depends on fairly hea

[android-developers] weird behaviour with WebView.loadDataWithBaseURL

2009-07-07 Thread Jason Proctor
i install a WebViewClient to intercept links using shouldOverrideUrlLoading(). i fetch the URL content myself, preprocess it, then feed it to the browser using loadDataWithBaseURL(). as the base URL, i use the original URL of the request. this mechanism has been working reliably for a while,

[android-developers] problem debugging /w eclipse

2009-07-04 Thread jason...@spy.net
I can no longer run/debug my application in eclipse, when I attempt to I get the following error in the console : Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES and this is in logcat.. E/PackageParser( 65): Package com.example.foo no certificates at entry assets/community_error.htm

[android-developers] Re: Attempting to pass data via NotificationManager - Seeking Help/Advice

2009-06-26 Thread Jason Van Anden
. I am a professional software engineer with around 20 years of experience. I was still stumped! A cookbook of examples using different launchModes may have helped me out in this case. Thank You, Jason Van Anden http://www.smileproject.com

[android-developers] Re: Attempting to pass data via NotificationManager - Seeking Help/Advice

2009-06-26 Thread Jason Van Anden
some additional details in case someone here does not go there ...from logcat ... Starting activity: Intent { comp={com.blah.blahs/com.blah.blahs.Blahs} (has extras) } << *** notice ... this is my intent called from the status bar *** startActivity called from non-Activity context; forcing Inte

[android-developers] Re: Attempting to pass data via NotificationManager - Seeking Help/Advice

2009-06-26 Thread Jason Van Anden
> If I understand you correctly, you just need to call Activity.getIntent > () within Activity.onCreate(). Thing is that onCreate does not get called. That activity starts, resume gets called. At the point when resume gets called the intent has changed from my intent with extras to the MAIN/LAU

[android-developers] Re: How can I give my paid app away for free to some users?

2009-06-18 Thread Jason Van Anden
+1 On Thu, Jun 18, 2009 at 1:52 PM, Anna PS wrote: > > Ah - that's a shame. Discount coupons would definitely be a nice > feature to have on the Market... > > On Jun 18, 12:06 am, Yuri Ammosov - Sadko Mobile > wrote: >> DO NOT REFUND. Refund UNINSTALLS the program. >> >> YA >> >> On Jun 17, 2:17

[android-developers] Re: Attempting to pass data via NotificationManager - Seeking Help/Advice

2009-06-17 Thread Jason Van Anden
ity gets called - fine - thing is that I want to have to get focus and then change based upon the info in extra. I cannot figure out where to receive the intent data in this situation. Thanks On Wed, Jun 17, 2009 at 9:18 PM, Jason Van Anden wrote: > I am stuck - or perhaps I am trying to do s

[android-developers] Attempting to pass data via NotificationManager - Seeking Help/Advice

2009-06-17 Thread Jason Van Anden
alled - but no sign of data (and I am frankly a little unclear as to where to retrieve it). If someone out there can either suggest something or tell me I am headed down a dead end I would be grateful. Thank You, Jason --~--~-~--~~~---~--~~ You received this message be

[android-developers] Re: How to force hierarchy change to PreferenceActivity?

2009-06-13 Thread Jason Parekh
The preference framework will refresh the UI when a preference has a UI-visible attribute changed, for example the summary. So, you can just do myPreference.setSummary(myPreference.getValue()) (assuming you want to show the selected item as the summary of the preference). On Fri, Jun 12, 2009 at

[android-developers] Re: httpclient multipart form upload

2009-06-09 Thread Jason Proctor
a kind soul has forwarded the jars on. community rules. -- 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

[android-developers] Re: httpclient multipart form upload

2009-06-09 Thread Jason Proctor
Urs Grob wrote -- HttpClient 4 doesn't have that included anymore. The upstream project didn't integrate it from the 3.x client. I had to do exactly the same today. Basically I solved it by including some additional jars: mime4j httpmime This question was already on the list and there's some bett

[android-developers] webview tel: URLs

2009-06-08 Thread Jason Proctor
(can someone respond if they see this? i don't seem to be able to subscribe reliably.) i'm noticing that the regular browser calls numbers when a tel: URL is clicked, but webviews embedded in applications don't - at least mine doesn't. i have the required permissions -- is there something els

[android-developers] build system issues

2009-06-04 Thread Jason Proctor
i started a thread on build issues a while back, and no longer have it available here. i remember a reply from Romain saying that ant handled dependencies. i don't think it does, and i know that javac doesn't do either. unless a .java file is itself dirty, it is not recompiled. i just tested

[android-developers] httpclient multipart form upload

2009-06-04 Thread Jason Proctor
i'm trying to do multipart form upload using the 4.x httpclient on android. all the 4.x code samples i'm seeing use org.apache.http.entity.mime.MultipartEntity, but i'm running into a roadblock trying to find it. it's supposed to be in the httpmime project, but the download link for that proj

[android-developers] Re: is upgrade to 1.5 safe???

2009-06-03 Thread Jason Van Anden
Now that I have been using it this AM - I must say ... sweet! The interface adjustments are great. j On Wed, Jun 3, 2009 at 11:39 AM, Mike Garcia wrote: > Yes.  I have had the OTA update now for over a week and it is working as I > would expect.  If you are developing in the Eclipse IDE and ha

[android-developers] Re: is upgrade to 1.5 safe???

2009-06-03 Thread Jason Van Anden
Just updated to it. So far so good. Jason Van Anden http://www.bubblebeats.com On Wed, Jun 3, 2009 at 11:29 AM, Mike Wolfson wrote: > > You will need to recompile your applications (make sure to switch the > project properties to target 1.5 release) before redeploying them to >

[android-developers] android alarm manager alarm

2009-06-01 Thread Jason Proctor
i thought this list had erratic delivery because each post had to be moderated...? -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Re: Help for decoding the camera data from the PreviewCallback

2009-05-26 Thread Jason Proctor
sorry man, the data from the camera preview is encoded in raw YCbCr from the camera hardware, it's not readable in any sensible time frame by anything available in the Android SDK. Sujay has the wrong end of the stick again, he's talking about the image that's captured when the camera actually

[android-developers] finding content providers

2009-05-26 Thread Jason Proctor
that's it -- thanks! >This might be what you want: > >http://developer.android.com/reference/android/content/pm/PackageManager.html#queryContentProviders(java.lang.

[android-developers] finding content providers

2009-05-25 Thread Jason Proctor
ntifies the provider >The names of the data fields you want to receive >The data types for those fields""" >this is frm ><http://developer.android.com/guide/topics/providers/content-providers.html>http://developer.android.com/guide/topics/providers/content-providers.

[android-developers] finding content providers

2009-05-25 Thread Jason Proctor
well, i thought the question was fairly clear :-) i don't want a list of the content, i want a list of the *providers*. >wat kinda content??? media or contacts or wat??? > >On Tue, May 26, 2009 at 10:46 AM, Jason Proctor ><<mailto:ja...@particularplace.com>ja...@

[android-developers] finding content providers

2009-05-25 Thread Jason Proctor
can i programmatically get a list of content providers extant on the system? tx -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send ema

[android-developers] i see the list has gone crazy again

2009-05-25 Thread Jason Proctor
anyone else seeing 100+ posts from thursday/friday/saturday etc just come down the pipe now? -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Whole lotta garbage collecting going on.... How do I find out what is being collected?

2009-05-25 Thread Jason Proctor
ing out stringSize and getChars from integer and >holding my own char[] for the converted int, is there a clean way to >handle that without new allocations? > >On May 25, 4:29 pm, Jason Proctor wrote: >> i think Mark is saying that you could redraw the score separately >> fro

[android-developers] Whole lotta garbage collecting going on.... How do I find out what is being collected?

2009-05-25 Thread Jason Proctor
i think Mark is saying that you could redraw the score separately from the label, potentially saving an implicit new StringBuffer (stuff).toString () ? if score is a number, then it will need to make a new String anyway. but you could cache the string of the score until the score changes, so

[android-developers] Android DOM implementation issues

2009-05-25 Thread Jason Proctor
now how it can be done. >Comments in DocumentBuilderFactory say that other configuration >possibilities are not implemented (yet?). > >For the SaxParserFactory it would be following property: >javax.xml.parsers.SAXParserFactory > >-- Urs > >On Fri, May 22, 2009 at 1:46

[android-developers] dexer inner class errors

2009-05-25 Thread Jason Proctor
cool, thanks for the response. i cranked the heap and i now get a build. i did see some other dexer errors -- [apply] [apply] trouble processing: [apply] bad utf-8 byte a0 at offset 0004 [apply] ...while parsing cst 00bf at offset 08dd [apply] ...while parsing cs

[android-developers] Re: onResume after NotificationShade Pulled

2009-05-24 Thread Jason Van Anden
Figured out something using onWindowFocusChanged. Don't know what I'd do without me! j On Sun, May 24, 2009 at 5:55 PM, Jason Van Anden wrote: > My activity does not seem to trigger onResume after the notification > shade is pulled down.  Anyone else have this problem (or had

[android-developers] onResume after NotificationShade Pulled

2009-05-24 Thread Jason Van Anden
My activity does not seem to trigger onResume after the notification shade is pulled down. Anyone else have this problem (or had and sorted out how to fix it)? Thanks, Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Android Loading listview items from service results in hang

2009-05-23 Thread Jason Proctor
>If I do this, then I lose the benefits of running it in the UI thread. >I want to hang my application until it gets these items, because if >not, my view with id="android:empty" shows up for a second, and that >looks ugly. > > >So put in another view, one that's not ugly. how about some kind of

[android-developers] dexer inner class errors

2009-05-22 Thread Jason Proctor
i'm getting a *lot* of this kind of error from the dexer when trying to use 3rd party libraries or even after compiling innocent-looking source. is this a problem with the dexer, or a problem with my JDK? i'm using - Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237) -

[android-developers] Android DOM implementation issues

2009-05-22 Thread Jason Proctor
27;t know how it can be done. >Comments in DocumentBuilderFactory say that other configuration >possibilities are not implemented (yet?). > >For the SaxParserFactory it would be following property: >javax.xml.parsers.SAXParserFactory > >-- Urs > >On Fri, May 22, 2009 at 1:46

[android-developers] Video with MediaRecorder

2009-05-22 Thread Jason Proctor
can you log the exception and post it? thanks. >I am trying to capture video with the same code above but it crash at >- recorder.prepare(); >cant track what is the problem, does anybody come across similar >problem ; any hint? > >On May 7, 11:50 pm, Jason Proctor wro

[android-developers] database table design problem

2009-05-21 Thread Jason Proctor
i think maybe you should read the DDL again. >There is something wrong with your database designing. >And you need to add a table storing note type. > >2009/5/22 Jason Proctor ><<mailto:ja...@particularplace.com>ja...@particularplace.com> > > >you basically

[android-developers] Re: database table design problem

2009-05-21 Thread Jason Proctor
you basically have a one (note) to many (note type) relationship. model this with two tables -- create table notes (id integer primary key); create table note_types (note_id integer references notes, type integer); to add a type to a note, insert into note_types. to find out whether a note is

[android-developers] Android DOM implementation issues

2009-05-21 Thread Jason Proctor
this already then I don't know how it can be done. >Comments in DocumentBuilderFactory say that other configuration >possibilities are not implemented (yet?). > >For the SaxParserFactory it would be following property: >javax.xml.parsers.SAXParserFactory > >-- Urs > >On Fri,

[android-developers] Android DOM implementation issues

2009-05-21 Thread Jason Proctor
>fix them upstream then ship a forked copy until a new Android >release re-merges, or use a different dom implementation. seems i'm up against it here too. i included a copy of the harmony DOM source in my Android project, and it builds fine, but at runtime it uses the regular one. is there a

[android-developers] Android DOM implementation issues

2009-05-21 Thread Jason Proctor
Harmony bugs and noncompliant behaviour logged as issue #2735. -- 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-deve

[android-developers] Speed: Divide by two or multiply by .5? - I wrote a little FPS performance tester to find out.

2009-05-21 Thread Jason Proctor
>Nitpick: char is effectively an unsigned short. while, IMHO, char != integer type, you can cast them, so you're right. >The InputStream.read() unsigned result has probably saved lots of >people from going insane. me, for one. >On a different note, I haven't yet decided if allowing bitwise >op

[android-developers] Android DOM implementation issues

2009-05-21 Thread Jason Proctor
seems like element.getLocalName() returns null if the node isn't namespace-aware (which is the default). that's a problem. other implementations return the name after the prefix is removed etc. code is (summarised) - Element element = document.createElement ("tagname"); element.cloneNode (tru

[android-developers] Android DOM implementation issues

2009-05-21 Thread Jason Proctor
thanks for the response. seems like i had an abbreviated source distro. i pulled the big one and found the harmony DOM source. i'm seeing problems already - confusion between a node's qualified and local names being an immediately noticeable one. yeah seems like i'll have to ship a fixed DOM

[android-developers] Re: Load video from assets folder?

2009-05-21 Thread Jason Proctor
post your code? >Hi, > >I'm trying to load a video file from assets folder, but MediaPlayer or >VideoView still crashes. >Somebody has an idea? > >Regards -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] How to play video file in android.

2009-05-21 Thread Jason Proctor
>I'm working on video player too...My issue is I can't read a video >from assets folder...Did you try this? this might be because the file:///android_asset/assetname URL format only works in the webview, an issue i reported the other day. you can open the asset with the AssetManager API, cache

[android-developers] Android DOM implementation issues

2009-05-21 Thread Jason Proctor
well it looks like Apache Harmony all right. any clues on where to find the source, so i can figure out why it has such big problems with basic stuff? i don't see it in the android base source distro, the source tree i get via CVS from the harmony project page itself, or the weirdly structured

[android-developers] Speed: Divide by two or multiply by .5? - I wrote a little FPS performance tester to find out.

2009-05-21 Thread Jason Proctor
>These sorts of tricks are a pain in java because of the lack of signed >types anyway. s/signed/unsigned ? java integers are all signed, including bytes. it's very funky that reading a byte gets you a signed value, but reading a single byte into an integer via an InputStream.read() call gets y

[android-developers] Android DOM implementation issues

2009-05-21 Thread Jason Proctor
my dev environment is at work. i'll have to dig into it more in the morning. thanks for the responses. j >No, not Xerces. >I don't remember exactly, I think there is >org.apache.harmony.something stuff and kxml. > > >Yeah, I could dig it up, but you could probably too. You are at your >machi

[android-developers] Android DOM implementation issues

2009-05-21 Thread Jason Proctor
> > > > Document d = builder.parse(new InputSource(Your Input Stream / >Reader / Whatever goes here)); > > > >Depends on what you're asking for. Mostly the apache stuff. > >On Thu, May 21, 2009 at 9:24 AM, Jason Proctor ><<mailto:ja...@par

[android-developers] Android DOM implementation issues

2009-05-21 Thread Jason Proctor
>I also don't get the major issue. In XML attributes cannot have >children. So you probably mean something else, but I didn't get that. > >On Thu, May 21, 2009 at 1:59 AM, Jason Proctor ><<mailto:ja...@particularplace.com>ja...@particularplace.com> wrote: &

[android-developers] Re: Setting connection priorities using WifiConfiguration.priority

2009-05-20 Thread Jason Parekh
this logic is in http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob_plain;f=src/com/android/settings/wifi/WifiLayer.java;hb=cupcake . jason On Wed, May 20, 2009 at 9:31 AM, wefi.andr...@gmail.com wrote: > > I am trying to to use WiFi API to set priorities to created

[android-developers] Re: Weird ringtone bug...any solutions??

2009-05-20 Thread Jason Parekh
Ah, sorry about the docs not mentioning the part about the URI needing to be pointing to the Media provider. FWIW, you shouldn't need to touch the Settings provider directly, the call to setActualDefaultRingtoneUri will do that for you. jason On Thu, May 21, 2009 at 12:26 AM,

[android-developers] Android DOM implementation issues

2009-05-20 Thread Jason Proctor
i'm porting some code which talks to the org.w3c.dom.* classes to Android, and i'm hitting some issues. i'm using javax.xml.parsers.SAXParser as my parser, then getting an XMLReader and setting myself up as a DefaultHandler to get notified of SAX events. first issue (minor) -- in startElement

[android-developers] access to assets via URLs

2009-05-20 Thread Jason Proctor
i can get a WebView to access an asset via a URL of the form - file:///android_asset/assetname but the URL class won't retrieve an asset via the same URL, claiming that the file doesn't exist. should these behave consistently? -- jason.software.particle --~--~-~--~~~

[android-developers] Speed: Divide by two or multiply by .5? - I wrote a little FPS performance tester to find out.

2009-05-20 Thread Jason Proctor
maybe i'm missing the point here, but dividing by a power of 2 can be done very fast by right-shifting. hard to beat that. >Romain - The idea was to see which is faster to cut an int in half - >multiplying by a float (.5) or dividing by two. I've read that >divides are terribly slow but appar

[android-developers] BroadcastReceivers not receiving PendingIntents

2009-05-20 Thread Jason Proctor
>onNewIntent(). > >On Wed, May 20, 2009 at 10:55 AM, Jason Proctor ><<mailto:ja...@particularplace.com>ja...@particularplace.com> wrote: > > >a while back i posted an issue i was having when my BroadcastListener >was listening for phone state and sending the inf

[android-developers] Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread Jason Proctor
what do you want to do with the preview? if you just want to render it, then Camera will do that for you with setPreviewDisplay(). best thing to do if you want to do anything else == don't use Camera previews :-) >I think I might go the offscreen buffer route and render when I can, >as FPS

[android-developers] Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread Jason Proctor
...and it's worse than that. there are various race conditions in the native Camera code that make VM crashes *very* likely when your onPreviewFrame() handler takes more than one squillionth of a second to do its thing. i did stuff like handing the buffer off to another thread for saving etc a

[android-developers] Re: Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread Jason Proctor
check out the Camera SDK docs. camera previews are in raw YUV/YCbCr format. BitmapFactory won't decode that format. in the days before 1.5 brought back video recording, various intrepid 'droiders including me were doing video capture by saving preview frames, and the adventures did not always

[android-developers] BroadcastReceivers not receiving PendingIntents

2009-05-20 Thread Jason Proctor
a while back i posted an issue i was having when my BroadcastListener was listening for phone state and sending the info over to an Activity which would present UI. but getIntent() in the receiving Activity always brought back the initial one. should i be using something off PendingIntent in t

[android-developers] Re: Leaked window in PreferenceActivity

2009-05-19 Thread Jason Parekh
Hi all, This is a bug in the preference framework where its created windows aren't being disposed properly (something the framework should be doing). You can safely ignore the error message (this will be fixed in the future). jason 2009/5/19 Sikus : > > I don't understand

[android-developers] Re: setBuiltInZoomControls and debugging problems

2009-05-18 Thread Jason Parekh
Hey Tim, Just those two lines of code should work--could you clarify what you mean by "set the defaultzoomcontrols"? The zoom controls should appear as soon as you pan the map. Also, including the stack trace from adb logcat will likely be enough to debug this problem. jason On M

[android-developers] loading apk resources into a WebView

2009-05-14 Thread Jason Proctor
thanks for the response. yeah it all works fine, i had the resources in the wrong place. btw, it is not necessary to declare internet permission in order to access stuff from the APK. nor should it be, IMHO. >This works for me: >E.g. In one of my apps, I load an HTML page as follows: > >webV

[android-developers] loading apk resources into a WebView

2009-05-14 Thread Jason Proctor
thanks for the response. do you have 1.5 versions of those projects btw? i'd just update them, but in practice i've found that the updater always complains that the projects are too old, and the creator, which pre-1.5 used to just replace the bits of the project hierarchy that were missing wit

[android-developers] loading apk resources into a WebView

2009-05-14 Thread Jason Proctor
i'm using file:///android_asset/resourcename to access apk resources, as various online resources and the WebKit doc page suggest, but i'm getting no success. the docs say that apk asset access is "more restricted" post-1.0, without being specific. do i need to declare a permission or somethi

[android-developers] Re: Video Recorder as alternative to Camera Preview filter?

2009-05-09 Thread Jason Proctor
well as someone who was responsible for some of those posts :-) i can say that yes the G1 camera code had some interesting problems with its preview handler and yes dealing with the YUV format in Java on the phone was prohibitively expensive. the video camera interface is completely different,

[android-developers] Video streaming error in SDK 1.5

2009-05-08 Thread Jason Proctor
the moov and mdat atoms should already be there, (IIRC) they are required for a well-formed movie file. the moov atom provides metadata for the movie, and the mdat atom provides the actual content. however, if the file is being streamed, the client needs to know the metadata before the actual

[android-developers] Re: sdcard - remaining space

2009-05-07 Thread Jason Proctor
there's the org.apache.commons.io.FileSystemUtils class, but offhand i don't know whether it works on Android. >hello, > >sorry if this has already been answered (hard to search for this >one).. >is there any way to detect remaining space on the sdcard through the >API? I prefer not to make nat

[android-developers] IMHO, the ant targets should clean before building

2009-05-07 Thread Jason Proctor
given that we're dealing with relatively small amounts of code, java compiles quickly, and javac doesn't properly deal with dependencies, the ant files should delete (at least) .class files before compiling. currently, to make sure everything gets built and i don't have any out of date referen

[android-developers] Video with MediaRecorder

2009-05-07 Thread Jason Proctor
btw, since streaming movies via HTTP requires the moov atom to be ahead of the mdat atom in the file, it would therefore be handy if MediaRecorder wrote the file like that :-) will this be fixed do you think? wondering whether i should just write that piece of code anyway. -- jason.software

[android-developers] Video with MediaRecorder

2009-05-07 Thread Jason Proctor
ue and can't be fixed on the G1/ADP at least. >Hi, > >Jason, thank you. That really helped a lot. I no longer see onDestroy >being called all the time. > >Before setting the orientation to LANDSCAPE, the preview display was >wrong. The display was rotated 90 degrees and th

[android-developers] conversion to dalvik format failed with error 1

2009-05-07 Thread Jason Proctor
as i've repeatedly repored, this list is messed up. i've not seen such random latency in a *long* time. and i'm still not seeing my posts! i used to, up until a month or so back. anyone else stop seeing their posts? >This posting system is weird.. My reply to Justin about the problem, >writte

[android-developers] Video with MediaRecorder

2009-05-07 Thread Jason Proctor
rruption, you really mean that there's a mismatch >between the metadata and the actual frame size, is that correct? > >On May 7, 11:17 am, Jason Proctor wrote: >> i don't change it, it gets changed by the "Author Driver" presumably >> to avoid colliding with the

[android-developers] How to use AudioRecord and AudioTrack

2009-05-07 Thread Jason Proctor
recording ambiences doesn't work right in mono. not that phones should be able to do absolutely everything, but i don't haul my recording rig absolutely everywhere with me :-) >The mic on all current Android devices, why would you want to record >stereo? -- jason.software.particle --~-

[android-developers] Video with MediaRecorder

2009-05-07 Thread Jason Proctor
t;size must be the same. > >I'm not sure how you were able to change the preview size though. I'd >like to know the code sequence you used, because it's not supposed to >be possible. > >On May 6, 11:11 am, Jason Proctor wrote: >> just a tiny fyi here

[android-developers] Video with MediaRecorder

2009-05-07 Thread Jason Proctor
the activity is recreated, a >new capture starts. This means I will now have two files for the same >"capture" since the user didnt choose to stop the capture. (And I need >to merge these files). > >Does anyone know of a way to keep the capture running when rotating >the

[android-developers] list chaos

2009-05-06 Thread Jason Proctor
anyone seeing crazy list behaviour? i'm not seeing my own posts (though others are - sometimes, and they're not in my spam folder), stuff gets delivered way out of order (but with up to date send times, so it's not a mail issue), batches of posts get released in the middle of the night or at r

[android-developers] Video with MediaRecorder

2009-05-06 Thread Jason Proctor
just a tiny fyi here is that i did manage to get video recording working fine in my app. there is however a problem if the surface view fills its parent and the parent is the entire screen. if that happens, then the camera's view of things gets resized but nobody tells the codec, and hence the

[android-developers] resuming extant Activity with different intent

2009-05-06 Thread Jason Proctor
i'm seeing some weirdness and just wanted to confirm my understanding/theories about intents and activity lifetimes. i have a broadcast receiver which signs up to get phone state notifications. when the phone rings, i construct a new intent, put the phone details in its extras, set its NEW_TAS

[android-developers] Re: Tap Outside Listener for Dialog

2009-05-02 Thread Jason Parekh
If you want your dialog to cancel when the user taps outside its area, check out Dialog.setCanceledOnTouchOutside. jason On Thu, Apr 30, 2009 at 2:46 PM, UBZack wrote: > > Hi all, > > I was wondering if anyone knew of an event listener that receives "tap > outside" e

[android-developers] video recording in 1.5

2009-05-01 Thread Jason Proctor
not to labour the point, but i ask whether it was new because i didn't need it with 1.5pre and the Haykuro image. i'll give it a try when my ADP comes back, thanks. >No, you have always needed a camera permission to access the camera. >It's new to the MediaRecorder API because we didn't add vi

[android-developers] video recording in 1.5

2009-05-01 Thread Jason Proctor
nope, never needed it. is the requirement new? i'll give it a go, thanks. (looks like my posts are going to the list then. does the list not echo them back to the poster, like it used to?) >Did you include android.permission.CAMERA in your manifest? > >On May 1, 3:21 pm, Jason

[android-developers] video recording in 1.5

2009-05-01 Thread Jason Proctor
deoEncoder() fails, with the wonderfully informative error message "setVideoEncoder failed". thanks for a position on this, Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] test post

2009-05-01 Thread Jason Proctor
guys, if you're going to filter *all* my posts, you might as well give me some idea as to why. -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

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

2009-04-29 Thread Jason Parekh
On Wed, Apr 29, 2009 at 2:29 PM, Mariano Kamp wrote: > Jason, thanks, I just tried that and, as you say, it works too. > Regarding performance you talk about the lack of HW acceleration for the old > way or is it layout performance you talk about? Not a problem. I was referring to th

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

2009-04-29 Thread Jason Parekh
ayout_below="@id/swipe_container" /> I saw your subsequent post about using reflection to try to enable the new zoom (thanks for posting that so others can re-use), but just in case you want to fully go back to the old way (which I don't recommend because of worse performance)

[android-developers] video recording in 1.5

2009-04-29 Thread Jason Proctor
is video recording supported in 1.5? i got it mostly working with the Haykuro 1.5 ADP image - the video file was legally formatted but didn't play properly. with yesterday's official 1.5 images, it doesn't work at all. setVideoEncoder() fails, with the wonderfully informative error message "s

<    4   5   6   7   8   9   10   11   >