<Nyceane1>Â Â Â https://market.android.com/details?id=com.spotvite.android
<Nyceane1>Â Â Â just released a new update
<Nyceane1>Â Â Â wondering if the photo scrolling is working on eveyr phone
<DrPenguin>Â Â Â i have a captivate running custom 2.3.3, I will let you know
<DrPenguin>Â Â Â Ok, I see no photos, how can I tst that for you
<Nyceane1>Â Â Â ok, create a new event and just type in anything as title
<Nyceane1>Â Â Â do you see photo scrolling on top?
<DrPenguin>Â Â Â works for me!
<DrPenguin>Â Â Â I like the little glass effect you add
<DrPenguin>Â Â Â however, theres some shadow comming off the bottom triangle, its a little excessive imo, other then that, pretty cool
<Nyceane1>Â Â Â thanks!
<DrPenguin>Â Â Â Certainly
<DrPenguin>Â Â Â Ill write a review
<reliability>Â Â Â What did I do wrong when the savedInstanceState Bundle to onCreate is (null) although i just re-entered the activity and had it save something in the outState bundle in onSaveInstanceState?
<DrPenguin>Â Â Â reliability: hard to know without seeing what you did
<DrPenguin>Â Â Â I guess you could say, your statement isnt “reliable” *CSI Miami Intro*
<DrPenguin>Â Â Â aaaaaaaaaaand 5 star rating on spotvite
<reliability>Â Â Â DrPenguin: In onSaveInstanceState, i put some put Statements like savedInstanceState.putString(“key”, somekey);
<DrPenguin>Â Â Â hold it, why are you putting stuff INTO the bundle that onCreate is getting?
<reliability>Â Â Â it’s in onSaveInstanceState
<reliability>Â Â Â not in onCreate
<uglyandstupid>Â Â Â i’m quite lost, i can’t figure out how to implement Signal (D-Bus like) functionaliny in Android
can anyone help me please ?
<DrPenguin>Â Â Â o
<reliability>Â Â Â The reference i get in onCreate(Bundle state) is always null for some reason.
<DrPenguin>Â Â Â hang on senior
<DrPenguin>Â Â Â is the activity being destroyed vs shut down? if its being destroyed, I wonder if the bundle you are making is also being nuked
<reliability>Â Â Â i just click the back button on the phone
<reliability>Â Â Â and then return to the application
<anli_>Â Â Â Strange, when I tried to install an apk file, I got an “analysis error” on the phone
<DrPenguin>Â Â Â Clicking the back button doesnt guarantee onCreate being called
<anli_>Â Â Â Its new to me
<stew-a>Â Â Â how do you dismiss a dialog shown using showDialog, since it returns void?
<DrPenguin>Â Â Â stew-a: what is your dialog doing?
<reliability>Â Â Â DrPenguin: What other function is called in order to restore the state?
<DrPenguin>Â Â Â reliability: onRestoreInstanceState, thats fired off when onStart does its stuff
<stew-a>Â Â Â DrPenguin: nevermind, i realised i can rearrange my code slightly so i don’t need to dismiss it manually
<DrPenguin>Â Â Â stew-a: thumbs up
<reliability>Â Â Â DrPenguin: I need to override that method, right?
<DrPenguin>Â Â Â onRestore is called after onStart
<DrPenguin>Â Â Â your focusing on the bundle gotten in onCreate?
<xagan>Â Â Â help please :<
<xagan>Â Â Â i plug in my phone to usb
<xagan>Â Â Â windows 7 doesnt begin installing devices (for ADB)
<xagan>Â Â Â what do i put my phone in? disk mode?
<DrPenguin>Â Â Â xagan: are your drivers installed?
<xagan>Â Â Â how am i gonna install them if it doesnt prompt me to
<DrPenguin>Â Â Â xagan: you need to download the drivers, install them ,then plug your phone in?
<DrPenguin>Â Â Â this is basic windows knowledge
<xagan>Â Â Â ok then
<DrPenguin>Â Â Â Some times you can rely on Win 7 to find the drivers, but I usually find it cant do it
<xagan>Â Â Â but still what mode do i put my phone in
<xagan>Â Â Â sync, disk mode, charge, etc
<xagan>Â Â Â for Unrevoked3
<DrPenguin>Â Â Â I dont even know what your tyring to do
<xagan>Â Â Â put in clockworkrecoverymod
<anli_>Â Â Â Hm, I can run the app in the emulator, but when I try to export a signed apk and install it in my phone, I get “analysis error”
<DrPenguin>Â Â Â #android-root for that
<xagan>Â Â Â no one ever talks in there
<anli_>Â Â Â Does this have with icon bit depth? ![]()
<g00s>Â Â Â http://www.guardian.co.uk/technology/blog/2011/oct/08/ellison-schmidt-page-lawsuit-witnesses
<anli_>Â Â Â to do
<xagan>Â Â Â might as well close the channe
<DrPenguin>Â Â Â xagan: well we dont do android hacking here, so dont ask those questions here
<petrus250>Â Â Â Hey, can anyone tell me how to convert a canvas to a bitmap, and then apply that bitmap and draw over it, then repeat every frame?
<xagan>Â Â Â k
<DrPenguin>Â Â Â OOO that looks interesting g00s..
<Nyceane1>Â Â Â DrPenguin, what’s your app in the market?
*Â Â Â g00s would like to be a fly on the wall in the courtroom
<danielhampton>Â Â Â Morning ![]()
<DrPenguin>Â Â Â Nyceane1: Text Alarm et Text Alarm Lite
<DrPenguin>Â Â Â danielhampton: Guten Morgen!
<danielhampton>Â Â Â ![]()
<danielhampton>Â Â Â Does android block certian outgoing ports?
<danielhampton>Â Â Â certain*
<danielhampton>Â Â Â or protocol usage?
<t0mless>Â Â Â not as far as I know
<danielhampton>Â Â Â hm
<t0mless>Â Â Â only if you haven’t requested the internet permission
<danielhampton>Â Â Â I
<DrPenguin>Â Â Â danielhampton: hang on, let me check the iptables
<danielhampton>Â Â Â I’m trying to implement a tftp client into my app, works fine out of android but when i implement into java it hangs on the sendFile method
<t0mless>Â Â Â did you check logcat?
<reliability>Â Â Â DrPenguin: onRestoreInstanceState is actually never called for some reason.
<t0mless>Â Â Â and you do have the internet permission in your manifest, correct?
<anli_>Â Â Â Do I have a chance getting something more useful than the error message “analysis error”?
<uglyandstupid>Â Â Â Dudes, i’ve read again and again events/broadcast receivers but didn’t find a way for doing callbacks (D-Bus signal like) withing Android, can anyone help here please ?
<reliability>Â Â Â Do I need to adjust something in the Manifest?
<DrPenguin>Â Â Â danielhampton: ftp.. what port is that 21?
<danielhampton>Â Â Â tftp
<danielhampton>Â Â Â port 69
<danielhampton>Â Â Â yeah checked logcat
<danielhampton>Â Â Â i’ve made a thread on stackoverflow
<danielhampton>Â Â Â android.permission.INTERNET
<danielhampton>Â Â Â http://stackoverflow.com/questions/7702987/using-tftp-in-android-works-fine-out-of-android-hangs-on-sendfile-in-android
<danielhampton>Â Â Â tftp : http://en.wikipedia.org/wiki/Trivial_File_Transfer_Protocol
<danielhampton>Â Â Â its older, working on a free app for a community ![]()
<DrPenguin>Â Â Â well.. the first thing I would check to see is if that port is even open
<reliability>Â Â Â What could be wrong if onRestoreInstanceState is not even called?
<anli_>Â Â Â Is it important to have an apk file thats not renamed when installing it? The browser of the phone tends to rename apk files if you downloaded one before with the same name
<t0mless>Â Â Â the name of the apk file doesn’t matter at all anli_
<t0mless>Â Â Â ( danielhampton ): are you including the org.apache.commons library in your app?
<t0mless>Â Â Â I’m assuming you must be since it actually compiles for android
<anli_>Â Â Â t0mless: do you know of a logfile in the phone in which I can read some details about the analysis error?
<t0mless>Â Â Â logcat
<t0mless>Â Â Â http://developer.android.com/guide/developing/tools/logcat.html
<danielhampton>Â Â Â how can i check that DrPenguin
<danielhampton>Â Â Â open a socket on that port?
<DrPenguin>Â Â Â danielhampton: well, that would be the idea wouldnt it?
<danielhampton>Â Â Â yeah it compiles fine t0mless
<danielhampton>Â Â Â yup i’ll give it a nudge
<DrPenguin>Â Â Â I think the logical thing here is to assume the port is CLOSED
<anli_>Â Â Â I thought logcat was an application that I run on my computer, not on my phone
<t0mless>Â Â Â I’m just wondering how you got the org.apache.commons.net.tftp package in the app since it’s not included in android
<t0mless>Â Â Â did you just pick out those files from the commons library, or include the whole thing?
<Jug6ernaut>Â Â Â anyone here experinced with accessability services?
<t0mless>Â Â Â there might be something in there that isn’t compatable with android
*Â Â Â Jug6ernaut cant seem to get a valid context
<danielhampton>Â Â Â t0mless, included whole thing
<danielhampton>Â Â Â downloaded their commons.jar and included it in my project path
<danielhampton>Â Â Â build path**
<t0mless>Â Â Â the way that the commons library makes the connection might work in java, but not in android
<danielhampton>Â Â Â but the timeout function works
<anli_>Â Â Â If anyone wants to help me, please try if you can install my crappy app, its on http://darkbox.dyndns.org/app/puzzle.apk and does not require any permissions
<g00s>Â Â Â fuck yeah, legos ! http://dvice.com/archives/2011/10/heres-a-56-poun.php
<reliability>Â Â Â What are possible reasons that onRestoreInstanceState is not called?
<moonunitzappa>Â Â Â hey
<moonunitzappa>Â Â Â im trying to learn eclipse, can anyone give me good tuts?
<Nyceane1>Â Â Â what’s the best way to market android apps?
<t0mless>Â Â Â d.android.com
<g00s>Â Â Â moonunitzappa: are you really moon unit ![]()
<moonunitzappa>   trying to make a simple android app. with links to a twitter and livestream for occupywallstreet
<Nyceane1>Â Â Â it seems that everytime I do something really stupid, like those 30 minute 1 functionality apps, I get thousands of downloads a day
<moonunitzappa>Â Â Â this is frank, just using pc
<moonunitzappa>Â Â Â ![]()
<g00s>Â Â Â :/
<Nyceane1>Â Â Â but whenever I work really hard for few month straight, I only get like 30 to 50 downloads a day
<Nyceane1>Â Â Â this is very strange…
<DrPenguin>Â Â Â LEGOS!
<t0mless>Â Â Â Legos indeed.
<t0mless>Â Â Â That was pretty awesome
<DrPenguin>Â Â Â DrPenguin Approves
<cher>Â Â Â Lego is cool.
<moonunitzappa>Â Â Â can anyone help me write a templete in eclipse
<Nyceane1>Â Â Â none of the hard work ever pays off =|
<Nyceane1>Â Â Â moonunitzappa, what type of template?
<DrPenguin>Â Â Â Nyceane1: it will eventually dood
<moonunitzappa>Â Â Â this is my first time trying to write an app, so exucse my ignorance
<Nyceane1>Â Â Â I changed everything within 3 days of this app heh, cuz user says previous version was too hard to post events
<DrPenguin>Â Â Â See? Thats commitment
<Nyceane1>Â Â Â moonunitzappa, what do you need to get done, maybe i can help
<moonunitzappa>Â Â Â but im trying to just get an app that has 4 boxes that leads to set links.
<DrPenguin>Â Â Â its not like you sat on ur butt and took ur time
<Nyceane1>Â Â Â DrPenguin, but I only get like 300 downloads after a week, my other app have already exceeded 2000 downloads in 3 days
<Nyceane1>Â Â Â Steve Jobs Timeline
<moonunitzappa>   theres an occupy wallstreet app on the market by havetohaveapps  im trying to emulate that for occupyboston
<Nyceane1>Â Â Â thats something I cranked up in 2 minutes
<moonunitzappa>Â Â Â but dont want to steal anywork
<moonunitzappa>Â Â Â and i dont know where to begin
<DrPenguin>Â Â Â Nyceane1: Im jealous, on my free app Im lucky if I get a few downloads a day, my payed only has 15 in a few months
<cher>Â Â Â moonunitzappa: Do you know Java?
<moonunitzappa>Â Â Â not so much
<moonunitzappa>Â Â Â i know a little pyton and c
<Nyceane1>Â Â Â my other app have over 100,000 downloads, one button
<reliability>Â Â Â What are possible reasons that onRestoreInstanceState is not called?
<moonunitzappa>Â Â Â but im sure it wouldnt be to hard for such a simple app, ive been reading some tuts onlien
<DrPenguin>Â Â Â reliability: stop asking your quesiton over n over
<cher>Â Â Â moonunitzappa: Not bad. Not so much, and a little of python and c, is far better than nothing. You’ll make it, I’m sure.
<cher>Â Â Â moonunitzappa: Have you already installed the Android SDK?
<DrPenguin>Â Â Â python! yay
<moonunitzappa>Â Â Â yea
<cher>Â Â Â moonunitzappa: Resp. for Eclipse the plugin?
<Nyceane1>Â Â Â reliability, it’s only called when you rotate the screen
<Nyceane1>Â Â Â it shouldnt be called any other time
<Nyceane1>Â Â Â whats your point?
<moonunitzappa>Â Â Â yea i have the avd up
<cher>Â Â Â moonunitzappa: Then it should be possible to create a helloAndroid project. Have you already done that?
<reliability>Â Â Â Nyceane1: When a leave the activity and return to it, it’s not called.
<cher>Â Â Â moonunitzappa: AVD up? Good, good. Great. helloAndroid running?
<Nyceane1>Â Â Â and if you have onConfigChange=”rotation|keyboard” or something, it wont be called
<Nyceane1>Â Â Â it shouldnt be, your ondestroyed is already called
<moonunitzappa>Â Â Â no not yet
<Nyceane1>Â Â Â your activity is already done
<moonunitzappa>Â Â Â im trying to read up on eclicpse just got it
<reliability>Â Â Â good
<cher>Â Â Â moonunitzappa: First try to get the helloAndroid project running. It should be created automatically by Eclipse when you create a new project (or workspace?) for Android.
<cher>Â Â Â moonunitzappa: Either you’re asked if you want helloAndroid, or it’s created automatically.
<moonunitzappa>Â Â Â ok, ill get on that. ty guys
<moonunitzappa>Â Â Â ill let you know how it goes
<cher>Â Â Â moonunitzappa: Oh yes, please do.
<Nyceane1>Â Â Â ok, just went through
<Nyceane1>Â Â Â reliability, have you called onSaveInstanceState?
<Nyceane1>Â Â Â ok, now hes gone… lol
<DrPenguin>Â Â Â lolfail
<Nyceane1>Â Â Â i dont even think i ever used restore? just onSaveInstanceState
<g00s>Â Â Â man, the android seekbar is such a piece of shit
<danielhampton>Â Â Â hey DrPenguin socket opened fine
<DrPenguin>Â Â Â danielhampton: was the socket opening before or no?
<cher>Â Â Â Sockets open fine on Android. But InetAddress is full of bugs ![]()
<danielhampton>Â Â Â Sorry took so long, my eclipse decided to play up
<DrPenguin>Â Â Â its cool bro
<danielhampton>Â Â Â Well DrPenguin it uses tftp.sendFile()
<DrPenguin>Â Â Â I know eclipse is a piece of crap
<danielhampton>Â Â Â I’ll track down the commons source, brb
*Â Â Â cher agrees with DrPenguin on eclipse and uses IntelliJ IDEA instead.
<DrPenguin>Â Â Â I tried intellij but couldnt really get it setup, so I kick it old school in terminal
<cher>Â Â Â DrPenguin: What’s missing in setup?
<DrPenguin>Â Â Â Oh I have no idea this was months ago
<danielhampton>Â Â Â http://pastebin.com/wnKswBfL thats the TFTPClient.java file
<cher>Â Â Â DrPenguin: What editor do you use on terminal? vim?
<DrPenguin>Â Â Â I setup a SVN Repository on my network and python wrapper scripts around the android project scripts
<DrPenguin>Â Â Â yeah vim
<reliability>Â Â Â Another question: I have the following code. http://pastebin.com/2ke6ugdb
<reliability>Â Â Â Whenever it reaches the last line a RuntimeException is thrown.
<NoorulIslaam>Â Â Â can someone please please please answer this question: http://stackoverflow.com/questions/7473272/precompiling-static-library-in-android-ndk-sources-in-separate-directory-tree
<cher>Â Â Â DrPenguin: In that case, an IDE is not so important. A smart brain + good shell + vim is nearly as good for Java as IntelliJ IDEA, and better than IntelliJ IDEA at all non-Java things.
<NoorulIslaam>Â Â Â its been 2 weeks of me asking around and no answer yet ![]()
*Â Â Â cher wouldn’t use IntelliJ IDEA if there wouldn’t be this nice IdeaVIM plugin.
<DrPenguin>Â Â Â Yeah, and sed for mass edits ![]()
<DrPenguin>Â Â Â I dont know how I lived before knowing sed and vim
<cher>Â Â Â In case you like sed for mass edits, you might also like awk and ex.
<t0mless>Â Â Â ( reliability ): can your pastebin the exception stack trace?
<DrPenguin>Â Â Â I know some awk yes, ex I havent really played with too much
<_Tenchi_>Â Â Â hehe, i never learned perl but dunno how i would have survived the 90s without sed, awk, tr, etc
<danielhampton>Â Â Â DrPenguin > Any other suggestions?
<DrPenguin>Â Â Â I switch between awk n sed, depending on what I need to do, but with awk I have to keep looking stuff up, sed I Can remember simple things
<reliability>Â Â Â t0mless: of course… just a sec
<DrPenguin>Â Â Â danielhampton: unfortunatly no, network stuff is not my cup of “java”
<anli_>Â Â Â Should it be possible to download an apk file and just executing it, having it installed?
<_Tenchi_>Â Â Â DrPenguin: probably just dont use them enough
<danielhampton>Â Â Â bugger ![]()
<anli_>Â Â Â I have done this once, and that was successful
<_Tenchi_>Â Â Â i cant remember anything i dont use on a daily basis… im always looking things up
<danielhampton>Â Â Â Its not even sending any kind of packets
<danielhampton>Â Â Â I’ve checked with wireshark
<danielhampton>Â Â Â :S
<DrPenguin>Â Â Â _Tenchi_: oh I definitly dont, I didnt really start until I started with HP
<reliability>Â Â Â t0mless: how do i get that?
<DrPenguin>Â Â Â danielhampton: well you know your opening the port, is there any way to truly verify the port is open besides throwing packets threw it?
<reliability>Â Â Â got it
<t0mless>Â Â Â Logcat.
<reliability>Â Â Â t0mless:
<reliability>Â Â Â t0mless: http://pastebin.com/pTKEKtgy
<danielhampton>Â Â Â DrPenguin but it works fine out of Android? I’m using the example from Apache
<DrPenguin>Â Â Â danielhampton: what I am infering is that, you need to see if Android is respecting your open socket call
<_Tenchi_>Â Â Â heh i code java almost every day of my life for the past 12 years and I still need to have the apidocs referencable if i’m not use intellij
<t0mless>Â Â Â can you also get the exception that is thrown from logcat, or pull the exception message
<danielhampton>   try        {            tftp.open();        }        catch (SocketException e)        {            System.err.println(“Error: could not open local UDP socket.”);            System.err.println(e.getMessage());            System.exit(1);        }
<DrPenguin>Â Â Â _Tenchi_: heh yeah, I still google goodies when doing Java, and its one of my best languages
<danielhampton>Â Â Â DrPenguin > Should i check agian and see if its still open?
<t0mless>Â Â Â ( danielhampton ): tftp.open() method isn’t an android method, so the way it opens the socket may not work in android
<reliability>Â Â Â additionally, in the java view a Tab opens “AcitivityThread.handler” that has the text “Source no found.”
<anli_>Â Â Â Aha, it was a uses-sdk issue
<t0mless>Â Â Â and it might not throw an exception
<t0mless>Â Â Â it might just not work
<DrPenguin>Â Â Â t0mless: thats what I was hinting at ^^
<danielhampton>Â Â Â ah
<t0mless>Â Â Â I have a link about sockets on android
<danielhampton>   public void sendFile(String filename, int mode, InputStream input,                         String hostname, int port)    throws UnknownHostException, IOException
<t0mless>Â Â Â so if you can get into the tftp source
<t0mless>Â Â Â and compare
<DrPenguin>Â Â Â your try catch block is only saving you from if a SocketException (or subset of Socket Exception) is thrown
<t0mless>Â Â Â http://thinkandroid.wordpress.com/2010/03/27/incorporating-socket-programming-into-your-applications/
<DrPenguin>Â Â Â however, Android could just be saying “dude wtf? nah Im not opening the port, but Im not gonna throw an exception so you think it works HAHAHAHAHA”
<t0mless>Â Â Â ( reliability ): do you know how to use logcat?
<danielhampton>Â Â Â yeah it could be doing that ![]()
<danielhampton>Â Â Â Might have to pay someone todo it, as its a bit out of my reach i think
<DrPenguin>Â Â Â danielhampton: nah man, sometimes you need to get lost in the tall grass before you can find the way out
<reliability>Â Â Â t0mless: yeah, more or less.
<t0mless>Â Â Â what is the exception in logcat?
<angasule>Â Â Â I’m thinking of getting a Galaxy S II with Sprint and using it to develop, is that a good idea? any restrictions?
<reliability>Â Â Â t0mless: http://pastebin.com/F0vgqg53
<DrPenguin>Â Â Â NO GALAXY S! EWW
<reliability>Â Â Â but only after a while, this a appears.
*Â Â Â DrPenguin hates sammy sammy samsung
<danielhampton>   DrPenguin > Reading through the TFTPClient.java i saw “A local UDP socket must first be created by     * {@link org.apache.commons.net.DatagramSocketClient#open open()} before     * invoking this method.”
<Chainfire>Â Â Â angasule> yes, that is a good idea.
<reliability>Â Â Â 10-09 23:24:11.113: INFO/## ATService ##(1416): onCreate(): I will now SEND a notification.
<reliability>Â Â Â directly after that message, no exception is shown in logcat.
<DrPenguin>Â Â Â danielhampton: looks fancy
<Chainfire>Â Â Â keep in mind that everything else on the market is a shitload slower though, so be sure to have an older backup device to test that on ![]()
<mike-burns>Â Â Â Is there a decent way to measure how quickly it takes my app to go from started (startActivity of the Intent) to the onCreate ?
<mike-burns>Â Â Â OK, I think I know how.
<mike-burns>Â Â Â But if there’s something easier than writing code, let me know.
<danielhampton>Â Â Â yeah DrPenguin a bit too fancy
<DrPenguin>Â Â Â mike-burns: I know of a way
<t0mless>Â Â Â ( mike-burns ): use ddms traceview
<mike-burns>Â Â Â Oh, good call.
<cher>Â Â Â DrPenguin: What’s your issue with Samsung Galaxy S II?
<DrPenguin>Â Â Â cher: I had super bad experiences with SGS1
<DrPenguin>Â Â Â so I wont touch the SGS2
<t0mless>Â Â Â ( reliability ): are you pausing in the debugger? it won’t show in logcat until you resume
<cher>Â Â Â I got an SGS2 and it’s cool I think.
*Â Â Â prot is now known as Prot
<Chainfire>Â Â Â your loss DrPenguin
<danielhampton>Â Â Â DrPenguin: if the socket wasn’t open wouldn’t the timeouts kickin?
<Chainfire>Â Â Â SGS1 vs SGS2 is a night and day difference…
<Chainfire>   what device are you on now then
<DrPenguin>Â Â Â Captivate, my 6th one
<Chainfire>Â Â Â do you drown them or smth
<g00s>Â Â Â hehe
*Â Â Â Chainfire ‘s SGS1 has never had any serious issues
<DrPenguin>Â Â Â No
<reliability>Â Â Â t0mless: just a sec
<Chainfire>Â Â Â and thus, it must be you.
<DrPenguin>Â Â Â they were all DOA or DSOA (Dead soon after arrival)
<DrPenguin>Â Â Â yeah.. no
<Chainfire>Â Â Â I’ve heard lots of bad things about teh Captivate though
<DrPenguin>Â Â Â Yeah so it wasnt me
<Chainfire>Â Â Â over here we only have the original internationl SGS1 and nobody I know that has one has any issues with it… certainly not warranty issues
<danielhampton>Â Â Â DrPenguin: I work in retail, we had 4 Galaxy 1 units DOA
<danielhampton>Â Â Â And that was on release date a while back
*Â Â Â Jug6ernaut blames chainfire
<DrPenguin>Â Â Â yeah
<Chainfire>Â Â Â hush Jug6ernaut ![]()
<danielhampton>Â Â Â Anyway tftp.open is a Datagramsocket
<danielhampton>Â Â Â Which seems to be documented http://developer.android.com/reference/java/net/DatagramSocket.html
<reliability>Â Â Â t0mless: http://pastebin.com/7XYPbpB6
<DrPenguin>Â Â Â I am looking to pick up a Motorola ICS phone as my next phone
<Chainfire>Â Â Â SGS2 is still the best mobile phone I’ve ever held in my hand though… and I have a lot of them …
<reliability>Â Â Â t0mless: this is what logcat shows after a resume
<cher>Â Â Â For UDP you never know if packets arrive…
<DrPenguin>Â Â Â I am nothing less than happy with my Xoom
<danielhampton>Â Â Â yeah cher but the packets aint being sent
<moonunitzappa>   http://developer.android.com/resources/tutorials/hello-world.html      UI to XML #3
<moonunitzappa>Â Â Â how do i find my helloanroidclass?
<t0mless>Â Â Â ( reliability ): looks like it wants a contentView for your notification
<reliability>Â Â Â t0mless: that means?
<moonunitzappa>Â Â Â oh sorry, i found it, was hiddin in the tabs
<cher>Â Â Â moonunitzappa: What do you mean by “find”? The source code in Eclipse? The .class file after building? The app on the phone?
<cher>Â Â Â moonunitzappa: Never mind.
<t0mless>Â Â Â http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView
<moonunitzappa>Â Â Â yea sorry, jumped the gun there
<t0mless>Â Â Â reliability ^
<t0mless>Â Â Â probably because you left the contentTitle/Text blank since you never called setLatestEventInfo() on your notification
<danielhampton>Â Â Â Anyone know a place i can go to pay to find out whats going wrong with my tftp client
<angasule>Â Â Â Chainfire: heh thanks, yes, my girlfriend has a Replenish and hopefully I can get other stuff, too. I’m just new to the US and unacustomed to phones being tied to the provider so much, not sure how it works exactly
<reliability>Â Â Â t0mless: but, do i need that? :/
<DrPenguin>Â Â Â danielhampton: maybe it would be helpful to make some embarassingly simple app that uses Datagram sockets and expand from there?
<t0mless>Â Â Â Yes
<DrPenguin>Â Â Â you can take what you learn there and put it into your current app
<t0mless>Â Â Â Otherwise how does it now what to display in the notification?
<reliability>Â Â Â can’t I just put some text there? ![]()
<t0mless>Â Â Â You can… but you didn’t
<moonunitzappa>Â Â Â cher:Â is my helloworld class the helloworldactivity.java?
<danielhampton>Â Â Â DrPenguin : Yeah but i wouldn’t know what todo after that, im still learning a bit and can only take so much in at once ![]()
<moonunitzappa>Â Â Â Â Â Now open and modify your HelloAndroid class and use the XML layout
<moonunitzappa>Â Â Â is the instuctions
<t0mless>Â Â Â http://developer.android.com/guide/topics/ui/notifiers/notifications.html#Basics
<t0mless>Â Â Â you didn’t do step 3 reliability
<DrPenguin>Â Â Â danielhampton: Well what do you need to do? open a socket, send stuff through said socket, and receive
<DrPenguin>Â Â Â if you can get that to work, compare it to your app
<danielhampton>Â Â Â Only send ![]()
<DrPenguin>Â Â Â ok well send whatever ![]()
<DrPenguin>Â Â Â if you can do those TWO things, then compare like I said
<t0mless>Â Â Â also, I would just like to state that REST > SOAP
<danielhampton>Â Â Â kk
<reliability>Â Â Â t0mless: ok, i will try that…
<reliability>Â Â Â t0mless: thx a lot!
<t0mless>Â Â Â I dislike being forced to use SOAP
<danielhampton>Â Â Â Its not my code, its using the examples provided
<danielhampton>Â Â Â Even reading there sendFile() does my headin
<DrPenguin>Â Â Â danielhampton: well you really shouldnt care about how the stuff is done
<DrPenguin>Â Â Â because you know it works somewhere
<DrPenguin>Â Â Â all you care about is opening a port and making sure its usable
<danielhampton>Â Â Â I made a socket and it seemed fine
<DrPenguin>Â Â Â right, well something else must be up
<knxville>Â Â Â Hello, im working with this tutorial, http://developer.android.com/resources/tutorials/views/hello-listview.html where is reads a string array from a xml file to an array and shows it in a list view, what I want to do I only show one of these items, so I guess they need a unique ID each?
<DrPenguin>Â Â Â so isolating questionable portions of code, even if your rigging up some basic example, is a good way to blackbox
<danielhampton>Â Â Â kk
<TFox>   ok something’s been bugging me for awhile. I’d like to setup a background service that does… background shit, but I may periodically need user interaction. How do I get the background thread to notify the user that their interaction is needed?
<danielhampton>Â Â Â Since i have the java file should i add debugs all over the place?
<DrPenguin>Â Â Â whatever you think will help you in fixing it, do eet
<DrPenguin>Â Â Â just dont break stuff in the process
<danielhampton>Â Â Â I’ll add system.outs
<danielhampton>Â Â Â and can see where it stops
<danielhampton>Â Â Â ![]()
<DrPenguin>Â Â Â It might also be worthwhile to just hook it to the debugger and setup breakpoints
<DrPenguin>Â Â Â examine the environment and what not
<danielhampton>Â Â Â holdon
<danielhampton>Â Â Â Â InetAddress.getByName(hostname)
<danielhampton>Â Â Â will that take in something like “192.168.2.119″
<DrPenguin>Â Â Â well it needs a host name, or the ip the hostname resolves to
<danielhampton>Â Â Â would a local ip work
<reliability>Â Â Â t0mless: It workds! ![]()
<DrPenguin>Â Â Â the local ip of the phone?
<reliability>Â Â Â -d
<danielhampton>Â Â Â thats the ip of the tftpserver
<reliability>Â Â Â t0mless: Thx!
<DrPenguin>Â Â Â um…
<t0mless>Â Â Â are you using an emulator or a device danielhampton?
<moonunitzappa>Â Â Â can anyone help me with step 3 in this link
<moonunitzappa>Â Â Â http://developer.android.com/resources/tutorials/hello-world.html
<DrPenguin>Â Â Â your phone isnt the server is it?
<danielhampton>Â Â Â emulator
<danielhampton>Â Â Â nope
<danielhampton>Â Â Â server is external
<t0mless>Â Â Â local ip should work fine if that’s where the server is then
<danielhampton>Â Â Â i’ve got a socket which im using for something else off that same ip, so i know it works
<moonunitzappa>Â Â Â is the helloworld class my helloworld.java in eclipse?
<moonunitzappa>Â Â Â i only have 3 tabs, helloworld.java main.xml and strings.xml
<DrPenguin>Â Â Â helloworld.class is the compiled helloworld.java
<t0mless>Â Â Â if you want to really see if it works put a webserver up on your server and open it in the browser on the emulator
<DrPenguin>Â Â Â so there should be some class called helloworld in java in root scope
<t0mless>Â Â Â ( moonunitzappa ): yes, it is. L2Java.
<moonunitzappa>Â Â Â trying to l2java now
<t0mless>Â Â Â no
<t0mless>Â Â Â you’re trying to learn to android
<t0mless>Â Â Â which assumes you know java
<danielhampton>Â Â Â t0mless: web sevrer works fine
<danielhampton>Â Â Â tested ![]()
<rt10k>Â Â Â can i make an android market page appear via a link in a webview?
<t0mless>Â Â Â so the local ip isn’t the problem ![]()
<danielhampton>Â Â Â yup, i have another socket which is sending a http request
<danielhampton>Â Â Â but its just this tftp :
<t0mless>Â Â Â woot! Go brewers! just took the lead with a 2 run homer following a 2 rbi double
<DrPenguin>Â Â Â SPORTS TALK DOES NOT COMPUTE <<SEGFAULT>>
<t0mless>Â Â Â lol
<t0mless>Â Â Â I broke the penguin.
<moonunitzappa>Â Â Â im pretty sure im following the tut correctly, but when i open the helloworld.class it says there is no source attachee
<moonunitzappa>Â Â Â so i cant edit
<t0mless>Â Â Â you open helloworld.jaa
<t0mless>Â Â Â java
<t0mless>Â Â Â honestly, moonunitzappa, go read some java tutorials first
<t0mless>Â Â Â then come back to android
*Â Â Â DrPenguin doesnt understand why people try to do android without some java background
<t0mless>Â Â Â ( danielhampton ): can you change what port is used for tftp?
<moonunitzappa>Â Â Â well is anyone bored and want to whip up a quick app haha, just need something that has 4 large boxes that lead to certin links…and you can help the occupywallstreet cause ….
<moonunitzappa>Â Â Â or i can just go read up on java
<QubeZ>Â Â Â moonunitzappa: doesn’t the occuptywallstreet cause have Java developers?
<moonunitzappa>Â Â Â yea well. occupyboston
<QubeZ>Â Â Â or at least some technical resources… these days, its hard to have a “cause” with tech handymen
<moonunitzappa>Â Â Â im trying to emulate a occupywallstreet app
<g00s>Â Â Â its a pretty exciting area to beworking on an app for organized protests
<QubeZ>Â Â Â wtf is occuptywallstreet
<moonunitzappa>Â Â Â and learn some java in the meantime
<t0mless>Â Â Â occupy wall street is actually kinda awesome
<danielhampton>Â Â Â t0mless: nope ![]()
<DrPenguin>   QubeZ: occupy wall street is a protest movement, people are occupying wall street because of all the bailouts and corporate greed and what not
<moonunitzappa>   just need something with the occupyboston twitter, blogs , livestream etc on it. nothing crazy
<DrPenguin>Â Â Â I wish I could join in on it
<g00s>Â Â Â there is one coming to my city ![]()
<moonunitzappa>Â Â Â if your from the us there most lilkely a occupation in your city
<moonunitzappa>Â Â Â or the uk has joined in to in some areas
<QubeZ>Â Â Â whats the purpose of occupying wall street though? you mean, getting honest hard working people there as opposed to who was there before?
<g00s>Â Â Â its worth noting that fox news is belittling this, so it must be good
<g00s>Â Â Â XD
<moonunitzappa>Â Â Â well if any of you kind folks are bored and want a project let me know, it would be amazing if someone could help
<DrPenguin>Â Â Â QubeZ: if anything its getting good coverage because all of the police brutality
<g00s>Â Â Â it was interesting that the /original/ tea partiers, if i recall, were against bank bailouts
<_Tenchi_>Â Â Â unless it pays amazing cash it
<QubeZ>Â Â Â ya but is that the purpose of this movement? to change the type of people that run wall st?
<g00s>Â Â Â today, nobody wknows wtf they do except obstruct everything
<_Tenchi_>Â Â Â s probably not going to interest many
<g00s>Â Â Â and hold the govt by hostage
<QubeZ>Â Â Â fuck bailouts… we should go to a cash and barter system
<DrPenguin>Â Â Â QubeZ: I think its to just finally get Politicians and what not to wake up that this is not what the People want
<QubeZ>Â Â Â no more credit
<moonunitzappa>Â Â Â the idea it to have the common people thought for first rather than big corps.
<`teh1>Â Â Â anyone have any suggestiions on a view that masks another one. where the center of the view is see-through and the rest isnt?
<_Tenchi_>Â Â Â politicians arent motivated by public sentiment as much as they’re motivated by garunteed votes and campaign money
<danielhampton>Â Â Â DrPenguin
<danielhampton>Â Â Â found it gets to here
<danielhampton>   try                    {                       System.out.println(“Debug 7″);                        received = bufferedReceive();                        break;                    }
<DrPenguin>Â Â Â oooo, whats going on there bambino
<moonunitzappa>   or does anyone know any android dev fourms i can go to to ask for some help on this?  or is it just a bad idea to ask someone to write an app?
*Â Â Â Chainfire_ is now known as Chainfire
<rt10k>Â Â Â if my app is “com.monkeysoft.tunes”, how can i retrieve “com.monkeysoft.tunes” as a String inside the app?
<QubeZ>Â Â Â getPackageName()
<jrr>Â Â Â my G2 adb thinger doesn’t seem to show up in device manager, windows 7 64-bit. mass storage works fine.
<QubeZ>Â Â Â rt10k: http://developer.android.com/reference/android/content/Context.html#getPackageName%28%29
<t0mless>Â Â Â ( jrr ): usb debugging enabled?
<Noxz>Â Â Â my app sometimes crashes, and I don’t get anything on eclipses end on where it’s comming from, like it doesnt break at a runtiemexception or anything, it just closes out and stops debugging
<jrr>   t0mless: yep! adb works on linux, so I know the phone’s okay
<QubeZ>Â Â Â Noxz: logcat should have the reason why
<DrPenguin>Â Â Â jrr: do you have the drivers installed?
<t0mless>Â Â Â you install the adb usb drivers?
<DrPenguin>Â Â Â Windows might have builtins for USB mass storage but it wont for ADB
<t0mless>Â Â Â http://developer.android.com/sdk/win-usb.html
<danielhampton>Â Â Â Ah im gona have abreak, spent 6 hours on this and got no where ![]()
<rt10k>Â Â Â thank you
<jrr>Â Â Â I don’t have a yellow exclamation device in device manager, either
<jrr>Â Â Â how to install drivers other than by clicking on the error device?
<t0mless>Â Â Â http://developer.android.com/sdk/win-usb.html
*Â Â Â DrPenguin is speechless..
<danielhampton>Â Â Â Thanks DrPenguin & t0mless
<jrr>Â Â Â wow, that sounded like not english
<t0mless>Â Â Â np, sorry we couldn’t figure it out
<DrPenguin>Â Â Â how do people not know how to install drivers on windows is beyond me..
<jrr>Â Â Â DrPenguin: for the last fifteen years, I’ve always done it by right-clicking on the device
<t0mless>Â Â Â Windows has drivers for your phone jrr, so you won’t have an unkown device
<jrr>Â Â Â sometimes you can right-click the .inf file
<t0mless>Â Â Â but those drivers don’t work for adb
<t0mless>Â Â Â so
<t0mless>Â Â Â goto http://developer.android.com/sdk/win-usb.html
<t0mless>Â Â Â and follow the directions
<jrr>Â Â Â yes, I went there before coming here
<jrr>Â Â Â the guide instructs you to find it in device manager
<danielhampton>Â Â Â Ah it seems to fall over on recievepacket
<danielhampton>Â Â Â wonder why
<danielhampton>Â Â Â Anyway thanks again, might see you guys later
<moonunitzappa>   ok well im gonna idle in here for a bit. if anyone wants to “donate” an app, pm me.  thanks
<danielhampton>Â Â Â what you mean moonunitzappa
<g00s>Â Â Â moonunitzappa: i wouldn’t be surprised if things get crazy, the police shut down cell communications
<g00s>Â Â Â like they did a few weeks ago in cali
<`teh1>Â Â Â in xml how do i make the left edge of a view line up with the right edge of another?
<t0mless>Â Â Â use a relative layout
<`teh1>Â Â Â yes i am
<`teh1>Â Â Â but alignLeft for instance will align left edge with left edge
<`teh1>Â Â Â i want left with right, so i can make them kiss
<t0mless>Â Â Â android:rightOf=”@id/viewOnLeft”
<`teh1>Â Â Â oh =D
<t0mless>Â Â Â I think it’s rightOf
<`teh1>Â Â Â layout_toRight/LeftOf
<`teh1>Â Â Â thanks
<stew-a>Â Â Â i’m trying to use a dialog with an edittext, but i’m having problems getting a reference to the edittext field, findviewbyid is returning null, how can i get a reference to the edittext properly, http://pastebin.com/8kaavVCe
<Noxz>Â Â Â “finishComposingText on inactive InputConnection”
<Noxz>Â Â Â that’s the error I am getting, which makes me think the text that I am suppose to see isn’t there
<jrr>Â Â Â found the hardware ID under an entry for usb mass storage device, uninstalled the driver a couple times, and now I have an “Android Phone” entry and ADB works
<jrr>Â Â Â weirdness
<moonunitzappa>Â Â Â danielhampton:Â I wanted to write an app for occupyboston do people can get updates on the go, and have all info in one area rather tha nall over the web
<moonunitzappa>Â Â Â but my java skills are not nearly good enough to even try
<moonunitzappa>Â Â Â so i was askin if anyone wanted to voulenter to write a small app, or atleast walk me thru or make me a templte where i can just fill in all the links and such
<danielhampton>Â Â Â t0mless
<danielhampton>Â Â Â you still there
<t0mless>Â Â Â ish
*Â Â Â CyberBotX is now known as CBX-AWAY
<tank-man>Â Â Â moonunitzappa, why does it have to be an app? whats wrong with a web page?
<danielhampton>Â Â Â Each instance of the emulator runs behind a virtual router/firewall service that isolates it from your development machine’s network interfaces and settings and from the internet. An emulated device can not see your development machine or other emulator instances on the network. Instead, it sees only that it is connected through Ethernet to a router/firewall.
<DrPenguin>Â Â Â danielhampton: sorry I had to go eat dinner, its np, glad you figured it out
<danielhampton>Â Â Â I haven’t figured it out DrPenguin ![]()
<DrPenguin>Â Â Â oh no!
<t0mless>Â Â Â right… so I guess your router could be blocking the port
<`teh1>Â Â Â t0mless:Â is there a method that gets called when the “take picture” button is pressed on a camera? and by that i meant the hardware button
<t0mless>Â Â Â Not sure what you mean `teh1
<danielhampton>Â Â Â might have to try it on a device rather than emulator
<moonunitzappa>Â Â Â tank-man: we have a few webpages, just wanted to expand it
<DrPenguin>Â Â Â t0mless: he means he wants to know whats called when you tell your phone to take a picture when the button to do so is a physical one on the phone
<moonunitzappa>Â Â Â occupywallstreet has a few apps and have quite a few downloads
<DrPenguin>Â Â Â and not a on screen button
<t0mless>Â Â Â I’m not sure that’s what he means
<`teh1>Â Â Â well in my camera view i handle taking pictures via an onClick, however theres a hardware button that causes the camera to take a picture, and because i am not interrupting that and stopping the preview first, its crashing the camera driver
<`teh1>Â Â Â t0mless:Â ^
<t0mless>Â Â Â I think he’s trying to hook into the button in his app
<`teh1>Â Â Â so im interested in how exctly to interrupt it
<t0mless>Â Â Â same way you can hook into the back button
<t0mless>Â Â Â i think it’s the onButtonPressed
<`teh1>Â Â Â thanks
<moonunitzappa>Â Â Â the app would get quite a few downloads, so it may be a good starting point to get your name, devgroup to get their name out
<knxville>Â Â Â Hi, I got this code. http://pastebin.com/JWhK8cuZ which takes a random id from the array and shows the text. Imagine I created a button which kept taking a random from the array and showed the string, then what I want is that it should not show the same string twice..
<`teh1>Â Â Â also for xml, inside a linear layout is there a way to center something on the screen?
<t0mless>Â Â Â use the gravity element
<t0mless>Â Â Â oh, onKeyDown
<QubeZ>Â Â Â can someone take a look at this simple layout and tell me why my ImageView will not line up to the far right? http://pastebin.com/XyKGa9KU
<QubeZ>Â Â Â i know I need to use layout_gravity here but “right” doesn’t seem to anchor it there
<t0mless>Â Â Â onKeyDown would let you intercept the camera keypress
<DrPenguin>Â Â Â its because your using wrap_content
<t0mless>Â Â Â http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CAMERA
<DrPenguin>Â Â Â theres no “anchorable area” for the view to latch to on the far right
<DrPenguin>Â Â Â atleast I think thats your problem
<QubeZ>Â Â Â DrPenguin: ok makes sense but if I do fill_parent on the imageview, it’ll stretch out the image
<QubeZ>Â Â Â DrPenguin: ya i think you’re right
<QubeZ>Â Â Â well hold on, my parent is fill_parent
<DrPenguin>Â Â Â Why not change your Parent to Relative
<QubeZ>Â Â Â so when i tell imageview to anchor to the right on layout_gravity it should go to the parent
<DrPenguin>Â Â Â then align it to the right of the parent
<t0mless>Â Â Â QubeZ try using gravity instead of layout_gravity
<QubeZ>Â Â Â DrPenguin: when I do that, the imageview is not visible on my phone but is on eclipse
<QubeZ>Â Â Â t0mless: i can’t use android:gravity on a child
<DrPenguin>Â Â Â QubeZ: because your probably missing another alignment
<DrPenguin>Â Â Â I believe RelativeLayout children require 2
<t0mless>Â Â Â but I think gravity is to tell a layout how to align it’s stuff inside it…
<QubeZ>Â Â Â t0mless: i do android:gr<Ctrl-Space> and nothing, only layout_gravity
<QubeZ>Â Â Â lol its nice revisiting shit like this after like a month because something changed and now RelativeLayout with alignParentRight true works
<QubeZ>Â Â Â lol
<QubeZ>Â Â Â i swear, it wasn’t working a month ago
<Noxz>Â Â Â I am also getting a “consumer closed input channel” error.. I was able to fix that a few hours ago by removing all of my breakpoints, one kind of got half way between two lines, stupid eclipse.. but right now I dont have ANY breakpoints
<moonunitzappa>Â Â Â how can look at the apps on my phone thru usb storage?
<moonunitzappa>Â Â Â i can see certian apps
<moonunitzappa>   would they be in android/data?
<knxville>Â Â Â I got this code: http://pastebin.com/JWhK8cuZ if I wouldnt want the same ID (there is a random) be taken twice, how would I do?
<zcat>Â Â Â knxville, shuffle
<zcat>Â Â Â moonunitzappa, depends on what you want to look at and if you have root.
<mike-burns>Â Â Â Is anyone here using Scala in Eclipse for Android development?
<moonunitzappa>Â Â Â i have root, and just wanted to look at an app for refrence but not sure where the lines of plaugerism start and end so im not even gonna bother
<knxville>Â Â Â zcat: that wouldnt make sure it didnt get picked twice?
<rockstar8577>Â Â Â which protection method is best for an app
<rockstar8577>Â Â Â googles licensing protection or blocking the copying of the card
<rockstar8577>Â Â Â of the app i mean
<zcat>Â Â Â moonunitzappa, what is it that you suspect was plagiarized? graphics? the apks are zipped. pull ‘em and unzip
<zcat>Â Â Â knxville, yes
<moonunitzappa>Â Â Â no, i mean trying to write an app based off another, and was gonna copy layout but i dont think i can do that
<moonunitzappa>Â Â Â not sure if opend soucred
<moonunitzappa>Â Â Â and i cant even get to the source code anyways
<knxville>Â Â Â zcat: i do not follow you.. so instead of a random, i should shuffle, pick an ID, shuffle, pick and id?
<moonunitzappa>Â Â Â but i just ran across app inventor beta, i think this would help
<zcat>Â Â Â moonunitzappa, you can use the hierarchyviewer tool for a hint.
<Noxz>Â Â Â My errors piror/during/after the crash: http://pastebin.ca/2088504
<`teh1>Â Â Â what is the correct place to store a temporary image file taken from the camera?
*Â Â Â moonunitzappa is now known as meek
*Â Â Â DaKu is now known as daku
<bluezone>Â Â Â is there a tutorial i can read somewhere? I’m tired of not understanding anything :S
<`teh1>Â Â Â hey t0mless so i’ve been trying to get the camera to save an image somewhere, this is what i tried. something look wrong to you? https://gist.github.com/7caaa9f3e7acd94455c1
<`teh1>Â Â Â bluezone: google?
<t0mless>Â Â Â d.android.com has lots of tutorials
<bluezone>Â Â Â `teh1: I looked and all i found was garbage or mis-placed and irrelevant jargon
<`teh1>Â Â Â hehe
<Grognardian>Â Â Â if i created a html/js/css game “engine” with map editor, and drop and drap items, etc… would that be an “engine”, “framework”, or “library”?
<bluezone>Â Â Â `teh1: i have the lay-out all set up for my app, i’m just trying to figure out where to start programming tbh, how do i control what the buttons do?
<`teh1>Â Â Â android:onClick=”methodName”
<`teh1>Â Â Â then in the code public void methodName(View v){/*do stuff*/}
<bluezone>Â Â Â mhmmm, interesting
<bluezone>Â Â Â what does v refer to
<Leeds>Â Â Â bluezone: really… go to d.android.com and look at the stuff under the resources tab
<Leeds>Â Â Â as well as the dev guide, from the top down
<`teh1>Â Â Â bluezone:Â you probably need to learn java first LO
<`teh1>Â Â Â
*
<t0mless>Â Â Â and perhaps read a few java tutorials
<bluezone>Â Â Â `teh1: ssssssshhhh ![]()
<`teh1>Â Â Â nope.
<bluezone>Â Â Â too bad sl4a wasn’t more useful ![]()
<mike-burns>Â Â Â Java? Pffft.
*Â Â Â mike-burns prepares the slides for his “Scala for Android” talk at Android Open.
<rockstar8577>Â Â Â what protection method is better for apps, copy protection or licensing?
<Leeds>Â Â Â copy protection is broken, unreliable, and deprecated – don’t use it
<rockstar8577>Â Â Â so do licensing?
<Leeds>Â Â Â yes, if appropriate
<rockstar8577>Â Â Â im guessing appropriate means for paid apps?
<mike-burns>Â Â Â If it’s what you think you need, then use it.
<mike-burns>Â Â Â My understanding is that most piracy happens because the user simply cannot buy the app.
<Leeds>Â Â Â not all paid apps need it…Â if you’re doing your own server-side verification, for example, you probably don’t need it
<Leeds>Â Â Â mike-burns: I think that was true in the past – now it’s just cheapskate users who think a $ or 2 is too much to pay for a $500 smartphone on a $50+ per month contract
<mike-burns>Â Â Â Kids these days.
<Leeds>Â Â Â seriously, there’s a real psychological issue with Android users buying apps
<Leeds>Â Â Â something which is worth having for more than a few minutes is worth $1 or more, almost by definition – but people will go searching for free alternatives, or do without, rather than just ponying up
<Leeds>Â Â Â t’was better in the 24-hour-refund days, I think
<Igashu>Â Â Â Well, I think part of the problem is that there are legitimately a lot of free alternatives on the Android market to many apps
<Igashu>Â Â Â Whereas on the iOS App Store, there’s very little that’s free AND good
<Leeds>Â Â Â Igashu: until people complain about the amount of ads
<Igashu>Â Â Â There are a surprising number of good free apps that don’t hit you over the head with ads, or even provide a free means of disabling them in the menus.
<Igashu>Â Â Â But yes, for a myriad of reasons, it’s a tough world out there for Android devs
<zcat>Â Â Â tough everywhere. and humans with the time to dev apps don’t really have it all that bad to begin with. (1st-world problems).
<zcat>Â Â Â can’t expect to be a ‘rockstar’.
<rockstar8577>Â Â Â -.-
<rockstar8577>Â Â Â T_T
<zcat>Â Â Â rockstar8577, oh hai. ![]()
<zcat>Â Â Â well that’s one rockstar.
<rockstar8577>Â Â Â *walks away slouched*
<Leeds>Â Â Â zcat: I’m not complaining about me – I’ve got one paid app on the market and it’s terrible – but the common won’t-pay attitude
<zcat>Â Â Â Leeds, I understand. a $2 slice a pizza you don’t think twice about buying VS some $2 zeros and ones you might depend on daily, but… $2?!?!?!?!
<Leeds>Â Â Â exactly
<Leeds>Â Â Â the perception of value is out of balance
*Â Â Â CBX-AWAY is now known as CyberBotX
<mike-burns>Â Â Â I do agree with Igashu ‘s point: we need to remember to charge for apps if we want to create a culture where it’s OK to pay for apps.
<Leeds>Â Â Â catch-22 there, though
<mike-burns>Â Â Â Yup, but we gotta bite the bullet and do it.
<Ologn>Â Â Â I haven’t charged for any apps yet
<Ologn>Â Â Â My most popular app I put out version 1 in four days
<Ologn>Â Â Â I have been improving it since then, getting user feedback in the process
<Ologn>Â Â Â Perhaps after a year of improving it I’ll start charging
<mike-burns>Â Â Â I wish it were easier to transition to a paid app from free.
<Ologn>Â Â Â Is it hard to do?
<Leeds>Â Â Â it’s ‘impossible’
<Leeds>Â Â Â you have to release it as a new app
<carpe_diem>Â Â Â bartman: pcbsd, puppy linux, plain debian, fedora, arch, mandriva, more at –> http://distrowatch.com/
<carpe_diem>Â Â Â w00t, wrong chan
<Ologn>Â Â Â I would probably grandfather my existing users in anyhow
<samosa>Â Â Â Thx
<Ologn>Â Â Â One argument for ads and the like and against paid apps…
<Ologn>Â Â Â …is that in the 1980s and 1990s, software was sold in a box like a commodity to an unnetworked PC…phones are all going to be Internet connected…so the web/ad model is easier to do then the old pay model
<mike-burns>Â Â Â Ads looks bad and produce small revenue. Please just charge.
<Igashu>Â Â Â Leeds: Couldn’t you add in-app payments to a free app after the fact?
<Igashu>Â Â Â That’s one way to do it
<Leeds>Â Â Â ah, yes, I think you can do that
<Leeds>Â Â Â mike-burns: I think ads can work if you have a genuinely volume app
<mike-burns>Â Â Â It’s more straitforward, in public relations, to go from charging to free than the other way around.
<Leeds>Â Â Â my biggest app has just under 5k installs… it’s literally seasonal (weather app), but when there’s weather to generate views, I’ve seen over $1 per day… not a lot – but if it had 10x users (wasn’t so niche) and steady views, I’d take $300 per month happily
<ron_frown>Â Â Â oi
<ron_frown>Â Â Â anyone done anything with oauth on android?
<ron_frown>Â Â Â signpost or scribe or leeloo?
<Ologn>Â Â Â mike-burns: I release a simple but functional app after a few days work…then I build it over a year or two, getting user feedback in the process…after a year I create a pay app and maybe be nice and grandfather the old users in (or not)…this way I get revenue while I’m developing the app
<mike-burns>Â Â Â I guess I have a personal bias that I’m pushing: I hate ads and have money.
<Ologn>Â Â Â The other thing is iPhone and iPad users tend to be professionals with money to burn
<zcat>Â Â Â Ologn, whatever you do, if making a paid version of existing free, don’t REMOVE what used to be free to put in the paid version: that’s the quickest way to earn thousands of 1-star reviews. This is what “Fly, Dragon, Fly”, and some live wallpaper I can’t remember the name of did (solar something). Instead, add premium.
<ron_frown>Â Â Â mike sadly end users dont agree as been proven
<ron_frown>Â Â Â at least with android
<Ologn>Â Â Â I know college kids without much money with Android phones…it’s a lower rent audience
<Ologn>Â Â Â zcat: Yes, that’s probably what I’d do
<Ologn>Â Â Â The most successful paid app is one that hooks into Microsoft Outlook mail and calendar
<Igashu>Â Â Â Touchdown?
<Igashu>Â Â Â helps that it’s $20 ![]()
<Ologn>Â Â Â Yes, touchdown
<Ologn>Â Â Â $20 times 100k+ users = at least $2 million
<NoorulIslaam>Â Â Â we only have apps for the iphone so far
<NoorulIslaam>Â Â Â but we’re making 90%+ of our revenue from ads
<NoorulIslaam>Â Â Â we have about 8000 daily users of the free ad-supported version of the app
<NoorulIslaam>Â Â Â which is getting us from $100 to $200 per day
<NoorulIslaam>Â Â Â but you can make much more, for a few days we did $1000 per day from just ads
<NoorulIslaam>Â Â Â it all depends on the popularity of the app
<NoorulIslaam>Â Â Â also i think the apps that generate the most ad requests get served the highest paying ads
<NoorulIslaam>Â Â Â so there is an exponential increase in ad revenue as your app rises in popularity
<NoorulIslaam>Â Â Â the android version of our app will be free and ad supported too
<NoorulIslaam>Â Â Â with in app purchase to remove ads and unlock more feature packs
<NoorulIslaam>Â Â Â the key is to make your app free, put ads in it, have a paid version too or with in app purchase to remove ads, and then market it massively when its released
<NoorulIslaam>Â Â Â so you get tens of thousands of downloads the first day to push it up in the rankings (atleast on the apple app store)
<NoorulIslaam>Â Â Â an excellent way to do that is to advertise the new app to users of your most popular existing apps
<rockstar8577>Â Â Â how could “private final TelephonyManager TM = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE);”
<Ologn>Â Â Â I used Admob’s House Ads to inter-promote some of my apps…I might check out Adwhirl or something eventually
<rockstar8577>Â Â Â cause a null pointer exception
<Ologn>   I met one of the Golden Hammer software developers at the Android Developer lab. Golden Hammer Software has two developers, and they’ve been making a modest living, mostly on their one game. They plot out their revenue pie chart here: http://goldenhammersoftware.blogspot.com/2011/04/sales-per-platform-big-mountain.html
<mike-burns>Â Â Â rockstar8577: getBaseContext() could produce null, or anything inside getSystemService could produce null. It’s Java, so anything can be null anywhere it feels like it.
<mike-burns>Â Â Â So … make sure getBaseContext() isn’t producing null?
<rockstar8577>Â Â Â mike-burns: ohhh okay didnt know that about java xD
<mike-burns>Â Â Â Hah.
<rockstar8577>Â Â Â so maybe do a try catch? o
<mike-burns>Â Â Â Just use an `if’.
<mike-burns>Â Â Â Or switch to Scala and wrap it in an Option.
<Grognardian>Â Â Â why is it so hard to get rid of the android browser URL bar? is there a button to?
<yareally>Â Â Â i didnt realize the url bar is a big deal…you only see it at the very top of the page when you scroll to the top
<mike-burns>Â Â Â It’s not shown for Webkit … is this the right channel?
<Ologn>Â Â Â Wikipedia saw more traffic from Honeycomb tablets than all Windows mobile devices last month
<engineglue>Â Â Â hello
<xorgate>   argh.. i’m devving on both a windows desktop and a mac laptop. Both use the same font. On the mac I have a String with ë in it. Using git to move it to bitbucket, and grab it from there, on my desktop. Now the ë is mangled into something else. Is this an issue of forcing all sourcefiles to utf-8 maybe?
<xorgate>Â Â Â (using eclipse)
<yareally>Â Â Â probably
<Nagrom_17>Â Â Â Hello
<jaidan>   I’m working on a custom CursorAdapter and running into an issue. My app is failing with a CursorIndexBoundsException due to Index -1 requested, with a size of 1. This happens before my newView or bindView code is called so I’m having trouble figuring out what I missed
<xorgate>Â Â Â what do you mean by ‘index -1 requested, with a size of 1′ ?
<Nagrom_17>Â Â Â So kernel.org has been down for awhile. All the scripts and things from github.com/android are still referencing it instead of github.com/android
<Nagrom_17>Â Â Â I just cant figure out how to get the source to download.
<Nagrom_17>Â Â Â I download the manifest files fine but then repo sync always fails
<jaidan>   xorgate: I assume the index of the cursor. I guess a Cursor would work like an array basically and well indexing -1 seems like I missed something
<jaidan>Â Â Â xorgate: that’s the error message I’m getting from the exception, I can’t really tell what exactly is causing it because it’s being thrown outside of my code
<xorgate>Â Â Â jaidan maybe it’s to do with the “from” and “to” params?
<jaidan>   xorgate: How so? I would definetly think it would be something with the Cursor since it’s a CursorIndexOutOfBoundsException being thrown. My from and to are much different than what a SimpleCursorAdapter takes
<xorgate>Â Â Â idunno just a thought.. pastebin?
<ron_frown>Â Â Â I am amazed…
<ron_frown>Â Â Â Iv’e tried signpost, and scribe with any number of examples, any numbers of diff oauth providers
<ron_frown>Â Â Â NONE of them worked
<jaidan>Â Â Â xorgate: http://pastebin.com/w6gT4ZN1
<jaidan>Â Â Â That’s the custom CursorAdapter, but the part that’s throwing me off if the exception is being raised between the time that my constructor completes and before my bindView or newView get called…so I can’t see the reason
<xorgate>Â Â Â has a previous version worked?
<jaidan>Â Â Â xorgate: no, this is the first go at it
<xorgate>Â Â Â jaidan ok im wondering about the constructor calling super
<jaidan>Â Â Â xorgate: hmmm it gets past that point in the debugger just fine, as well as I don’t believe the constructor for a CursorAdapter does anything funny
<xorgate>Â Â Â ah hm im using simplecursoradapter, not cursoradapter
<jaidan>Â Â Â yeah =) this extends just a cursoradapter not a simplecursoradapter
<jaidan>Â Â Â all that weird stuff I’m doing with from/to would really break simplecursoradapter I’m sure
<xorgate>Â Â Â well i dont know really.. also im watching starcraft so not operating at 100% :0
<jaidan>Â Â Â I just don’t get why something is indexing -1 into my cursor I’m wondering if I overlooked something lol
<xorgate>Â Â Â -1 sounds like something failed to return a decent value
<xorgate>Â Â Â maybe something with the cursor itself
<`teh1>Â Â Â hey guys i can’t seem to figure out how to open an existing file into a File. ideas?
<jaidan>Â Â Â Yeah…I don’t see anywhere in the source for SimpleCursorAdapter where they are like calling cursor.moveToFirst or anything
*Â Â Â MjrTom_ is now known as MjrTom
*Â Â Â [0xD34D] is now known as [0xD34D]|tv
<SmkMnstr>Â Â Â No implementation for native Lcom/farscapel/app/Activity;.jnimain ()V
<SmkMnstr>Â Â Â that ; there is strange
<Nagrom_17>Â Â Â Can anyone help me get ‘repo sync’ to work?
<`teh1>Â Â Â WAIT
<Nagrom_17>Â Â Â `teh1, wait what?
<`teh1>Â Â Â ok this is getting annoying
<`teh1>Â Â Â how do i create a new File out of an existing one
<`teh1>Â Â Â i.e. load a (filesystem) file into a (class) file ![]()
<DrPenguin>Â Â Â wait, what arre you tring to do `teh1?
<`teh1>Â Â Â im trying to load a file into my program as a File
<`teh1>Â Â Â ![]()
<DrPenguin>Â Â Â Then.. do it? lol
<`teh1>Â Â Â but how
<`teh1>Â Â Â there are no methods in File for doing that. only for creating a new file
<DrPenguin>Â Â Â would it be… File fileToLoad = new File(pathToFile)?
<`teh1>Â Â Â no
<DrPenguin>Â Â Â Java has plenty of methods of opening files..
<`teh1>Â Â Â that creates a new, overwriting old
<DrPenguin>Â Â Â No it doesnt
<`teh1>   … wut
<DrPenguin>Â Â Â You can tell Java how to OPEN a file
<DrPenguin>Â Â Â for example, I can use a BufferedReader to read a file in (you guessed it) buffered chunks
<DrPenguin>Â Â Â or a FileReader to just read it
<`teh1>Â Â Â sec
<DrPenguin>Â Â Â Oh I see what your saying with creates a new file ifyou just use the File Class, but its easy to read form existing
<IonCannon218>Â Â Â if you want to get more low-level, InputStream ![]()
<DrPenguin>Â Â Â To be safe, just use a FileReader or BufferedReader object
<DrPenguin>Â Â Â hers how to do buffered:
<DrPenguin>Â Â Â BufferedReader br = new BufferedReader(new FileReader(PATH))
<DrPenguin>Â Â Â make sure you import java.io.*;
<`teh1>Â Â Â wont compile without
<`teh1>Â Â Â ![]()
<DrPenguin>Â Â Â whcih is why I said to make sure you import ![]()
<`teh1>Â Â Â ever use loopj android assync client?
<meek>Â Â Â can anyone help me open a jlnp
<`teh1>Â Â Â im trying to upload an image
<meek>Â Â Â im using app inventor
<`teh1>Â Â Â DrPenguin:Â however when i give it a File, it doesnt upload. when i give it an InputStream, it uploads eveything except the streamm data ![]()
<meek>Â Â Â http://pastebin.com/iKqPmEJy
<`teh1>Â Â Â http://loopj.com/android-async-http/
<meek>   getting that error when i open it
<DrPenguin>Â Â Â Well you cant use FileReader for Image files
<`teh1>Â Â Â im not
<`teh1>Â Â Â all it asks for is a File
<`teh1>Â Â Â so i give it a new File(path)
<DrPenguin>Â Â Â a File Object?
<`teh1>Â Â Â https://github.com/loopj/android-async-http/blob/master/src/com/loopj/android/http/RequestParams.java
<`teh1>Â Â Â yes
<`teh1>Â Â Â crap
<`teh1>Â Â Â i might be retarded
<`teh1>Â Â Â 1 min
<DrPenguin>Â Â Â lol
<`teh1>Â Â Â ok no DrPenguin im not retarded
<`teh1>Â Â Â continue where we left off
<`teh1>Â Â Â fuck i suck
<`teh1>Â Â Â i think i was being dumb.
<DrPenguin>Â Â Â I just rigged up a little program, I can make a new File object on anexisting image and read from it
<DrPenguin>Â Â Â and it doesnt nuke it
<`teh1>Â Â Â yep. i got it working.
<`teh1>Â Â Â the path was invalid :]
<DrPenguin>Â Â Â THAT would do it
<`teh1>Â Â Â yes.
<`teh1>Â Â Â sorry to bug you over my own dumb type
<`teh1>Â Â Â typo*
<`teh1>Â Â Â ^lol ironic
<DrPenguin>Â Â Â *DVM* ” WHAT THE F ARE YOU TALKING ABOUT? I DONT KNOW WHERE THAT IS! STOP YELLING AT ME!”
<DrPenguin>Â Â Â nah its ok man, we all do this
<`teh1>Â Â Â hahaha
<`teh1>Â Â Â :]
<DrPenguin>Â Â Â one time, when working on a driver for work, I forgot to install the actual driver and only installed its kernel modules, couldnt figure out the problem
<`teh1>Â Â Â well great
<`teh1>Â Â Â now i can take and upload thumbnail pictures along wit the rest of my post!
<`teh1>Â Â Â haha
<`teh1>Â Â Â :\ kernel extensions are confusing
<`teh1>Â Â Â peace out :3
<QubeZ>Â Â Â hello all
<Nagrom_17>Â Â Â Hello
<QubeZ>Â Â Â when it comes to widgets, is it ok to explicitly state the height ie: 100px?
<Nagrom_17>Â Â Â To anyone who has compiled from AOSP to a non nexus device, what kind of things do you need to change? I’m downloading the source now
<meek>Â Â Â anyone use googles blocks editor?
<meek>Â Â Â i cant open the jnlp
<meek>Â Â Â i get this error
<Nagrom_17>Â Â Â anyone here built AOSP for a non nexus device?
<yareally>Â Â Â I thought you knew how to do that Nagrom_17
<Nagrom_17>Â Â Â Its been a few years, the source is downloading anyway so I’m asking if anyone has pointers
<Nagrom_17>Â Â Â My past experience contradicts you saying its impossible to build from AOSP. So I’m asking
<yareally>Â Â Â i never said it was. however you’re awfully touchy.
<Nagrom_17>Â Â Â How am I touchy?
*Â Â Â [0xD34D]|tv is now known as [0xD34D]
<root66>Â Â Â I just made a boot animation with the FBI logo and fake messages saying that it is sending GPS coordinates and that the phone is reported missing or stolen. anyone want it?
<Nagrom_17>Â Â Â So really noone builds from AOSP anymore?
<optimusM>Â Â Â what is the code to put spaces between buttons
<root66>Â Â Â android:margin
<optimusM>Â Â Â ok so its not android:layout_marginTop
<root66>Â Â Â oops, layout_margin*
<root66>Â Â Â Top would just be for adding a margin to the top, obviously
<optimusM>Â Â Â yea and put =”30dp” after it
<optimusM>Â Â Â to make a space
<optimusM>Â Â Â what the heck its not working now
<optimusM>Â Â Â i did it before
<mdkess>Â Â Â Is there a straightforward way to draw a hardware accelerated line on Android 2.3?
<Nagrom_17>Â Â Â I don’t think straightforward and hardware accelerated and 2.3 go together
<mdkess>Â Â Â As I feared
Man, this is not a good day.
<Nagrom_17>Â Â Â ICS is supposed to fix that
<optimusM>Â Â Â hhha i fixed it
<optimusM>Â Â Â i had a /> in the menu.xml causing it to stop readibg the rest of the code
<mdkess>Â Â Â On that note, do you have any idea why a GLSurfaceView would be creating a tiny window for some reason (exactly half of native res).
*Â Â Â jobin is now known as joey77
<briswolf>Â Â Â anybody done much with remote services?
<DammitJim>Â Â Â is there a way to unregister a touch listener for a map?
<DammitJim>Â Â Â I don’t know why I can’t pick up the action of panning on a mapview that I have
<DammitJim>Â Â Â it seems to do the panning 1 time, but then quits
<briswolf>Â Â Â I am wondering how best to handle rotation in an app that uses a remote service – whenever the phone is rotated the activity is restarted which causes my service to be stopped and started again
<briswolf>Â Â Â (I am binding an unbinding in the activity create/destroy)
<optimusM>Â Â Â {
<optimusM>Â Â Â can someone explain this to me
<briswolf>Â Â Â the trouble is that my service does some heavy lifting on startup and I don’t want that happening on a device rotate
<briswolf>Â Â Â I could bind the service in Application start, but the docs tell me that I will never be notified that the application has ended (android just kills it)
<briswolf>Â Â Â I am certain this would break my service…
<optimusM>Â Â Â how can a button work if its not using a onclicklistner?
<briswolf>Â Â Â optimusM: sorry I have done zero UI work ![]()
<optimusM>Â Â Â what are you doing?
<xorgate>Â Â Â DammitJim using a gesturedetector?
<briswolf>Â Â Â optimusM: building a library for a USB accessory
<briswolf>Â Â Â I will get to the UI
<briswolf>Â Â Â but I am only new to android (< 2 weeks)
<briswolf>Â Â Â or 3 weeks
<optimusM>Â Â Â im new to 3 days ![]()
<briswolf>Â Â Â cool
<optimusM>Â Â Â just wish it was easier… cause java is a bz lol
<briswolf>Â Â Â so what is your button doing
<briswolf>Â Â Â when you click on it
<optimusM>Â Â Â it opens a menu
<briswolf>Â Â Â but you didn’t ask it to?
<briswolf>Â Â Â is it defined that way in the resources maybe?
<optimusM>Â Â Â im dojng a tutorial
<optimusM>Â Â Â yea
<briswolf>Â Â Â so what is it actually doing vs what you want to do?
<briswolf>Â Â Â I can guess wildly at some answers ![]()
<optimusM>Â Â Â its doing what its suppose to
<briswolf>Â Â Â oh
<briswolf>Â Â Â PROBLEM SOLVED! ;D
<briswolf>Â Â Â haha
<optimusM>Â Â Â im using a app call javaidedroid
<optimusM>Â Â Â calldd
<optimusM>Â Â Â called
<briswolf>Â Â Â ok
<optimusM>Â Â Â and the way he is doing everything is like a foreign language lol
<optimusM>Â Â Â its dont look like java
<optimusM>Â Â Â ill show you
<Noxz>Â Â Â so, basically after putting a different ROM on the bionic, I no longer have this problem: http://imagebin.org/178168
<Noxz>Â Â Â but I bet it will show it’s ugly face at some point
<Noxz>Â Â Â I even got all fo the native code for Skia and was looking into it, waste of a full day on that atleast
<rockstar85777>Â Â Â hmmm is the basic licensing in apps that effective?
*Â Â Â [0xD34D] is now known as [0xD34D]|N20
<danielhampton>Â Â Â howdy
<QubeZ>Â Â Â hello all
<QubeZ>Â Â Â if I use a textview with drawableLeft, is there a way to make other text align with the text instead of the image that’s to the left?
<QubeZ>Â Â Â or am I stuck with using <ImageView all the time?
<ron_frown>Â Â Â create a composite control
<QubeZ>Â Â Â whts that?
<ron_frown>Â Â Â custom control
<root66>Â Â Â http://i.imgur.com/hPpjj.gif
*Â Â Â CyberBotX is now known as CBX-PoweredDown
<Noxz>Â Â Â shit, problem still exists… more proof: http://imagebin.org/178265
<Noxz>Â Â Â see how the “right” is less than mrect.right ??
<Noxz>Â Â Â so… anyone care to tell me how to compile skia myself, with possibly more debug information?
<ptf>Â Â Â Will webView work in the 3.0 emulator? I can not for the life of me get it to show the page I want it to, I am stuck with the default grey screen. [00:36] == Cannot send to channel: #android-dev
<ptf>Â Â Â Will webView work in the 3.0 emulator? I can not for the life of me get it to show the page I want it to, I am stuck with the default grey screen. [00:36] == Cannot send to channel: #android-dev
<Leeds>Â Â Â ptf: yes, of course it works
<dlaroche>Â Â Â is there any libraries that help parse atom RSS feeds?
<BOBKA>   is it possible to change locale of non unicode applications in android? I would like to change the default encoding to cp1251, but I couldn’t find an option on how to do it
<tmzt_>Â Â Â java really has utf8 and utf16
<tmzt_>Â Â Â not sure how android is different
<ptf>Â Â Â Will webView work in the 3.0 emulator? I can not for the life of me get it to show the page I want it to, I am stuck with the default grey screen.
<Leeds>Â Â Â ptf: yes, of course it works (stop asking the same question)
<Leeds>Â Â Â isn’t cp1251 a Microsoft abomination?
<ptf>Â Â Â Sorry, computer bugged out saw response late. Said it couldn’t send to channel. My bad Leeds.
<BOBKA>Â Â Â tmzt_: thanks … I know that java is all unicode, but they up doesn’t see the russian text in irc, which happens to be cp1251
<tmzt_>Â Â Â ptf: you have to be known to services to speak in here
<tmzt_>Â Â Â BOBKA: are you writing an irc client?
<ptf>Â Â Â tmzt_: just registered, right?
<tmzt_>Â Â Â yeah
<BOBKA>Â Â Â tmzt_: no … I want to use one, but it will give me ??? instead of russian … so I need to convert the char set to cp1251
<BOBKA>Â Â Â may be I can get the source code of the client and modify it to use cp1251 …
<ptf>Â Â Â That’s weird b/c I was logged it and it still gave me the “Cannot send to channel”. Oh well, sorry for wasting everyone’s time again.
<Leeds>Â Â Â ptf: but you’re talking now, so let’s find out what’s wrong with your code… is this an apk which works on Gingerbread?
<tmzt_>Â Â Â ptf: you need to /msg nickserv identify pass
<tmzt_>Â Â Â if your client doesn’t do it for you
<ptf>Â Â Â It is designed specifically for HC 3.0 couldn’t get it to work when I did it myself, so I went straight of what the WebView tutorial had listed, but I’ve just got a blank grey screen.
<ptf>Â Â Â tmzt_: Thanks!
<BOBKA>Â Â Â hey guys, is there a way to see source code of the root for the android … I so don’t want to run the binaries to root my phone withot knowing what I am actually running
<Leeds>Â Â Â BOBKA: a) #android-root and b) often not, because the rooting tools tend to take advantage of security holes, and the authors hope to keep the holes secret a bit longer by keeping the source closed
<tmzt_>Â Â Â um, actually the source is available for most of them
<BOBKA>Â Â Â i don’t understand how people can trust those apps then …
<tmzt_>Â Â Â just not from the tools themselves
<BOBKA>Â Â Â tmzt_: can you give me some links plz
<tmzt_>Â Â Â what exploit is it using?
<tmzt_>Â Â Â I only know the ones scotty2 developed
<QubeZ>Â Â Â hmm i can’t seem to run sqlite3 on my phone
<QubeZ>Â Â Â says not found
<Leeds>Â Â Â then it’s probably not there
<Leeds>Â Â Â for fsck’s sake
<DrPenguin>Â Â Â BOBKA: if you are unsure about the binary and are decent with reading assembly.. just dissassemble the binary
<QubeZ>Â Â Â it was there before
<BOBKA>Â Â Â DrPenguin: I don’t think I will go through 100k of assembly
<Noxz>Â Â Â what’s the command to grab from github? ie, where is the manifest.git file ?
<BOBKA>Â Â Â git checkout?
<BOBKA>Â Â Â or git pull
<Noxz>   git clone git://github.com/android/platform_manifest.git android ?
<Noxz>Â Â Â maybe
<DrPenguin>Â Â Â BOBKA: dunno what to tell you then, have a little faith in the rooting community.. imo xda is a trustworthy source
<Leeds>Â Â Â DrPenguin: ha… aha… ha ha ha
<DrPenguin>Â Â Â Leeds: Yes! I am a funny person
<Leeds>Â Â Â indeed, and I thank you for the amusement!
<DrPenguin>Â Â Â You are quite welcome sir
<Noxz>Â Â Â that jsut got one thing, I want the entire source
<Leeds>Â Â Â I want it all… I want it all… I want it all… and I want it NOW!
<DrPenguin>Â Â Â Are you.. Quoting Violet from Willy Wonka and the Chocolate Factory?
<Leeds>Â Â Â more like Freddie from Queen
<DrPenguin>Â Â Â Ah, that from a song im guessing?
<Leeds>Â Â Â yeah… most quotes from Queen are likely to be from a song, being that they are a band
<DrPenguin>Â Â Â WOW REALLY? I WOULD OF NEVER GUESSED
<DrPenguin>Â Â Â THATS AMAZING
<xDD>Â Â Â What is the maximum resolution for H.264 AVC Baseline Profile videos that works on all android devices? http://developer.android.com/guide/appendix/media-formats.html
<Leeds>   *all* devices? about 320×240 or something, probably
<xDD>Â Â Â and for all devices 1.5+, same thing I guess?
<ron_frown>Â Â Â anyone seen anything with oauth 2 actually work on android?
<xDD>Â Â Â can I somehow provide a fallback video and have that used automatically if higher resolution isn’t supported?
<Noxz>Â Â Â … how do I make repo use github? I used “repo init -u git://github.com/android/platform_manifest.git -b gingerbread” successfully… but it still tries to use kernel.org
<Leeds>Â Â Â xDD: I’ve shipped an app which downloads videos – what I do is make it grab a small video if it’s on a small screen, and a bigger one otherwise
<xDD>Â Â Â Leeds: Ah, which API are you using to determine the screen size?
<Leeds>Â Â Â just resources
<Leeds>Â Â Â put the base download URL as a resource, and let the system choose the appropriate resource by screensize at runtime
<Noxz>Â Â Â using repo with github, anyone?
<danielhampton>Â Â Â DrPenguin you there?
<Ebonwumon>Â Â Â Okay so basically I’ve been tasked with making an android app for a school, and they have this website for their grades: https://powerschool.eips.ca/public/
<Ebonwumon>Â Â Â The refuse to give me an API or any special access, but this site is unlikely to change its layout or the content on it.
<Ebonwumon>Â Â Â Is there anyway to use some combination of post requests/ hardcoding the parsing of tags to actually get the data from the site and into my app?
<yareally>Â Â Â i had to use a pearson website once for a university class….they used unsigned activex and forced it on you unless you had a Mac :/
<Ebonwumon>Â Â Â I don’t think that’s the case with this one.
<Ebonwumon>Â Â Â It seems pretty standard as far as HTML sites go.
<yareally>Â Â Â use curl and parse through the html tags and get what you need/want assuming they dont cockblock you for not having the referrers they want
<bis0n>Â Â Â hello
<yareally>Â Â Â though that can be dealt with
<optimusM>Â Â Â ok im goinb to give this another try
<optimusM>Â Â Â going
<Ebonwumon>Â Â Â Okay, so I’m playing around with curl and I passed some stuff in post and it gives me errors about requiring javascript.
<Ebonwumon>Â Â Â I assume that completely cockblocks me in that regard?
<yareally>Â Â Â yeah you would need to get the javascript files too
<yareally>Â Â Â and store them on the phone
<yareally>Â Â Â and probably work with them locally
<bis0n>Â Â Â I want populate an ListView with last calls… I have try String sortOrder = ContactsContract.Contacts.LAST_TIME_CONTACTED + ” COLLATE LOCALIZED ASC”;but that appears with last call at the bottom of the List
<yareally>Â Â Â via webkit
<yareally>Â Â Â hope they’re paying you well, it sounds like a mess to me
<optimusM>Â Â Â Â public boolean onOptionsItemSelected (MenuItem item)
<Ebonwumon>Â Â Â Not being paid, I’m a godamn student. Not gonna put up with this crap – I’ll just tell the staff it’s impossible.
<yareally>Â Â Â ouch
<Ebonwumon>Â Â Â When they start paying me, I’ll start putting in a smidge of effort.
<yareally>Â Â Â yeah, i wouldnt bother, lol
<Ebonwumon>Â Â Â Until then they get what they paid for.
<yareally>Â Â Â yeah id want money because even a free pass to slack for the rest of the year wouldnt be enough imho
<optimusM>Â Â Â and tutorial on boolean
<yareally>Â Â Â they dont even have html that validates
<optimusM>Â Â Â any
<yareally>Â Â Â i remember when i was in high school and i took autocad they tried to get free labor out of my senior year for something they wanted to construct and i just said it wasnt worth doing, lol
<Ebonwumon>Â Â Â optimusM, I know how infuriating it can be to just not get a response when people are talking, so I’ll just say that I have absolutely no idea – sorry.
<yareally>Â Â Â they have money, make them pay, haha
<Ebonwumon>Â Â Â Especially since we just elected a new premier and my school district just got an extra $6mil
<optimusM>Â Â Â its ok
<optimusM>Â Â Â im learninh
<optimusM>Â Â Â learning
<optimusM>Â Â Â and im starting actually understand this
<yareally>Â Â Â yeah if you want to do something more fun go make an android game on your own, lol
<yareally>Â Â Â dont be the school’s slave
<briswolf>Â Â Â optimusM: what do you want to know about bolean?
<yareally>Â Â Â not to but it in negative terms
<yareally>Â Â Â put*
<optimusM>Â Â Â is there a list of imports that are used
<briswolf>Â Â Â it is a type which can be true, or false
<briswolf>Â Â Â for boolean?
<optimusM>Â Â Â no
<optimusM>Â Â Â for a second activith
<optimusM>Â Â Â activity
<yareally>Â Â Â we didnt have smart phones when i was in school so i programmed on my ti86, woo
<Ebonwumon>Â Â Â I’m working on my own project, ofc, yareally. I like the idea of making android apps, but I actually really dislike doing it. PHP makes me a happy panda.
<briswolf>Â Â Â a second activity, like two icons in the launcher?
<optimusM>Â Â Â like a button opens a new page
<pervy_sage>Â Â Â Hey, how do I get the yaw angle given the magnetic sensor values.
<briswolf>Â Â Â create a second class which extends activity, then declare it in the application manifest (is that right?)
<optimusM>Â Â Â yea
<optimusM>Â Â Â brb
<optimusM>Â Â Â going to look at this again
<yareally>Â Â Â you could make a web app just fine that runs on android and does most things a native one does Ebonwumon, but I wouldnt want to make a webapp for that school, lol
<briswolf>Â Â Â http://developer.android.com/guide/topics/fundamentals/activities.html
<optimusM>Â Â Â whats that for
<yareally>Â Â Â if you’re good with javascript Ebonwumon, writing some userjs would be the best way to make a mobile (webapp) app for that mess
<briswolf>Â Â Â explains almost everything you would want to know about acitivities
<optimusM>Â Â Â can u make a smaller link pleass
<Ebonwumon>Â Â Â yareally, i’ve tried making webapps in the past – I hit a giant wall in that I just can’t make things look good. I *love* interfacing with databases and making object oriented structures to parse data, but I hate trying to make it look pretty, because I’m just really bad at it.
<optimusM>Â Â Â please
<briswolf>Â Â Â really? why?
<Ebonwumon>Â Â Â optimusM, http://goo.gl/bHU8e
<yareally>Â Â Â there’s some boilerplates out there to get you started on the skeleton of a webapp Ebonwumon…well that and frameworks
<Ebonwumon>Â Â Â I feel like frameworks are a bad idea in a learning stage though, because then I don’t get the fundamental understanding of what I’m doing, and I become reliant on the framework.
<yareally>Â Â Â true
<optimusM>Â Â Â if i told u why you would call me retarded cause i heard it so many times lol
<yareally>Â Â Â i agree
<yareally>Â Â Â but in case you want somethign that’s semi minimal http://labs.doat.com/
<yareally>Â Â Â it’s more of a template than a framework
<briswolf>Â Â Â optimusM: the only reason I can think is you are typing it out by hand, or writing it down ![]()
<Ebonwumon>Â Â Â yareally, how does something like that compare to say, PhoneGap?
<optimusM>Â Â Â worse
<optimusM>Â Â Â using my phone
<briswolf>Â Â Â to browse the web?
<optimusM>Â Â Â to build a app
<yareally>Â Â Â dunno, never used phone gap, but it looks similar
<briswolf>Â Â Â what?! building an app… on your phone?
<briswolf>Â Â Â is that possible ![]()
<optimusM>Â Â Â i already got my first layout
<optimusM>Â Â Â yes
<optimusM>Â Â Â javaidedroid
<optimusM>Â Â Â its in the market
<briswolf>Â Â Â cool. so are you on irc on your phone too?
<optimusM>Â Â Â yup
<optimusM>Â Â Â phandroid
<briswolf>Â Â Â so why can’t you click on links in irc?
<optimusM>Â Â Â idk lol
<briswolf>Â Â Â or copy and paste them?
<briswolf>Â Â Â ok
<Ebonwumon>Â Â Â I’m not sure whether I want to harm you physically, or call you a hero.
<optimusM>Â Â Â idk
<briswolf>Â Â Â never mind
<yareally>Â Â Â lol
<optimusM>Â Â Â brb
<optimusM>Â Â Â going to read
<briswolf>Â Â Â ok
<bis0n>Â Â Â http://pastebin.com/jLDCRudDÂ how I can limit my query to X first results?
<yareally>Â Â Â ……LIMIT x (where x is some number)
<ron_frown>Â Â Â hmm
<yareally>Â Â Â well if you were writing straight SQL
<ron_frown>Â Â Â what the hell happened to the regulars up in this bitch
<yareally>Â Â Â but doesnt look like you are
<bis0n>Â Â Â ^^
<optimusM>Â Â Â so if im right my main activity will have have imports for the second activity and the second activity will have whatvwas imported to the main activity
<bis0n>Â Â Â yareally, LIMIT x ?? that is on the SQL query? where to put this?
<yareally>Â Â Â SELECT some_column, another_column FROM some_table LIMIT 10;
<yareally>Â Â Â or whatever
<yareally>Â Â Â if you were actually writing out sql
<bis0n>Â Â Â mmmh ok
<bis0n>Â Â Â for exemple “ContactsContract.Contacts.DISPLAY_NAME + “Â LIMIT 10″”
<bis0n>Â Â Â right?
<yareally>Â Â Â dunno, probably
<yareally>Â Â Â you’re not submitting sql queries directly so dunno if that works
<bis0n>Â Â Â mmh I will make test…
<yareally>Â Â Â managed query is depreciated in android 3.0 also
<yareally>Â Â Â so may not be around for ICS
<bis0n>Â Â Â managed query is depreciated in android 3.0 also oO
<yareally>Â Â Â use rawQuery to write pure SQL
<yareally>Â Â Â just remember to use stored procedures so stuff gets escaped
<bis0n>Â Â Â Ok!!! that is work… ContactsContract.Contacts.LAST_TIME_CONTACTED + ” COLLATE LOCALIZED DESC” + “Â LIMIT 10″
<bis0n>Â Â Â it is just an small appli for myself… so… I don’t have android 3.0
<optimusM>Â Â Â is there a app that lets put put files from my sd card to my home screen?
<optimusM>Â Â Â dang double text lol
<xDD>Â Â Â Will a 320×480 H.264 Baseline Profile video play on all android devices >= 1.5?
*Â Â Â snooplsm_ is now known as snooplsm
<yareally>Â Â Â if they dont have a screen res at least that large, i dont think i would worry about them
<Noxz>Â Â Â How do I use repo with github to get everything?
<yareally>Â Â Â http://php.webtutor.pl/en/2011/09/05/kernel-org-hacked-how-to-get-android-repo/
<yareally>Â Â Â i wouldnt normally be someone’s google, but i already had it open
<Noxz>Â Â Â oh wow, thanks
<briswolf>Â Â Â optimusM: why do you have imports for your second activity? as far as I understand, you can start activity B from activity A using an intent, or you can use startActivityForResult to get data back from the activity when it is finished
<Noxz>Â Â Â I googled for such a thing, but y’know
<Noxz>Â Â Â ohh, github wasnt used here
<Noxz>Â Â Â lol
<Noxz>Â Â Â thanks
<briswolf>Â Â Â optimusM: I am a complete n00b though when it comes to activities
<yareally>Â Â Â i wouldnt trust the github one, it’s not permanent
<yareally>Â Â Â codeaurora is
<Noxz>Â Â Â yareally# yeah, and they rename shit
<Noxz>Â Â Â it’s fine for browsing here and there though
<Noxz>Â Â Â thanks, it seems to be working
*Â Â Â prot is now known as Prot
<Noxz>Â Â Â seems a little slow, but I think I need some sleep anyhow
<demonspork>Â Â Â I am trying to modify a lockscreen that I am currently using on miui, it launches com.miui.player from one of its shortcuts. I want it to launch com.google.android.music but I have no idea how to do this. I found the line that launches the com.miui.player application, what would it need to read to do the com.google.android.music instead?
<demonspork>Â Â Â <Intent action=”android.intent.action.MAIN” package=”com.miui.player” class=”com.miui.player.drawerActivityGroup.MainActivityGroup”/>
<ron_frown>Â Â Â put in the intent
<demonspork>Â Â Â ![]()
<danielhampton>Â Â Â Hello ![]()
<optimusM>Â Â Â is a class a activity?
<optimusM>Â Â Â such as this
<danielhampton>Â Â Â hey optimus, its Siilentone
<danielhampton>Â Â Â had an issue with my registration so had to remake ![]()
<optimusM>Â Â Â hey whats up
<xDD>Â Â Â Is there no way to reply to a comment on my own application?
<danielhampton>Â Â Â nm ![]()
<optimusM>Â Â Â im almost getting this down
<optimusM>Â Â Â im working hard i wont quit
<danielhampton>Â Â Â good stuff ![]()
<g00s>Â Â Â dang, hor as lame as the iPhone 4s seemed, they definitely are selling like hot cakes
<danielhampton>Â Â Â yup lol
<optimusM>Â Â Â i have duplicates though lol
<optimusM>Â Â Â but doesnt pages have duplicates
<optimusM>Â Â Â like onCreate
<yareally>Â Â Â boxes with an Apple on them would sell like hotcakes
<xDD>Â Â Â hmm, the android market doesn’t do delta updates?
<g00s>Â Â Â yareally: thats because they don’t need electricity to run, they are powered by dreams and inspiration!
<yareally>Â Â Â haha
<yareally>Â Â Â the iBox….your cat will love it
<optimusM>Â Â Â ok so i have this boolean onCreateOptionsMenu(menu, menu)
<optimusM>Â Â Â but i dont want it to be a menu i want it to be a new page
<xat“>Â Â Â apple not responsible for cats that may be dead/alive/both ![]()
<yareally>Â Â Â lol
<nigelb>Â Â Â physics jokes, nice.
<optimusM>Â Â Â so do i set it to boolean onCreateContextView(menu, menu
<optimusM>Â Â Â )
<xat“>Â Â Â optimusM: what do you mean you want it to be a new page
<optimusM>   im making it where i can open new page using a button
<optimusM>Â Â Â not a options menu
<optimusM>Â Â Â ill paste what i have right now
<optimusM>Â Â Â http://pastebin.com/rEYtnESk
<optimusM>Â Â Â theirs doubles i know im just working off what i got
<merlinludwig>Â Â Â hello
<merlinludwig>Â Â Â im having an issue: im trying to replicate the lunar lander example but when i select an item from the options menu my textview disappears
<merlinludwig>Â Â Â anyone know what i might be doing wrong?
<merlinludwig>Â Â Â its almost as if the surfaceview gets placed in front of the textview
<optimusM>Â Â Â ok im get a error saying add } to complete classbody but its already there its at the end at }//MainActivity :/
<merlinludwig>Â Â Â check to make sure ur not missing a ; somewhere
<Snuffel>Â Â Â so you seriously want us to count brackets for you?
<yareally>Â Â Â even simple text editors have bracket highlighting lol
<merlinludwig>Â Â Â i guarantee its a missing semicolon
<yareally>Â Â Â if he’s using a decent IDE it should have a nice big red error for that too
<briswolf>Â Â Â he’s developing on his phone
<briswolf>Â Â Â crazy
<yareally>Â Â Â *facepalm*
<optimusM>Â Â Â what could be causing this issue?
<yareally>Â Â Â you using your phone as a developmetn enviroment?
<briswolf>Â Â Â optimusM: what issue?
<Wooga>Â Â Â hello, i have a game with world (holding game objects), evalutor (interpreting user input and updating world’s objects state) and renderer (drawing objects on the screen). i watn each of this things to be running on seperate thread. the question is: how do i organize them all in thread-safe manner? for eaxmple, how can i lock the evalutor updating operations while renderer is iterating through
<Wooga>Â Â Â world objects when renders it? thanks.
<optimusM>Â Â Â it says add } at the end }//MainActivity
<Snuffel>Â Â Â ‘it’?
<optimusM>Â Â Â but its already there
<briswolf>Â Â Â Wooga: you don’t really want them on separate threads
<Wooga>Â Â Â briswolf: renderer will be in seperate thread anyways due to androud’s GLSurface implementation
<briswolf>Â Â Â Wooga: ok, well you will want an object somewhere to sync on
<optimusM>Â Â Â any idea?
<briswolf>Â Â Â then make sure all threads do their work inside of synchronized{}
<briswolf>Â Â Â effectively this reduces the multiple threads to one thread (since only one will be awake at a time
<merlinludwig>Â Â Â hell…im having thread issues myself, turns out the lunar lander example has some bugs in it
<briswolf>Â Â Â I am not familiar with android’s opengl renderer
<briswolf>Â Â Â using opengl on a PC/mac/etc, I have always done input/physics processing/rendering on one thread
<briswolf>Â Â Â and used another for networking with blocking functions
<briswolf>Â Â Â but… there is always more than one way to do it.
<Wooga>Â Â Â user input is a blocking functions
<briswolf>Â Â Â Wooga: no async methods? ok
<Wooga>Â Â Â ah, sorry
<briswolf>Â Â Â how I do it: for any variable which is accessed from multiple threads
<Wooga>Â Â Â there is an UI thread
<Chipper351>Â Â Â Is there any way to open or convert a .asce file?
<Chipper351>Â Â Â .asec
<Wooga>Â Â Â with MotionEvents
<briswolf>Â Â Â for any variable, like say MyInputState inputState; I create a lock variable final Object myInputStateLock = new Object();
<briswolf>Â Â Â then any work to read/write to that object should be inside synchronized(myInputStateLock){….}
<briswolf>Â Â Â keep it as short as possible – copy it to a local variable if you have to
<briswolf>Â Â Â that way you won’t block either thread too long
<merlinludwig>Â Â Â i hate threading
<briswolf>Â Â Â or – if you have just got a bunch of booleans
<briswolf>Â Â Â like boolean button1Down; etc
<briswolf>Â Â Â you can make them volatile
<briswolf>Â Â Â volatile booleans are thread safe-ish
<briswolf>Â Â Â merlinludwig: I always say proper thread safety is the hardest thing in modern programming
<xDD>Â Â Â or in C++ just use a std::bitset<atomic<bool>>
<Wooga>Â Â Â there is atomic things too
<briswolf>Â Â Â atomic? in java?
<Wooga>Â Â Â in android at least
<Wooga>Â Â Â http://developer.android.com/reference/java/util/concurrent/atomic/package-summary.html
<briswolf>Â Â Â I must admit I am not modern with java – I know 1.4 intimately
<xDD>Â Â Â well Java isn’t modern
<briswolf>Â Â Â I wouldn’t worry about any of that, unless you need something more than just booleans
*Â Â Â xDD prepares for flamefest
<briswolf>Â Â Â xDD: java 6 is more modern than java 2 ![]()
<xDD>Â Â Â That isn’t saying much, is it? ![]()
<briswolf>Â Â Â well… at least it has templates now
<Ivru>Â Â Â Java Duty : Modern framework
<merlinludwig>Â Â Â hmpf
<briswolf>Â Â Â or whatever they call them in java
<Ivru>Â Â Â ok that was lame
<xDD>Â Â Â briswolf: “Generics” aka fake (Object) casting
<briswolf>Â Â Â I am a C++ person originally
<xDD>Â Â Â In no way even close to the power of templates in C++
<briswolf>Â Â Â can you tell
<briswolf>Â Â Â haha
<briswolf>Â Â Â does java have enums yet? ;P
<xDD>Â Â Â yes
<yareally>Â Â Â java had enums ages ago
<briswolf>Â Â Â yareally: like I said, I’m stuck on 1.4 – thanks BLACKBERRY! ![]()
<Wooga>Â Â Â hmmm
<yareally>Â Â Â lol blackberry, i ditched mine a year ago finally
<merlinludwig>Â Â Â well…then we get from java to android-specifics and it all goes downhill
<yareally>Â Â Â though they finally added string switches in java 7
<briswolf>Â Â Â yareally: I just can’t sever myself from the keyboard
<briswolf>Â Â Â I’ve tried
<yareally>Â Â Â you could probably interface with a blackberry keyboard on android over bluetooth
<briswolf>Â Â Â LOL yes
<yareally>Â Â Â though i havent tried yet
<briswolf>Â Â Â and some tape
<yareally>Â Â Â yeah lol
<merlinludwig>Â Â Â help me
<briswolf>Â Â Â merlinludwig: what’s up
<briswolf>Â Â Â you have my extensively limited knowledge to call upon ![]()
<merlinludwig>Â Â Â this damn handler crap aint workin
<briswolf>Â Â Â what thread are you creating the handler in?
<briswolf>Â Â Â or try: new Handler(context.getMainLooper());
<merlinludwig>Â Â Â well…tryin to do the lunar lander example on the website, but its not workin right
<briswolf>Â Â Â that will build you a handler which throws messages into the main thread of ‘context’
<briswolf>Â Â Â that’s my knowledge of handlers, done ;P
<merlinludwig>Â Â Â well…i got: thread = new GameThread(holder, context, new handler())
<merlinludwig>Â Â Â and somehow it only half works
<briswolf>Â Â Â where is this GameThread
<merlinludwig>Â Â Â ok…i mighta seperated the thread into its own .java file cause i was gettin a bit lost
<merlinludwig>Â Â Â its the damn http://developer.android.com/resources/samples/LunarLander/src/com/example/android/lunarlander/LunarView.html seperated into 2 files
<merlinludwig>Â Â Â seperating the thread shouldnt matter, thats what includes r for
<b0c1>Â Â Â hi
<b0c1>   <b0c1> I have a little problem, what´s wrong with this code?
<b0c1>Â Â Â <b0c1> http://pastie.org/private/lhikqirzafjyvbrd6ovdmw
<b0c1>Â Â Â <b0c1> I want to store custom data to the contact…
<optimusM>Â Â Â finally got it
![]()
<optimusM>Â Â Â dang debugging takes awhile
<merlinludwig>Â Â Â tell me bout it
<optimusM>Â Â Â id fix one error another one popped up but i got it to work ![]()
<merlinludwig>Â Â Â now if only mine would be as easy
<merlinludwig>Â Â Â does anyone know where i can at least find a functioning version of the lunar lander example….one where the statustext works?
<tophyr>Â Â Â how do i get load averages from ‘uptime’?
<merlinludwig>Â Â Â note to self…make sure no 2 gamestate constants have the same value
<b0c1>Â Â Â any idea?
<Gx4>Â Â Â Good morning, I wanted to ask is there a way to use time picker without a dialog ?
<optimusM>Â Â Â AndroidManifest.xml file, add android:debuggable=”true” to the <application> element.
<b0c1>Â Â Â again… http://pastie.org/private/lhikqirzafjyvbrd6ovdmw
<optimusM>   do i have to add the <activity android: etc to that
<Snuffel>Â Â Â b0c1: what do you expect from us?
<b0c1>Â Â Â Snuffel: any idea why raised npe
<Snuffel>Â Â Â b0c1: of course not
<Snuffel>   it’s NullPointerException, so you did something wrong
<b0c1>Â Â Â look I set the parameters
<b0c1>Â Â Â all parameters have a value…
<b0c1>Â Â Â no null value… what I miss?
<Snuffel>Â Â Â b0c1: I don’t even know what line 64 is, so no
<Snuffel>Â Â Â or 73
<Snuffel>Â Â Â or 121
<b0c1>Â Â Â 121 the insert
<b0c1>Â Â Â 73 the caller method…
<Snuffel>Â Â Â i see 5 lines of code and an exception
<b0c1>Â Â Â http://screenshot.javaportal.hu/2011-10-10_000.png
<Snuffel>Â Â Â if I knew what the problem was it’d be magic
<b0c1>Â Â Â ok
<b0c1>Â Â Â I show the whole code… but the exception is independent the other code…
<Snuffel>Â Â Â b0c1: that’s why you need to debug yourself
<b0c1>Â Â Â look the null pointer exception in the suxx android code..
<b0c1>Â Â Â not in my code… maybe I missing set some parameter
<b0c1>Â Â Â but I dunno what parameter missing
<Snuffel>Â Â Â me neither
<QubeZ>Â Â Â anyoen here use Places API and is having an issue? I just ran some queries from my phone and its not working (from my custom app). Then I checked on the website with my Key and it returns no results.
<QubeZ>Â Â Â but my API console says Places “no issuses to report”
<optimusM>Â Â Â what does it mean when i get this error cannot be resolved to aa type?
*Â Â Â Maya-sama is now known as hackkitten
<Knossos>Â Â Â optimusM: If you haven’t fixed it, you are probably missing an import.
<optimusM>Â Â Â the entire thing is messed up lol
<Knossos>Â Â Â If you are using eclipse. I use CTRL – SHIFT – O to organise my imports.
<yareally>Â Â Â intellij has a feature that will ask if you want to import a package if you are missing it and use something
<Knossos>Â Â Â I really should try that IDE sometime
<yareally>Â Â Â ive used both, but it’s been a while since ive used eclipse
<optimusM>Â Â Â im using something none of you probably tried lol
<yareally>Â Â Â it lets you set the eclipse key shortcuts too, so that’s nice
<optimusM>Â Â Â javaidedroid in the android market
<yareally>Â Â Â yeah we know, it’s why you are having so many problems :p
<demonspork>Â Â Â I am attempting to modify this: http://collabedit.com/sp5rq to get its now playing information from Google Music. When I am using the miui built in player, this lockscreen somehow gets the now playing information to display. If someone could find where in this code it gets the now playing information (I can’t figure it out) i would be super grateful. A step further would be to help me modify it so tha
<demonspork>Â Â Â t it gets now playing information from Google Music
<optimusM>Â Â Â yea it is lol
<yareally>Â Â Â as verbose as java is, it would be very painful doing on a phone
<yareally>Â Â Â nearly sadistic
<optimusM>Â Â Â i dont think that android.jar has a onclicklistener
<yareally>Â Â Â on buttonpress
<yareally>Â Â Â and on touch
<optimusM>Â Â Â i have a android.jar for apu 8 and api 10
<yareally>Â Â Â i nkow someone compiled eclipse for the hp touchpad so it wouldnt suprise me if there’s something for android too
<yareally>Â Â Â though that has to run so slow
<Nyceane1>Â Â Â hey guys
<optimusM>Â Â Â they guy that made idedroid he knows how to do it pretty good lol
<optimusM>Â Â Â he probably makes alot of apps on his phone
<YamahaAlex37>Â Â Â whats the best way to disable zooming on all mobile devices?
<YamahaAlex37>Â Â Â i used this method:
<YamahaAlex37>Â Â Â http://garrows.com/?p=337
<YamahaAlex37>Â Â Â but it also zoomed my browser in close, so things were very awkward, before disabling zooming
<YamahaAlex37>Â Â Â do u know wha ti mean
<optimusM>Â Â Â i just wish he would make video tutorials for it showing how to do stuff cause its alot different then eclipse
<YamahaAlex37>Â Â Â whats the best way to disable zooming on all mobile devices, but keep the default view to scale 100% of the site?
<yareally>Â Â Â i would be mad if some developer thought they should control zooming on something
<yareally>Â Â Â so i hope there’s a good reason for doing that
<YamahaAlex37>   yareally, its not a website, its agame
<yareally>Â Â Â yeah but some games you need to zoome too
<YamahaAlex37>Â Â Â but zooming ruins my game..
<optimusM>Â Â Â yea
<YamahaAlex37>Â Â Â i wouldnt make it so you couldnt zoom if it wasnt designed to be played without zooming
<YamahaAlex37>Â Â Â ill show you
<YamahaAlex37>Â Â Â http://eternaware.com/rpg01/
<yareally>Â Â Â what am i supposed to be looking at?
<YamahaAlex37>Â Â Â you dont see the game ui?
<YamahaAlex37>Â Â Â it doesnt need zoom, and zoom ruins it
<yareally>Â Â Â i see a black square and some side menus
<YamahaAlex37>Â Â Â exactly
<yareally>Â Â Â so how does that ruin zooming, pretty sure you can zoom the area that’s not the menu only
<YamahaAlex37>Â Â Â there would be no point to zoom that close to the sprites first of all
<YamahaAlex37>Â Â Â second, the zoom buttons pop up in the way
<yareally>Â Â Â i have no idea how close you are to the sprints really
<YamahaAlex37>Â Â Â third, with all the touch screen going on, you will have to be super careful not to press twice and the pages auto zooms
<YamahaAlex37>Â Â Â which would be super annoying
<yareally>Â Â Â im sure you know best, it’s your game ![]()
<yareally>Â Â Â i just wondered why you were doing it
<YamahaAlex37>Â Â Â do you think thers a way to disable that double thouch auto zoom thing
<yareally>Â Â Â override any gesture that would cause zoom and not let it do anything?
<yareally>Â Â Â i mean literally override the method in java
<yareally>Â Â Â @override
<Leeds>Â Â Â is it a native app or not?
<yareally>Â Â Â yeah also a good question
<YamahaAlex37>Â Â Â wat od u mena native
<YamahaAlex37>Â Â Â mean
<yareally>Â Â Â is it running on someone’s phone or a website
<YamahaAlex37>Â Â Â its just html/css/js
<yareally>Â Â Â oh
<Leeds>Â Â Â right, so it’s a website
<YamahaAlex37>Â Â Â it works fine in my phone
<yareally>Â Â Â well that makes more sense now lol
<YamahaAlex37>Â Â Â oh ok
<YamahaAlex37>Â Â Â yeah just a website
<Leeds>Â Â Â don’t you need to use some CSS to declare a fixed-width window on mobile, or some such crap?
<yareally>Â Â Â you can disable zooming if the browser doesnt ignore it with a tag
<Leeds>Â Â Â or a meta tag… something like that ![]()
<YamahaAlex37>Â Â Â i tried this
<YamahaAlex37>Â Â Â <meta content=’width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;’ name=’viewport’ />
<YamahaAlex37>Â Â Â <meta name=”viewport” content=”width=device-width” />
<yareally>Â Â Â yeah
<YamahaAlex37>Â Â Â but that also zooms evrything way in BEFORE disable auto zoom haha
<YamahaAlex37>Â Â Â like it made my fonts huge and squished in the menu boxes etc
<YamahaAlex37>Â Â Â it looks perfect the way it fits 100% portrait and landscape, but i just need to get rid of the zoom lol
<yareally>Â Â Â you can do it in javascript for sure
<yareally>Â Â Â just prevent the default for the touchmove event
<YamahaAlex37>Â Â Â but i didnt know js had access to androids commands or whatnot
<yareally>Â Â Â you’re loading it the browser, of course you can use js lol
<yareally>Â Â Â if you’re using jquery something like $(‘body’).bind(‘touchmove’, function(event) { event.preventDefault() });
<yareally>Â Â Â and $(‘body’).unbind(‘touchmove’); to turn it back on
<YamahaAlex37>Â Â Â lol wat if i keep it off
<Leeds>Â Â Â yareally: er… that disables Android’s built-in zooming?
<yareally>Â Â Â dont use the second event then…
<yareally>Â Â Â it should disable it in js on the browser
<yareally>Â Â Â with js*
<Leeds>Â Â Â really…
<yareally>Â Â Â obviously cant test it without trying it
<yareally>Â Â Â but just thinking it will
<yareally>Â Â Â so dont quote me on it ![]()
<yareally>Â Â Â touch events are supported in the newere android versions though at least 2.2 ish
<yareally>Â Â Â https://dvcs.w3.org/hg/webevents/raw-file/tip/touchevents.html
<yareally>Â Â Â some random non stock browser might say “screw you” and ignore them though, but who knows
<yareally>Â Â Â at least the stock browser and opera mobile should work
<YamahaAlex37>Â Â Â Â do you think ur code will work yareally
<YamahaAlex37>Â Â Â is it worth a shot
<yareally>Â Â Â dunno, im not loading it on my phone to try, but feel free
<yareally>Â Â Â only takes pasting it and loading jquer
<YamahaAlex37>Â Â Â loading my site on ur phone?
<yareally>Â Â Â yeah or loading it on a page i make
<YamahaAlex37>Â Â Â why not go to the url
<kikeb>Â Â Â hi
<YamahaAlex37>Â Â Â lol is this the easiest way to resize text to fit a div?
<YamahaAlex37>Â Â Â http://stackoverflow.com/questions/2497299/is-it-possible-to-resize-text-to-fit-a-fixed-size-div
<XeruX>Â Â Â When I kill my application using a task-killer, and start it again, I get a nullpointer-exception on myApplicationObject.doSomething()
<negaduck>Â Â Â hi! i’m trying to do repo sync, but sometimes it breaks and says errno=connection timed out with n% progress. Is there a way to set number of attempts or something similar?
<XeruX>Â Â Â How can I prevent this?
<xDD>Â Â Â Does the repo tool also work with the github repository while kernel.org is offline?
<negaduck>Â Â Â xDD: i opened repo script in an editor and changes REPO variable to codeaurora
<yareally>Â Â Â i decided to try the disable zoom and it worked fine YamahaAlex37
<yareally>Â Â Â so yes it works ![]()
<YamahaAlex37>Â Â Â yareally, didnt it make the font way too big
<YamahaAlex37>Â Â Â and make the canvas way smaller
<yareally>Â Â Â well you can adjust that stuff
<yareally>Â Â Â and it looked okay in landscape
<YamahaAlex37>Â Â Â i guess, but then its so small for web
<YamahaAlex37>Â Â Â yeah landscape looked nice
<YamahaAlex37>Â Â Â i guess ill write a third layout if resolution is bigger than mobile
<yareally>Â Â Â also:Â http://mobilehtml5.org/
<YamahaAlex37>Â Â Â yareally, do u think of any way i can dynamic fit the text, to get the y in inventory to fit?
<yareally>Â Â Â yeah use scalable font sizes
<yareally>Â Â Â e.g. % or em
<YamahaAlex37>Â Â Â it is currently em
<YamahaAlex37>Â Â Â but i mean to adjust it self to fit its div container
<yareally>Â Â Â it should do that on its own
<yareally>Â Â Â probably better to use % though for a mobile app
<yareally>Â Â Â im not a mobile web app guru….i mostly do normal web development
<YamahaAlex37>Â Â Â hmm its not, the y is breaking of to the next line
<yareally>Â Â Â need to scale the font smaller then
<yareally>Â Â Â or the menu bigger
<YamahaAlex37>Â Â Â that could be because i am using word-wrap: break-word;
<yareally>Â Â Â or that
<YamahaAlex37>Â Â Â i dont think the menu can get bigger
<yareally>Â Â Â also something that might make it easier on you for development…opera has a native app for the desktop that emulates their mobile browser
<yareally>Â Â Â so you dont have to reload it in the android emulator
<yareally>Â Â Â or on your phone
<YamahaAlex37>Â Â Â i saw phonegap
<YamahaAlex37>Â Â Â is that it?
<yareally>Â Â Â nah
<YamahaAlex37>Â Â Â is that the same thing?
<yareally>Â Â Â i though phonegap is a framework
<yareally>Â Â Â http://www.opera.com/developer/tools/
<yareally>Â Â Â opera and the stock android browser should render pretty much the same unless you’re using webkit propretary js/css
<YamahaAlex37>Â Â Â thanks for opera link
<yareally>Â Â Â sure
<YamahaAlex37>Â Â Â i think im just planning to use jquery mobile
<Leeds>Â Â Â phonegap is something like the opposite – lets you take a webapp and make something like a native app out of it
<yareally>Â Â Â it’s nice since it lets you debug the app
<YamahaAlex37>Â Â Â a webapp? like what
<YamahaAlex37>Â Â Â like a js app?
<YamahaAlex37>Â Â Â yareally, do u have any idea why the border isnt showing up in portrait view on ur phone
<YamahaAlex37>Â Â Â the menu outline
<yareally>Â Â Â what border?
<yareally>Â Â Â oh
<yareally>Â Â Â probably because it resizes it into the mess you see heh
<YamahaAlex37>Â Â Â i dont see a mess?
<YamahaAlex37>Â Â Â it all fits perfect, except the borders gone, and the y in inventory is cut off
<yareally>Â Â Â unless you changed something
<yareally>Â Â Â i downloaded what you had and ran it directly
<YamahaAlex37>Â Â Â eternaware.com/rpg01
<YamahaAlex37>Â Â Â i did change it
<yareally>Â Â Â dunno, if you used the opera emulator i showed you, it works with opera’s version of firebug
<yareally>Â Â Â so you can see why in real time
<yareally>Â Â Â by highlighting the html element
<yareally>Â Â Â that would be the easiest way to find out
<YamahaAlex37>Â Â Â is there an android emulator
<yareally>Â Â Â yeah and it’s slow
<YamahaAlex37>Â Â Â thats what i thought phonegap was
<yareally>Â Â Â the opera app is native
<_Rno_>Â Â Â Hello!
<YamahaAlex37>Â Â Â but opera wont help me for android right
<yareally>Â Â Â i wouldnt personally want to load up the android emulator just for a web page
<YamahaAlex37>Â Â Â its easier to refresh my phone
<yareally>Â Â Â sure it will…it’s an emulator for opera mobile…simulating opera mobiel on your computer + lets you debug the html/css/js in real time as you see it on the page
<YamahaAlex37>Â Â Â ok cool
<_Rno_>Â Â Â I’m testing my app on a GalaxyTab (1st gen) and Samsung has customized the scrolling. It acts as in iOS, I don’t like this and I would like to disable such a thing on my app, any idea of where to look?
<YamahaAlex37>Â Â Â so there is no js way to resize text to fit div?
<yareally>Â Â Â yeah so you can highlight the html element using hte debugger and find out why it’s not showing it and mod the css/html right there
<yareally>Â Â Â you can do anything in js
<yareally>Â Â Â but i cant answer all your questions
<yareally>Â Â Â i have my own work to do ![]()
<YamahaAlex37>Â Â Â but there is no immediate function for it
<YamahaAlex37>Â Â Â i would have to run a loop
<yareally>Â Â Â well it involves finding the size of the parent container
<yareally>Â Â Â and adjusting
<YamahaAlex37>Â Â Â ok
<yareally>Â Â Â i mean if you really really need html/css/js help there are other channels on freenode for those
<yareally>Â Â Â #css and #javascript
<Knossos>Â Â Â Yeah, I was going to say, this is really an Android development channel. Not a JS channel.
<yareally>Â Â Â yeah i dont mind answering a few random questions but it’s getting too much lol
<YamahaAlex37>Â Â Â k thanks
<YamahaAlex37>Â Â Â last thing, i found a solution
<YamahaAlex37>Â Â Â http://plugins.jquery.com/project/TextFill
<YamahaAlex37>Â Â Â but they dont mention the jqyuery codea
<yareally>Â Â Â i would try to avoid loading a ton of jquery and jquery plugins since some people do have dataplans and not eveyrone’s phone is super fase
<yareally>Â Â Â fast
<YamahaAlex37>Â Â Â nvm found it
<YamahaAlex37>Â Â Â yareally, wat about jquery mobile
<yareally>Â Â Â im not overly familiar with it, i thought it was still betaish or maybe that was jqueryui mobile
<Knossos>Â Â Â It may be called mobile, but it still has a footprint, same as all plugins you are going to load.
<yareally>Â Â Â jquery is one of those things you use when you know it will take way too much code to do in regular plain js
<Knossos>Â Â Â Last thing I’m going to say on this subject ![]()
<rockstar8577>Â Â Â does anyone know how to look at obfuscated code?
<lut4rp>Â Â Â eh
<yareally>Â Â Â very carefully?
<rockstar8577>Â Â Â oops i meant like get the obfuscated code
<yareally>Â Â Â the only obfucated code i know of on android are market apps
<rockstar8577>Â Â Â well i want to see what my code would look like :\
<rockstar8577>Â Â Â i think it would help when planning ways of tharting pirates :3
<yareally>Â Â Â it looks like a bunch of short symbols for varaibles
<yareally>Â Â Â and such
<yareally>Â Â Â like a.b.d
<rockstar8577>Â Â Â ohhh wow
<rockstar8577>Â Â Â it even does strings too ![]()
<yareally>Â Â Â people will pirate your app whether you do it or not though
<rockstar8577>Â Â Â well i know
<xDD>Â Â Â rockstar8577: best solution against pirates: make your app free
<yareally>Â Â Â or just be optimistic and chalk any pirating up to “market saturation” ![]()
<rockstar8577>Â Â Â xDD: i wouldnt really consider that a solution since pirates wouldnt be in the equation then ![]()
<demonspork>Â Â Â yeah
<yareally>Â Â Â at least people become aware of it and maybe others will just buy it since they dont want to go looking for it
<demonspork>Â Â Â in the android community I have noticed that there is little to no support for sideloading paid apps
<demonspork>Â Â Â iOS, more support and interest in it
<Knossos>Â Â Â whats worse is when people pirate you app, then place it up again under a different name
<yareally>Â Â Â but if you run a compiled app through dex2jar and use jad on it, it just makes the code more of a bitch to read, but still with enough time you can undo it
<Leeds>Â Â Â demonspork: there’s plenty, it’s just underground
<QubeZ>Â Â Â speaking of LVL, do anyone know of tutorials to help show methods/techniques of securing your app? I have the default LVL implemented but not sure where to go from there.
<xDD>Â Â Â rockstar8577: want obfuscated code? learn C++
<rockstar8577>Â Â Â qubez
<yareally>Â Â Â ah yeah didnt think about people cloning your app
<demonspork>Â Â Â Leeds, definitely not as bad as iOS
<yareally>Â Â Â yeah, add some compiled c++ libs
<yareally>Â Â Â way harder to decompile c++
<rockstar8577>Â Â Â http://android-developers.blogspot.com/2010/09/securing-android-lvl-applications.html
<rockstar8577>Â Â Â that might help you a little
<xDD>Â Â Â rockstar8577: that will protect your apps from pirates for the next 10 years until you are learn to write good enough apps that someone will actually want to disassemble
<QubeZ>Â Â Â thanks
<rockstar8577>Â Â Â no problem
<QubeZ>Â Â Â im more worried about people getting a hold of the source code
<rockstar8577>Â Â Â xDD i already know c++ ![]()
<thebastl>Â Â Â hi
<QubeZ>Â Â Â fine if they crack it and use it but what about the source? how to protect that?
<draco12>Â Â Â xD
<thebastl>Â Â Â i want to add a pause mode to a video recording app
<xDD>Â Â Â QubeZ: write C++ code, not Java
<thebastl>Â Â Â is there any easier way than compiling ffmpeg?
<yareally>Â Â Â write as much of the libraries as you can in c++
<yareally>Â Â Â and use jni
<yareally>Â Â Â heh
<xDD>Â Â Â my library was already in C++, so I just created a dumb java gui for it
<rockstar8577>Â Â Â yareally: would that really work?
<thebastl>Â Â Â or any other libary that is easier for using in android projects?
<QubeZ>Â Â Â so anyone can then gain access to my source once I push to the market?
<xDD>Â Â Â https://market.android.com/details?id=com.guildwars.mobilechat
<yareally>Â Â Â well decompiling c++ is a bitch…since the only real solution i know of is ida pro + hexrays
<xDD>Â Â Â QubeZ: if you write it in Java, it’s really easy to decompile bytecode to some understandable form
<yareally>Â Â Â and i dont know of a leaked version of hexrays for arm ![]()
<xDD>Â Â Â yareally: No one decompiles C++, you disassemble it and then maybe generate some pseudocode with hexrays
<rockstar8577>Â Â Â so how different would it be writing in c++to writing in java?
<yareally>Â Â Â wel yeah c++ will come out a mess in hex rays too since it’s not C
<Knossos>Â Â Â rockstar8577: Lets just say very different.
<yareally>Â Â Â c++ is like shaving with a gillet razor…java is like using an electrical razor
<yareally>Â Â Â sometimes c++ will cut you and it takes more work to use :p
<rockstar8577>Â Â Â haha well i meant android wise
<rockstar8577>Â Â Â cause i already know c++ messed with a few game libraries, know my way around pretty decently
<yareally>Â Â Â code C++ like normal and compile using the android NDK
<xDD>Â Â Â rockstar8577: Unless you’ve been coding in C++ for 10 years, you don’t know C++ ![]()
<rockstar8577>Â Â Â haha ![]()
<p_l>Â Â Â yareally: C++ is like shaving with chainsaw
<yareally>Â Â Â lol
<rockstar8577>Â Â Â nah if anything
<yareally>Â Â Â i figured C was more like a chainsaw
<rockstar8577>Â Â Â c++ is like shaving with a barbers blade
<xDD>Â Â Â C is like a kitchen knife
<alankila>Â Â Â C is just a small knife
<Knossos>Â Â Â Well if you are using C++ for libraries. You just have to add the library and run the functions in an unsafe function don’t you?
<rockstar8577>Â Â Â ummm depends on the library
<p_l>Â Â Â yareally: no – C is a single sharp blade with nothing fancy. C++ is what came out after said blade went to committee
<yareally>Â Â Â lol
<rockstar8577>Â Â Â okay sorry about that
<rockstar8577>Â Â Â internet is being a pain -.-
<rockstar8577>Â Â Â but like i said it depends on the library, well to me it seems like
<rockstar8577>Â Â Â some just provide basic things, like boost
<rockstar8577>Â Â Â while some give you a whole sdk you could say
<xDD>Â Â Â rockstar8577: I just use boost in my app, https://market.android.com/details?id=com.guildwars.mobilechat
<rockstar8577>Â Â Â boost for what
<rockstar8577>Â Â Â network?
<draco12>Â Â Â youre not a rockstar
<rockstar8577>Â Â Â o-o
<rockstar8577>Â Â Â draco doesnt like me?
<yareally>Â Â Â maybe he drinks rockstars to stay awake :p
<rockstar8577>Â Â Â this is true
<rockstar8577>Â Â Â you could try drinking me
<rockstar8577>Â Â Â i dont think i would taste good though
<rockstar8577>Â Â Â o_o
<draco12>Â Â Â >:(
<yareally>Â Â Â >:( is my favorite emoticon
<rockstar8577>Â Â Â but i was just wondering, is this what the code would look like obfuscated? http://en.wikipedia.org/wiki/Obfuscated_code#Examples
<yareally>Â Â Â well that’s not compiled code
<yareally>Â Â Â so not what the end user will see
<eyedol>Â Â Â I’m having illegal argument referencing authorities name resource file @string that is. I get illegual argument
<rockstar8577>Â Â Â ahhhh okay
<eyedol>Â Â Â i’m initialize the authority string from the oncreate method in the class that extends contentprovider
<rockstar8577>Â Â Â so would the strings beobfuscated?
<yareally>Â Â Â if you really want to know, just use an obfuscation tool on some code you’re compiling and decompile/dissasemble it after
<yareally>Â Â Â android comes with one for android apps
<yareally>Â Â Â proguard
<rockstar8577>Â Â Â i thought it did but i wasnt sure if it was just automatically used on your code
<b0c1>Â Â Â Can anybody tell me how can I add custom data to the selected contact?
<eyedol>Â Â Â this is the code I have for the class that extends ContentProvider
<eyedol>Â Â Â http://pastebin.com/4TFMfx6w
<eyedol>Â Â Â is there something I am doing wrong?
<b0c1>   or what´s the right solution to connect my database with the selected contact?
<b0c1>Â Â Â eyedol: http://thinkandroid.wordpress.com/2010/01/13/writing-your-own-contentprovider/
<b0c1>Â Â Â ?
<eyedol>Â Â Â I have a library project
<eyedol>Â Â Â and that has the content provider implemented
<eyedol>Â Â Â but the sub projects that reference the library project
<eyedol>Â Â Â fails because of conflicts with content provider’s authorities name
<eyedol>Â Â Â so I made it so the authorities names can be reference via a string resource file
<YamahaAlex37>Â Â Â do you think its a big deal to include jquery and jquery ui with a mobile game?
<eyedol>Â Â Â but I keep getting illegal argument for the URI
<kikeb>Â Â Â hi. i’m having problems with an ActivityGroup and ListPreference. In the preference screen, when i clicked to the ListPreference element for showing the spinner dialog box the applications crashes (i think because the Context isn’t correct) the logcat error is here: http://pastebin.com/4j34CCxt
<eyedol>Â Â Â not sure why because the URI looks correct
<tophyr>Â Â Â are Intents not designed to be able to handle large (>1mb) data pieces in their Parcels?
<b0c1>   so what´s the right solution to connect my database with the selected contact?
<QubeZ>Â Â Â wtf when you tell a textview to alignLeft with another textView, its still off a bit
<QubeZ>Â Â Â no margin, no padding nothing… its just off
<lut4rp>Â Â Â QubeZ: screenshot
<lut4rp>Â Â Â Although I have a hunch why that is happening
<QubeZ>Â Â Â i’d have to install screen cap softwareon my phone
<QubeZ>Â Â Â what’s your hunch?
<danielhampton>Â Â Â evening ![]()
<QubeZ>Â Â Â lut4rp: it looks ok on the emulator but off on the phone
<lut4rp>Â Â Â QubeZ: I think it’s because when you a tap a textview, it gets highlighted in orange. That highlight itself takes a few pixels.
<lut4rp>Â Â Â If you remove the background, I don’t think it will be off
<rockstar8577>Â Â Â ohh qubez
<b0c1>Â Â Â the contact handling in android is a totally chaos
<rockstar8577>Â Â Â about your question earlier
<QubeZ>Â Â Â lut4rp: @null ?
<rockstar8577>Â Â Â people who download your app can decompile it but they dont get the full source code
<rockstar8577>Â Â Â from what im seeing anyways
<QubeZ>Â Â Â thats good news
<Leeds>Â Â Â ah, paranoia
<lut4rp>Â Â Â QubeZ: oh wait, you said TextView. Damn, I confused that with EditText
<QubeZ>Â Â Â lut4rp: ya
<lut4rp>Â Â Â rockstar8577: that is possible with EVERY binary ![]()
<rockstar8577>Â Â Â leeds its a developer thing, :p
<b0c1>Â Â Â its a shit
<Leeds>Â Â Â an insecure developer thing ![]()
<rockstar8577>Â Â Â well how many apps have you made leeds?
<rockstar8577>Â Â Â if you dont mind me asking ![]()
<Leeds>Â Â Â 8 or so
<rockstar8577>Â Â Â lut4rp: it is but i just decompiled mine and it wasnt a perfect thing, it was very weird files
<rockstar8577>Â Â Â qubez how many have you done?
<kikeb>Â Â Â hi. i’m having problems with an ActivityGroup and ListPreference. In the preference screen, when i click to the ListPreference element for showing the spinner dialog box the applications crashes (i think because the Context isn’t correct) the logcat error is here: http://pastebin.com/4j34CCxt
<QubeZ>Â Â Â rockstar8577: i’ve written 2 in-house for my previous job but my first market one is coming out in 2 weeks once i get the documentation done
<kikeb>Â Â Â i think i need to pass the context of the tabactivity but i don’t know how to do it, can anybody help me please?
<rockstar8577>Â Â Â so i think thats your answer why leeds
<rockstar8577>Â Â Â at least what i think anyways, hes still somewhat new
<kikeb>Â Â Â this ListPreference is loaded by XML (with: addPreferencesFromResource(R.xml.settings);)
<b0c1>Â Â Â nobody using contacts api in their application?
<b0c1>Â Â Â nice…
<kikeb>Â Â Â b0c1, i don’t… sorry
<b0c1>Â Â Â kikeb: thnx
<rockstar8577>Â Â Â man i kind of want to develope code against pirates :p
<Knossos>Â Â Â Not worth your time, I’m afraid
<QubeZ>Â Â Â Pirates v. Developers analogous to God v. Devil
<Ardethian>Â Â Â Hey guys. I’m kinda new to the whole android scripting thing, and I’m trying to make a flashable zip.
<yareally>Â Â Â that’s more of an android root thing
<Ardethian>Â Â Â Is there a way of using a pm (package manager) command through recovery, using a zip file?
<hokkaido>Â Â Â flashable zip sounds funky ![]()
<hokkaido>Â Â Â zipper down and you can flash ![]()
<Ardethian>Â Â Â lmao xd
<Ardethian>Â Â Â and seriously? ![]()
<rockstar8577>Â Â Â knossos: whys that/
<yareally>Â Â Â lol
<hokkaido>Â Â Â sry, can’t help ![]()
<rockstar8577>Â Â Â that?*
<yareally>Â Â Â rockstar8577: companies have spent billions on trying to “stop” pirates, none have really totally won
<Ardethian>Â Â Â google is my friend, and still it didn’t help very muich.
<Ardethian>Â Â Â much*
<yareally>Â Â Â people need to learn better googlefu
<Ardethian>Â Â Â i did find how to make flashable zip files, i just haven’t found a way of running scripts through them.
<Knossos>Â Â Â Because for every man hour you spend trying to secure your code, pirates have 10 man hours.
<hokkaido>Â Â Â I wish they integrate android phone and tazer soon.
<Knossos>Â Â Â Because theres 10x more of them than you
<rockstar8577>Â Â Â well i know im not gonna stop them but i want to mess with them
<hokkaido>Â Â Â if pirates are using my software, I could taze them with their own phone.
<rockstar8577>Â Â Â like reboot the phone or delete the app itself
<rockstar8577>Â Â Â just would be fun ![]()
<yareally>Â Â Â http://www.londatiga.net/it/how-to-create-android-update-zip-package/
<Knossos>Â Â Â The best option, is to not take the piss out of your actual customers with over the top DRM and to accept the fact that your app will get pirated.
<rockstar8577>Â Â Â haha i know it will
<yareally>Â Â Â yeah, dont try to be an ubisoft
<Knossos>Â Â Â By no means make it /easy/. Obfuscation is always good.
<yareally>Â Â Â or blizzard
<Ardethian>Â Â Â yareally: been there already.
<Knossos>Â Â Â But don’t waste your valuable time
<yareally>Â Â Â hehe
<Ardethian>Â Â Â i wanna run the command
<yareally>Â Â Â well it says how to script it
<Ardethian>Â Â Â pm disable com.android.vending.updater
<Ardethian>Â Â Â but idk if its possible through recovery
<rockstar8577>Â Â Â idk i read that obfuscation isnt really effective if at all
<yareally>Â Â Â recovery can gain shell commands
<Knossos>Â Â Â Better than nothing
<Knossos>Â Â Â And takes seconds to setup
<Ardethian>Â Â Â no pm then?
<yareally>Â Â Â well you dont normally install packages in recovery
<Ardethian>Â Â Â yah x:
<Knossos>Â Â Â obfuscation is the difference between piraters having to figure out what variables do what and simply having the code directly
<rockstar8577>Â Â Â well i tried decompiling my code and i got files that were pretty hard to distinquish
<hokkaido>Â Â Â rockstar8577: but there are tools for sorting those out.
<rockstar8577>Â Â Â but then again it just might be because they were smali files
<hokkaido>Â Â Â at least a little.
<rockstar8577>Â Â Â hokkaido: ohhh really?
<draco12>Â Â Â no one wants to disassemble your twitter app
<rockstar8577>Â Â Â im not doing a twitter app, lol
<draco12>Â Â Â whatever youre doing
<rockstar8577>Â Â Â idk why your so hostile draco 0.0
<hokkaido>Â Â Â rockstar8577 is making max payne 3 for android
<yareally>Â Â Â because he knows you’re persuing something that is fruitless
<rockstar8577>Â Â Â ^^ correct
<rockstar8577>Â Â Â well like i said i know i wont stop them from pirating
<Knossos>Â Â Â Well, you know what you are getting into now
<rockstar8577>Â Â Â but i would find it fun to be a thorn in their side
<bis0n>Â Â Â I disassemble all app I can find! ![]()
<draco12>Â Â Â ![]()
*Â Â Â draco12 hugs bison
<hokkaido>Â Â Â ah, you must be a 7 years old with a screwdriver.
<yareally>Â Â Â he just found his dad’s soldering iron ![]()
<simoncpu>Â Â Â draco12: THE GAME
*Â Â Â draco12 covers his ears and shuts his eyes
<Leeds>Â Â Â is on?
<simoncpu>Â Â Â you have all lost THE GAME
<rockstar8577>Â Â Â hokkaido: do you have a link to tools to sorting the decompiled files?
<draco12>Â Â Â la la la la i am not listening
<yareally>Â Â Â Ardethian: you missed an important part of that link you said ou went to
<yareally>Â Â Â the part under run_program
<g00s>Â Â Â there will always be two types of people in society: the producers, and the leaches ![]()
<draco12>Â Â Â hi goos :O
<g00s>Â Â Â looks like google bestowed us with another turd http://news.ycombinator.com/item?id=3092558
*Â Â Â g00s notes he is never using another google technology voluntarily
<yareally>Â Â Â heh, dart wont come to much id say
<yareally>Â Â Â google go is okay though, i tried it some
<Ardethian>Â Â Â yareally – can you be more specific?
<Ardethian>Â Â Â oO
<yareally>Â Â Â run_program runs a script
<yareally>Â Â Â you can make system calls with that id say
<elwardi>Â Â Â morning
<Ardethian>Â Â Â hmm.
<Ardethian>Â Â Â so i can make an .sh file containing the code
<Ardethian>Â Â Â and activate it using that command?
<yareally>Â Â Â assuming it lets you access the system and it’s not jailed, yes
<elwardi>Â Â Â is there any way to get a shorten an URL in my android app ?
<Ardethian>Â Â Â I’ll check that. Thank you ![]()
<maraz>Â Â Â elwardi: yes. post it via http to a shortening service, receive shortened url.
<elwardi>Â Â Â thnx maraz, i am gonna need a fast provider for that, any recommendation ?
<maraz>Â Â Â can’t help you with that, sorry.
<maraz>Â Â Â pick one that’s reliable.
<maraz>Â Â Â and widely used.
<elwardi>Â Â Â thnx again, ![]()
<elwardi>Â Â Â i was looking for an API, but http request seems to be a better way to do it
<Tar-Minyatur>Â Â Â Hey guys…do you have any articles or websites at hand that offer suggestions to best practices in Android development?
<yareally>Â Â Â Ardethian: also http://forum.xda-developers.com/showthread.php?t=641223
<maraz>Â Â Â Tar-Minyatur: http://d.android.com/ & stackoverflow.com ![]()
<Tar-Minyatur>Â Â Â maraz: Mhm. I never really found any best practices in the docs.
<Tar-Minyatur>Â Â Â maraz: Did I just look at the wrong place?
<maraz>Â Â Â Tar-Minyatur: the developer’s guide is full of examples
<yareally>Â Â Â i thought best practices are what you learn by experience (and mistakes) heh
<elwardi>Â Â Â this may be helpfull for others
http://www.vogella.de/articles/JavaNetworking/article.html#usinghttpget
<Tar-Minyatur>Â Â Â maraz: Examples…yes. But usually for all possible solutions without offering any suggestions which one to prefer.
<maraz>Â Â Â Tar-Minyatur: well, because of the dynamics of software development, it is usually very difficult to adapt one best practice to every given situation
<yareally>Â Â Â heh, cyanogen 7.1 went stable today
<maraz>Â Â Â in most cases, there is no “best practice”, you’ll have to consider your options and resources to pick the one that’s best for your scenario
<maraz>Â Â Â this requires thought, though, so I understand why people ask how they should do things…
<Tar-Minyatur>Â Â Â maraz: But deciding this would be more easy if you have a list of advantages and disadvantages.
<maraz>Â Â Â Tar-Minyatur: this is true.
<Tar-Minyatur>Â Â Â maraz: Exactly. You don’t always have the time to do a thorough investigations.
<Leeds>Â Â Â erm… there’s a Best Practices section in the Dev Guide on d.android.com
<maraz>Â Â Â which is very general
<Tar-Minyatur>Â Â Â And there is almost no focus on code in there.
<Tar-Minyatur>Â Â Â It’s all just general concepts.
<rockstar8577>Â Â Â well cya guys
<QubeZ>Â Â Â i just pushed sqlite3 (missing before) from my tools directory to my phone. When I try to use it on my DB, it says “unexpected word “)”". ANy ideas?
<QubeZ>Â Â Â tried to search google for last hour
<QubeZ>Â Â Â no luck
<Leeds>Â Â Â what sqlite3?
<danielhampton>Â Â Â Has anyone used ACRA?
<QubeZ>Â Â Â Leeds: what?
<QubeZ>Â Â Â danielhampton: ya i use it
<danielhampton>Â Â Â fore error reporting?
<Leeds>Â Â Â QubeZ: where did you get the sqlite3 binary from?
<danielhampton>Â Â Â Just setting it up, i noticed it extends Application
<danielhampton>Â Â Â The method init(Application) in the type ACRA is not applicable for the arguments
<danielhampton>Â Â Â Im getting that when trying to initialize it
<QubeZ>Â Â Â Leeds: from my android sdk tools dir
<Leeds>Â Â Â QubeZ: you mean your x86 tools dir?
<QubeZ>Â Â Â Leeds: ya
<Leeds>Â Â Â to your ARM phone?
<QubeZ>Â Â Â danielhampton: lemme check how mine is setup
<danielhampton>Â Â Â cheers
<danielhampton>Â Â Â ![]()
<Leeds>Â Â Â QubeZ: and you can’t think of any reason why that wouldn’t work?
<yareally>Â Â Â lol
<QubeZ>Â Â Â danielhampton: I have ACRA.init(this); super.onCreate(); // thats it in my crash reporter java class
<yareally>Â Â Â silly things like architecture don’t matter, nope :X
<QubeZ>Â Â Â Leeds: was following tutorial on stackoverflow
<danielhampton>Â Â Â So its not in your main activity?
<Leeds>Â Â Â dumb tutorial then
<QubeZ>Â Â Â haha ya true, fuck its 5am.. not thinking straight
<yareally>Â Â Â i thought sqlite came loaded on all android phones already
<QubeZ>Â Â Â danielhampton: nope
<danielhampton>Â Â Â hm
<QubeZ>Â Â Â danielhampton: i’ll post my manifest section.. one sec
<danielhampton>Â Â Â cheers
<danielhampton>Â Â Â im semi new to android, but trying to google/read threads before asking for help
<QubeZ>Â Â Â danielhampton: http://pastebin.com/4BGKXWeF
<danielhampton>Â Â Â cheers, ill have a play
<QubeZ>Â Â Â so i just did that and put my main activity within all the applicaiton stuff so CrashReporter is the Application and i have actvities within it.
<QubeZ>Â Â Â so where can I download sqlite3 for my android phone?
<yareally>Â Â Â it’s not in /system/xbin?
<QubeZ>Â Â Â yareally: no, i have no xbin.. mine is droidx
<QubeZ>Â Â Â i have /system/bin
<QubeZ>Â Â Â im sorry, i do have xbin but no sqlite in there
<danielhampton>Â Â Â ok
<danielhampton>Â Â Â i think that makes sense
<danielhampton>Â Â Â ![]()
<danielhampton>Â Â Â so instead of mainScreenActivity (which is called first) you call your class
<yareally>Â Â Â just pull it form some rom that has it QubeZ
<yareally>Â Â Â like cyanogen
<QubeZ>Â Â Â danielhampton: ya, my crash reporter does the “extends Application” and initiates
<DroidAgent>Â Â Â Even fetch it from the emulator.
<QubeZ>Â Â Â then my .Dashboard is just an activity that launches first when app starts
<danielhampton>Â Â Â are you able to show me your crashreporter?
<QubeZ>Â Â Â danielhampton: ya, without my key.. one sec
<danielhampton>Â Â Â kk
<danielhampton>Â Â Â thanks ![]()
<danielhampton>Â Â Â just make it ### or delete that line
<QubeZ>Â Â Â http://pastebin.com/Ehm7jPWQ
<Dark-Side>Â Â Â Dont you just love it when your error reports from the android market get given to you by the offshore team responsible for gathering error reports in pdfs of the page printout
<danielhampton>Â Â Â cheers
<Dark-Side>Â Â Â Also not in english :/
<Dark-Side>Â Â Â Erreurs de blocage.. good job most european languages are pretty easy to derive meaning from
<yareally>Â Â Â western european languages at least
<smknight>Â Â Â ach wirklich?
<Snuffel>Â Â Â encroyable
<Dark-Side>Â Â Â *most*
<yareally>Â Â Â yarly :p
<yareally>Â Â Â at least to me that would be latin based languages, though some german isnt bad either
<danielhampton>Â Â Â testing now QubeZ ![]()
<Snuffel>Â Â Â yareally: where are you from
<QubeZ>Â Â Â danielhampton: g’luck
<yareally>Â Â Â an english speaking country
<AvengerMoJo>Â Â Â any one get a good sample of ScrollView use with TableLayout?
<yareally>Â Â Â united states if you need specifics ![]()
*Â Â Â p_l notes that english is a germanic language
<yareally>Â Â Â with many latin based words as well
<yareally>Â Â Â however, i studied spanish in high school and university
<yareally>Â Â Â so that helped
*Â Â Â TheDaniel0108 is now known as Danile0018
*Â Â Â Danile0018 is now known as Daniel0108
<yareally>Â Â Â english is structurally more similar to german, but id say it’s difficult to say if it derives more words from latin/greek or germanic languages
<danielhampton>Â Â Â QubeZ it works, you legend
*Â Â Â dark3n is now known as dark3n|off
*Â Â Â CBX-PoweredDown is now known as CBX-AWAY
<Ardethian>Â Â Â Guys, say I want to use a pm command in an .sh file and use it from inside of a flashable zip file,
<Ardethian>Â Â Â is that possible?
<Leeds>Â Â Â not in app development, no
<Ardethian>Â Â Â I’m not developing an app, I want to make a flashable zip file which uses the command pm disable com.android.vending.updater
<Ardethian>Â Â Â The question is if its possible.
<Ardethian>Â Â Â Since its being flashed through Recovery x:
<Leeds>Â Â Â then you’re in the wrong channel, aren’t you?
<havchr>Â Â Â just to check if I’m understanding things correctly.. I will run this by you people. There’s a BCR that’s starting an AsyncTask to look up numbers. and onPostExecute, it calls upon a ToastUpdateTimerTask which extends TimerTask. this TimerTask is constructed with new Handler() from the main-thread, same as the BCR. it displays a toast . From what I can understand, this toast will be in the GUI-thread. Am I right?
<havchr>Â Â Â to look up telephone numbers on incomming calls.
<Ardethian>Â Â Â Android development doesn’t necessarily mean its only for app developing, afaik anyway. Its a question about Android’s system mechanics, I don’t think its too hard of a question to answer.
<Leeds>Â Â Â Ardethian: this channel is for app development, straight up – not ‘ROMs’… seriously
<Bear10>Â Â Â I’m trying to do SMS verification and right now I can receive the SMS just fine but I see that you can’t simply “abort” the broadcast to make it so the phone doesn’t receive it. Anyone have a suggestion as to how I can do that final part (removing or preventing the user from getting the actual SMS) ?
<Leeds>Â Â Â Bear10: thankfully not
<Bear10>Â Â Â Leeds, Why not? Whatapp does it so I figure it must be possible
<havchr>Â Â Â Bear10: I had an application that did that
<Bear10>Â Â Â havchr, how’d you do it?
<Bear10>Â Â Â if you don’t mind sharing
<Leeds>Â Â Â I don’t think whatsapp does it on my phone…
<havchr>Â Â Â Bear10: oh, sorry, had, as in had installed
<Bear10>Â Â Â it does
<Leeds>Â Â Â you are aware that whatsapp isn’t an SMS app, it’s a data chat app
<Bear10>Â Â Â Leeds, but it sends you an SMS to verify your phone number
<Bear10>Â Â Â 100% sure of this try putting in a different phone number when you install it
<Bear10>Â Â Â it even tells you
<Leeds>Â Â Â and I can see that message just fine in my standard messaging app
<AvengerMoJo>Â Â Â any one get a good sample code for ScrollView use with TableLayout?
<havchr>Â Â Â Bear10: look at the content provider examples and see if it’s possible to use the remove/delete commands on the message.
<havchr>Â Â Â Bear10: might have problems with there being created a notification for the sms though
<Bear10>Â Â Â got it
<Bear10>Â Â Â can abort
<Bear10>Â Â Â thanks ![]()
<Bear10>Â Â Â just had to deal with priorities
<DroidAgent>Â Â Â Anyone working with Roboguice? I’m having a hard time injecting contexts into pojos, not even sure if it’s possible.
<b0c1>Â Â Â hi
*Â Â Â daku is now known as DaKu
*Â Â Â DaKu is now known as daku
<FishFPG>Â Â Â morning
<draco12>Â Â Â morning, fish fpg
<DroidAgent>Â Â Â <3 DI
<BSaboia>Â Â Â hello guys. the method createTabContent of TabContentFactory is called just upon the first creation of the tab, or each time I view the tab?
<mANTas322>Â Â Â Good Morning Everyone
<BSaboia>Â Â Â good morning
<mANTas322>Â Â Â horray! im back at the office… monday morning…
<Jug6ernaut>Â Â Â horray?
<BSaboia>Â Â Â ahahaha
<mANTas322>Â Â Â well im in a slightly better mood because my car fixed itsself
<mANTas322>Â Â Â I was having transmition problems for 2,000 miles +
<mANTas322>Â Â Â then I got a new battery once it died completely
<mANTas322>Â Â Â now its back to normal!
<mANTas322>Â Â Â I wish all my problems would auto correct like that.
<BSaboia>Â Â Â mANTas322, M/T or A/T
<BSaboia>Â Â Â ?
<mANTas322>Â Â Â auto
<mANTas322>Â Â Â bassically my bad battery made my car glitch out
<BSaboia>Â Â Â a/t transmissions mostly suck in terms of mechanic problems
<mANTas322>Â Â Â and it wasnt shifting properly
<mANTas322>Â Â Â yeh
<mcherm>Â Â Â I have a simple beginners question. When launched, I want to run a computation and decide to show screen A or screen B. Do I create separate activities (and choose one how?) or one activity that shows different views?
<mANTas322>Â Â Â you can setVisibility on Views
<mcherm>Â Â Â OK, setVisibility on views makes sense. What container should I use to contain multiple views (if I’m guaranteed only one of them would ever be shown at a time since they’re really different screens)?
*Â Â Â HomerSp is now known as UbuntuBhoy
<mcherm>Â Â Â Basically, I’m trying to do “if initialized, show the normal work screen, otherwise show the initial setup screen”.
*Â Â Â UbuntuBhoy is now known as HomerSp
<mANTas322>Â Â Â so, over the weekend 24 random strangers from all around the world added my to their google+
<mANTas322>Â Â Â They all seem to be programmers of oen form or another
<dark_echo>Â Â Â hey
<mANTas322>Â Â Â not sure why it happened out of no where
<dark_echo>Â Â Â i got a strange situation regardng to my app
<dark_echo>Â Â Â i wrote a test app using the bluetooth functionality in android sdk
<Dark-Side>Â Â Â mcherm: you could just have two layout files and if a setContentView(a) etc
<dark_echo>Â Â Â it works fine. i can display the data on the textview sent from my pc
<Dark-Side>Â Â Â i’d imagine the task is just reading from a preference mcherm?
<dark_echo>Â Â Â but when i try to uninstall the app via task manager -> uninstall. the system slows down extremely
*Â Â Â Knossos- is now known as Knossos
<dark_echo>Â Â Â and i have to restart the phone after that
<dark_echo>Â Â Â it also happens while i try to upload a new code from eclipse to the phone
<dark_echo>Â Â Â this new code belongs to my bluetooth test app
<mcherm>Â Â Â Dark-Side: basically, yes. That sounds simple, but thinking it through, I realize that I’ll have a case where the user is viewing the “initial setup screen” and they enter the data so THEN we want to transition to the “normal work screen”. Can one change the contentView? If so, then this is a perfect solution.
<dark_echo>Â Â Â im not seeing this kind of strange behaviours for other apps
<dark_echo>Â Â Â when i quit the app and restart it. it also works fine in that situation
<Dark-Side>Â Â Â mcherm: yes you can just call setcontentview again
<dark_echo>Â Â Â but as i said there is a problem when uninstalling the app
<mcherm>Â Â Â Dark-side: Thanks! That saved me at least 20 min of trial-and-error.
<Dark-Side>Â Â Â mcherm: if you are doing the initial setup you could use a preference activity for that though http://developer.android.com/reference/android/preference/PreferenceActivity.html they are the standard andoid things
<Dark-Side>Â Â Â like the settings app
<dark_echo>Â Â Â i think im allocating a resource and not releasing it but couldnt find what resource is this. there is no method for releasing the bluetooth resources
<Dark-Side>Â Â Â then if the user wants to change settings you can just launch the same activity
<dark_echo>Â Â Â my project contains 3 files: my main activity: http://pastebin.com/CFx7TVex , bluetoothserverthread which listens a new connection http://pastebin.com/KPJajp9g and bluetothdatatransfer thread which listens incoming data http://pastebin.com/pK88EiJ9
<mcherm>Â Â Â No, for this I really need tight control over the look and feel of the screen where the data is entered, including fancy help-text and such. If not, then that would be useful.
<dark_echo>Â Â Â anyone got an idea about what the problem could be ?
<Dark-Side>Â Â Â Ah i see, idiot proof
<mANTas322>   I have a hypothetical quesiton. is it possible to apply some sort of animation filter on top of your entire app
<mANTas322>Â Â Â say I want a ripple effect on every click
<mANTas322>Â Â Â ontop of something like a listview
<dark_echo>Â Â Â any ideas ?
*Â Â Â SoulShadow is now known as Shadows`school
<sebrock>Â Â Â building against 2.2, which layout-vX should I have at a minimum?
<lov>Â Â Â 9?
<lov>Â Â Â 8!
<lov>Â Â Â it’s 8.
<sebrock>Â Â Â so anything below -v8 I could toss out the window?
<lov>Â Â Â uh
<lov>Â Â Â when you say you’re building against 2.2 do you mean that it’s your minimum?
<lov>Â Â Â you REALLY should avoid -vX folders unless it’s to work around a platform specific bug
<lov>Â Â Â just put everything in layout, unless there’s something you want to ONLY show to v8 customers
<sebrock>Â Â Â Im maintaining an app developed by another developer
<sebrock>Â Â Â I find some stuff weird… thats why I ask
<lov>Â Â Â again, is 2.2 your minimum, or is it the api target you’re using?
<lov>Â Â Â if the latter, you should REALLY push that up
<zcat>Â Â Â mANTas322, view animation aren’t that fancy (and they’re usually slow, especially when stacked), but you could annoy users by jiggling each list item above/below the selection in a sortof ripple effect.
<_Rno_>Â Â Â I need a touch event genius here
I’m using a ScaleGestureDetector, I’m calling it on the onTouchEvent of the View. But I would like to keep the original behavior of the view regarding touch events. and so call the parent’s onTouchEvent method. But if I call it then I don’t receive onTouchEvent for the gesture….
<mANTas322>Â Â Â lol zcat, thanks
<mANTas322>Â Â Â I’m not really knowledgable in animation, I was just wondering perhaps theres some cool “effects” class I didnt know about
<zcat>Â Â Â mANTas322, honeycomb has the cool stuff.
<_Rno_>Â Â Â No one has ever tried to keep normal behavior mixed up with ScaleGestureDetector or any other GestureDetector?
<jeppy>Â Â Â I’m using AsyncTasks to retrieve data over the internet and the connections are hanging because the AsyncTasks never die. I looked up info on this and basically I’m supposed to leave them alone and they should be removed after a few seconds. Is there a better way?
<jeppy>Â Â Â One thing to note is that I’m connected to Eclipse and running the app in debug mode, maybe that keeps the threads alive for some reason.
<mcherm>Â Â Â Jeppy: I’m no expert, but my understanding is that the AsyncTask will hang aroudn until the connections complete. Is it possible that your connections are not completing?
<Jug6ernaut>Â Â Â anyone here versed in accessability services?
<Jug6ernaut>Â Â Â mcherm connections?
<mcherm>Â Â Â The “connections” that jeppy said were “hanging”.
<mcherm>Â Â Â Jeppy: if the calls are completing correctly, then you could close down the “connections” in your onPostExecute() method. If they are not completing correctly then that’s the root of your problem.
<lov>Â Â Â jeppy: threads die when they finish running.
<Jug6ernaut>Â Â Â ^^^
<lov>Â Â Â if your network connection is blocking, that’s the issue you need to solve.
<lov>Â Â Â you might want to try adding a timeout of 15 seconds or so
<lov>Â Â Â (as in on the network connection itself, not using some sort of frankenthread as a watchdog. I only clarify because I know people who would take that meanning.)
<lov>Â Â Â also, don’t “close connections” in onPostExecute
<lov>Â Â Â you should not be doing ANY NETWORKING WHATSOEVER in methods that run on the UI thread
<jeppy>Â Â Â they are all in the background of asynctasks
<lov>Â Â Â do all of your networking, including setup and teardown in doInBackground
<lov>Â Â Â other methods such as onPreExceute and onPostExecute occur ON THE UI THREAD which means that if you use these you may as well just put it all in onCreate.
<jeppy>Â Â Â right
<jeppy>Â Â Â well the error is on the server saying there are two many connections
<lov>Â Â Â then you need to solve THAT issue.
<jeppy>Â Â Â too
<jeppy>Â Â Â *
<jeppy>Â Â Â but its just a test server and I am the only one connecting with my app
<jeppy>Â Â Â so those connections are staying open
<jeppy>Â Â Â hmm i am creating the HttpClient on the ui thread though.
<jeppy>Â Â Â is that a no no
<jeppy>Â Â Â ?
<mcherm>Â Â Â jeppy: if you create multiple AsyncTask’s then they will all connect simultaneously (or try to). How many connections will your server support? Just one?
<jeppy>Â Â Â it supports 10, and I am using at most 3 at the same time
<mcherm>Â Â Â jeppy: then it may, indeed, be that you are not closing the old connections. What is your code doing that you THINK should be closing the connections?
<jeppy>Â Â Â but throughout the progression of the app, 10 may be used i suppose. Maybe the problem only happens when I rerun the app and those asynctasks are run again using the same set of data?
<overlordpuppy>Â Â Â I can’t get my device to use > default resources. I’ve tried layout-xlarge, layout-sw720dp, layout-w720dp.
<jeppy>Â Â Â mcherm, IDK, when i get the response (HttpResponse), I open a BufferedReader and an InputStreamReader, but both are closed a short time later (after a short loop to read the response into an array)
<lov>Â Â Â 10:21:04 < jeppy> hmm i am creating the HttpClient on the ui thread though.
<lov>Â Â Â 10:21:12 < jeppy> is that a no no
<mcherm>Â Â Â Jeppy: if each asnycTask closes down its connection when it is finished, then 3 at a time should be OK no matter how many times you run it. So perhaps they’re not closing it down afterward. You want to close the connection explicitly when you’re done with it, not let the garbage collector do it for you.
<lov>Â Â Â The nono is connecting the client on the UI thread.
<lov>Â Â Â You shouldn’t be making it on the UI thread in the first place, though.
<jeppy>Â Â Â How can I explicitly close it?
<jeppy>Â Â Â an AsyncTask that is
<abaratican>Â Â Â also take note AndroidHttpClient needs you to call a cleanup method on it as well
<russfrank>   why would this cause sigill illegal opcode in simulator 24d72:  f04f 0001  mov.w r0, #1  ; 0×1
<abaratican>Â Â Â .close() i think, not sure though
<jeppy>Â Â Â abaratican, that could be something
<abaratican>Â Â Â it has a finalize that does it, but that’s not how you want to handle it
<mcherm>Â Â Â Jeppy: I suspect abaratican has it: don’t do the cleanup in a finalize method… do it right after you finish reading from the InputStreamReader.
<mcherm>Â Â Â Jeppy: it is never a good idea to do cleanup in finalize() of any resource other than memory. Possible, yes, but not a good idea because you have no way to control how long that resource will be held before the GC calls finalize().
<jeppy>Â Â Â ok i have to go to a meeting but I think it has to do with making the client repeatedly without closing it.
<lov>Â Â Â russfrank: because you’re illin’ like a villain
<russfrank>Â Â Â ![]()
<DrPenguin>Â Â Â russfrank: lookin at assembly! sexy, but no idea. it looks like movw is not getting the proper arguments
<lov>Â Â Â :>
<DrPenguin>Â Â Â a quick google search yields this.. http://support.atmel.no/knowledgebase/avrstudiohelp/mergedProjects/AVRASM/Html/MOVW.html
<russfrank>Â Â Â well it gave me ill_illopc (illegal opcode), not ill_illopn
<russfrank>Â Â Â yeah, it looks like there should be 2 operands instead of one
<russfrank>Â Â Â but i dont think that’d cause an illopc
<mi6_x3m>Â Â Â Sorry to bother, does someone have experience using PhoneGap
<mi6_x3m>Â Â Â Im an android dev but boss insists on using it for this project
<lov>Â Â Â mi6_x3m: nope, but it should be straightforward
<mi6_x3m>Â Â Â lov: he keeps saying I can put native android components (views) on the page
<mi6_x3m>Â Â Â not possible right?
<DrPenguin>Â Â Â another quick search sees this: http://stackoverflow.com/questions/7691373/getting-ill-illopc-illegal-opcode-when-trying-to-execute-mrc-or-mcr-instruction
<DrPenguin>Â Â Â its not the same instruction, but the reasoning may still apply
<russfrank>Â Â Â yeah
<russfrank>Â Â Â damn.. how do people get v8 to compile on android
<lov>Â Â Â mi6_x3m: into a webview? No.
<lov>Â Â Â alongside a webview, yes
<mi6_x3m>Â Â Â lov: though so thanks
<DrPenguin>Â Â Â russfrank: are you doing this through the NDK or just straight assembly?
<lov>Â Â Â using some sort of funky overlay so it looks like it’s on top? descent into madness.
<russfrank>Â Â Â ndk
<DrPenguin>Â Â Â hmm..
<lov>Â Â Â straight up.
<DrPenguin>Â Â Â russfrank: I wonder if theres just certain instructions you cant use?
<russfrank>Â Â Â probably
<russfrank>Â Â Â i mean, i always thought ndk would compile stuff to dalvik bytecode, but apparently not
<DrPenguin>Â Â Â seems weird you cant do a movw but can do a mov.. where are you “moving” from?
<russfrank>Â Â Â google totally lied on the ndk landing page
<russfrank>Â Â Â its for the same reason as the stackoverflow you linked
<russfrank>Â Â Â it’s trying to access a coprocessor register
<DrPenguin>Â Â Â I am not sure if thats how Native works.. it allows you to execute native code from WITHIN the VM
<russfrank>Â Â Â right
<Bear10>Â Â Â I want to make an activity that runs once (assuming a certain variable == true) and otherwise load a different one on intent launch main. what would be the best way to do this?
<overlordpuppy>Â Â Â I found my issue. . . I needed to set minSdkVersion to 4.
<sebrock>Â Â Â anyone knows the size of the default border that is placed around my own icons (using tablet)?
<russfrank>Â Â Â which is of course much nicer
<DrPenguin>Â Â Â russfrank: hang on
<sebrock>Â Â Â or is that only done on Samsung devices?
<lov>Â Â Â sebrock: only on samsung devices
<lov>Â Â Â it’s a custom home screen
<sebrock>Â Â Â kk thanks lov
<lov>Â Â Â it’s an implementation detail you should flat out not worry about
<DrPenguin>Â Â Â russfrank: I am trying to find the kernel on my phone to see if what the guy is saying is true.. however im a custom rom so custom kenrel so I might be able to do that cool stuff
<sebrock>Â Â Â lov: is 93×93 a standard icon size in a any way? I was asked to produce this but I think its sorta strange size…
<lov>Â Â Â sebrock: http://developer.android.com/guide/practices/ui_guidelines/icon_design.html
<lov>Â Â Â that’s the holy writ
<lov>Â Â Â tell your PM not to spec your android stuff against iphone
<lov>Â Â Â (hi density is 72×72)
<russfrank>Â Â Â DrPenguin: it seems like its trying to put #1 into r0. why wouldn’t i be able to do that in user mode?
<sebrock>Â Â Â lov: I’ve read that multiple times, no talk about 93×93. This app is supposed to be pre-installed on certain devices so there are some special attributes. However 93×93 seems very special
<DrPenguin>Â Â Â russfrank: If you cant access #1 without superuser privilages then I would suspect that would be it
<DrPenguin>Â Â Â or vice versa, trying to put somehting into r0
<sebrock>Â Â Â 93×93 is not iPhone either though, they have 57×57 and 114×114
<russfrank>Â Â Â DrPenguin: yeah, I think #1 is the literal number 1 and r0 is the first general purpose register
<DrPenguin>Â Â Â I am sketchy on my assembly, so I have no idea what that #1 is, I only know what r0 is
<russfrank>Â Â Â its like eax on x86, often used for return values
<DrPenguin>Â Â Â yeah, I wouldnt suspect #1 having any meaning to the assembler
<lov>Â Â Â sebrock: if this is a preload for an oem, the 93×93 might be coming from them
<lov>Â Â Â sebrock: you need to press for details as to where these numbers are coming from
<DrPenguin>Â Â Â what does #1 represent to you?
<DrPenguin>Â Â Â You know what I would try to do too, try to move a word sized immediate into r0, see if you can do that
<DrPenguin>Â Â Â ill brb, need to shower
<mi6_x3m>Â Â Â hey guys
<mi6_x3m>Â Â Â how do I create a gray list view title
<mi6_x3m>Â Â Â like the one in Android settings
<mi6_x3m>Â Â Â is it part of the activity?
<mi6_x3m>Â Â Â Never mind
<mi6_x3m>Â Â Â figured it out
<luxurymode>Â Â Â What is “developer payload” in in-app billing?
<p_l>Â Â Â luxurymode: iirc something you use to identify what customer bought
<luxurymode>Â Â Â p_l, hows that different than the product id or purchase id?
<sebrock>Â Â Â lov: I was disconnected did you say anything more after posting “(hi density is 72×72)?
<abaratican>Â Â Â 09:46 < lov> sebrock: if this is a preload for an oem, the 93×93 might be coming from them
<abaratican>Â Â Â 09:46 < lov> sebrock: you need to press for details as to where these numbers are coming from
<abaratican>Â Â Â <fin>
<lov>Â Â Â a play in 3 parts.
<sebrock>Â Â Â yep, what I thought. I’ve already mailed them about it
<sebrock>Â Â Â just curious if anyone of you guys seen that before
<luxurymode>Â Â Â p_l, i thik you’re wrong ![]()
<p_l>Â Â Â I can be ![]()
<mANTas322>Â Â Â :O
<mANTas322>Â Â Â im bored at work…. :<
<QaDeS>Â Â Â tell that to your boss ![]()
<abaratican>Â Â Â I dream of being bored at work.
<oGMo>Â Â Â bored doesn’t mean you don’t have something to do
<p_l>Â Â Â abaratican: can be the worst thing about work, really
<mANTas322>Â Â Â I’m handling exceptions in a sphagetti style cold fusion website
<mANTas322>Â Â Â <cftry>Â Â <cfcatch> Your doing somethign wrong.</
<oGMo>Â Â Â mANTas322: seek counseling?
<mANTas322>Â Â Â ?
<DrPenguin>Â Â Â any luck russfrank?
<russfrank>Â Â Â no
<DrPenguin>Â Â Â did you try what I said?
<russfrank>Â Â Â no — i suppose i should
<DrPenguin>Â Â Â That would be a good idea
<russfrank>Â Â Â DrPenguin: what’s the difference between mov.w and movw
<russfrank>Â Â Â i see both in the objdump
<draco12>Â Â Â lets do some collaborative programming
<draco12>Â Â Â you and me, penguin
<draco12>Â Â Â right here, in this channel
<mANTas322>Â Â Â sounds gay ^
<mANTas322>Â Â Â jk ![]()
<DrPenguin>Â Â Â russfrank: I assumed they were the same when I googled mov.w I found movw, hang on
<DrPenguin>Â Â Â draco12: lets do it on top of mANTas322
<mANTas322>Â Â Â gross.
<draco12>Â Â Â hold still mantas
<draco12>Â Â Â i dont want to know youre there
<DrPenguin>Â Â Â ![]()
<DrPenguin>Â Â Â russfrank: not sure, I dont see anything for mov.w when I google, only movw
<russfrank>Â Â Â DrPenguin: http://pramode.net/fosstronics/arm-assembly-programming.txt
<DrPenguin>Â Â Â draco12: lol sure, what did you have in mind
<draco12>Â Â Â i dont know, man
<russfrank>Â Â Â this guy says ” Note: The movw/movt combination is used to move a 32 bit constant into a register”
<draco12>Â Â Â i dont know
<DrPenguin>Â Â Â hmm.. well they are obviously different instructions
<russfrank>Â Â Â yeah diff opcodes
<russfrank>Â Â Â there are mov.w all over the place in the dissasembly
<DrPenguin>Â Â Â wair
<DrPenguin>Â Â Â it converts your movs to mov.ws
<DrPenguin>Â Â Â maybe the mov calls your doing are being resolved to movw, and the assembler resolves it by calling it mov.w which is the “w” version of mov?
<DrPenguin>Â Â Â your adds are also being converted to add.w if you notice
<russfrank>Â Â Â they aren’t though, both movw and mov.w appear in the dissasembly
<DrPenguin>Â Â Â Im just guessing
<russfrank>Â Â Â both addw and add.w appear, and the ones with a dot in them have a different opcode
<DrPenguin>Â Â Â you need to find out whats with the .w being added to your mov and add instructions
<gridbag>   what do you do with an old deactivated droid phone, when you buy a new one? Can you still run non-internet test apps on it over the usb?
<Nagrom_17>Â Â Â gridbag, it basically turns into a wifi only android device.
<Nagrom_17>Â Â Â still fully capable
<Bear10>Â Â Â I’m trying to launch an activity with CLEAR_TOP and make it so that it closes every other activity except for this one but its not doing so. Any ideas?
<gridbag>Â Â Â Nagrom_17, That’s exactly what I want. Are there special steps to enable that? I hear that phones that have never been activated don’t do anything.
<DrPenguin>Â Â Â Im not sure russfrank, it might be worth googling around why those instructions are being changed.. I actualy need to go
<Nagrom_17>Â Â Â gridbag, I have my old og droid right here, everything just works fine. Just no cell phone reception
<russfrank>Â Â Â DrPenguin: alright, thanks for your help man
<DrPenguin>Â Â Â no problem, sorry I couldnt help more
<gridbag>Â Â Â Nagrom_17, Will it wtill work if you do a ‘reset to factory’ ?
<Nagrom_17>Â Â Â I dont know
<gridbag>Â Â Â Nagrom_17, ok thanks. these deactivated things are too expensive to throw away.
<abaratican>Â Â Â paperweights at minimum
<Nagrom_17>Â Â Â They still work exactly the same app dev wise
<russfrank>Â Â Â anyone else know why this would cause illopc 24d72:Â Â f04f 0001Â Â mov.w r0, #1Â Â ; 0×1
<rutski>Â Â Â this perfectly valid XML layout file is giving me this perfectly nonsensical error message: http://codepad.org/dZxTLpOz
<djskidd>Â Â Â Hi
<mANTas322>Â Â Â sup
<rutski>Â Â Â Can anyone advise? I’m really stuck here.
<rutski>Â Â Â hey there
<lov>Â Â Â looks good at first glance.
<djskidd>Â Â Â Anyone ported Python to Android yet?
<lov>Â Â Â aha.
<lov>Â Â Â xmlns:android=”http://schemas.android.com/res/apk/android”
<lov>Â Â Â change this to
<lov>Â Â Â xmlns:android=”http://schemas.android.com/apk/res/android”
<rutski>Â Â Â damn it
<rutski>Â Â Â thank you :-p
<abaratican>Â Â Â lysdexia.
<rutski>Â Â Â :-p
<mANTas322>Â Â Â Dack Janials
<rutski>Â Â Â lov: I’m impressed that you spotted that ![]()
<abaratican>Â Â Â I’m concerned that he spotted that.
<rutski>Â Â Â :-p
<lov>Â Â Â rutski: that’s the only thing that could have been wrong ![]()
<lov>Â Â Â it was so small and simple
<lov>Â Â Â I figured it was worth a glance
<lov>Â Â Â also, it mentioned line 2
<lov>Â Â Â :>
<rutski>Â Â Â interesting point, yeah
<draco12>Â Â Â hi luv
<draco12>Â Â Â :>
<gimpygoo>Â Â Â How are you guys today ?
<draco12>Â Â Â ok how you doing, gimpy goo
<mANTas322>Â Â Â im grumpy
*Â Â Â abaratican imagines how bad it would be if everyone replied to that.
<djskidd>Â Â Â I’m thursty
<gimpygoo>Â Â Â Im good thanks! Grumpy huh ?
<gimpygoo>Â Â Â Get a drink djbpython
<mANTas322>Â Â Â yeh, mondays at the office, I feel like garfield
<gimpygoo>Â Â Â djskidd that is **
<djskidd>Â Â Â Where’d Python come from?
<pardom>Â Â Â guys, I haven’t be in here in a while, but I was here when this channel was made. I’m curious what you guys are working on. My company wants to hire 15 more Android devs…
<gimpygoo>Â Â Â What co?
<mANTas322>Â Â Â sounds liek a sweet company to work for.
<pardom>Â Â Â Mobiata
<pardom>Â Â Â we were acquired by Expedia a year ago
<djskidd>Â Â Â Anyway, I have experience with coding, but need to install the SDK on Ubuntu
<pardom>Â Â Â lol
<DroidAgent>Â Â Â 15!!
<DroidAgent>Â Â Â We’re having trouble finding even a couple ![]()
<mANTas322>Â Â Â ^ right
<gimpygoo>Â Â Â Expedia has been buying lots of travel co’s as of late..
<abaratican>   DroidAgent: finding developers is easy as hell. Finding competent ones, however…
<pardom>Â Â Â Yes I agree
<DroidAgent>Â Â Â abaratican: point taken, of course you’re right.
<pardom>Â Â Â I recall some good ones in here in the beta days
<DroidAgent>Â Â Â pardom: do you guys have H1Bs?
<abaratican>Â Â Â Back when your rocking chair didn’t give you splinters.
<pardom>   DroidAgent: I think so… for the exceptional developers
<DroidAgent>Â Â Â Hm how exceptional ![]()
<pardom>Â Â Â lol, well that’s not up to me.
<abaratican>Â Â Â If you’re looking for exceptional ones just set up a catch block outside your interview room.
<DroidAgent>Â Â Â ![]()
<pardom>Â Â Â ha ha
<mANTas322>Â Â Â lol
<DroidAgent>Â Â Â Problem with exceptions is that they often go… unchecked.
<zeeZ>Â Â Â I like my { /* What could POSSIBLY go wrong? /* } catch blocks
<DroidAgent>Â Â Â Too bad they don’t compile.
<mANTas322>   “/*”  :O
<gridbag>Â Â Â DroidAgent what company is looking for 2?
<zeeZ>Â Â Â whoops
<DroidAgent>Â Â Â http://kgb.com/brands/kgb-usa
<DroidAgent>Â Â Â But… preferably in the Netherlands.
<DroidAgent>Â Â Â Or willing to relocate :}
<zeeZ>Â Â Â or live on the internet
<DroidAgent>Â Â Â No that won’t work.
<DroidAgent>Â Â Â You’d be surprised how big the impact of a fragmented development team is,
<abaratican>Â Â Â works well enough for open source projects =P
<Jug6ernaut>Â Â Â anyone here versed in accessability services?
<zeeZ>Â Â Â just takes longer ![]()
<Jug6ernaut>Â Â Â i cant seem to get a valid context…
<mANTas322>Â Â Â I was once deported from the netherlands
<mANTas322>Â Â Â >:/
<mANTas322>Â Â Â im not going back to sweden
<draco12>Â Â Â why you got deported?
<mANTas322>Â Â Â illegal alien
<draco12>Â Â Â o_O
<abaratican>Â Â Â that’s a pretty good reason.
<mANTas322>Â Â Â accidentally illegal :>
<draco12>Â Â Â where they sent you to?
<draco12>Â Â Â :>
<mANTas322>Â Â Â back to usa
<abaratican>Â Â Â free ride back?
<mANTas322>Â Â Â yes
<abaratican>Â Â Â nice
<draco12>Â Â Â lol
<zeeZ>Â Â Â “whoops, this isn’t the US of A anymore?”
<draco12>Â Â Â where to?
<mANTas322>Â Â Â police escort on to the plane
<mANTas322>Â Â Â peopel thought I was terrorist
<zeeZ>Â Â Â sweet
<draco12>Â Â Â just any random spot in the usa?
*Â Â Â [0xD34D]|N20 is now known as [0xD34D]
<mANTas322>Â Â Â no back to ohare chicago
<abaratican>Â Â Â they threw him out over kansas.
<zeeZ>Â Â Â how long did the whole procedure take though?
<mANTas322>Â Â Â I had to live in the airport for a whole day
<mANTas322>Â Â Â liek tom hanks in that movie
<zeeZ>Â Â Â awesome
<mANTas322>Â Â Â they gave me food vouchers and heinekens
<draco12>Â Â Â why did you hang around the netherlands for so long?
<draco12>Â Â Â how long was it, anyway
<mANTas322>Â Â Â in the airport
<draco12>Â Â Â no
<draco12>Â Â Â before they deported you
<mANTas322>Â Â Â I flew in
<mANTas322>Â Â Â they said I couldnt go onto another plane to reach my final destination
<mANTas322>Â Â Â then I had to wait for the next big plane back to the states
<mANTas322>Â Â Â which was the next day
<draco12>Â Â Â oh
<draco12>Â Â Â i thought you had spent like a year living in the dutch undergrounds or something
<draco12>Â Â Â until they caught you
<draco12>Â Â Â and deported you
<mANTas322>Â Â Â lol I wish
<zeeZ>Â Â Â I went to the netherlands once to pick up a server.. didn’t even notice when I crossed the border
<zeeZ>Â Â Â suddenly global speed limits /o\
<mANTas322>Â Â Â europe isnt that great
<mANTas322>Â Â Â lots of crime and hooligans
*Â Â Â techmik is now known as techmik|away
<abaratican>Â Â Â I like that in the USA I stand a better chance of being shot than violently stabbed. Related: http://www.youtube.com/watch?v=rJKUvuVaTBk
<patCorkv1_0>Â Â Â Hi all any good tutorial on Tabs? I’m trying to add buttons to different tabs, but it dosen’t want to work ?
<aboudreault>Â Â Â hi
<mANTas322>Â Â Â sup
<mANTas322>Â Â Â ugh….. emails….
<aboudreault>Â Â Â how can I get the menu from my activity
<aboudreault>Â Â Â I created it via a xml file…. but I want to modify an item in onResume
<jeppy>Â Â Â Thanks for your help ealier lov, mcherm, and abaratican. I resolved the hanging connections by calling httpClient.getConnectionManager().shutdown(); in both onPostExecute and onCancelled.
<mcherm>Â Â Â jeppy: nice! glad it worked.
<jeppy>Â Â Â yes me too
<draco12>Â Â Â how can i make that stupid alchemy game?
<jeppy>Â Â Â a fairly simple fix ![]()
<draco12>Â Â Â ‘);
<jeppy>Â Â Â draco12, you want to make the same game?
<draco12>Â Â Â yeah
<draco12>Â Â Â completely
<jeppy>Â Â Â I think you will probably want to start with a long list of x + y = z items
<draco12>Â Â Â im not sure
<draco12>Â Â Â i think there is a algorithm
<draco12>Â Â Â no more than one line long
<draco12>Â Â Â and its basically life, you know?
<jeppy>Â Â Â hang on i’m going to download it
<skim1776>Â Â Â what is used to store custom objects when the application is closed?
<Nebukadneza>Â Â Â heho
<jeppy>Â Â Â skim1776, custom objects?
<jeppy>Â Â Â i dont see how to do this, it looks like they’re all pre-defined
<skim1776>Â Â Â jeppy, developer defined classes objects
<draco12>Â Â Â uh
<elwardi>Â Â Â kk, guys, i have created some linearlayouts in my java code and added it to the mainview, affected one unique id for each view, but i am not able to find these views using findviewbyid, any idea what is wrong with that ?
<draco12>Â Â Â \O_o
<jeppy>Â Â Â elwardi, post code somewhere and give link
<elwardi>Â Â Â okay, here is the explanation and code for my previous post http://pastebin.com/x8AtkSDw
<Nebukadneza>Â Â Â mh, say, if i sign a apk using something like jarsigner -verbose -keystore /data/Sources/android-sdk-linux_x86/dbg.keystore ClockPackage.apk nebuk, then verify it i get a “jarsigner: java.lang.SecurityException: invalid SHA1 signature file digest for res/drawable-ldpi/smart_alarm_jog_tab_bar_left_end_confirm_red.9.png” … i’m a little confused now, as sign/verbose printed no errors
<Amadiro>Â Â Â Evening. I’m wondering, if I want to move around some GUI elements smoothly (like having a progress-bar increase progress every few milliseconds) what mechanism would be the best to use? Currently it looks like android.os.AsyncTask is the best fit.
*Â Â Â dark3n|off is now known as dark3n
<Jug6ernaut>Â Â Â is it possible to ping a sensor without registering a listener?
<VidMas>Â Â Â Hey all, anyone know if there is an advantage to saving texture files in the assets folder as opposed to the res folder for openGL projects?
<canadiancow>Â Â Â can someone tell me if if http://www.teksavvy.com/en/ loads
<DrPenguin>Â Â Â it does
<canadiancow>Â Â Â not only is my internet down, but i cant load my isp’s site while tethered
<DrPenguin>Â Â Â Â uber fail
<optimusM>Â Â Â is it possible to link a button to a layout using id?
<optimusM>Â Â Â such as android:id=”@+id/mainlayout”
<DrPenguin>Â Â Â You can give any view element in your layout xml an id
<optimusM>Â Â Â is there asay to go around using a button without a onclicklistener?
<optimusM>Â Â Â easy
<optimusM>Â Â Â easy way
<mANTas322>Â Â Â ._.
<mANTas322>Â Â Â you can just have a button that doesnt do anything
<mANTas322>Â Â Â thats the easiest
<pardom>Â Â Â yeah, what does that even mean?
<pardom>Â Â Â If I’m understanding you correctly, you can use this: http://code.google.com/p/androidannotations/
<optimusM>Â Â Â i need it to open a new page
<pardom>Â Â Â *activity?
<optimusM>Â Â Â yea.
<optimusM>Â Â Â i wish there was a better way people can show me or help me understand this better
<pardom>Â Â Â If you want the button to do ANYTHING when you click it, you need to add a click listener
<mANTas322>Â Â Â click listeners arnt hard
<mANTas322>Â Â Â just copy and paste android example code into yours
<optimusM>Â Â Â i have
<gridbag>Â Â Â I like having two “yes” buttons and one “no” button. Just to confuse the user.
<Amadiro>Â Â Â gridbag, have two “yes” buttons but randomly make one of them mean “no”
<optimusM>Â Â Â but u will call me stupid cause im developing from my phone
*Â Â Â techmik|away is now known as techmik
<optimusM>Â Â Â ill put up a paste of what the file looks like maybe you guys can help me understand
<optimusM>Â Â Â http://pastebin.com/rEYtnESk
<optimusM>Â Â Â it has doubles invit i kniw
<optimusM>Â Â Â know
<optimusM>Â Â Â in it
<gridbag>Â Â Â Amadiro, the “maybe” button could do that.
<Amadiro>Â Â Â gridbag, good idea.
<Amadiro>Â Â Â gridbag, also a classic, putting “????” on all buttons.
<mANTas322>Â Â Â I dont see anywhere in your code where you are referencing the said button from your xml
<mANTas322>Â Â Â or anything that resembled an onclicklistener
<pardom>Â Â Â optimusM: http://developer.android.com/guide/topics/ui/ui-events.html
*Â Â Â daku is now known as DaKu
<anli_>Â Â Â If I draw objects using renderscript, do I need to do scripting?
<anli_>Â Â Â I only want to have a Mesh object and draw it in a convenient way
<anli_>Â Â Â But the Mesh class is in the renderscript package
<optimusM>Â Â Â http://pastebin.com/tCZfa9kb see like in this one its not using onclicklistener but when the button is pressed it displays click!
<Amadiro>Â Â Â Does anybody know how I can get a hold of the current Activity object running from withhin the onProgressUpdate() method of an AsyncTask? Or should I just pass it in somewhere…?
<anli_>Â Â Â Activity.this
<anli_>Â Â Â Is it an inner class?
<Snuffel>Â Â Â Amadiro: I always define the AsyncTask as an inner class
<Snuffel>Â Â Â of the activity
<Amadiro>Â Â Â Ah, I did not do that — I’ll do it that way, thanks.
<anli_>Â Â Â Amadiro: Then you can use Activity.this
<Amadiro>Â Â Â right.
<Amadiro>Â Â Â thanks a bunch, both of you.
<anli_>Â Â Â np
<pardom>Â Â Â optimusM: It’s probably using a framework that enables it. Use the framework, or do it properly with the SDK.
<anli_>Â Â Â I have a problem utilizing the whole screen of my phone
<optimusM>Â Â Â does anyone have two examples of a MainActivity and a SecondActivity that displays a second page
<anli_>Â Â Â Seems that if I create a SurfaceView, it becomes less tall than it should be
<anli_>Â Â Â Use views for pages, not activities is my not-so-educated guess
<nullie>Â Â Â Hello. How can I displaye error message and exit application?
<mANTas322>Â Â Â ._.
<pardom>   ಠ_à²
<mANTas322>Â Â Â ^ thats the face
<mANTas322>Â Â Â ![]()
<pardom>Â Â Â ha
<StlTenny>Â Â Â So what does everyone here use if they want to connect to remote sql databases from a device?
<pardom>Â Â Â restful web services
<pardom>Â Â Â json post
<nullie>Â Â Â sqlite over nfs
<p_l>Â Â Â nullie: lol
<pardom>Â Â Â not sure if joking…
<nullie>Â Â Â heh
<nullie>Â Â Â was also thinking soap calls to sqlite
*Â Â Â S3nsat10n_ is now known as S3nsat10n
<StlTenny>Â Â Â hah, nah just put something together and I’m testing with a raw query to php
<StlTenny>Â Â Â wanted to see what people used as a good solution
<Noxz>Â Â Â alias ls=’ls –color=always’
<Noxz>Â Â Â oopse
<Noxz>Â Â Â wrong window
<Noxz>Â Â Â so my question is though…
<Noxz>Â Â Â I jsut repo sync’d … and it fetched everything, and at the end it said that a enw version of repo is available, but basically failed at that… I now have the full source tree?
<anli_>Â Â Â I have created an app which should be vertically aligned in the center, but its not, then I ask myself if the app is having access to the whole screen: http://darkbox.dyndns.org/make_us_pink/
<anli_>Â Â Â The screenshot is a cam shot of my phone
<anli_>Â Â Â The source reveals that I am using the height of the SurfaceView:s Canvas to decide how much screeen space my program has been allocated
<anli_>Â Â Â Now, what have I done wrong?
<nullie>Â Â Â so, if my first question was incorrect: What’s preferred way to tell user that his device is not suitable for this program and shut down?
<DrPenguin>Â Â Â nullie:Â the preferred way is that the program is not visible to the device
<anli_>Â Â Â You can always create a demo
<anli_>Â Â Â If a user can run the demo, he/she can run the sharp app
<DrPenguin>Â Â Â Thats the whole idea of market filtering
<nullie>Â Â Â Well, yes. But… if he still runs it, how should I handle missing bluetooth adapter?
<DrPenguin>Â Â Â nullie: yet again, it shouldnt be visible to the phone
<DrPenguin>Â Â Â you can set it up in the manifest that it requires a feature, and if the feature is missing, the phone wont see it on market
<Nagrom_17>Â Â Â DrPenguin, its always good to have failsafes
<anli_>Â Â Â Talking about blue tooth, is it possible to create an app that communicate with nearby phones using bluetooth, transferrring game logic?
<Noxz>Â Â Â like check the screen size
<Noxz>Â Â Â ?
<Noxz>Â Â Â or see if they have a camera
<DrPenguin>Â Â Â Nagrom_17: then I think that should be painfully obvious, the launched activity should query the system for “required” features
<DrPenguin>Â Â Â but a good android app doesnt have any need for those failsafes
<nullie>Â Â Â How come it doesn’t need failsafes? Will android prevent installing app if missing features?
<mantrid1986>Â Â Â hello! can anybody access android.git.kernel.org?
<DrPenguin>Â Â Â *sigh* are you not listening?
<Nagrom_17>Â Â Â DrPenguin, a good android app would run outside of its intended hardware. I’m guessing trying to reference bluetooth without an adapter will crash?
<DrPenguin>Â Â Â the phone WONT SEE the app on market
<nullie>Â Â Â what if we talk about apk?
<DrPenguin>Â Â Â if you go to install it, arguably the apk shouldnt install
<Nagrom_17>Â Â Â mantrid1986, it is down. look up the codeaurora repository
<DrPenguin>Â Â Â Nagrom_17: An app should not run outside of its intended hardware
<anli_>Â Â Â I created an app that should not need any permissions at all, still, when I install it, I am asked if I can allow the app to access storage and being able to read phone status and identity (phone calls)
<anli_>Â Â Â Why?
<DrPenguin>Â Â Â thats like installing a program on a pc that needs 4 gb of ram and you only have 1
<mantrid1986>Â Â Â thx
<Nagrom_17>Â Â Â DrPenguin, what happens when a phone with bluetooth fails to init the adapter properly? or if it breaks?
<DrPenguin>Â Â Â Nagrom_17: thats a completely different scenario however
<pervy_sage>Â Â Â Heya
<Nagrom_17>Â Â Â That is the same. Trying to use hardware that is not there
<DrPenguin>Â Â Â now your not checking to see if the feature is there, your just checking if your setup work went ok after knowing the feature is there
<nullie>Â Â Â ok, quote: “Declared <uses-feature> elements are informational only, meaning that the Android system itself does not check for matching feature support on the device before installing an application.”
<DrPenguin>Â Â Â No its not
<DrPenguin>Â Â Â because the hardware IS there
<Nagrom_17>Â Â Â Not to the code.
<Nagrom_17>Â Â Â Not if its broken physically
<p_l>Â Â Â Nagrom_17: market checks for claimed as available hw. Failure to initialize gives you an exception
<p_l>Â Â Â <uses-feature> is there for the purpose of filtering so that users don’t complain your app doesn’t work because of *critical* hw missing
<DrPenguin>Â Â Â Nagrom_17: if its broken, it doesnt change thef act that you have a blue tooth adapter
<DrPenguin>Â Â Â its just a non usuable adapter
<pervy_sage>Â Â Â When getting the magnetic field, and computing the rotation matrix from the gravity and magnetic sensors, is there a way to get the angles back out?
<Nagrom_17>Â Â Â who cares if you have a non usable one?
<Nagrom_17>Â Â Â A non usable one is the same as none.
<DrPenguin>Â Â Â No its not
<Nagrom_17>Â Â Â Yes. Broken on a hardware level.
<DrPenguin>Â Â Â The end result may be the same, i.e. you cant use blue tooth, but on the face they are 2 completely different things
<Nagrom_17>Â Â Â How are they different?
<DrPenguin>Â Â Â Because in one instance you have one, in the other you dont?
<DrPenguin>Â Â Â Thats pretty freaking different
<anli_>Â Â Â Is it possible to create an app that does not require any permissions?
<DrPenguin>Â Â Â Whose to say the phone wont report back that you STILL have one?
<DrPenguin>Â Â Â Does the phone care its broken?
<Nagrom_17>Â Â Â DrPenguin, and in what instance would a tiny extra bit of non functioning metal make a difference?
<Nagrom_17>Â Â Â DrPenguin, if the phone reports its still there thats fine. Then you need some way to failsafe when you cant actually USE the adapter
<DrPenguin>   Look, the fact of the matter is, a broken blue tooth radio vs a missing blue tooth radio are semi mutually exclusive
<DrPenguin>Â Â Â If I ping my phone to setup blue tooth, I can get the result of No usable bluetooth IF either its missing or broken, but the root cause is different
<Nagrom_17>Â Â Â The fact of the matter is it is possible to install an app needing bluetooth when you cant use the bluetooth. You should check inside your code so it doesnt crash.
<DrPenguin>Â Â Â Nagrom_17: BUT THATS THE DAMN POINT DUDE.. SERIOUSLY your phone WONT install the app if you dont have it!
<DrPenguin>Â Â Â Jesus!
<DrPenguin>Â Â Â This is not rocket science
<Nagrom_17>Â Â Â DrPenguin, I would appreciate it if you would no curse at me.
<abaratican>Â Â Â ruh roh
<abaratican>Â Â Â thou shalt not reference the home of beavers.
<anli_>Â Â Â Nagrom_17: Yes, thats a fair claim
<DrPenguin>Â Â Â Then have some common sense and understanding of how Android works
<Amadiro>Â Â Â is onPostExecute() still called on an AsyncTask that was cancelled?
<nullie>Â Â Â DrPenguin, it will install it
<DrPenguin>Â Â Â If you want to use something, you request for it, if your requesting ot use it, it needs to be there
<DrPenguin>Â Â Â So a GOOD developer would set it up to filter out devices that DO NOT have it
<Nagrom_17>Â Â Â anli_, earlier DrPenguin said a good app wont check to make sure
<anli_>Â Â Â If I was rude to everyone not having common sense and not knowing how android works, I would get unpopular really fast
<Amadiro>Â Â Â hm, the doc says it won’t, apparently.
<nullie>Â Â Â excuse me for starting a flame war
<Nagrom_17>Â Â Â DrPenguin, yes a good developer would. But a good developer would still check in the code
<DrPenguin>Â Â Â No he wouldnt
<DrPenguin>Â Â Â A good developer would check to make sure initialization went ok
<DrPenguin>Â Â Â not that its there
<DrPenguin>Â Â Â theres a DISTINCT difference
<xat“>Â Â Â drpenguin’s right
<p_l>Â Â Â Nagrom_17: a good developer would catch an exception to make sure it started okay
<anli_>Â Â Â Its problematic that my app requests READ_PHONE_STATE permission although I have not asked for such a permission in Androidmanifest.xml
<p_l>Â Â Â anli_: check if you didn’t have it included by some library
<Nagrom_17>Â Â Â Well that depends on how initialization works. I’m guessing it wont return if the adapter isnt functioning
<Nagrom_17>Â Â Â p_l, Yes
<anli_>Â Â Â p_l: I dont use one, but hey, isnt AndroidManifest.xml the only place where a permission can be asked for?
<Zacharias3690>Â Â Â If i’m using openGL what’s the point of the viewthread?
<p_l>Â Â Â anli_: try using apktool to get manifest from *compiled* apk and see if isn’t merged with something
<anli_>Â Â Â hm
<DrPenguin>Â Â Â Nagrom_17: returns null
<Nagrom_17>Â Â Â DrPenguin, yes so you should check in code and make sure its not null. Along with the device filtering.
<DrPenguin>Â Â Â But its stupid to check for that, just prevent it from being installed to begin with
<Nagrom_17>Â Â Â No it is not stupid at all
<anli_>Â Â Â The only lib I am using is android.jar
<Nagrom_17>Â Â Â Why would it be?
<DrPenguin>Â Â Â If I am a user and I download your app, then find out “OH YOU CANT USE THIS YOUR MISSING STUFF” I am gonna give you a low rating
<p_l>Â Â Â Zacharias3690: Skia/display server stroking so it doesn’t barf on you?
<anli_>Â Â Â And why whould that jar request permissions for me?
<p_l>Â Â Â anli_: … weird
<p_l>Â Â Â if in doubt, decompile your APK and check
<Nagrom_17>Â Â Â Take for example the app that lets you submit barometer readings to a map. If you are on a xoom(or something with barometer) you can submit. Otherwise you can only view.
<anli_>Â Â Â When I post my first app, I will be sure DrPenguin will not be informed about it, so I have chances getting a good rating from him/her
<anli_>Â Â Â ![]()
<anli_>Â Â Â p_l, hm, maybe I should
<Nagrom_17>Â Â Â Now if the dev filtered because a portion of the app needed a barometer there would be many less people able to use it
<DrPenguin>Â Â Â Lets take this to a differnet level Nagrom_17, lets say I have a system and I am installing a debian package, my debian package requires feature X that is either there or not, it cant be put in later it had to be there from day one, I can either check if feature X is there preinst, or check during EVERY RUN of the program
<DrPenguin>Â Â Â what am I gonna do? The former
<anli_>Â Â Â p_l: On the other hand, its easier to google for this maybe
<DrPenguin>Â Â Â because thats good programing practice
<Nagrom_17>Â Â Â DrPenguin, says yourself.
<Nagrom_17>Â Â Â I would think doing anything possible to prevent a crash would be good programming
<DrPenguin>Â Â Â Says the Programming community? MANY applications do an initial system check and prevents you from installing if your missing something
<Nagrom_17>Â Â Â Yes I’m not saying to not check at install
<DrPenguin>Â Â Â I cant think of any programs that dont check preinst for a sane environment
<anli_>Â Â Â Nagrom_17: then you would check if every variable contains null, meaning that you do not rely on your own code == bad
<Nagrom_17>Â Â Â anli_, what?
<anli_>Â Â Â Oh, maybe I got it wrong, sorry
<DrPenguin>Â Â Â well preinst in this context is like filtering apps on market
<Nagrom_17>Â Â Â You should check preinstall.
<Nagrom_17>Â Â Â But that doesnt mean you shouldnt check at runtime as well
<DrPenguin>Â Â Â You wouldnt check at runtime if the thing is there..
<Nagrom_17>Â Â Â The thing WAS there. Thats all you know.
<Nagrom_17>Â Â Â Checking is you making sure it IS there
<anli_>Â Â Â According to http://www.andengine.org/forums/development/permission-control-t2069.html, all android app needs those permissions, thats weird
<DrPenguin>Â Â Â Thats bad coding
<anli_>Â Â Â Every app is assumed to need READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE permissions, how can that not be weird…
<DrPenguin>Â Â Â You shouldnt be checking if its there, you shoudl just be checking to make sure initialization ok
<Nagrom_17>Â Â Â Preventing a crash. Terrible coding.
<DrPenguin>Â Â Â that should NOT entail checking if the item exists if it is a dependency of installation
<Nagrom_17>Â Â Â Why not?
<anli_>Â Â Â Wow, according to that webpage, an app is responible of pausing a game if someone is calling me
<DrPenguin>Â Â Â *sigh* I am not going on and on with this
<Nagrom_17>Â Â Â Yes and you are still not making sense.
<DrPenguin>Â Â Â I only waste so much time with people who lack understanding
<Nagrom_17>Â Â Â What is the disadvantage?
<Nagrom_17>Â Â Â I’m not that arrogant.
<Nagrom_17>Â Â Â I try and help people who lack understanding.
<anli_>Â Â Â Thats good
<anli_>Â Â Â Instead of harrasing those
<b0c1>Â Â Â hi
<Estel>Â Â Â This looks like a fun conversation that I don’t have time to read scrollback of ![]()
<b0c1>Â Â Â I have a ViewFlipper with two LinearLayout item (the second contain a Spinner), if I try to access to the spinner in the OnCreate method I get null…
<xat“>Â Â Â nullie’s case simply shouldn’t happen, ideally
<b0c1>Â Â Â how can I fix it? I need call some initialization code? or something?
<DrPenguin>Â Â Â b0c1: can you post your code so we can see whats going on?
<b0c1>Â Â Â A little complex, but I create a small sample…
<Nagrom_17>Â Â Â So there is no disadvantage to checking if hardware is really there? It can prevent crashes but yet it is bad coding practice?
<jeppy>Â Â Â are you talking about keyboard keys?
<anli_>Â Â Â Can a view set this programmatically: android:layout_width=”fill_parent” ?
<anli_>Â Â Â Instead of in xml
<xat“>Â Â Â Nagrom_17: you want to fail gracefully if you are unable to access the hardware, but that isn’t the same as handling a case of the hardware not existing when you request it as a feature — the market takes care of that (or it should)
<DrPenguin>Â Â Â anli_: you can virtually set anything for a view programatically
<DrPenguin>Â Â Â its like View.LAyoutparams or some subclass of it
<anli_>Â Â Â ok
<Nagrom_17>Â Â Â xat“, Yes thats what I’m saying.
<anli_>Â Â Â Must trying this, because my view does not fill up the whole phone height
<xat“>Â Â Â well they’re two different situations, and nullie’s situation is more of the latter case
<Estel>Â Â Â anli_: if it isn’t working in XML, it’s a different problem.
<DrPenguin>Â Â Â anli_: if you want to fill height, then dont you want layout_height=’fill_parent”?
<xat“>Â Â Â where the program really doesn’t have to check, because the market allows the program to make the assumption that the hardware does exist
<xat“>Â Â Â whether it is *functioning* is a separate case
<nullie>Â Â Â user can still get apk and install it, and android will allow it
<nullie>Â Â Â I don’t want it to ForceClose then
<anli_>Â Â Â estel: its maybe working in xml, have not tried it there yet
<xat“>Â Â Â yeah, but that would suggest you’re installing outside of the market
<Estel>Â Â Â You don’t? That’s their own damn problem if they install outside the market.
<fuzion24>Â Â Â Is anyone familiar with the structure of a .dex file?
<xat“>Â Â Â if you’re not taking advantage of the framework provided features (the market included) then of course you’re going to have to check for it instead of relying on device filtering
<DrPenguin>Â Â Â fuzion24: you might have more luck with android-root or xda, alot of the guys there work on thingsl ike that
<DrPenguin>Â Â Â xat“: thats what I was trying to get across. Its not good software design practices doing it the way Nagrom_17 was describing
<fuzion24>Â Â Â DrPenguin, thanks.
<DrPenguin>Â Â Â Now.. if we have an instance with a PC that has some external blue tooth dongle, then THAT is a completely different circumstance, but in this reguard ware talking about an internal item, non removable
<Estel>Â Â Â The market allows multiple APKs to target different hardware, right?
<DrPenguin>Â Â Â Well.. I know market allows for different API targets
<DrPenguin>Â Â Â not sure about hardware
<Estel>Â Â Â *checks
<DrPenguin>Â Â Â altho one could assume that, to a degree, different versions semi imply different hardware platforms, but its not 100% mutually exclusive
<luxurymode>Â Â Â is it fine to expose public methods in a service that i plan on starting explicitly? in other words, do i have to use AIDL if i have a media player inside the service and i want my activity to interact with that service?
<Estel>Â Â Â I think apks can target screen sizes and GL texture stuff.
<Estel>Â Â Â (In addition to APIs)
<DrPenguin>Â Â Â Estel: yes they most definitely can via specifying stuff in your xml
<Estel>Â Â Â I mean, through the market.
<DrPenguin>Â Â Â oh that I dont know.. I figured market just reads your XML manifest for that
<Estel>Â Â Â It does read the XML manifest
<Estel>Â Â Â But those are the only three criteria is allows you to target varying apks at different users.
<DrPenguin>Â Â Â ah
<anli_>Â Â Â Can I by writing an xml file for my application create a surfaceview that I never setContentView on?
<anli_>Â Â Â A xml file for the main element so to say
<anli_>Â Â Â ah, maybe that did not make sense, must see
<anli_>Â Â Â I think I started to understand those xmls
<Zacharias3690>Â Â Â so the standard for drawing with openGL is to draw a polygon then add a texture on top of it?
<mANTas322>Â Â Â once u understand xml
<mANTas322>Â Â Â the world is yours for the taking
<anli_>Â Â Â mANTas322–
<anli_>Â Â Â I have an extra TextView at the bottom of my app, eclipse put it there, thats maybe why I cannot utilize the whole screen
<anli_>Â Â Â Its in main.xml
<Estel>Â Â Â 50% off of O’Reilly ebooks for the duration of #androidopen btw, if anyone’s interested.
<HawkI>Â Â Â Can an android be used as a GPS navigation device?
<Estel>Â Â Â HawkI: yes
<anli_>Â Â Â HawkI: search for geocaching on market
<HawkI>Â Â Â Estel: gracias
<HawkI>Â Â Â anli_: ah, good tip
<Estel>Â Â Â Geocaching? o_O Totally not navigation.
<Estel>Â Â Â There’s a Navigation app included with the Market version of Google Maps.
<HawkI>Â Â Â itsa differntkind of navigation, cross country vs street by street
<HawkI>Â Â Â actually I’m looking for street by stree
<HawkI>Â Â Â (and a typing tutor, apparently.. ![]()
<ballsballsballs>Â Â Â anyone have a favorite tutorial on handlers?
<xDD>Â Â Â I somehow got a crash log from the Android Market with a NullPointerException when accessing a Singleton that wraps my static library, uh what?
<xDD>Â Â Â How is that possible?
<Estel>Â Â Â The best Street By Street app is the default Google maps one. For cross-country, I imagine it’s country specific…
<p_l>Â Â Â Estel: maybe in USA…
<xDD>Â Â Â And I wouldn’t be using a Singleton if I knew a way to make the library persist between Activities
<p_l>Â Â Â in Poland it can get hilariously lost
<HawkI>Â Â Â Estel: wow – thats gonne truly upset Garin and the like.. ![]()
<jrr>Â Â Â HawkI: does garmin have an android app?
<xDD>Â Â Â Because it sort of binds to the object calling it, like unordered_map<jobject, c++ object>
<Estel>Â Â Â Didn’t Tom Tom stock majorly slide after Google released the Navigation thing?
<jrr>Â Â Â yes, garmin too
<HawkI>Â Â Â jrr: I dunno, It would be cutting their own throat, but its also inevitable
<p_l>Â Â Â In Poland, the previous near-monopoly seems to die off mainly because they didn’t produce a good app first for iOS, then for Android
<Estel>Â Â Â Is it? I bet they’ve realised they can’t compete.
<HawkI>Â Â Â Â if you start treating smart phone as a generalizable computing device, which it is, anything that can be done by the phone that was previously a standalone product is in serious trouble.
<p_l>Â Â Â Estel: there’s a lot of stuff that can be done for navigation that Google doesn’t cover, though
<Estel>Â Â Â I’m sure there is.
<ballsballsballs>Â Â Â p_l: like what?
<p_l>Â Â Â and actually I don’t think Garmin’s position is threatened much, because I don’t recall them being big on “street” navigation…
<jrr>Â Â Â my wife and I will have a standalone car gps for the forseeable future.. cell phone internet ain’t reliable enough
<Estel>Â Â Â But just in the period where manufacturers were branching out into mass market in-car navigation in the USA / UK etc. smartphone apps can take a huge hunk of stuff.
<Estel>Â Â Â jrr: doesn’t Android allow pre-caching now? (At last)
<p_l>Â Â Â ballsballsballs: starting with stored map for all of covered area, to various extra data
<p_l>Â Â Â Estel: the pre-caching is a joke compared to having a dedicated map
<Estel>Â Â Â Google maps does that now
<jrr>Â Â Â Estel: there’s a “lab” that allows you to click a spot and cache a 5 or 10 mile radius
<Estel>Â Â Â They do have to go further.
<jrr>Â Â Â I don’t know if that data can be used for routing or only just for users looking around
<Estel>Â Â Â The change to vector maps was massively useful too.
<jrr>Â Â Â yeah vector maps was uber
<p_l>Â Â Â Estel: the thing is, I can’t just download the map and use it – a 10 mile radius isn’t much
<xDD>Â Â Â Is it possible that android garbage collects static variables in my activity class?
<HawkI>Â Â Â it is in Eastern Massachusetts! Average road speed 15 mph, except during rush hour when it’s slower
<xDD>Â Â Â Similar to this question which there is no real answer to: http://stackoverflow.com/questions/5105097/static-references-are-cleared-does-android-unload-classes-at-runtime-if-unused
<`teh1>Â Â Â anyone have anything on handling input from the mytouch 3g’s “trackball”? it switches tabs even if a tab is disabled
<ballsballsballs>Â Â Â p_l:Â google maps allows you to store the map now
<Estel>Â Â Â p_l: it can definitely be better, but that doesn’t mean Google doing navigation just-well-enough isn’t a huge threat to TomTom/Garmin
<lov>Â Â Â xDD: no, that defeats the point of static.
<ballsballsballs>Â Â Â in labs
<lov>Â Â Â xDD: you probably should not have static variables in your activity either unless you know what you’re doing
<lov>Â Â Â lest you introduce memory leaks
<jrr>Â Â Â ballsballsballs: can you route with that data? I think you can only view it
<xDD>Â Â Â lov: I know, the problem is..
<xDD>Â Â Â I have a native library that is wrapped by a Java class
<ballsballsballs>Â Â Â jrr: good question… i know you can at least view the map
<p_l>Â Â Â ballsballsballs: as I said, that 10mile radius is a joke
<Estel>Â Â Â I got the impression that you can route. BUt have no evidence for that assertion.
<xDD>Â Â Â and the native library decides which native object to use depending on the jobject that comes from the jni downcalls
<lov>Â Â Â xDD: don’t put it in an activity jesus christ
<ballsballsballs>Â Â Â true
<lov>Â Â Â or at least a static reference
<xDD>Â Â Â It’s not in an activity
<xDD>Â Â Â it’s in a singleton
<lov>Â Â Â ok good
<xDD>Â Â Â which somehow becomes null
<Estel>Â Â Â And yeh, the stock prices for GRMN and TOM2 for the week of October 28 2009 are suitably hilarious.
<xDD>Â Â Â according to that android market crash log
<lov>Â Â Â pastebin your code, please.
<lov>Â Â Â let me take a looksee
<dark_echo>Â Â Â hi
<dark_echo>Â Â Â i have a problem using bluetooth in android
<p_l>Â Â Â also, a big market for Garmin is one that Google literally can’t touch with a cloud offering, and probably can’t touch anyway (due to required amount of testing etc. to get approved)
<Estel>Â Â Â Life Critial stuff,
<dark_echo>Â Â Â i explained it there: http://stackoverflow.com/questions/7714816/using-bluetooth-framework-in-android-sdk-slows-down-the-system-extremely-while-un
<dark_echo>Â Â Â anybody got an idea about that ?
<dark_echo>Â Â Â i think when i quit the app, the process somehow stays open and holds a resource that belongs to systems bluetooth service
<Nyceane1>Â Â Â inmobi is copletely shit
<Nyceane1>Â Â Â 1000 clicks, 1 download, lol
<dark_echo>Â Â Â and when i close the bluetooth, the resource gets released and the process is quiting
<dark_echo>Â Â Â so the uninstall is successfull
<g00s>Â Â Â dark_echo: which device ?
<DrPenguin>Â Â Â dark_echo: just because the app closes, it doesnt mean everything is nuked in the process
<dark_echo>Â Â Â its a samsung galaxy gio (s5660) on android 2.2
<anli_>Â Â Â Shouldnt the view I setContentView on be streched to fill up the whole screen?
<ballsballsballs>Â Â Â anyone know of a good tutorial about handlers?
<DrPenguin>Â Â Â perfect example, IWrote a little clone of pong on my tablet, if I close the app and open it back it up, unless I wait about 5 seconds in between, it wont be a fresh start because the GC hadnt come by yet and cleaned up all my objects and stuff
<DrPenguin>Â Â Â anli_: if you tell it to yes..? whats your xml look like
<anli_>Â Â Â But what would and app look like that does not fill up the entire space?
<DrPenguin>Â Â Â it would look like an app that doesnt fill the whole screen?
<DrPenguin>Â Â Â for example, I can make an app whose view is a Dialog, that doesnt take the whole screen
<dark_echo>Â Â Â DrPenguin: so how can i know which resource is not released properly ?
<anli_>Â Â Â I have not seen such an app yees
<anli_>Â Â Â yet
<anli_>Â Â Â So I cannot relate to such an app ![]()
<anli_>Â Â Â Is there examples on apps that does not use the entire screen?
<DrPenguin>Â Â Â dark_echo: well in this case, we should go into the mentality of coding on the iPhone: You Alloc it, you Release it
<p_l>Â Â Â Estel: not even always life critical… just domain-specific and not internet conected
<DrPenguin>Â Â Â its up to you to make sure you do cleanup, you shouldnt rely on Android and the GC
<abaratican>   I have a canvas and I want to clear off a portion of it…. rather than drawing a black rectangle and assuming black is the background color by default, could I retrieve the color instead? Or, would drawing a rectangle with a completely transparent alpha channel to the canvas do it?
<DrPenguin>Â Â Â a nicer example is, if I wrote a program that opens a file and writes to it, whose job is it to close the file back out? mine
<DrPenguin>Â Â Â if I do not, the file could become corrupt
<g00s>Â Â Â garmin makes stuff for aerospace too
<dark_echo>Â Â Â DrPenguin: actually im closing all bluetooth sockets in my app explicitly
<xDD>Â Â Â lov: http://pastie.org/private/jkneqpj8rxbzsb0g24ka
<DrPenguin>Â Â Â dark_echo: obviously then your missing something that doesnt involve the sockets ![]()
<`teh1>Â Â Â do animations automatically stop if hidden?
<Estel>Â Â Â Depends on your onPause.
<tophyr>Â Â Â are Intents not designed to be able to pass large (>1mb) chunks of data via their Parcelables?
<dark_echo>Â Â Â DrPenguin: actually im not allocating a resource other than bluetooth socket explicitly. im starting a thread that listens a socket but when i quit the app, this thread and the bluetooth socket gets closed as far as i see in the eclipse’s debig mode
<Estel>Â Â Â tophyr: they are not.
<DrPenguin>Â Â Â dark_echo: then obviously your missing something else
<g00s>Â Â Â tophyr: there is a limit, it is bad form to send large amount of data through intents
<DrPenguin>Â Â Â dark_echo: common sense tells you that
<tophyr>Â Â Â ok, brilliant. figured out last night that was the source of the problem, wanted to know if i was violating the design or if there was a bug in the rom i was running
<p_l>Â Â Â g00s: that’s Garmin’s main market, afaik – aerospace/nautical etc.
<Estel>Â Â Â You should be passing a reference to a contentresolver with your Action instead.
<xDD>Â Â Â lov: Any idea yet on what could be causing it?
<DrPenguin>Â Â Â xDD: whats line 184 doing
<DrPenguin>Â Â Â in LoginActivity
<dark_echo>Â Â Â DrPenguin: could you please take a look at my code at: http://stackoverflow.com/questions/7714816/using-bluetooth-framework-in-android-sdk-slows-down-the-system-extremely-while-un
<dark_echo>Â Â Â if you’re not too busy, of course
<xDD>Â Â Â DrPenguin: That’s the line with the comment // <– NULL POINTER EXCEPTION HERE
<dark_echo>Â Â Â or anyone ? ![]()
<DrPenguin>Â Â Â dark_echo: I would like to, however I do not know anything about bluetooth
<tophyr>Â Â Â Estel: grazie
<dark_echo>Â Â Â DrPenguin: thanks anyway
<luxurymode>Â Â Â how do i make a progressbar be horizontal programatically? by default its the spinning circle…
<DrPenguin>Â Â Â xDD: ok… so arguably the problem is that your Listener is null, thats my first guess
<tophyr>Â Â Â luxurymode: set its style
<xDD>Â Â Â DrPenguin: No, that just adds a *new* listener to an ArrayList that’s never null
<xDD>Â Â Â if anything, client is null
<dark_echo>Â Â Â g00s: did you mean what model, brand, etc. the device is before ?
<luxurymode>Â Â Â tophyr, yes. but how do i this programatically?
<DrPenguin>Â Â Â if client is null.. then dont you think thats the problem?
<xDD>Â Â Â The question is how client got to be null in the first place
<DrPenguin>Â Â Â its obvious?
<xDD>Â Â Â UpdateActivity = launcher, so it would have set the instance of the singleton
<DrPenguin>Â Â Â I dont see the inbetween code.. but does ClientWrapper.newInstance() return anything?
<luxurymode>Â Â Â tophyr, oh i guess in the constructr
<DrPenguin>Â Â Â err, getInstance
<xDD>Â Â Â yes, the static singleton object obviously
<DrPenguin>Â Â Â *face palm* thats not what I mean
<DrPenguin>Â Â Â I know what a singleton does
<DrPenguin>Â Â Â but DOES it actually get you an instance back. or is it returning null
<xDD>Â Â Â I can’t reproduce the null pointer exception on any device/emulator, it’s just a crash log I got from the android market
<DrPenguin>Â Â Â This is a very straight forward problem, seeing this, your first plan of action is to see if its null
<xDD>Â Â Â When I run it, it isn’t null, that’s sort of the problem :/
<DrPenguin>Â Â Â Then your next step is to examine the code and see if theres a possiblity that it could BECOME null
<DrPenguin>Â Â Â maybe via combinations of locking/unlocking the phone, or phone rotations, anything
<xDD>Â Â Â It’s never assigned again other than in the initial setInstance
<xDD>Â Â Â the only way for it to become null would be if android GCs the singleton
<DrPenguin>Â Â Â Right, so, what could invoke that
<xDD>Â Â Â nothing should, because there’s a static reference to it
<DrPenguin>Â Â Â to me, that smells of maybe someone locking the phone or the phoen idled, making the app go into onPause/onStop
*Â Â Â [0xD34D] is now known as [0xD34D]|dead
<DrPenguin>Â Â Â Listne, I understand that you figure it cant go null, but the log says otherwise, so the code is doing something that you dont perceive it being capable of doing
<anli_>Â Â Â I have used SetLayoutParams on my view now to be FILL_PARENT in both widths, still, the app doesnt utilize the whole screen
<moonunitzappa>Â Â Â hey guys
<DrPenguin>   anli_: show us a screenshot of what your tlaking about
<moonunitzappa>   can anyone help me set up a news feed in my app. maybe like a rss feed
<Estel>Â Â Â anli_: well, what does your view contain?
<moonunitzappa>Â Â Â ive been using googles app inventor but not sure how to do it in that
<anli_>Â Â Â Estel: Its a SurfaceView
<anli_>Â Â Â No children in that
<Estel>Â Â Â And it has no parents?
<anli_>Â Â Â Screenshot in http://darkbox.dyndns.org/make_us_pink/
<anli_>Â Â Â It is added with setContentView
<anli_>Â Â Â So I assume it will get one parent
<DrPenguin>Â Â Â anli_: your getting the beavior it should be
<anli_>Â Â Â ah, good then
<anli_>Â Â Â Thanks
<DrPenguin>Â Â Â you need to tell your app to not have that top bar and no notification bar
<anli_>Â Â Â hm
<DrPenguin>Â Â Â that will extend your screen realestate
<anli_>Â Â Â Aha
<anli_>Â Â Â But why doesnt the app use the whole screen if it has them?
<DrPenguin>Â Â Â You need to tell your app to truncate those 2 top bars
<DrPenguin>Â Â Â a view by default includes both
<DrPenguin>Â Â Â well, the root view for an activity
<xDD>Â Â Â Is there a command to force the emulator to “temporarily destroy my activity to save space”?
<xDD>Â Â Â or do I have to launch tons of memory expensive programs and hope the error reproduces?
<anli_>Â Â Â But the app is not below the middle, its above the middle ![]()
<DrPenguin>Â Â Â anli_: your failing to understand what I am saying
<DrPenguin>Â Â Â google what I told you you need
<DrPenguin>Â Â Â plain and simple
<anli_>Â Â Â ok
<`teh1>Â Â Â DrPenguin:Â ideas on why my animationlist drawable imageview wont play the animation? yes, i started it programmatically [in onCreate]
<anli_>Â Â Â I thought you say that there are two top bars, but you know how it is, written language can fail a lot
<DrPenguin>Â Â Â xDD: um.. if the activity is destroyed, its not destroyed temporarily
<xDD>Â Â Â that was a quote from the documentation of onDestroy
<DrPenguin>Â Â Â anli_: yeah, the first top bar, the name of your app, then the notification bar
<DrPenguin>Â Â Â `teh1: what? I wasnt talking about your issue
<`teh1>Â Â Â well aware but i summon you ![]()
<xDD>Â Â Â DrPenguin: so yes, it can happen that Android destroys an activity when it’s low on memory and recreates it later
<anli_>Â Â Â And if those bars are stealing space from my SurfaceView, the surfaceview should go below the middle, if you apply my logic on it
<`teh1>Â Â Â nevermind thugh
<DrPenguin>Â Â Â xDD: oh ok, misinterpreted.. I mean if you think about it, when an activity is destroyed, it is indeed destroyed, but it may bring it back
<xDD>Â Â Â DrPenguin: And I’m asking if there’s a way to force that
<DrPenguin>Â Â Â anli_: no it wouldnt
<`teh1>Â Â Â apparently you cant start animations in oncreate
<`teh1>Â Â Â lame
<DrPenguin>Â Â Â xDD: to call onDestroy, you call finish()
<xDD>Â Â Â Yeah but without actually finishing the application
<DrPenguin>Â Â Â finsih() doesnt finish the application unless thers only 1 activity in your call stack
<xDD>Â Â Â I want to test what happens if the device goes low memory and “GCs” my activity
<DrPenguin>Â Â Â Theres no difference
<Estel>Â Â Â I think to destroy *means* to finish.
<Estel>Â Â Â It’s the definition…
<DrPenguin>Â Â Â if you have a call stack of 1 activity and that gets destroyed, then effectively the entire app should be killed
<xDD>Â Â Â hmm true
<xDD>Â Â Â but then I have to add code to launch it again for a test, oh well
<xDD>Â Â Â I’ll try that
<DrPenguin>Â Â Â `teh1: unfortunately, I dont know about animations
<lov>Â Â Â xDD: I was in a meeting
<`teh1>Â Â Â well
<lov>Â Â Â did you solve your problem?
<xDD>Â Â Â lov: Not really
<xDD>Â Â Â did you see the code?
<`teh1>Â Â Â always remember that trying to start an animation in oncreate wont wrk ![]()
<lov>Â Â Â yes but I don’t know what line numbers match up to what.
<lov>Â Â Â line 184 is client.addLoginStatusListener ?
<xDD>Â Â Â The line with the NullPointerException has a big comment with an arrow
<xDD>Â Â Â yes
<lov>Â Â Â is client ever set to null?
<xDD>Â Â Â No
<xDD>Â Â Â It’s only ever set to new ClientWrapper(…)
<xDD>Â Â Â i.e. in setInstance
<lov>Â Â Â hold on.
<anli_>Â Â Â I made the app full screen, now its still not centered
<lov>Â Â Â what the crap
<anli_>Â Â Â No top bar
<anli_>Â Â Â No title bar
<lov>Â Â Â client = ClientWrapper.setInstance(new ClientWrapper(getApplicationContext()));
<lov>Â Â Â what is this
<lov>Â Â Â why are you doing this
<lov>Â Â Â here’s whats happening.
<lov>Â Â Â Android is reaping your process
<lov>Â Â Â then your LoginActivity is being started
<lov>Â Â Â directly
<lov>Â Â Â because of what your stack is
<xDD>Â Â Â Oh it does that?
<lov>Â Â Â yes, so here’s what you do
<lov>Â Â Â 1 sec, let me rewrite this for you
<lov>Â Â Â http://pastie.org/private/nk0fvjhukjjlbapwvjnfra
<lov>Â Â Â this is how you do singletons
<`teh1>Â Â Â anyone know why the right side of fixed width views doesnt like to go off the screen and causes the view to scale, but the left side behaves as it should?
<Noxz>Â Â Â yay, and off it goes to make gingerbread
<xDD>Â Â Â lov: hmm yeah that’s a better idea, but I need to run the updateactivity stuff *always* before I can use the client
<Noxz>Â Â Â this will take all day+some
<xDD>Â Â Â because that’s where it gets the public keys for crypto and so on
<anthonyl>Â Â Â I once ate a singleotn
<anthonyl>Â Â Â very delicious
<DrPenguin>Â Â Â anthonyl: Can I try it? Oh wait, theres only one =(
<anthonyl>Â Â Â ![]()
<DrPenguin>Â Â Â Bastard
<lov>Â Â Â xDD: add a “hasCrypto” call to the client, if it returns false then start the other activity and finish this one
<xDD>Â Â Â or I could just check for client being null with my current code and then start the UpdateActivity and finish the current one
<`teh1>Â Â Â DrPenguin: any exp with mapviews?
<DrPenguin>Â Â Â `teh1: NO SIR!
<Amadiro>   If I connect my android phone (samsung S2 galaxy) via usb, and run “adb devices”, it lists the phone as “????????????   no permissions”. what could be the reason for that?
<`teh1>Â Â Â darn.
<DrPenguin>Â Â Â Amadiro: are you on Linux Mac or Winblows
<Amadiro>Â Â Â Linux.
<DrPenguin>Â Â Â is adb-server running as root?
<xDD>Â Â Â I don’t think I need the synchronized getInstance, it’s only ever called from onCreate of one of my activities and afiak there is no way to launch multiple at the same time
<Amadiro>Â Â Â DrPenguin, probably not. Let me try.
<DrPenguin>Â Â Â DO EET
<Amadiro>Â Â Â s/try/check/
<mantas322>Â Â Â My mood dramatically improves at the end of the work day as oppose to the begining.
<DrPenguin>Â Â Â yay
<mantas322>Â Â Â strange how that works
<mantas322>Â Â Â if only I can somehow condition myself like pavlov’s dogs
<DrPenguin>Â Â Â It was that way with me when I worked retail before becoming a software engineer
<DrPenguin>Â Â Â most days I loved going in and hated leaving after that
<Amadiro>Â Â Â DrPenguin, well, if I do “sudo adb root” it says “error: insufficient permissions for device”
<xDD>Â Â Â anyway my Java code is quite a mess, I usually write C++ so Java’s idioms don’t fit me at all.
<DrPenguin>Â Â Â you need to restart the adb server as root
<DrPenguin>Â Â Â oh wait
<DrPenguin>Â Â Â no thats something different
<DrPenguin>Â Â Â if your phone is not rooted you cant log in as root into the device
<Amadiro>Â Â Â DrPenguin, I see, that’s it, then.
<DrPenguin>Â Â Â xDD: I hates C++, loves Java
<lov>Â Â Â Amadiro: adb kill-server; sudo adb devices
<DrPenguin>Â Â Â lov: hes trying to log into his device as root without it being rooted
<lov>Â Â Â no, he’s trying to get adb to see his device at all
<DrPenguin>Â Â Â thats not what adb root does
<lov>Â Â Â 15:07:44 < Amadiro> If I connect my android phone (samsung S2 galaxy) via usb, and run “adb devices”, it lists the phone as “????????????Ino permissions”. what could be the reason for that?
<DrPenguin>Â Â Â that was the FIRST one
<DrPenguin>Â Â Â not the second one
<lov>Â Â Â …
<lov>Â Â Â 15:08:15 < DrPenguin> is adb-server running as root?
<lov>Â Â Â 15:08:24 < Amadiro> DrPenguin, probably not. Let me try.
<lov>Â Â Â 15:10:33 < Amadiro> DrPenguin, well, if I do “sudo adb root” it says “error: insufficient permissions for device”
<lov>Â Â Â he did it wrong
<DrPenguin>Â Â Â lov: (03:10:19 PM) Amadiro: DrPenguin, well, if I do “sudo adb root” it says “error: insufficient permissions for device”
<lov>Â Â Â that’s not how you run it as root
<lov>Â Â Â YES
<lov>Â Â Â THAT IS CORRECT
<xDD>Â Â Â DrPenguin: But you never know what will happen next in Java.. no deterministic destructors, no scoping/stack/RAII, your process gets killed or GCed at any time randomly.. how do you even enforce releasing classical resources in the presence of exceptions?
<lov>Â Â Â He needs to run the adb server ON HIS COMPUTER as root
<DrPenguin>Â Â Â so for the SECOND command he did something different
<lov>Â Â Â adb root tries to start a root shell
<DrPenguin>Â Â Â thats what I am saying
<lov>Â Â Â he was confused about what to do
<DrPenguin>Â Â Â and thats what I f’ing said
<russfrank>Â Â Â DrPenguin: i got it to work
<lov>Â Â Â ok good we’re all in agreement
<DrPenguin>Â Â Â russfrank: excellent! what was the problem!
<russfrank>Â Â Â turns out the simulator simulates armv5 and i was compiling for armv7
<DrPenguin>Â Â Â lov: indeed…
<DrPenguin>Â Â Â ![]()
<lov>Â Â Â Amadiro: adb kill-server; sudo adb devices
<xDD>Â Â Â DrPenguin: Obviously you can try catch everything and call finalize but then you’re back to worse than C resource management
<DrPenguin>Â Â Â russfrank: wow really? thats… weird
<russfrank>Â Â Â I kinda just assumed the v8 sconstruct I had would build for whatever the simulato rwas
<DrPenguin>Â Â Â russfrank: so were you using instructions for the wrong set?
<russfrank>Â Â Â because i assumed the simulator would simulate the arch that yknow .. android devices actually are
<russfrank>Â Â Â yeah i was using armv7 instructions that weren’t available in armv5
<xDD>Â Â Â hmm
<xDD>Â Â Â the emulator has a different endianness than the devices btw
<xDD>Â Â Â for what I’ve tried
<DrPenguin>Â Â Â russfrank: thats weird.. I would figure you would of gotten a different error
<xDD>Â Â Â also the emulator doesn’t care about unaligned memory access
<xDD>Â Â Â so always test on a real device
<DrPenguin>Â Â Â actually, no you wouldnt, because it might not be completely compiling the assembly code until runtime
<russfrank>Â Â Â apparently it is haha
<DrPenguin>Â Â Â russfrank: honestly, it depends on the assembler, it should be able to figure out automagically what to assemble it against based on looking at the platform et the file, but it cant at times, I had an issue when no matter what I threw at gcc, I could not get it to write code for armv7, it would do it for 6, thus I had assebmly issues when it was using bad instructions
<gkatsev>Â Â Â
this phone isn’t letting me use sqlite3 to check out my database
<lov>Â Â Â gkatsev: download sqlite for your computer and just pull the DB and look on your own computer.
<gkatsev>Â Â Â how can I pull the db from the phone?
<lov>Â Â Â adb pull
<DrPenguin>Â Â Â adb pull is one way.. Eclipse should be able to do it as well
<DrPenguin>Â Â Â adb pull might complain about permissions
<mantas322>Â Â Â anyone know if theres an awesome JSONLint style website – thats for validating and indenting JS
<gkatsev>Â Â Â yeah, I tried adb pull, saying permission denied
<lov>Â Â Â do you have root?
<xDD>Â Â Â Does the Android Market not use delta patching for updates?
<gkatsev>Â Â Â mantas322: jslint/jshint
<lov>Â Â Â if not you couldn’t edit the file on the device anyway
<DrPenguin>Â Â Â you can fix that gkatsev by either doing root as lov says, or by recursive chmoding
<lov>Â Â Â xDD: of what, apps?
<lov>Â Â Â xDD: no
<lov>Â Â Â xDD: do you normally send deltas of zips?
<xDD>Â Â Â Damn, that’s annoying if users have to redownload my whole app every time I fix a few bugs
<lov>Â Â Â it’s not a big deal.
<gkatsev>Â Â Â I dont think I have root.
<mantas322>Â Â Â hmmm
<mantas322>Â Â Â thanks gkatsev
<lov>Â Â Â gkatsev: then how do you plan to edit the file on the device if you can’t even read it?
<lov>Â Â Â (p.s. get a rootable phone and/or root yours)
<xDD>Â Â Â it’s like 6mb
<gkatsev>Â Â Â lov: well, I was hoping that someone here would know whether it could be read without needing to root or w/e
<xDD>Â Â Â they already store all the versions, is it so hard to compute the deltas and use some sort of deflate with a second pair of (length, distance) codes pointing to the original file?
<DrPenguin>Â Â Â gkatsev: using eclipse you can pull it.
<lov>Â Â Â xDD: actually yes.
<lov>Â Â Â xDD: the big deal is that anytime you install or update something on android, it needs to be signed, and it needs to be samed with the same cert if an update
<lov>Â Â Â this way an attacker can’t just push a delta
<lov>Â Â Â I mean I GUESS you could also sign a delta or something
<xDD>Â Â Â verify once the delta is applied
<gkatsev>Â Â Â DrPenguin: ah, using the DDMS?
*Â Â Â lov shrugs
<DrPenguin>Â Â Â gkatsev: if thats it, yeah, I forget the tool I dont use eclipse anymore
<gkatsev>Â Â Â DDMS isn’t eclipse only per se
<lov>Â Â Â xDD: source.android.com
<lov>Â Â Â patches welcome
<DrPenguin>Â Â Â ah, I dunno then I assumed it was because I have only used DDMS in eclipse
<lov>Â Â Â or better yet just put it in CM
<lov>Â Â Â that’s more likely to get wild and wooly stuff
<gkatsev>Â Â Â yeah, it comes with android sdk, I believe
<lov>Â Â Â DDMS is a componant of the android SDK
<lov>Â Â Â you can use that, or you can just use straight up adb
<lov>Â Â Â (can and probably should)
<lov>Â Â Â adb logcat is a lot more useful than the GUI logcat in most cases
<DrPenguin>Â Â Â I like adb logcat because it works nicely with a good ol grep ![]()
<xDD>Â Â Â lov: Wouldn’t that code have to go into Android Market which is not open source?
<xDD>Â Â Â or are there some underlying APIs that deal with packages/updating?
<gkatsev>Â Â Â yeah, seems like the DDMS is under the same restrictions :/
<lov>Â Â Â xDD: patch the packagemanager to accept deltas gracefully
<lov>Â Â Â once that’s done the market and amazon appstore can use the capability
<lov>Â Â Â (also consider a flag so that the PM announces whether it handles this, so that the appstores can request updates in this form)
<mantas322>Â Â Â dev server went down
<mantas322>Â Â Â every ones spinning in their chairs
<abaratican>Â Â Â dev on your own machine. win a prize.
<mantas322>Â Â Â cant
<mantas322>Â Â Â special liscence for a cold fusion
<mantas322>Â Â Â yes I know….. cold fusion…
<abaratican>Â Â Â your management owes you a prize for dealing with their infrastructure.
<zeeZ>Â Â Â does getting paid for spinning around in your chair count?
<mantas322>Â Â Â overall this job is pretty great
<mantas322>Â Â Â however i cant help but feel underpaid
<abaratican>Â Â Â zeeZ: maybe, lol
*Â Â Â S3nsat10n_ is now known as S3nsat10n
<zeeZ>Â Â Â logcat is a fun thing
<zeeZ>Â Â Â htc has so many random debug tags o0
<lov>Â Â Â 15:30:22 < abaratican> your management owes you a prize for dealing with their infrastructure.
<lov>Â Â Â who are you referring to
<abaratican>Â Â Â mantas
<lov>Â Â Â zeeZ: you think that’s bad, you should see samsung.
<lov>Â Â Â oh
<lov>Â Â Â why are you talking to mantas?
<abaratican>Â Â Â lov: why not?
<lov>Â Â Â because he’s a black hole into which good intentions fall and nothing but annoying questions ever come out?
<mantas322>Â Â Â ![]()
<zeeZ>Â Â Â I don’t think samsung has a guy named “William” who keeps track of my usage stat cache ![]()
<abaratican>Â Â Â I think you two need to hug.
<lov>Â Â Â zeeZ: samsung used to throw log events at error level with NO tag
<lov>Â Â Â so they were literally impossible to filter out.
<mantas322>Â Â Â I try hugging him everyday
<mantas322>Â Â Â but he /ignores my hugs
<osxorgate>Â Â Â i’ve run into the issue that my code which was initially developed in eclipse on windows, looks odd in eclipse on mac. What I want is a method to convert all files to UTF-8 somehow.. any ideas?
<DrPenguin>Â Â Â osxorgate: I believe there are utilities out there for that
<DrPenguin>Â Â Â that, or a little script magic would be able to handle that as well
<abaratican>Â Â Â osxorgate: script + iconv will take care of it
<zeeZ>Â Â Â htc use “bla”, “blah2″ and “my” ![]()
<osxorgate>Â Â Â i’m a complete fool when it comes to nix though
<zeeZ>Â Â Â also “DEBUG”
<abaratican>Â Â Â on a linux box.
<osxorgate>Â Â Â i’ll check out iconv
<lov>Â Â Â zeeZ: when you get binary data written to logcat such that all your computer can do is beep at you plaintatively, then you will know pain.
<abaratican>Â Â Â http://docs.moodle.org/20/en/Converting_files_to_UTF-8#.2Anix_like_computers_.28including_Mac_OS_X.29
<DrPenguin>Â Â Â osxorgate: if you find something thats on linux that you want to use, you “should” be able to install it on your Mac
<zeeZ>Â Â Â I should totally add that
<DrPenguin>Â Â Â just get the source and compile it
<abaratican>Â Â Â windows section for cygwin even has a script for it.
<osxorgate>Â Â Â cheers fellas
<DrPenguin>Â Â Â http://soft.zoneo.net/Linux/dos_to_unix.php
<zeeZ>Â Â Â I guess there’s no real guideline as to what you should call your debug tags?
<osxorgate>Â Â Â this encoding, where is it stored if not in the file itself?
<DrPenguin>Â Â Â osxorgate: it would be within the file itself if anywhere
<DrPenguin>Â Â Â most likely in the files header
<zeeZ>Â Â Â still pretty embarrassing to leave “blah” in..
<DrPenguin>Â Â Â zeeZ: PSH, I would use sexual explicit tag names
<DrPenguin>Â Â Â “Boobies!” “Clam!”
<DrPenguin>Â Â Â how would you react if you saw “Oh man we have another Clam! tag!”
<osxorgate>Â Â Â DrPenguin: but this doesnt happen in .java as far as i know
<DrPenguin>Â Â Â osxorgate: you need to understand, on unix, a files a file
<zeeZ>Â Â Â I’ll just call them \a
<DrPenguin>Â Â Â we dont differentiate based on extension like windows does
<osxorgate>Â Â Â DrPenguin: yeh i mean, when i open my sourcefiles in eclipse, there’s no encoding headers that i can see
<DrPenguin>Â Â Â you can have a “java” file, or a py file or a binary, even your hard drive partition for example, I think mac uses disk#os# as its partition lables, those are files
<DrPenguin>Â Â Â Ohh! you wouldnt be able to see those
<lov>Â Â Â er
<lov>Â Â Â huh?
<lov>Â Â Â are you asking how unicode encoding is stored?
<DrPenguin>Â Â Â usually the top most bytes in a file that identify goodies arent viewable
<lov>Â Â Â it’s in a Byte Order Marker in the first 4 bytes of a file
<DrPenguin>Â Â Â ^ what he said
<osxorgate>Â Â Â odd
<DrPenguin>Â Â Â osxorgate: why is that odd?
<lov>Â Â Â zeeZ: no, there’s no real guide. Try and make it something that makes sense to you, and you may want to reuse it through your whole app.
<osxorgate>Â Â Â i’ve been haxxoring files for 20 years.. never knew about this
<DrPenguin>Â Â Â o_o;
<lov>Â Â Â http://www.google.com/search?gcx=w&ix=c1&sourceid=chrome&ie=UTF-8&q=unicode+BOM
<lov>Â Â Â I only know this because I’d had to deal with endian issues ._.
<lov>Â Â Â (yay)
<zeeZ>Â Â Â I have one per activity or utility package
<osxorgate>Â Â Â ‘back in the day’ a file was just a file :0 ascii
<osxorgate>Â Â Â maybe i should re-read spolsky’s article
<DrPenguin>Â Â Â osxorgate: so back in the day you didnt have binary files?
<osxorgate>Â Â Â DrPenguin:Â sure we did
but i don’t consider a sourcefile to be binary
<DrPenguin>Â Â Â a sourcefile isnt binary
<zeeZ>Â Â Â Log.e(“Dave”,”I’m afraid I can’t do that”,e) \o/
<DrPenguin>Â Â Â but a binary file isnt ascii, thus, a file isnt what you afirmed it to be
<DrPenguin>Â Â Â a revision of your statement would mean you have ascii files et binary files
<lov>Â Â Â my ones and zeros beg to differ, sir.
<osxorgate>Â Â Â i would have textfiles and files with more ‘exotic’ bytes in them
<osxorgate>Â Â Â but having a special header in a sourcefile is new to me
<DrPenguin>Â Â Â osxorgate: because your making the assumption that a sourcefile is different than a textfile
<DrPenguin>Â Â Â a files a file, plain et simple
<lov>Â Â Â osxorgate: the special header is for unicode, because you have to deal with endian when your characters are more than one byte
<lov>Â Â Â unicode could be considered a binary format in some ways
<lov>Â Â Â UTF8 is designed to be more or less OK for regular text editors.
<lov>Â Â Â (i.e. ones that are not unicode aware)
<lov>Â Â Â thus easing the transition to unicode
<lov>Â Â Â (which will probably never finish)
<osxorgate>Â Â Â DrPenguin: i make the assumption that a sourcefile contains only visible characters
<osxorgate>Â Â Â visible meaning: whould be useful for me to code with
<lov>Â Â Â aha!
<lov>Â Â Â you’ve never coded in whitespace
<DrPenguin>Â Â Â you cant see tabs ![]()
<DrPenguin>Â Â Â or new lines ![]()
<osxorgate>Â Â Â true, but they are there at least
<DrPenguin>Â Â Â but those are in sourcefiles, well they can be, you could write everything on wone line
<DrPenguin>Â Â Â well then your assumption becomes flawed
<SmkMnstr>Â Â Â does the C++ JNI jobect class use destructors to decrease references
<SmkMnstr>Â Â Â or should i be calling DeleteLocalRef for everything
<DrPenguin>Â Â Â now osxorgate, some source files allow you to specify different encodings on the top, like I wrote a program in python to print Epsilon symbols, and I was able to specify an encoding on the top of the source file
<osxorgate>Â Â Â DrPenguin: fair enough. but there’s some standard for this then?
<DrPenguin>Â Â Â python does this with the coding directive,
<DrPenguin>Â Â Â # -*- coding: utf-8 -*- does the trick
<DrPenguin>Â Â Â osxorgate: it really depends on your OS
<DrPenguin>Â Â Â for example, not all os’s use the same newline char, linux uses \n, mac \r, and windows \r\n
<DrPenguin>Â Â Â Im pretty sure thats right.. but dont quote me, anyone feel free to jump in, correct me, and slit my throat if you fancy
<osxorgate>Â Â Â yeh ive had issues with newlines in the past
<alankila>Â Â Â mac hasn’t used \r since os x
<osxorgate>   but now i have my ë shown as a questionmark :0
<lov>Â Â Â SmkMnstr: This I don’t know but I strongly suspect that stackoverflow will say (if ##java doesn’t)
<DrPenguin>Â Â Â alankila: oh yeah? did they change to \n now?
<DrPenguin>Â Â Â I probably knwo this but dont remmeber because I havent written code on OS X in years
<SmkMnstr>Â Â Â from the examples i can find it seems like … sometimes people call.. somethings they dont call for
<SmkMnstr>Â Â Â not really sure what difference is
<alankila>Â Â Â yes, it’s unix now
<DrPenguin>Â Â Â now that I think about it.. I knew this
<DrPenguin>Â Â Â I just remember the history vs the norm now
<mantas322>Â Â Â I’m going to print the source of internet explorer
<mantas322>Â Â Â ansd then burn it
<DrPenguin>Â Â Â yes
<DrPenguin>Â Â Â good
<DrPenguin>Â Â Â do Safari while your at it
<mantas322>Â Â Â maybe mobile sfari
<mantas322>Â Â Â burning source code makes me feel better
<DrPenguin>Â Â Â I would like to do that with some of the older programs I wrote
<DrPenguin>Â Â Â *shivers*
<DrPenguin>Â Â Â writing an NDFA in python was not fun
<mantas322>Â Â Â do businesses acctually use python?
<mantas322>Â Â Â I thought that was for stoners
<DrPenguin>Â Â Â >_> does me smoking pot once count? because I really like python but I dont smoke pot..
<Grunewald>Â Â Â Are there any pattern on how to handle UI Transitions in Android Activities vs Fragments ? I am currently looking into a UI that has 3 columns in Landscape that I would like to fade in and out. So when the thid column shows the first column should disappear and then on back press reappear. I am wondering if I should do this as an Activity transition of just by taking fragments out. Any
<Grunewald>Â Â Â thoughts ?
<DrPenguin>Â Â Â mantas322: the onyl instance I know of of Python is Civ 4
<mantas322>Â Â Â the game?
<mantas322>Â Â Â srsly?
<rutski>Â Â Â any idea why this might be returning NULL for me? dialog = new DatePickerDialog(this, this, 5, 5, 5);
<DrPenguin>Â Â Â thats what I have heard
<rutski>Â Â Â I know I should pate a full example, but perhaps someone can tell me just from that line
<DrPenguin>Â Â Â rutski: does the class implement the Listener?
<rutski>Â Â Â indeed, public void onDateSet(DatePicker view, int y, int m, int d)
<rutski>Â Â Â and it has “implements DatePickerDialog.OnDateSetListener” declared at the top
<rutski>Â Â Â (it wont even compile otherwise) :-p
<DrPenguin>Â Â Â maybe its wrong context? lets see the code
<rutski>Â Â Â java is pretty strict on that
<optimusM>Â Â Â Â Â Â switch (item.getItemId())
<optimusM>Â Â Â has anyone seen this method before?
<DrPenguin>Â Â Â optimusM: I use that all the time
<DrPenguin>Â Â Â but, its getId, not getItemId, unless you made your own method
<lov>Â Â Â optimusM: yes
<lov>Â Â Â what about it
<lov>Â Â Â it’s a switch statement on an id
<xDD>Â Â Â lov: So how at which level would the delta patching be implemented: Expose patching APIs through the PackageManager or add a DeltaCompressedAsset class that transparently handles delta packages as if they were normal assets (probably in there: http://www.google.com/codesearch#cZwlSNS7aEw/frameworks/base/include/utils/Asset.h )
<rutski>Â Â Â DrPenguin: http://codepad.org/d3KdgGLQ
<optimusM>Â Â Â yea i know can i use that method to open a new layout?
<abaratican>   On honeycomb, I have an activity with its entire contents being a large surfaceview. The Canvas for the surfaceview, however, reports a size that’s larger than the visible portion of the surfaceview. It’s larger in HEIGHT by precisely the height of the bottom bar with the Home/Up/Back buttons on it.
<DrPenguin>Â Â Â rutski: I wonder if the context is wrong because your technically not in onCreate context anymore
<DrPenguin>Â Â Â Â any time you enter { }, thats essentially a different context
<abaratican>   Isn’t that a bug? Should that be part of my area?
<lov>Â Â Â xDD: I have no idea. This is your idea, you figure it out.
<abaratican>Â Â Â seems like it shouldn’t, but it is. =/
<DrPenguin>Â Â Â atleast I think
<rutski>Â Â Â DrPenguin: enter {}? what is {}?
<DrPenguin>Â Â Â a set of curly braces
<rutski>Â Â Â well, yeah :-p
<DrPenguin>Â Â Â so perhaps you want to use getBaseContext() in this case
<rutski>Â Â Â DrPenguin: so… I can’t create a dialog from onCreateDialog()? huh? :-p
<rutski>Â Â Â oh, let me try
<optimusM>Â Â Â http://pastebin.com/enCi5ULL
<DrPenguin>Â Â Â theres also getApplicationContext(), I just think your using the wrong oenwhen calling this
<optimusM>Â Â Â thats what it looks like
<rutski>Â Â Â DrPenguin: dialog = new DatePickerDialog(this.getBaseContext(), this, 5, 5, 2005); <—- crash
<DrPenguin>Â Â Â rutski: you would need to change both
<PaulSmithVoIPih2>Â Â Â hi
<rutski>Â Â Â DrPenguin: I’ve tried getApplicationContext(), it crashed as well
<rutski>Â Â Â oh, “both”?
<DrPenguin>Â Â Â because that inner method, onDialogCreate doenst implement your listener
<DrPenguin>Â Â Â and, more precise, the switch
<optimusM>Â Â Â what is this mean onCreateContextView()
<rutski>Â Â Â DrPenguin: I’m confused, isn’t the “this” object going to refer to the activity no matter what?
<DrPenguin>Â Â Â nope
<rutski>Â Â Â and isn’t it the activity that I need to be passing in as the listener?
<DrPenguin>Â Â Â going by a straight java definition, “this” is the current object
<rutski>Â Â Â DrPenguin: so the “this” object doesn’t refer to the ReplayManager object… in the ReplayManager manager class? Am I missing something basic about java?
<optimusM>Â Â Â im still confused this guy have a button displaying a text but no onclickListener :/
<rutski>Â Â Â DrPenguin: right, and the current object implements onDateSet, so what could possibly be wrong?
<DrPenguin>Â Â Â rutski: no it doesnt
*Â Â Â rutski doesn’t quite see how to fix this
<DrPenguin>Â Â Â if you need THAT object, you would need to play pass the context
<rutski>Â Â Â DrPenguin: http://codepad.org/d3KdgGLQ <— line 98
<rutski>Â Â Â ReplayManager does indeed implement onDateSet
<rutski>Â Â Â oh, wait, does it matter that it’s an empty stub perhaps?
<DrPenguin>Â Â Â That shouldnt matter
<xagan>   i should change my nick, its drawing flies
<DrPenguin>Â Â Â that just means you dont do anything when onDateSet occurs
<yakkof>   has a changelog been published for ice cream sandwich? or is that done when they release it?
<rutski>Â Â Â DrPenguin: I wish I could get onDateSet to occur to begin with though :-p
<rutski>Â Â Â at the moment it’s still returning null from “new DatePickerDialog(this.getApplicationContext(), this, 5, 5, 2005);”
<rutski>Â Â Â and I really don’t see how to fix it :-/
<Estel>Â Â Â yakkof: it’ll be done when it’s released, presumably.
<anujwalia>Â Â Â Anyone who can solve my this problem , http://stackoverflow.com/questions/7718090/twitter-client-oauth-athentication-for-android
<Estel>Â Â Â yakkof: are you thinking of any changes in particular?
<DrPenguin>Â Â Â rutski: I told you
<DrPenguin>Â Â Â you need to get it the right context
<DrPenguin>Â Â Â and your not
<rutski>Â Â Â DrPenguin: I’ve tired passing it “this”, “this.getBaseContext()”, and “this.getApplicationContext()”
<rutski>Â Â Â are there any other options?
<PaulSmithVoIPih2>Â Â Â umm..has anyone looked at XMLAdapters Sample Code on devoloper site, there is Adapters.java and Eclipse says under public voide bindView(View view, Context context, Cursor cursor) that mFrom cannot be resolved to a variable. its kinda new form me, been learning java for 6 hours now
so can anyone explain it to me and spare me a lot of time or sould i just learn more java?
<yakkof>Â Â Â Estel: lower latency audio?
<DrPenguin>Â Â Â yeah I didnt think of that.. you would need to rely on the bad context to get those contexts..
<Estel>Â Â Â Ahahahaha fat chance.
<DrPenguin>Â Â Â I think you would need to pass the context from onCreate
<Estel>Â Â Â (The Google and the HTC peeps were asked that exact question at Droidcon, and didn’t in the slightest hint that we’d see it any time soon, only that they were aware of it)
<yakkof>Â Â Â Estel:Â they said the same thing at I/O it sounded like they were working on it
<Estel>Â Â Â It’s a hardware thing as much as an ICS thing though, isn’t it?
<mantas322>Â Â Â welp
<mantas322>Â Â Â my day is complete
<mantas322>Â Â Â bye guys and girls
<rutski>Â Â Â DrPenguin: In onCreate I now do m_savedContext = this.getApplicationContext();
<rutski>Â Â Â then I pass m_savedContext to create the date picker dialog
<abaratican>   hmm, View.getHeight() != that view’s onDraw(Canvas canvas) canvas.getHeight()… canvas reports it being taller than the actual visible area of the view by the size of the actionbar. Interesting.
<rutski>Â Â Â it returns null, as usual
<optimusM>Â Â Â man this is so confusing lol
<DrPenguin>Â Â Â rutski: then somehting else is going on
<optimusM>Â Â Â what does api lvl. does that mean api 1 is for beginners?
<DrPenguin>Â Â Â optimusM: no
<DrPenguin>Â Â Â api level refers to the version of android
<Noxz>Â Â Â DrPenguin# can you give up on him already?
<optimusM>Â Â Â oh
<DrPenguin>Â Â Â Noxz: on who?
<optimusM>Â Â Â me???
<Noxz>Â Â Â optimusM
<optimusM>Â Â Â lol
<Noxz>Â Â Â seriously, go read some tutorials
<rutski>Â Â Â DrPenguin: perhaps the problem is that the button that is to create the date picker is itself in a custom dialog, and not in an activity
<DrPenguin>Â Â Â Noxz: with all due respect, you and I both came from where optimusM is at
<DrPenguin>Â Â Â please show some respect
<rutski>Â Â Â is that not allowed?
<rutski>Â Â Â I mean, is it not allowed to create a dialog from within a dialog?
<DrPenguin>Â Â Â rutski: that might be possible..
<Noxz>Â Â Â I’ve been at it for less than 2 weeks
<optimusM>Â Â Â i have read every tutorial
<DrPenguin>Â Â Â Noxz: we al ldont learn at the same speed
<Noxz>Â Â Â hrmm..
<Noxz>Â Â Â anyways…
<DrPenguin>Â Â Â take optimusM, he doesnt know Java, this is basically his crash course to java
<Noxz>Â Â Â I get a “Killed” when compiling gingerbread
<Estel>Â Â Â optimusM: with each new API level, Android gained extra functionality, but if you use that functionality, your app won’t support older phones.
<Noxz>Â Â Â oh, right, I remember my crash course to c++
<optimusM>Â Â Â seeing whats in a tutorial and seeing a real sample
<optimusM>Â Â Â is totally different
<Estel>Â Â Â optimusM: basically, unless you have a particular reason, ignore anything that says it needs an API level > 8 at the very most. (Which is Android 2.2)
<Noxz>Â Â Â “taget Dex: framework” \n “Killed”
<optimusM>Â Â Â yea thats what im using api 8 and api 10
<Estel>Â Â Â API 8 is a strict subset of API 10. (API 10 is Gingerbread 2.3.something)
<optimusM>Â Â Â 10 is for 2.3 ?
<Noxz>Â Â Â 2.3.4 I think
<DrPenguin>Â Â Â 9 is 2.3
<lov>Â Â Â 10 is 2.3.3
<lov>Â Â Â 8 is 2.2
<optimusM>Â Â Â ok
<Estel>Â Â Â Dox say 2.3.3 yeh.
<lov>Â Â Â http://developer.android.com/resources/articles/backward-compatibility.html
<lov>Â Â Â Whoever wants to know how to deal with newer or older versions, read that
<Estel>Â Â Â Most apps out there at the moment tend to have API4 as their minimum; but there’s limited reason anymore to support 4.
<optimusM>Â Â Â ok the thing im confused on is this guy doesnt use a onclicklistener but his buttons do things
<Estel>Â Â Â optimusM: can you link to it?
<gridbag>   For triggering an update from the market, is it just android:versionCode that’s looked at? I want to just bump versionCode. for example, i have android:versionCode=”5″ android:versionName=”1.5″
<lov>Â Â Â optimusM: you can have onClick in the xml layout
<optimusM>Â Â Â link to what?
<Estel>Â Â Â It’s just versionCode, yes.
<optimusM>Â Â Â thats what he used
<lov>Â Â Â optimusM: this causes methods properly formatted in the activity that uses the layout to be called
<lov>Â Â Â read the documentation on onClick
<lov>Â Â Â it’s a pretty nifty shortcut, although it can be confusing if you don’t know what’s going on
<optimusM>Â Â Â i have its like spanish to me or foreign language lol
<optimusM>Â Â Â java is like swimming in the ocean idk what to do lol
<DrPenguin>Â Â Â optimusM: it would help to learn java as I have instructed you to do
<DrPenguin>Â Â Â or, an easier language first like python
<Estel>Â Â Â Start in the shallow end. That’s what I tried.
<lov>Â Â Â 16:29:50 < DrPenguin> optimusM: it would help to learn java as I have instructed you to do
<lov>Â Â Â optimusM: http://download.oracle.com/javase/tutorial/java/index.html
<oGMo>Â Â Â java is like swimming in a pool but you’re always wondering about that ominous giant squid shadow
<lov>Â Â Â optimusM: http://download.oracle.com/javase/tutorial/essential/index.html
<DrPenguin>Â Â Â LOL
<DrPenguin>Â Â Â I love that oGMo
<lov>Â Â Â have you read both of those links (fully)?
<lov>Â Â Â if not, do it.
<Noxz>Â Â Â what does it mean when the make gets Killed when compiling igngerbread?
<DrPenguin>Â Â Â I can agree with that because I wanted to kill myself when learning java as my first language
<oGMo>Â Â Â which is better than C++ i guess which is like swimming on the shores of R’lyeh being driven mad by cthulhu
<lov>Â Â Â Noxz: you need to run as fast you can
<Estel>Â Â Â I’m not convinced that either of those links are the best sources for beginning with Java
<DrPenguin>Â Â Â Noxz: what did make error out on?
<Noxz>Â Â Â Target Dex: framework
<lov>Â Â Â oGMo: I’a! I’a! libc ftaghn!
<DrPenguin>Â Â Â Noxz: that.. I have no idea what that means
<DrPenguin>Â Â Â normally Make will show an error
<DrPenguin>Â Â Â thats not very descriptive
<Noxz>Â Â Â that’s all it tells me, lets try for a third time though
<gridbag>   its difficult to know what’s the best min/max apis to support for something released today. can someone just recommend something, given whats out there today?
<Estel>Â Â Â gridbag: start from your requirements. Do you require something in, say, API 8?
<gridbag>Â Â Â Estel, no, i don’t need that.
<Estel>Â Â Â Then look at http://developer.android.com/resources/dashboard/platform-versions.html and decide what % of your audience you’re willing to throw away for the sake of various conveniences.
<gridbag>Â Â Â Estel, okay, that’s what i was looking for. thanks.
<Estel>Â Â Â Personally I’d still set minSdk 4 and targetSdk 13.
Oct 102011