**** BEGIN LOGGING AT Sat Aug 25 03:00:05 2012 Aug 25 03:02:05 how do i get logcat to stop displaying things that have nothing to do with my app? Aug 25 03:04:37 i dont even remember typing that Aug 25 03:04:38 lol Aug 25 03:04:59 ? Aug 25 03:05:04 aye Aug 25 03:05:13 didnt i just go on a rampage Aug 25 03:05:19 against vol? Aug 25 03:05:26 i logged in here to do it and it was done Aug 25 03:05:27 ? Aug 25 03:05:35 or maybe i dreamt it Aug 25 03:05:44 anyway im hammered thsi is not the time Aug 25 03:05:47 lol Aug 25 03:05:58 i got angry cause a client called me Aug 25 03:06:04 tells me i OWE HIM money Aug 25 03:06:10 when he owes me.. Aug 25 03:06:14 i flipped bad Aug 25 03:06:47 and he started tio sound like vol.. LOL... telling me i aint no coder blah Aug 25 03:06:48 hah Aug 25 03:07:00 what is up with these ppl man Aug 25 03:07:26 i been a pro all my life and the thanks i get is threats and insults Aug 25 03:08:24 i need to set up #freelancer-rage Aug 25 03:08:48 literally just there it got violent Aug 25 03:08:54 with an indian client Aug 25 03:09:01 but wtf can i do Aug 25 03:09:09 sue his ass Aug 25 03:09:16 for your money Aug 25 03:09:20 ah man im usinf flimsy contract Aug 25 03:09:25 we barely sign a thing Aug 25 03:09:39 i been freelancing since i ws 13 Aug 25 03:10:01 this bloke was physically threatening me Aug 25 03:10:06 with heavies Aug 25 03:10:26 i comein drunk and basically lose it Aug 25 03:10:42 i was properly aderenalided up after reading that crap Aug 25 03:11:00 remote freelancer - think against it! Aug 25 03:11:07 it makes ur life a living hell Aug 25 03:12:28 how do u get paid as a remote freelancer Aug 25 03:12:31 * gaz` weeps Aug 25 03:12:53 * gaz` is 3 months behind on rent even tho he earned it 6 months ago Aug 25 03:13:35 if ur doing it pls tell me how Aug 25 03:13:43 i bendoing this since 95 Aug 25 03:14:24 sickened Aug 25 03:17:32 christ Aug 25 03:17:36 bunch of dead gits Aug 25 03:18:52 hi mech Aug 25 03:22:51 Bisecting: 59 revisions left to test after this Aug 25 03:22:55 Good old git bisect Aug 25 03:27:55 What would be the best way to run a service every day at a specific time? Aug 25 03:28:51 joholz: you want the AlarmManager Aug 25 03:29:37 yes] Aug 25 03:29:49 That should remove the service from running in the background, and then bring it back up when needed. Right? Aug 25 03:30:11 joholz: that will trigger an intent at a specific time to start your service, you can cancel that intent if you need ot Aug 25 03:30:12 to* Aug 25 03:30:20 i guess it should hide Aug 25 03:30:53 Nice, makes sense. Aug 25 03:31:07 i have no clue tho dude Aug 25 03:31:10 lol Aug 25 03:31:12 http://developer.android.com/reference/android/app/AlarmManager.html Aug 25 03:31:22 gaz`: get some sleep :) Aug 25 03:31:26 yes Aug 25 03:31:27 thanks doc_savage / gaz' Aug 25 03:31:32 i ned it Aug 25 03:31:33 yea, going to read more on it now Aug 25 03:31:51 thx doc, night dudes Aug 25 03:32:07 gaz`: it sounds like it, good night :) Aug 25 03:32:17 :-} Aug 25 03:32:21 cheers Aug 25 04:08:02 Hi all Aug 25 04:08:38 Does anyone know why I was banned on this channel in the last 24 hours? Aug 25 04:09:22 Where would I need to start looking to stop my app from rotating when the phone is rotated? Aug 25 04:13:30 Mechdave: do you want to stop your application from rotating? or handle the orientation change yourself? Aug 25 04:16:14 doc_savage, Ok I have compiled and modified the torch code from http://www.mkyong.com but when I run it on my SGS2 when I change orientation of the phone the torch goes off and screws up how the buttons work. I was thinking the easy way to stop this happening would be to stop the app reacting to the orientation of the phone. Aug 25 04:16:58 doc_savage, Although if I could control the orientation of the app I could learn a whole heap more :) Aug 25 04:20:19 Mechdave: it's almost 5:30am here and umm, I've been drinking for a while - so I'm not going to attempt to read code... :) Aug 25 04:20:37 but, some links for you, to handle the orientation changes yourself: http://developer.android.com/guide/topics/resources/runtime-changes.html#HandlingTheChange Aug 25 04:20:43 doc_savage, LOL, I know the feeling :) Aug 25 04:20:54 doc_savage, Awesome, thanks :) Aug 25 04:21:39 I have a question about setContentView Aug 25 04:21:52 after I setContentView, the heap grow Aug 25 04:22:01 and if you want to let the system handle it (probably recommended if you're using standard layouts) then your activity gets destroyed and re-created with an orientation change Aug 25 04:22:29 in which case, see the Activity lifecycle : http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Aug 25 04:22:42 and the log told me that GC is performed Aug 25 04:22:48 does it normal? Aug 25 04:22:58 i should say, is it normal Aug 25 04:23:56 I found a log "08-25 12:18:46.290: I/dalvikvm-heap(15922): Grow heap (frag case) to 30.024MB for 3409936-byte allocation" Aug 25 04:35:30 doc_savage, Thanks :) I have worked it out now... Turns out it is very simple 1 line of code to fix :) Aug 25 04:37:25 being a tech recruiter must be a hard job Aug 25 04:38:02 they act like they're just drowning out there hoping someone's going to send them a life vest. Aug 25 04:39:55 i interacted with one the other day; they were recruiting for a company being started by this guy that has spend most of his life fighting the legal system to stay out of jail Aug 25 04:40:41 when i asked why they would even work with such a scoundrel, they said they were convinced he was ok and "it was just a misunderstanding: Aug 25 04:41:08 well, the first step in deceiving people is deceiving yourself first Aug 25 04:41:35 someone contacted me yesterday starting the e-mail off asking me if i needed recruitment services for my current company, and then ended it asking me if i was interested in a job opening she had downtown Aug 25 04:41:43 once you have done that, its easier to lie to others, after all - you're convinced yourself its the truth Aug 25 04:42:48 yeah, crazy Aug 25 04:42:58 i worked with a recruiter a couple years ago as well that surprisingly even found me an interesting opportunity. i interviewed, decided not to take the job, and the recruiter called me back yelling at me Aug 25 04:43:08 actually yelling Aug 25 04:43:23 of course, they didn't care about you, they wante dtheir cut :) Aug 25 04:43:57 of course, but that's _always_ the case in any business relationship. usually people put some measure of professionalism in front of their greed. Aug 25 04:44:26 I find that my onTouchEvent in the view is about 600ms/cycle. I think it is too slow as I need to update the view when there is touch event. How can I figure out which part is the bottleneck. My onDraw only consume 10ms Aug 25 04:44:55 edwinkcw: traceview Aug 25 04:48:24 jasta: trace view? where can i find it? Aug 25 04:54:56 google Aug 25 05:27:04 hi Aug 25 05:29:40 when you create a project via command line what should the file be called that contains the package/namespace etc... like what are the core project files that should be generated Aug 25 05:39:35 tech1: you mean AndroidManifest.xml? Aug 25 05:41:02 oh yeh thats one of them.. is that all thats needed? just manifest, src(.java files), and /res(images, audio) Aug 25 05:41:14 i thought there was some other thing Aug 25 05:41:57 there are other build files, yes Aug 25 05:43:06 oh yeh the target platform library too i guess Aug 25 05:43:54 but the manifest is the only one that contains the package namespace (besides the .java src files) Aug 25 05:44:15 yup, I think so Aug 25 05:44:23 awsome thanks Aug 25 05:59:18 I am starting to hate Ksoap Aug 25 06:00:21 I just don't understand why its not sending my strinsg through Aug 25 06:00:26 strings* Aug 25 06:35:20 dotNet = true help alot Aug 25 06:35:25 helps* Aug 25 06:36:24 That single freakin line had me stumped for days. Thats about how it goes though huh. Aug 25 06:57:37 Can someone give me the link to the current Eclipse that people are using for development please? Aug 25 07:00:11 optimusM, Whatever the latest stable is. I think Eclipse Juno. Aug 25 07:00:25 ok thank you Aug 25 07:00:45 I been trying to get the ADT pluggins but it says their not downloadable Aug 25 07:02:04 optimusM, You got this? http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/junor Aug 25 07:02:34 no i downloaded Eclipse 4.2 Aug 25 07:03:15 juno is the latest, yes. Aug 25 07:03:53 im downloading the one you gave me right now. Aug 25 07:03:58 See if that fixes my problem Aug 25 07:04:19 Well, I have that and everything works fine :) Aug 25 07:04:48 I used to use eclipse but for one project I had to use ant for some reason Aug 25 07:05:04 Ok thank you. I been working on a SMS app for my phone but to noob to figure it out lol Aug 25 07:05:07 turns out command line ain't too bad as it may sound Aug 25 07:06:23 if i want to hand over and object to an activity that is onpause and i destroy the activity that is displayed now how to do that ? Aug 25 07:30:41 Mastaofich, A Service can always pass objects between Activities Aug 25 07:32:52 Ologn, ok but is this the right thing when i got an object of an variables class and want to pass is from one activity to an other or backward ? Aug 25 07:35:24 Mastaofich, there is more than one way to do it. You always have to assume an off-screen Activity can be killed at any time though. Aug 25 07:36:14 Ologn, whats the best an simpelst way you would suggest ? Aug 25 07:38:28 Mastaofich, a Service Aug 25 07:38:47 Mastaofich, unless you are passing something simple like a String Aug 25 07:49:12 Ologn, have you written me sth after i respond Aug 25 07:52:43 https://plus.google.com/105179816987111146812/posts/bSMQYbMya82 Aug 25 08:23:40 Is it possible to compile a AOSP in Eclipse? If so how can I do it? Aug 25 08:23:57 Just the app not the entire source Aug 25 08:34:05 hello Aug 25 08:35:25 i want to compile an open source app i found on github, but i do not know how. For compiling my apps i used eclipse but now how should i start? I checked if there are any instructions but there aren't Aug 25 08:38:33 make new android project from archive file option Aug 25 08:40:26 or i believe the import function Aug 25 08:40:35 should i use eclipse? Aug 25 08:40:41 isn't there anything like make Aug 25 08:41:15 in your package explorer right click and import and import existing code (under android projects) and then compile it Aug 25 08:41:34 hello all Aug 25 08:42:03 have problem when initializing AudioTrack with STREAM_VOICE_CALL Aug 25 08:42:32 gain of microphone's volume smaller Aug 25 08:44:02 why? Aug 25 08:46:53 Hi Guys, is there a way to make gestures on android that are really precise? like if i would want to erase text and i slide along the text and stop midway, only that text errases that i slided over Aug 25 09:00:54 Anybody knows? http://pastebin.com/8H5LjeXH Aug 25 09:05:15 Anybody knows? http://pastebin.com/8H5LjeXH Aug 25 09:11:56 Hello all. please help for answer http://pastebin.com/8H5LjeXH Aug 25 09:17:15 Hello all. please help for answer http://pastebin.com/8H5LjeXH Aug 25 09:28:51 http://pastebin.com/8H5LjeXH Aug 25 09:29:27 you're back Aug 25 09:29:46 i try new irc client Aug 25 09:30:42 you know answer? Aug 25 09:30:49 no Aug 25 09:30:55 my AndroidManifest.xml contains a line Aug 25 09:31:02 if(checkCallingPermission(permission.INTERNET) == PackageManager.PERMISSION_GRANTED) { goes into the else branch Aug 25 09:31:08 what did I miss? Aug 25 09:31:46 I'm using Android SDK with eclipse Aug 25 09:32:36 you know about http://pastebin.com/8H5LjeXH ? Aug 25 09:32:42 something Aug 25 09:33:44 hi, want to look for and maybe write a feature request. Aug 25 09:33:54 what is the exact name of the scrollbar you pull down when a notification occurs? Aug 25 09:34:03 people help me pls Aug 25 09:35:10 see this http://pastebin.com/8H5LjeXH Aug 25 10:05:19 I have existing java api which uses sl4j and log4j. I need to use this api in android service. how do I handle this sl4j dependency ? Aug 25 10:06:13 would you guys dare to change android:installLocation="preferExternal" to android:installLocation="auto" on a deployed Aug 25 10:06:17 app ? Worried that some devices might get confused.. Aug 25 10:06:30 I am using maven to build Aug 25 11:02:59 morning Aug 25 11:03:13 evening here Aug 25 11:05:20 do you know much about tcp clients? Aug 25 11:06:04 where's here? australia? Aug 25 11:06:33 Yep Aug 25 11:06:56 yep to tcp or yep to australia? Aug 25 11:07:18 ultra-, I know nothing of TCP clients in android. I am only beginning :) Aug 25 11:07:23 ah i see Aug 25 11:07:35 i'm two weeks into android programming, so me too Aug 25 11:07:41 i've learned a lot tho Aug 25 11:07:41 But in Australia it is night Aug 25 11:07:57 yeah that's why i figured au, it will be late morning or early afternoon in eu Aug 25 11:08:12 and i never seem to come across people from asia Aug 25 11:08:18 I am just playing. Not doing a course, instead learning as I go Aug 25 11:09:26 yeah that's how i do it… but i already took a java class a couple years ago Aug 25 11:09:37 and i already use python and c a lot Aug 25 11:09:53 programming touch devices is more fun Aug 25 11:10:52 I haven't used C for a long time, python I don't know but android is quite fun to work with. Although it takes some getting used to the xml mixed with the java :) Aug 25 11:11:56 yeah i've used xml very very little Aug 25 11:12:06 just for a permission and my main layout, all else is thru code Aug 25 11:12:21 the controls are all custom anyway Aug 25 11:12:59 if anybody here is alive, could you plz look at my simple tcp client? http://pastebin.com/zf4u07XE Aug 25 11:13:50 it's in a thread but i didn't paste that part to keep it clean… i'm wondering, when the app is blocked at reader.readLine(), how i can send a message to my server? Aug 25 11:14:13 i'd need a Looper to receive messages into the thread, and that's blocking too Aug 25 11:14:43 or perhaps i just use another thread and another socket Aug 25 12:44:27 hi! do I need to set other permission than WRITE_EXTERNAL_STORAGE so that to be able to programmatically create a directory in what is returned by Environment.getExternalStorageDirectory()? Aug 25 13:59:04 quit Aug 25 14:12:43 mmm any idea why an so module statically linked could not create threads? the module is loaded via a native app (jni) https://friendpaste.com/1R2Aq2tWxJs5lmBTK7FDGW Aug 25 14:12:52 not sure how to debug this error Aug 25 14:22:02 Before I start digging deeper into ContentProvider, can it be implemented so that I can query something like content://com.example.app.provider/tableN/foreignkeyN and get back a row? Aug 25 14:23:50 saik0, yes the implementation is almost entirely up to you Aug 25 14:24:40 jeppy, thanks Aug 25 14:28:06 hi, quick question. I'm trying to implement as an exercise an mvc architecture for drag and drop for pre 3.0 sdks. I'm running into a fairly crazy problem right off the bat though in that I can't seem to get the size of the buttons that I'm trying to drag around. Aug 25 14:28:26 I've tried each of the following, and always get either a 0 sized rect or a 0 height/width: view.getMeasuredHeight(); Aug 25 14:28:27 view.getLocationOnScreen(loc); Aug 25 14:28:27 view.getDrawingRect(rect); Aug 25 14:28:27 view.getHeight(); Aug 25 14:28:27 view.getLocalVisibleRect(rect); Aug 25 14:29:47 anyone know how to get the x/y coords of the view that I'm interacting with (in this case a button with an onTouchListener attached to it Aug 25 14:30:54 farkerhaiku, IIRC you have to measure it first Aug 25 14:31:13 http://developer.android.com/reference/android/view/View.html#measure(int, int) Aug 25 14:32:33 saik0, thanks, I'll look into that Aug 25 14:33:10 whats the best way to communicate data from a AsyncTask back to the activity/main thread? I am currently using a Handler Aug 25 14:33:19 i am not convinced if thats a proper way to do it Aug 25 14:33:36 mcscroogey: that's the proper way to do it Aug 25 14:34:44 good, but how would you store the data which you want to share between fragments? A singleton class? Aug 25 14:35:26 so no idea about what could cause this error ? https://friendpaste.com/1R2Aq2tWxJs5lmBTK7FDGW Aug 25 14:35:59 mcscroogey, a bundle or a contentprovider Aug 25 14:38:07 hmm, bundle Aug 25 14:39:05 let me read up about the content provider Aug 25 14:40:03 mcscroogey: you can store data related to a fragment as fragment argument bundle, which will stay with it through out its lifecycle Aug 25 14:41:17 mcscroogey, it will even persist when it is recreated after orientation change Aug 25 14:42:07 mcscroogey: a contentprovidet commonly used for peristent sqlitedb backed storage to share data between applications Aug 25 14:42:18 aah Aug 25 14:42:28 i just want to store some stuff i downloaded from the internet web Aug 25 14:42:41 like river temperatures which i later display in fragments (using viewpager) Aug 25 14:42:52 i know a static variable in the mainactivity Aug 25 14:42:57 let me post my code :) Aug 25 14:43:18 mcscroogey, you can store it in a file or a sqlite db Aug 25 14:43:53 mcscroogey, you can get reference to the file or db from the app context Aug 25 14:44:51 mcscroogey, Google I/O 2010 - Android REST client applications - http://www.youtube.com/watch?v=xHXn3Kg2IQE Aug 25 14:47:21 saik0, i remember this video. The presenter was just shivering with nervousness Aug 25 14:47:52 yeah, this is my current code: http://pastebin.com/hqRTZ9g3 Aug 25 14:49:39 and then i do MainActivity.waterData in my fragments Aug 25 14:49:55 (brrr) Aug 25 14:52:09 http://shop.oreilly.com/product/0636920010364.do implemenets his model, the code used in the book is on https://github.com/bmeike/ProgrammingAndroid2Examples Aug 25 14:52:40 saik0: turns out my problem was that I was trying to measure it in onCreate. tried doing the calculation in onResume, same issue. Did the calculation in an onTouch and it all worked as expected. I guess the views weren't drawn yet and so the size was 0 Aug 25 14:53:30 http://datadroid.foxykeep.com/ is somewhere between library and reference implementation Aug 25 14:54:54 i will have a look :D Aug 25 14:57:24 mcscroogey, heh. Doing REST using this model is kind of a 'red pill, bule pill' decision. Aug 25 14:58:00 yeah, :) Aug 25 15:03:34 WTF crash stack trace, PackageManager.queryIntentActivities() giving a NPE: http://pastebin.com/dUBZrZCA Aug 25 15:05:34 Is there any reason why a phone with an unlocked bootloader wouldn't be accepting the "fastboot flash recovery" command? Aug 25 15:07:57 a2f: not all phones use fastboot Aug 25 15:08:12 a2f, this is a dev channel. try asking in #android or #android-root Aug 25 15:09:16 Had to try, thanks. Aug 25 15:24:02 my appwidgetprovider wont increase in height. Im looking for minwidth=294dp and minheight=220dp, the height will not increase bigger than one cell though Aug 25 15:54:50 I am using apache api in android service which has dependency on commons-logging. Also the another api has dependency on sl4j and log4j. how to satisfy these in my android service ? Aug 25 15:55:42 are there maven artifacts for the alternative Aug 25 16:07:32 i need someone to test my app Aug 25 16:08:03 link? Aug 25 16:08:03 android app Aug 25 16:08:04 wp-developer, details? Aug 25 16:08:08 I get info warnings when I compile my app about apache commons need to be compiled Aug 25 16:08:31 https://play.google.com/store/apps/details?id=ebooknetworking.net.booksearch Aug 25 16:08:33 is there commons-logging already in android so then I mark it for runtime depedency instead ? Aug 25 16:08:58 oh, you again Aug 25 16:09:09 oops Aug 25 16:09:34 how's the calculate sum app doing? Aug 25 16:09:48 i am done with that Aug 25 16:09:54 now something good Aug 25 16:10:18 btw it's more common to use "net.ebooknetworking." Aug 25 16:10:34 sorry i did not know EPG Aug 25 16:10:55 no problem, at least if this is in fact your domain Aug 25 16:11:03 can i correct it epg Aug 25 16:11:26 Experience with linearlayout listviews anyone? Aug 25 16:11:28 its my domain EPG Aug 25 16:11:59 a prog/class I can look at for implementation? Aug 25 16:12:11 deleting the app and uploading it again would surely work, dunno if it's possible to change here, but i guess not Aug 25 16:12:22 ok Aug 25 16:12:42 by making commons-logging provided the warnings are gone but I still have log4j warnings Aug 25 16:12:56 android automatically upscales your graphics if there's nothing available in the -mdpi or -hdpi? Aug 25 16:13:20 Bear10, depends on your size settings Aug 25 16:13:58 EPG, id like to disable it and apply matrixes on graphics myself Aug 25 16:14:05 if possible Aug 25 16:16:02 how to get around log4j related warnings in android compile ? Aug 25 16:16:19 my api uses sl4j and log4j Aug 25 16:17:28 the maven quick-start for android already add android-logging-log4j on path but still I get this error ....I know my api has sl4j and log4j as dependencies... Aug 25 16:20:37 EPG, anyway to do that? Aug 25 16:22:05 Bear10, should work, they'd be upscaled only if you display them with sizes e.g. in dip afaik Aug 25 16:22:32 EPG, weird because im doing a Bitmap bmp... creating it and then outputting its width Aug 25 16:22:37 its automatically scaled oddly enough Aug 25 16:22:58 maybe im imagining it Aug 25 16:23:26 nope Aug 25 16:23:28 im not Aug 25 16:24:49 Bear10, can you paste some code? Aug 25 16:25:34 EPg, http://pastebin.com/dz4MEdZF Aug 25 16:25:47 the bmp.getWidth() and getHeight() show different for diff res Aug 25 16:26:15 i only have one drawable folder so theres only one set of resources independent of res Aug 25 16:28:53 Bear10, ok, did you try copying the file to the mdpi/hdpi folders? Aug 25 16:29:08 I see my code jaxb usage is problem with android Aug 25 16:29:24 EPG, i had an upscaled version in them then i figured id work with just 1 set, no way to just work with 1 set of resources? Aug 25 16:29:30 if i did what you're saying that'd probably work Aug 25 16:29:51 and i think i had another idea that just worked Aug 25 16:30:43 android autoscales the image if you are telling it to do so. You can disable the image scaling if you want to, or declare the resource as nodpi which imho should get rid of it (or that is what I expect) Aug 25 16:31:33 the bitmap.options has some inScaling or something, set to false Aug 25 16:32:15 BitmapFactory.Options attribute inScaled, defaults to true Aug 25 16:32:49 alankila, to do the nodpi i do a drawables-nodpi Aug 25 16:32:50 ? Aug 25 16:33:45 iirc yes, the suffix was -nodpi Aug 25 16:34:08 meant for resolution-independent resources. I imagine game textures qualify Aug 25 16:35:01 yeah thats what im looking for, thank you :) Aug 25 16:35:47 Bear10, here's btw a link explaining this: https://developer.android.com/guide/practices/screens_support.html#DensityConsiderations Aug 25 16:35:49 I personally think the autoscaling is a bit too clever thing to do. Aug 25 16:36:29 it's perfectly alright if you for instance put an imageview and hand it the resource to draw -- android can choose to prescale it or scale it on use for all I care, that's the kind of thing it could decide on its own with no impact for developer or end user Aug 25 16:37:00 but this automatic scaling of resources you get seems to be the sort of thing few people expect to happen. Aug 25 16:37:42 yet, I guess it's entirely defensible that it works this way Aug 25 16:37:51 yeah Aug 25 16:38:00 so IDK. Right now one half of developer population complains, if it was other way then the other half would Aug 25 16:38:02 EPG, thank you Aug 25 16:38:11 I put my images into assets :-p Aug 25 16:38:19 alankila, yeah i can see that well i mean its not a big deal just need to be aware of it Aug 25 16:38:32 indeedy, and the -nodpi solves all problems, or should, anyway. Aug 25 16:40:00 hmm, so i started using services now Aug 25 16:40:22 using broadcast intents etc. but should I know just put my data class in the broadcast intent? Aug 25 16:40:31 as you cant store objects in a contentvalues class :( Aug 25 16:42:02 anybody want to test this https://play.google.com/store/apps/details?id=ebooknetworking.net.booksearch Aug 25 16:42:57 any one knows how to get jaxb working android ? Aug 25 16:44:05 mms_ www.vogella.com/articles/JAXB/article.html Aug 25 16:44:47 mms_ http://www.youtube.com/watch?v=AVVbuVn0N98 Aug 25 16:44:57 hey it does not work on anfroid Aug 25 16:45:19 I already have jaxb working in my api but when I integrate in android it errors Aug 25 16:45:49 did u saw the video http://www.youtube.com/watch?v=AVVbuVn0N98 mms_ Aug 25 16:45:54 let me check Aug 25 16:49:31 wp-developer: its just shows how to use it...does not address android issue Aug 25 16:50:45 what issue u r facing mms_ Aug 25 16:50:55 u asked how to use it Aug 25 16:50:56 errors Aug 25 16:51:03 shoot Aug 25 16:51:14 i means tell us the errors Aug 25 16:51:20 not how to use it....its already work in my api outside android.... Aug 25 16:52:13 08-25 21:54:37.412: I/dalvikvm(354): Could not find method javax.xml.bind.JAXBContext.newInstance, referenced from method com.primesystems.graph.config.GraphReader.parse Aug 25 16:53:57 Okay, for the record: I found the solution. Aug 25 16:53:57 As several threads had suggested, the source of this bug was using a version of JAXB which was older than 2.0.2. My error was that my maven POM file was being overridden by another POM file which was importing an older version of the library. Aug 25 16:54:28 how come ? the jaxb is part of jdk Aug 25 16:54:51 I do not see any import for jaxb in pom Aug 25 16:55:21 What version of the product are you using? On what operating system? Aug 25 16:55:25 I assume its available to android but may be issue with it Aug 25 16:55:40 windows 7 Aug 25 16:56:03 Using Eclipse Version? Aug 25 16:56:21 running from avd manager Aug 25 16:56:26 outside eclipse Aug 25 16:56:29 Android ? Aug 25 16:56:40 Android version? Aug 25 16:56:41 android for api 10 Aug 25 16:56:55 2.3.3 Aug 25 16:58:15 download a fresh library Aug 25 16:58:32 or try on 3.2 Aug 25 16:58:48 4.02 Aug 25 17:00:18 I have 4.03 also Aug 25 17:00:22 let me try on it Aug 25 17:03:16 what sdk version to specify ? Aug 25 17:05:57 I choose api 15 but shows as 14 Aug 25 17:06:45 ok Aug 25 17:10:23 i decided to just use a singleton class called ApplicationData which i update in my service :/ Aug 25 17:10:59 I get same error...seems jaxb is not supported as per few references on internet Aug 25 17:11:20 I might have to use other apis to deal wit it now Aug 25 17:29:05 so I am trying to understand fragment lifecycles a bit better, is onResume() called ever time the fragment is shown to the user including the first time it is created? Aug 25 17:45:58 Is this channel for android app development as well? Aug 25 17:46:18 yes sinaa Aug 25 17:47:15 I'm stuck on a problem that I cant find a solution to anywhere! (tried quite hard on stackoverflow!) and its such a basic task that I am not sure if I'm maybe searching wrong Aug 25 17:47:47 Basically, I want my app to login once, and then keep the cookies and next time you open the app, it should be able to have them Aug 25 17:49:04 asked this on stackoverflow, but the answer is useless for me http://stackoverflow.com/questions/12073143/android-remain-logged-in-with-cookies-for-fetching-json-data Aug 25 17:52:58 Anyone happy to help? quite desperate here :( Aug 25 17:56:22 sinaa Aug 25 17:56:43 wp-developer, yes ? Aug 25 17:57:59 is it a webview? Aug 25 17:59:07 wp-developer, not at the moment. Basically what I have in mind is that user opens the app, if not logged in before, it asks for user/pass. Once given, it logs them to the server, keeps the cookies, stores them (persistent), and then for future queries, passes them to the server Aug 25 17:59:33 sinaa http://wowjava.wordpress.com/2011/01/16/login-application-for-android/ Aug 25 18:00:16 I think many many apps at the moment should be doing this, so no idea why I cant find anything on it Aug 25 18:00:31 I can already login with my app, and can already get the cookies Aug 25 18:00:53 and can also initiate another connection to the server with the cookies (Which is successful) Aug 25 18:01:02 problem is keeping it for future Aug 25 18:03:34 sinaa https://github.com/loopj/android-async-http/blob/master/src/com/loopj/android/http/PersistentCookieStore.java Aug 25 18:04:44 wp-developer, Is there any other way of doing it? Aug 25 18:04:47 sinaa https://github.com/loopj/android-async-http/blob/master/src/com/loopj/android/http/PersistentCookieStore.java Aug 25 18:05:22 sinaa http://developer.android.com/guide/topics/data/data-storage.html Aug 25 18:05:27 Hi, I am developing a web service for an Android app, I want people to be able to login with as little effort as possible. So I opted for OpenID. This would allow people to use their Google account to log in. Is there a way I can use the AccountManager for this, instead of having people authorize the service using a webview and then capturing the token Aug 25 18:05:37 wp-developer, got the last link (already seen it before), but is there any simpler solution? (I am also not sure how to use this class inside my application if I decide to use it) Aug 25 18:06:29 I have reached to some stage that if I get this to work, it would solve my problem I think ((AbstractHttpClient) httpclient).getCookieStore().addCookie(new BasicClientCookie(key, value)); Aug 25 18:07:33 But this is not adding cookies to the http request Aug 25 18:10:40 wp-developer, let me simplify my problem. Basically, I want to use to cookies in cookiemanager and pass them to http request. I have done the rest. cookiemanager returns cookies as string, which I cannot send with my http post request Aug 25 18:11:55 anyone know if a service is being ran in a different thread? Aug 25 18:12:13 mcscroogey: afaik, it is. Aug 25 18:14:02 mcscroogey: regular Services won't by default Aug 25 18:14:25 mcscroogey: you have to set up threading yourself, or use IntentService, which does it for you. Aug 25 18:21:58 my cookiestore is not taking basicClientCookies (name,value) . anyone knows what might be causing it? Aug 25 18:25:02 ok it seems like it was missing domain. anyone knows what is the best way to serialize a cookiemanager cookie string to a Cookie ? (really appreciate some help) Aug 25 18:25:30 yeah i used a intentservice Aug 25 18:27:06 damn gps fix takes ages :> Aug 25 18:27:12 can someone help me for just a minute ? :( Aug 25 18:32:09 Can someone at least say how to get expiry date and domain for this? http://developer.android.com/reference/android/webkit/CookieManager.html (it just returns key/value) Aug 25 18:33:14 sinaa: its entirely possible that whoever has the experience to help you isn't paying attention to IRC right now, patience is key Aug 25 18:33:35 Let's all boycott Apple! #OpBoycottApple Aug 25 18:33:58 meh, too late already doing it Aug 25 18:34:14 me too Simran Aug 25 18:34:30 dont eat apple these days Simran Aug 25 18:34:43 Fuck Apples Aug 25 18:34:52 ftc, I see this a a very simple issue, that I think someone with a little experience with android cookies can help me. I am new to android, and it would take me days to get it sorted, while a simple help (less than a min) would help me out Aug 25 18:36:34 Apples--> App Less Aug 25 18:36:53 Fuck Apple Aug 25 18:37:02 Simran: not here Aug 25 18:37:08 mind your language Simran Aug 25 18:37:14 Fine. Aug 25 18:37:25 sinaa: people help eachother out of the kindness of their heart (or out of the hope that others will help them when they need it) often you just need to chill out and wait for someone who can help you. just be patient, someone will come around who has worked with cookies Aug 25 18:37:55 yes sinaa sometimes it takes 10 days Aug 25 18:37:58 or a month Aug 25 18:38:42 Yeah I understand ... do you guys also do app development? Aug 25 18:39:01 yes sinaa i use basic 4 android Aug 25 18:39:25 wp-developer, basic 4 android ? Aug 25 18:40:11 http://www.basic4ppc.com/ Aug 25 18:40:17 oh lord Aug 25 18:40:24 would anyone be interested to review the code of android app? Aug 25 18:40:38 sure mcscroogey Aug 25 18:41:12 oh its not free :( Aug 25 18:41:31 well sinaa i am using paid version,trial is free Aug 25 18:41:39 wp-developer: cool, can i send you a pm? Aug 25 18:41:44 sure Aug 25 18:42:24 wp-developer, I dont go for trials usually. This is not a commercial project and its mostly me trying to learn android as well. so dont wanna be using a framwork Aug 25 18:43:07 sinaa its ok Aug 25 18:43:48 but I'm wondering, isn't my problem rather trivial? How do almost all apps use logins and etc. ? Aug 25 18:44:50 sometimes i use device id Aug 25 18:44:59 no username pass needed sima Aug 25 18:45:05 I need to pull JSON data from a server and populate several UI items with it Aug 25 18:45:11 store device id on my website sinaa Aug 25 18:45:21 is it better to use an AsyncTask, or some other type of thread? Aug 25 18:45:36 HorizonXP: AsyncTask is probably easiest Aug 25 18:45:52 Leeds: my understanding is that it doesn't actually use threading though? Aug 25 18:46:46 my understanding is that it does... Aug 25 18:47:04 Leeds: ok, let me read again then, because obviously one of us is wrong :P Aug 25 18:47:12 Leeds: it's likely me that's wrong tho :) Aug 25 18:47:35 wp-developer, basically, when login is involved, you send user/pass to server (along device id) and store the device id against that user? and on future requests you post the device id ? Aug 25 18:47:57 "AsyncTask allows you to perform asynchronous work on your user interface. It performs the blocking operations in a worker thread and then publishes the results on the UI thread, without requiring you to handle threads and/or handlers yourself." Aug 25 18:48:49 Leeds: :) thanks Aug 25 18:49:15 http://developer.android.com/guide/components/processes-and-threads.html#AsyncTask Aug 25 18:52:39 sinaa just check device id Aug 25 18:52:43 everytime Aug 25 18:52:46 user login Aug 25 18:52:53 no password needed Aug 25 18:53:21 that way device will bound to him Aug 25 18:53:28 no other user can login Aug 25 18:53:39 wp-developer, you log user with device_id in database? and then post the device id to the url instead of user/pass? Aug 25 18:53:43 but users dont like login and pass Aug 25 18:53:58 and will it work for android vm as well? Aug 25 18:54:19 I mean the simulator Aug 25 18:54:31 you mean the emulator... Aug 25 18:54:40 yes Aug 25 18:54:42 Leeds, yep :D Aug 25 18:54:45 ofcourse Aug 25 18:55:43 thats a neat way to do it :) just the problem is that I am going to use a public website's already existing interfaces. And cannot put an overhead on all pages to look for deviceid Aug 25 18:59:08 https://www.facebook.com/pages/Op-Boycott-Apple/310364989061411 Aug 25 19:00:05 Simran, samsung rep by any chance? Aug 25 19:00:13 Sorry Aug 25 19:00:14 :( Aug 25 19:00:28 Simran: are you an Android app developer? Aug 25 19:00:32 Yes Aug 25 19:00:46 Yes, I am :) Aug 25 19:00:53 Simran, samsung rep by any chance? Aug 25 19:00:55 good... stick to that rather than silly corporate politics Aug 25 19:01:01 Nope Aug 25 19:01:10 Not old enough to have a job Aug 25 19:01:12 ;S Aug 25 19:01:56 clown Android WTF Exception of the day: java.lang.StackOverflowError at android.widget.TabWidget.addView(TabWidget.java:463). Aug 25 19:02:34 I'm 15 Aug 25 19:03:29 do you guys do much hard-coding in your apps? Aug 25 19:03:51 No. Because of Aug 25 19:03:51 Aug 25 19:03:55 sinaa, I try not to Aug 25 19:04:41 Right now, the only way I can solve my problem is with hard-coding the domain and expiry date. which isn't good. CookieManager simply returns name and value of the cookie :| Aug 25 19:07:46 How do i compile a open source app from AOSP Aug 25 19:31:56 what package do I need to import to access my application's string resources? Aug 25 19:32:09 i.e. i want to get the string associated with a particular resource ID from R Aug 25 19:32:10 none Aug 25 19:32:39 Leeds: if I'm in an activity, I can do this.getString(R.id.xxx) Aug 25 19:32:45 http://developer.android.com/guide/topics/resources/accessing-resources.html Aug 25 19:32:51 you need a reference to a Context Aug 25 19:33:03 which needs to be passed in Aug 25 19:33:05 hmm.... Aug 25 19:33:21 assuming the compilation unit is in the same package as R, none Aug 25 19:33:52 yeah it's not Aug 25 19:34:23 i'll keep at it, thanks Aug 25 19:34:58 R is generated in the package defined in the app's anroid manifest Aug 25 19:54:37 Hi, can I use the token I get from the AccountManager for the Google account to log into a webservice I own, using Oauth? Aug 25 19:55:39 I want to prevent people from having to create a new login, but OpenID apparently needs some kind of webview to work. Which is less than ideal Aug 25 19:56:05 So I would like to use that OAuth token to log into my own webservice Aug 25 19:59:01 Can someone please help me. I been trying to compile MSM for froyo with eclipse but keep getting errors Aug 25 20:01:09 Hi Aug 25 20:01:22 dumb Java question Aug 25 20:01:27 Hello Aug 25 20:02:06 but can I pass in an object into an AsyncTask's constructor, and have the AsyncTask set that object to some value so that it can be retrieved outside of the AsyncTask, sort of like C++ pointers? Aug 25 20:04:10 that is, I want to have a listDepartments object created outside AsyncTask, pass it to AsyncTask, have it set it to some value, and then have AsyncTask call an onTaskCompleted function in the parent class so that listDepartments can then be used, thus avoiding concurrency issues Aug 25 20:08:57 not many people talking right now lol. Aug 25 20:09:09 Indeed Aug 25 20:09:42 This isn't easy trying to figure out how to build AOSP apps in eclipse Aug 25 20:10:31 horizonXp: do it in onPostExecute()? Aug 25 20:11:04 optimus, did you download the code? Aug 25 20:12:34 YEa Aug 25 20:12:46 im trying to do the msm package for froyo Aug 25 20:12:52 but tons of errors for some reason Aug 25 20:13:41 I got the source code from android's github Aug 25 20:16:08 i think i know what i did wrong now lol Aug 25 20:17:38 i was trying to compile android 2.2.3 mms with android.jar 2.2 lol Aug 25 20:19:36 always set target to highest sdk available, set min to whatever minimum you need Aug 25 20:21:49 android has a github? Aug 25 20:26:35 Well i changed the jar file and it only gave me a few errors Aug 25 20:27:18 AOSP apps aren't meant to be built with the sdk Aug 25 20:56:40 Hi, guys, I am using a Bluetooth SDP server code using pybluez and an app on my ICS tablet to connect to it Aug 25 20:56:56 It seems like the app gets connected to the server via bluetooth Aug 25 20:57:08 but the server up does not receive any connection Aug 25 20:57:21 can anybody help where I am goinf wrong? Aug 25 20:57:25 going* Aug 25 20:58:12 here is the server code Aug 25 20:58:13 http://pastebin.com/m4JmahmY Aug 25 20:59:52 NEIL ARMSTRONG IS DEAD! Aug 25 21:02:28 :-[ Aug 25 21:03:04 http://xkcd.com/893/ Aug 25 21:03:05 I want to cry Aug 25 21:04:16 SpeedEvil: that is......sad.......yet awesome Aug 25 21:04:36 typical xkcd crap Aug 25 21:05:46 Zharf: how dare you Aug 25 21:05:52 easily Aug 25 21:05:52 Zharf: HOW DARE YOU. XKCD IS AWESOME >:( Aug 25 21:06:21 blasphemy Aug 25 21:09:06 Mavrik: I agree. OFF WITH Zharf's HEAD! Aug 25 21:09:29 another holy war Aug 25 21:09:31 hey folks, quick question if anyone thinks this is possible before I waste my time trying to develop it Aug 25 21:09:38 I'm reminded of some song... probably blind guardian Aug 25 21:09:56 Conundrum2k, nope, not possible Aug 25 21:10:33 I need an app that will alert me if a computer connected to a wireless network is in range of my android.. so basically i want to be able to scan wireless for any computer with a certain mac address that may be connected to a network that I am not connected to. Aug 25 21:10:44 like using airodump-ng to get a list of stations Aug 25 21:12:29 yeah zharf I'm thinking its not :) especially by no response Aug 25 21:15:00 Conundrum2k, wouldn't you have to cycle through the networks to find the computer? Aug 25 21:15:59 unless that computer broadcasts the access point address? Aug 25 21:16:19 i would guess actually I don't think theres a way to put the andoroid wireless into monitor mode, and that would be the problem Aug 25 21:16:20 somehow.. Aug 25 21:16:42 my issue is actually someone stole my 5,000 dollar laptop from my house, I'd like to be alerted if it gets near me, I live in a pretty small own Aug 25 21:16:53 own=town Aug 25 21:17:01 well that sucks Aug 25 21:17:31 yeah I took my backup laptop around, with airodump-ng running on it to see if I could find the laptop's mac soemwhere, but didn't get anything Aug 25 21:17:51 hello all Aug 25 21:18:06 if someone can help me, i'm trying to understand the difference between implicit intents and broadcasts Aug 25 21:18:19 can't they essentially do the same thing? Aug 25 21:20:59 They're two different things Aug 25 21:21:11 Implicit intents are intents that don't target a specific component Aug 25 21:21:21 They can be used for broadcasts, starting activities, etc Aug 25 21:22:55 so what would be an example of how to use a broadcast? Aug 25 21:23:37 aren't broadcast intents that also go to anything? Aug 25 21:24:01 A broadcast is basically an event that apps can register to receive Aug 25 21:24:39 You broadcast an intent that apps, e.g. via an intent-filter, can receive Aug 25 21:26:44 so can i send an implicit intent that can be picked up by that same intent-filter? Aug 25 21:26:59 unless i'm understanding this completely wrong Aug 25 21:27:21 implicit intent. the system will check all apps which have the intent-filter which matches Aug 25 21:27:35 Yes Aug 25 21:27:53 new Intent(context, SomeActivity.class) .. that's an explicit intent Aug 25 21:27:58 right Aug 25 21:28:14 new Intent("android.intent.action.SEND") .. that's an implicit intent Aug 25 21:28:18 now, defining intent-filters are in the androidmanifest.xml file Aug 25 21:28:39 right Aug 25 21:28:43 Other apps can receive the SEND action Aug 25 21:28:48 so anything with an action android.intent.action.SEND Aug 25 21:28:55 in the intent-filter will receive that Aug 25 21:29:01 Other apps can't receive the explicit intent, since it references a specific component Aug 25 21:29:16 right Aug 25 21:29:33 so can you do a broadcast with the intent android.intent.action.SEND? Aug 25 21:29:40 or that's not a proper broadcast Aug 25 21:29:59 broadcasts are only events. such as , new download, boot_completed, etc. Aug 25 21:30:15 You'd usually use that with startActivity Aug 25 21:30:24 Yes, those are broadcasts Aug 25 21:30:55 Broadcasts can be received by a BroadcastReceiver Aug 25 21:31:41 So you can broadcast an implicit intent, and let anyone who wants register for it, but broadcasts and intents are not the same thing Aug 25 21:32:01 okayy Aug 25 21:33:11 thanks, SimonVT Aug 25 21:47:05 so i dont see why everyones bitching about windows 8 Aug 25 21:47:16 they made the start menu full screen Aug 25 21:47:22 like OMG NOW I DONT KNOW HOW TO USE IT Aug 25 21:50:14 its like the star trek movies, every other one is bad Aug 25 21:50:22 hah Aug 25 21:50:28 was the new one a good one or a bad one Aug 25 21:50:41 i dunno :) Aug 25 21:50:42 good. Aug 25 21:50:50 well i hated it :P Aug 25 21:50:55 what came before it... nemesis? Aug 25 21:51:00 i also disliked that one Aug 25 21:51:05 it has its flaws, but it's pretty great Aug 25 21:51:39 i dont like when they go back in time for the sole reason of allowing them to change how events play out in the future so they can make a movie that does things differently Aug 25 21:52:21 "Samsung does $1 billion in revenue every 2.4 days." holy crap. so they could absorb the cost of this thing in 2.4 days; how many other oems could ? Aug 25 21:52:32 samsung != samsung electronics Aug 25 21:52:44 also revenue != net Aug 25 21:53:06 wow, surprising. the fact that they didn't use a new universe for an unconnected reboot impressed me. Aug 25 21:53:09 its not like this isnt going to be appealed Aug 25 21:53:23 the reboot is what i dont like Aug 25 22:03:04 does anyone here have any experience with showing alerts on android? (I am not sure what is the latest and best way to do it) Aug 25 22:03:12 i think the s 2hips colliding in nemesis was one of the cooler moments :) Aug 25 22:03:16 *2 ships Aug 25 22:05:24 oh nemesis is where the bad/good rule was fucked up Aug 25 22:05:33 i need to rewatch these things Aug 25 22:05:37 i havent seen them since i was like 16 Aug 25 22:06:50 anyone? Aug 25 22:07:10 oh god please tell me the next movie isnt part of the reboot too Aug 25 22:07:11 fuck Aug 25 22:08:14 sinaa, what is an "alert" Aug 25 22:08:47 canadiancow, a dialog /alert Aug 25 22:08:57 so you're asking how to show a dialog? Aug 25 22:09:02 have you tried googling it? Aug 25 22:09:08 or searching for "dialog" on d.android.com? Aug 25 22:09:17 there seems to be so many ways to do it. but most articles are quite old (2008-2010) Aug 25 22:09:37 Look up DialogFragment Aug 25 22:09:37 AlertDialogFragment is quite nice Aug 25 22:09:55 wut Aug 25 22:10:04 this should work I suppose : new AlertDialog.Builder(this).setTitle("Argh").setMessage("Watch out!").setNeutralButton("Close", null).show(); Aug 25 22:11:10 It'll work, yeah Aug 25 22:11:26 I asked the question above as I noticed showing a simple alert was a 6-8 liner. wasn't expecting that long :D Aug 25 22:11:48 i dont like chained method calls like that Aug 25 22:11:55 you're doing 5 things Aug 25 22:11:59 it should take 5 lines Aug 25 22:13:47 tss Aug 25 22:14:17 ? Aug 25 22:14:50 canadiancow the one I saw was way way way bigger than that. was setting buttons and actions, and so on. and eclipse was saying function is depreciated. thats why I was asking :) Aug 25 22:15:11 yes Aug 25 22:15:15 you shouldnt use AlertDialog Aug 25 22:15:21 or at least not directly Aug 25 22:15:24 it's all about the fragments Aug 25 22:15:36 android is very fragmented these days Aug 25 22:18:06 to be honest, I was expecting android development to be far simpler than this! but it seems that even when something works on the emulator, it may not work on your phone :| Aug 25 22:19:07 that's not good Aug 25 22:21:58 just as an update, you were right. that code didn't work :| Aug 25 22:23:47 sinaa: I don't even bother with the emulator unless I am doing something really basic Aug 25 22:23:50 do you need xml layouts for dialogfragment? Aug 25 22:23:57 no? Aug 25 22:26:01 ftc, but its a pain to sign the app and get it on my phone ! even the emulator takes some time! Aug 25 22:26:09 sign the app? Aug 25 22:26:16 ??? Aug 25 22:26:22 you mean click the "run" button in eclipse? Aug 25 22:26:24 that is a pain Aug 25 22:26:29 it should just deploy automatically Aug 25 22:26:38 and like...wahts with writing code Aug 25 22:26:38 eclipse can run it on your phone automatically and attach its debugger to it Aug 25 22:26:41 wonderful thing Aug 25 22:26:41 it should do that automatically too Aug 25 22:26:46 lol Aug 25 22:26:50 almost does Aug 25 22:26:55 ctrl space plus auto fix Aug 25 22:27:16 canadiancow, this seems massive http://developer.android.com/reference/android/app/DialogFragment.html Aug 25 22:27:31 ftc, yeah, while exporting. Aug 25 22:27:46 sinaa: you don't need to export it to test it on the device Aug 25 22:28:10 I lost my GS2 usb cable (or at least dont know where it is) Aug 25 22:28:21 and dont think it works OTA Aug 25 22:28:27 ah, highly recommend getting one Aug 25 22:28:38 its called a micro usb cable, and they are about 30 cents on amazon Aug 25 22:28:52 or best buy has them for 15$ as I recall Aug 25 22:29:14 if you happened to live near me I would just give you one, I have a ton of them Aug 25 22:29:21 ftc, isn't it a simple mini-usb cable? $15 ?!!! Aug 25 22:29:37 best buy f***s you for cables Aug 25 22:29:47 that is why its better to order them on amazon Aug 25 22:29:49 get 10 or so Aug 25 22:30:32 I guess I can find one for £1 or less on ebay. (UK here) Aug 25 22:31:32 yeah, they are cheap if you get them online Aug 25 22:31:34 Guys, could someone explain me even briefly if it bothers you, how to use the setOnItemClickListener, I want to do something when I click on an Item in my Listview, I think it's the right command though I find the explanation on Android Developer a bit unclear. That would be great, in advance, thanks Aug 25 22:31:54 but sometimes its worth the $14.70 to not loose a day of work Aug 25 22:33:58 J--On: wrote a simple example here: http://pastie.org/4588372 Aug 25 22:34:02 I'm having a problem with 'Export Android Application' - it's let me select 'Use existing key' and select the alias, but it won't let me type in the password: box, and the Next and Finish buttons are greyed out - this may be my 1st time of doing this after a reinstall - any suggestions? Aug 25 22:34:13 ^ from eclipse Aug 25 22:34:16 Yep i'm going to do that, thanks Aug 25 22:34:41 @ftc thanks again :) Aug 25 22:34:48 no worries Aug 25 22:35:19 One thing though, it was about list not button Aug 25 22:35:31 ooh weird; I just got it to work - I had to select the input method - wtf? Aug 25 22:35:33 same thing applies to a list item as I recall Aug 25 22:35:52 just look at whatever item you have in the list and look for an onclick, it may be in the list if its not there Aug 25 22:36:00 if its in the list it will probably pass a list object Aug 25 22:36:10 But my items arend defined yet Aug 25 22:36:23 may want to add an item to it first then Aug 25 22:36:25 deviceslist.add(device.getName() + "\n" + device.getAddress()); Aug 25 22:36:34 Thoses are my items Aug 25 22:36:50 depending on how much bluetooth paired devices i have Aug 25 22:37:03 you will want to sepparate that from your list code Aug 25 22:37:23 Hmm not sure to understand Aug 25 22:37:34 i haven't used lists yet but you may want to do a simple list example where you are just adding strings to it or something Aug 25 22:37:45 then when you understand that it will be easier to deal with adding the bluetooth devices Aug 25 22:38:03 i am also new to android :P Aug 25 22:38:07 ^^ Aug 25 22:38:23 It works, the only problem is to get what's inside the list right now Aug 25 22:38:57 By clicking on it Aug 25 22:38:58 in java swing the objects added to a list were something like "class foo extends listobject" Aug 25 22:39:08 then you put a callback in there for when it was clicked Aug 25 22:39:23 so your list would be a list of classes that extend listobject Aug 25 22:39:59 hmmm Aug 25 22:40:11 J--On: have you used design patterns at all? Aug 25 22:40:42 Nop Aug 25 22:41:12 http://pastie.org/4588402 here is my whole code Aug 25 22:41:13 I highly recommend getting a book and learning about them, makes developing stuff like this way easier, the one that they use for this is called a "strategy pattern" Aug 25 22:42:21 Thing is, I juste want to make one app, that will work with another thing, actually the app is juste one small part of the project Aug 25 22:42:31 you will thank yourself for reading this: http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612/ref=sr_1_1?ie=UTF8&qid=1345934529&sr=8-1&keywords=design+patterns Aug 25 22:43:26 It's a "How to think when developing" ? Aug 25 22:43:43 its a "here are recepies for putting programs together" Aug 25 22:43:50 Hmm nice Aug 25 22:44:09 things like the strategy pattern where you have a list of objects that you want to put into a list that is being displayed Aug 25 22:44:33 so you make your display list take some class called ListObject Aug 25 22:45:29 then for each object you make a class like "class BluetoothObject extends ListObject" so you can have functionality in there for a bluetooth device and perhapse if you want things on the wifi too you can have "class WifiObject extends ListObject" Aug 25 22:45:47 and they can both go in the same list since list takes things of ListObject type Aug 25 22:46:05 I kinda see what you're saying Aug 25 22:46:21 the docs make a hell of a lot more sense after you have learned about design patterns Aug 25 22:49:40 hmm, that book I recommended appears to be for C++ Aug 25 22:49:50 ask around and see if someone has a java version Aug 25 22:50:03 the C++ one is pretty similar except the code examples are in C++ not java Aug 25 22:50:18 J--On Aug 25 22:50:23 I'm going to search over the internet Aug 25 22:52:41 ok agreed, its faster than an emulator ! lol Aug 25 22:54:08 but what to do when the application throws exception and hangs? Aug 25 22:55:39 It doesn't hang.. it shuts down Aug 25 22:57:32 my phone just hangs for like 2 minutes until it lets me click ok on the error message Aug 25 22:59:36 What's the error message Aug 25 23:00:28 sinaa: I think I saw that when I managed to cause a segfault in my jni code Aug 25 23:02:08 penguin42: how did you segfault java? Aug 25 23:02:28 theoretically it shouldn't do that :P Aug 25 23:02:39 ftc: It was jni code not java Aug 25 23:02:44 the usual error when an application fails. (when it throws an exception) Aug 25 23:02:45 ah that makes sense Aug 25 23:03:55 has anyone tried defining their own soft keyboard layout for a particular application? Aug 25 23:04:56 * penguin42 needs to enter hex, and the full size soft keyboard is taking up way too much space and is a pain for entering hex Aug 25 23:09:13 what layout style do you guys use the most? and which one do you suggest? Aug 25 23:20:11 does anyone know how applications like facebook, google+, ... check for new messages in the background? Aug 25 23:20:59 Service Aug 25 23:21:48 wongk-home, hmm, this is a good start? http://www.vogella.com/articles/AndroidServices/article.html Aug 25 23:24:23 sinaa: vogella.com article are typically good, but d.android.com is typically better Aug 25 23:25:13 wongk-home, thanks :) Aug 25 23:30:34 wongk-home, I have taken a look at service on d.android, but my main concern is how can I check for new messages every few minutes/seconds. (and have minimal resource usage) Aug 25 23:30:59 ADT refused to regenerate R until after I had closed project, killed eclipse, opened project, clean Aug 25 23:31:23 sinaa: every few minutes or seconds? you can't. that's guaranteed to kill a phone batteryu Aug 25 23:32:35 wongk-home, how do applications like messengers work then? dont they check for updates? Aug 25 23:32:50 push messages Aug 25 23:33:03 push is one way Aug 25 23:33:11 or checking periodically Aug 25 23:33:21 maybe every half hour, every hour Aug 25 23:33:52 but if you have a lot of data coming in over push, your still going to kill the battery Aug 25 23:33:55 don't you have to request to get push messages? Aug 25 23:34:17 that would, by definition, not be push Aug 25 23:34:22 its gonna be a less than 1KB json array. thats all Aug 25 23:35:09 push also uses the battery more aggresively than pull Aug 25 23:35:32 for any reasonble poll interval Aug 25 23:36:06 looking at push it seems that it keeps a persistent connection and sends keepalives, right? Aug 25 23:36:45 yes Aug 25 23:37:40 and what is pull? looked it up, google brings up BS Aug 25 23:37:50 polling Aug 25 23:39:23 " push also uses the battery more aggresively than pull " . is it the same as what I was talking about before? Aug 25 23:39:38 there are also technologies like Google Cloud Messaging... but those require a server Aug 25 23:40:06 that depends on the amount and frequency of data Aug 25 23:40:29 I am stuck on problem. Is this a good place to ask question about KeyboardView class? Aug 25 23:40:36 Gotta go, see ya Aug 25 23:41:59 wongk-home, so if I want to do it less occasional than minutes/seconds and do it in every 15 or 30 minutes, how can I do something like that? (what do experienced developers do in this case) Aug 25 23:42:38 use AlarmManager and PendingIntent to start a service Aug 25 23:43:57 ok will look them up. thanks for the help :) Aug 25 23:45:01 sinaa, look into SYncAdapter Aug 25 23:48:14 saik0, thanks will look that up too Aug 25 23:51:59 interesting, i haven't see SyncAdapter... it does seem to reuqire the use of AccountManager and ContentProvider, though Aug 25 23:53:06 Quick security question Aug 25 23:53:23 broadcast intents should be used if you need to send an Intent with sensitive data, correct? Aug 25 23:54:33 broadcast intents are for broadcasting, the sensitivty of the data doesn't dictate their use Aug 25 23:54:47 right Aug 25 23:54:55 you will want to require permissions for sensitive data, though Aug 25 23:55:13 right Aug 25 23:55:18 which is what i was going for Aug 25 23:55:21 sweet Aug 26 00:09:51 does anyone know why the built apk contains the actual source code? (and if theres a way to have it compiled) Aug 26 00:10:05 it doesn't Aug 26 00:10:48 it doesn't Aug 26 00:11:03 and if you have this brilliant idea of extracting it from .apk - good luck Aug 26 00:11:22 that's actually not hard Aug 26 00:11:37 I just changed the apk to .zip and it actually contains my raw source code Aug 26 00:12:06 i have explored many apks, none have uncomplied source Aug 26 00:12:15 is there any sort of configuration that enables/disables it ? Aug 26 00:12:41 uhm Aug 26 00:12:47 it contains the xmls converted to a binary format Aug 26 00:12:54 and compiled dalvik bytecode Aug 26 00:13:07 if it has java source, you're doing something wrong. Aug 26 00:13:11 yeah, that's it Aug 26 00:13:25 binary resources and bytecode Aug 26 00:13:48 and if you think your xmls are "source" Aug 26 00:13:54 I was expecting bytecode, but it has my raw main activity for some reason Aug 26 00:13:55 then you're also doing something wrong :P Aug 26 00:14:18 it should not have any .java or .class files in it Aug 26 00:14:20 zinx, thats why I'm asking in the first place :D Aug 26 00:14:26 should just be the .dex and the resources Aug 26 00:15:31 there are some tools that claim that they can approximatly reconstruct source code from .apk Aug 26 00:15:35 but I've had little success Aug 26 00:15:47 i have much success with that Aug 26 00:15:48 nevermind, just figured whats wrong :| been on this for such a long time that I'm getting stupid ! Aug 26 00:15:53 it's a snap Aug 26 00:16:03 wongk-home, recommend a tool? Aug 26 00:16:13 dex2jar & jd-gui Aug 26 00:16:18 ^_^ Aug 26 00:17:14 ive done that before Aug 26 00:17:16 its not great Aug 26 00:18:06 this makes me wonder, do such tools exist for .net apps as well? Aug 26 00:18:13 i keep forgetting that if i book flgihts through my bank, i get massive rewards Aug 26 00:18:17 i'm sure Aug 26 00:18:23 this is teh second time ive booked a flight and cancelled it within 10 minutes Aug 26 00:18:25 sinaa, source code from .dll? Aug 26 00:18:35 no way Jose Aug 26 00:18:51 and I am still skeptical about .apk to source code Aug 26 00:18:58 but I will give it another go Aug 26 00:19:24 asking because .net translates c# VB and c++ to its common language Aug 26 00:19:31 has anyone got any of the mechanisms for completely disabling softkeyboard in an app to work - everyone I've tried seems to be ignored Aug 26 00:20:00 only managed C++ Aug 26 00:20:11 and no one actually uses that :P Aug 26 00:20:16 yeah talking about .net and managed environment Aug 26 00:20:53 sinaa: yes, there are .net disassemblers/decompilers Aug 26 00:20:57 sinaa: there are ARM ones too Aug 26 00:21:03 sinaa: and of course x86 ones Aug 26 00:21:38 zinx, hmmmmm Aug 26 00:21:57 java/.net are easier than say ARM or x86 to disassemble because they represent bits of the information about the classes in the bytecode of their virtualmachine Aug 26 00:22:06 penguin42: yes Aug 26 00:23:40 SpearThruster: apk to *usable* source is easy Aug 26 00:23:52 well, usable assembler source :) Aug 26 00:24:32 native ARM to usable x86 asm source isn't that difficult :/ Aug 26 00:24:34 erhhh Aug 26 00:24:37 usable ARM asm source Aug 26 00:24:42 slip there :P Aug 26 00:25:27 granted, you have to figure out a lot of the stuff that stuff like java/.net just tell you outright Aug 26 00:25:48 zinx: I can believe arm to amd64, otherwise you have to do play with register remapping :) Aug 26 00:26:13 p_l: hehe Aug 26 00:27:04 p_l: Not if you assume that every ARM register is a location on the x86 stack, and x86 does fast stack access Aug 26 00:27:31 penguin42: it will still be quite slower than proper register remapping Aug 26 00:27:43 p_l: Yep Aug 26 00:29:56 well the one case I needed it, because a friend fucked up his .git repo Aug 26 00:30:04 and decided to shift+delete it Aug 26 00:30:10 but he had his dev version on his phone Aug 26 00:30:26 he didn't had much success Aug 26 00:30:41 it doesn't produce compilable source Aug 26 00:30:43 basically he wanted to reclaim his workable source code Aug 26 00:31:18 well, I had success decompiling android apps and recompiling them back, at least the non-ndk ones Aug 26 00:34:07 p_l: Did the decompiled code look in any way at all understandable? Aug 26 00:35:00 penguin42, see that's the thing I doubt Aug 26 00:35:04 :> Aug 26 00:35:15 indeed Aug 26 00:35:16 btw, has anyone tried building android apps via C# and mono? Aug 26 00:35:17 penguin42: I modified it afterwards :D Aug 26 00:35:22 penguin42: despite it being obfuscated Aug 26 00:35:38 p_l: Still, it can't be worse than tweaking the byte code Aug 26 00:35:57 penguin42: I was modifying dalvik assembly (smali/baksmali format) Aug 26 00:36:13 p_l: Yeuch Aug 26 00:36:42 quite readable, actually Aug 26 00:36:49 SpearThruster: you probably can if it does java bytecode Aug 26 00:37:25 SpearThruster: i wouldn't use some .NET CL bytecode <-> Java bridge, though. Aug 26 00:37:44 SpearThruster: and C# without the C# runtime is kinda dumb :P Aug 26 00:38:34 yeah but Visual Studio 2012 >>>> Eclipse Aug 26 00:38:56 if you say so Aug 26 00:39:13 and C# is really amazing language... both feature and synthax wise Aug 26 00:39:36 can't believe that there isn't any Full Dark theme for eclipse from the get-go Aug 26 00:39:54 uses my gtk+ theme here. Aug 26 00:39:54 and currently it all rests on one guy who does it... but it still doesn't look right Aug 26 00:40:01 printscreen? Aug 26 00:56:18 #pirateradio Aug 26 01:06:12 holy crap, this is fucking awesome http://news.ycombinator.com/item?id=4433832 Aug 26 01:06:35 glad i didn't invest lots of money in big lenses yet :) Aug 26 01:12:13 i've decided i'm going to take out a patent on chewing food. Aug 26 01:12:18 that is all. Aug 26 01:14:36 I have a UDP server running on the phone do I have to restart it everytime the internet connection goes down on the phone? Aug 26 01:15:31 and comes back up Aug 26 01:34:25 i've noticed two apps can have the same name, how about the developers name is that unique? Aug 26 01:38:23 Apps just need to have a unique package name Aug 26 02:09:10 SimonVT, what about the developer's name, is that unique? Aug 26 02:13:15 yes Aug 26 02:22:12 is there anyone who has experience with cookies? Aug 26 02:44:20 Does anyone have any thoughts on what is the best way to create a global set of variables to be used between multiple fragments. I know this may be frowned on, but I have a situation where one fragment will create a connection/collect data, and another fragment will display some information. Aug 26 02:44:34 It is actually the best way to handle the data in this case. Aug 26 02:44:48 I have looked into making a class that extends application, but wasnt sure if this is the best? Aug 26 02:49:19 anyone have any thoughts? **** ENDING LOGGING AT Sun Aug 26 03:00:00 2012