**** BEGIN LOGGING AT Mon Apr 08 02:59:58 2013 Apr 08 03:00:05 i have a textView variable, need to retrieve value Apr 08 03:00:18 like i said, use textView.getText Apr 08 03:00:25 k Apr 08 03:01:15 textView.getText().toString() if you want it as a string Apr 08 03:15:16 ADB cannot see my devices, even though when I run "udevadm info -q all -n /dev/bus/usb/002/014" for my phone it correctly can identify it with my udev rules.d Apr 08 03:15:26 Im not sure what I am missing can anyone assist? Apr 08 03:17:01 I'm getting data from a ContentProvider from a CursorLoader, then displaying in a ListView. I was wondering what I should do if I wanted to post-process the data after I got it out of the table (i.e. I want to turn each row into a class, and /then/ display it). Just a point to a relevant method to override or something would be great. Apr 08 03:17:38 Lax: you can't see it or it's offline ? Apr 08 03:18:39 bankai_: The phone is online, USB debugging is turned on. I see in 'dmesg' and 'lsusb' that it correctly sees the phone. But no matter what when I run 'adb devices' the list is completely blank. ADB cannot see the phone, but Im not sure why Apr 08 03:20:19 ho hum... do you have the USB debugging notification on your phone, do you see it if you run adb as root ("adb kill-server && sudo adb devices")? Apr 08 03:20:59 Leeds: Yeah I do see the USB debugging icon on the phone. Im running adb as root as well. Apr 08 03:21:00 tried - potentially - different cable, preferably original? tried a direct connection, if you're using a hub? tried a different port? Apr 08 03:21:09 do you have a weird device? Apr 08 03:21:29 (or a weird Linux) Apr 08 03:21:50 Running Ubuntu 12.04 LTS... It's a newer device, Moto Photon Q but its not that new, not bleeding edge. Let me try a different port. Apr 08 03:22:59 Bah, different USB port and still nothing... Do I need specific moto drivers on the PC? Apr 08 03:23:10 not on Linux, no - only Windows needs Android drivers Apr 08 03:23:15 anyone doing any NDK dev here? Apr 08 03:23:17 Thats what I thought. Apr 08 03:23:19 Hrm Apr 08 03:23:55 give your phone a kick, see if that helps Apr 08 03:25:00 woohoo thanks bankai_ - the most basic patronising piece of not-help you could possibly provide hehehe Apr 08 03:25:13 just to double-confirm... you say you're running adb as root - have you actually done the kill-and-restart-as-root thing I suggested? if you ran it the first time as non-root, it leaves a daemon running which will continue as non-root even if you run the adb tool as root afterwards Apr 08 03:26:10 it'd still see the device, it'd just be 'offline' Apr 08 03:26:37 Leeds: Yes, check this pastebin for what I am seeing http://pastebin.com/Tsui0RPP Apr 08 03:27:12 lol @ spaceship ;) Apr 08 03:27:16 :) Apr 08 03:28:20 dunno... got an up-to-date SDK? Apr 08 03:29:04 Leeds: Im just running flat ADB, not the full SDK. Trying to root the phone (just got it). So I just have ADB on the PC Apr 08 03:29:05 wait Apr 08 03:29:12 i'm out of the loop here Apr 08 03:29:15 where did you get adb from then? Apr 08 03:29:21 but is ADB not seeing your device? Apr 08 03:30:07 did you put your device's vendor ID in ~/.android/adb_usb.ini ? Apr 08 03:30:07 if your phone is running a recent version of android an older adb probably won't see it Apr 08 03:30:16 HorizonXP: don't need it for a moto device Apr 08 03:30:21 I got it from a user on XDA, he pulled it from the SDK. I can try and grab the full SDK and give it a whirl...? Apr 08 03:30:40 HorizonXP: I put the vendor ID in the udev/rules.d/70-android.rules Apr 08 03:30:41 absolutely use the full SDK rather than a random binary, yes Apr 08 03:30:45 Leeds: ok. that's what I needed for a Chinese device Apr 08 03:31:02 HorizonXP: yes, for non-supported vendors, you do need that Apr 08 03:31:15 Leeds: Ok Ill give that a shot. Apr 08 04:02:39 Leeds: Ok Ive installed the latest Java7, and SDK and still no luck with adb finding the device.... Apr 08 04:04:34 are you using the adb that came with the SDK? :P Apr 08 04:04:51 bankai_: Yeah, running it straight from the platform-tools directory Apr 08 04:07:32 Let me try to kill the server and start it again to be sure Apr 08 04:17:48 Hi guys can someone help me please? if you're not busy Apr 08 04:18:10 enwary: have you tried turning it off and on again? Apr 08 04:18:21 I have a server made in java and I'm trying to get my phone connecting to it but I get an error saying connection refused Apr 08 04:18:38 but it works fine when I'm working on it at my brothers house Apr 08 04:18:54 I forwarded my ports and change all the ip and port info in the files Apr 08 04:19:13 but still connection refused, do you think you can help please? Apr 08 04:20:50 how can I know why a onclick event from a xml is not generated? Apr 08 04:25:56 Please help me Apr 08 04:30:45 Leeds: Still no luck using the SDK. Here the pastebin showing Im running adb from the SDK for sure... Im baffled. http://pastebin.com/vgyrJ1DG Apr 08 04:31:00 enwary: going to detail your network configuration a bit more, your question is very vague Apr 08 04:35:41 did you try a new cable? Apr 08 04:36:03 bankai_: Ill grab one now. Apr 08 04:36:17 did you plug in the device to the power outlet? Apr 08 04:36:19 heh Apr 08 04:36:30 Lax: do you have a custom ROM on there? Apr 08 04:37:06 bankai_: No, this is a brand new phone. That is why Im trying to get adb to work so I can root it and play with it. Apr 08 04:37:12 ahh gotcha Apr 08 04:38:00 one of my HTCs, before a ROM upgrade, had issues holding a USB connection for longer than a few seconds -- very irritating Apr 08 04:40:12 No luck with other cable. This is a bummer. Apr 08 04:40:20 Leeds, the last of my docs changes were finally merged in :P Apr 08 04:40:43 but the site hasnt been updated yet Apr 08 04:46:14 i'm trying to add a border to the bottom of a view, but when I set the background to a layer-list and set the Thanks everyone for the help. Ill try again tomorrow and hopefully cover some ground. Have a good night Apr 08 05:24:13 Hi,my first time using irc :) Apr 08 05:30:56 nobody online? Apr 08 05:31:12 maven: bad time of week Apr 08 05:34:29 Leeds: why,it's Monday today Apr 08 05:34:59 in Europe and America it's either Sunday night or early Monday morning Apr 08 05:35:20 Oh my god, time zone. :( Apr 08 05:37:38 yeah... presumably you're in asiapac Apr 08 05:40:52 Right, I am a Chinese guy. Apr 08 05:48:45 with a Hebrew/Yiddish name :) Apr 08 05:50:05 how is China this afternoon? Apr 08 05:50:25 damn, i lost it. Has anyone played with a new-ish concurrency library for Java that was modeled, but an improvement over, FutureTask ? Apr 08 05:50:41 its kinda new, looked nice, and thought i would try it on anadroid Apr 08 05:50:47 *android ;) Apr 08 05:53:06 fuck yeah, that was PITA to find again http://www.infoq.com/news/2013/02/RxJava Apr 08 05:53:16 What command generates the R class? Apr 08 05:57:29 aapt creates R Apr 08 05:58:08 * g00s isn't sure if thats one of those: you you really mean what you're asking questions Apr 08 06:02:32 hm, apparently RxJava supports Android ;) Apr 08 06:02:52 * g00s adds RxJava to his batbelt Apr 08 06:02:57 that's what they say in that article.. Apr 08 06:03:07 what's the api like Apr 08 06:03:15 I'm too tired still to read the source :p Apr 08 06:03:36 hehe, i'm tired too … allergies have been kicking my ass so bad this year Apr 08 06:04:23 I just woke up Apr 08 06:04:35 still in bed... trying to get up to get to work Apr 08 06:05:10 I forgot to charge my android during the night though so it had 1% battery left when I woke up Apr 08 06:05:27 have to charge it before I can leave :) Apr 08 06:05:47 Zharf: can't wait until the Lilliputian fuel cell stuff is out Apr 08 06:06:05 what's that Apr 08 06:06:18 http://www.fuelcelltoday.com/news-events/news-archive/2013/january/nectar-lilliputian-debuts-its-long-awaited,-long-lasting-portable-fuel-cell-at-ces Apr 08 06:08:14 so a portable usb charger? Apr 08 06:08:37 yeah, there are a bunch that use lithium batteries already Apr 08 06:08:49 this looked interesting - thought it had higher power density Apr 08 06:09:14 * g00s breaks out his Mr Fusion ;) Apr 08 06:10:07 I suppose it might be cool but I probably wouldn't pay that much for that :p Apr 08 06:12:08 yeah, Mr Fusion is expensive Apr 08 06:12:33 but its awesome being able to throw banana peels and other rubbish in there Apr 08 06:15:11 i thought this was pretty interesting article about FB Home http://www.mondaynote.com/2013/04/07/facebook-home-another-android-lock-pick/ Apr 08 06:15:26 g00s: I prefer Lil' Miss Singularity ;) Apr 08 06:15:53 p_l: :O Apr 08 06:16:09 (unadvisable to use on planetary surfaces, or close to other massive bodies) Apr 08 06:16:32 Leeds: A fine day today.(I just mean the weather). Apr 08 06:17:18 p_l: http://news.yahoo.com/mini-black-holes-easier-thought-172430218.html Apr 08 06:17:47 Is there anyone have the experience of development like google map? Apr 08 06:22:24 g00s: nice Apr 08 06:23:44 p_l: is your tree style tabs acting weird with ff 20 ? Apr 08 06:24:58 didn't upgrade to 20 :D Apr 08 06:25:04 ... or at least I think so Apr 08 06:25:19 heh, i thought its usually automatic :D Apr 08 06:25:24 19.0.2 on the latest machine Apr 08 06:25:30 g00s: distro packages Apr 08 06:25:46 I don't have autoupdate on chrome too, at least on linux machines Apr 08 06:25:49 (windows, yeah) Apr 08 06:46:17 does anyone know if there's a way to figure out what the Binder service was trying to call in my app? Apr 08 06:46:51 I keep getting a C++ level crash in my app, and I'm trying to determine what the Binder driver is trying to call, yet not finding. Apr 08 06:54:45 I'm getting JNI errors when retrieving a rather large list from getResources().getStringArray - is there any way I can get this in a compressed form? Apr 08 06:54:52 It's only API 2.3.7 that's having an issue with it. Apr 08 06:59:17 ... Apr 08 07:15:22 fall large = ? Apr 08 07:15:47 Probably around 3000 items. Apr 08 07:16:26 Make that 5000 items. Apr 08 07:16:36 maybe stash it in assets or sql Apr 08 07:16:48 stash in assets ay Apr 08 07:16:52 * Fall strokes goatee Apr 08 07:29:01 hey xorgate, thanks for point me at 'world of listview' in google i/o. It answer my unasked question. Apr 08 07:29:36 great Apr 08 07:29:55 World of listview? link plz :) Apr 08 07:33:18 bing it Apr 08 07:33:43 :) Apr 08 07:35:27 bing is only good for one thing... Apr 08 07:36:14 i wonder if some day apple will have a search engine Apr 08 07:40:31 Zharf: i hope you got out of bed by now :) Apr 08 07:42:35 yeah I'm at the office Apr 08 07:56:43 good morning Apr 08 08:04:29 hi should it be possible to add multile actions to a notification? i have the problem that when i attach to actions with two different pending intents i only get the first or the last intent no matter what button i press (first or last depends on intent flags) Apr 08 08:35:19 http://dpaste.com/1050923/ why the canvas.drawBitmap does not work as I expect inside the SurfaceView? Apr 08 09:12:35 what possible ways are there to set the name of my project? (I'm using java and ant.) for some reason, it just shows as "main". Apr 08 09:12:54 I did "android update project --name foo --path . -s --target 1" Apr 08 09:13:09 and changed project name in build.xml to foo. Apr 08 09:14:29 what's a "project"? Apr 08 09:14:38 an activiy title? Apr 08 09:14:42 a name in eclispe? Apr 08 09:14:54 a line in ant when compiling? Apr 08 09:14:59 I don't use eclipse. I just mean the program that is installed to the phone. Apr 08 09:15:12 as in the activity you use to start the program. Apr 08 09:15:21 this is the activity title Apr 08 09:15:32 check the manifest.xml Apr 08 09:16:00 there is no manifest.xml Apr 08 09:16:13 you mean AndroidManifest.xml, I assume? thanks. Apr 08 09:16:14 AndroidManifest.xml Apr 08 09:17:05 monsti: changed that name. still doesn't work. =/ Apr 08 09:17:13 there are more names Apr 08 09:17:19 there is the application name Apr 08 09:17:23 check this in the manifest Apr 08 09:18:14 monsti: I think maybe res/values/strings.xml is the culprit Apr 08 09:18:18 android:label Apr 08 09:18:22 yes Apr 08 09:18:36 that's done in an indirect way Apr 08 09:19:00 i assume you like coding software in a sadomasocistic way? Apr 08 09:19:08 what do you mean? Apr 08 09:19:09 lol Apr 08 09:19:23 with eclipse (as buggy/bloated eclispe is) you can change this with one click Apr 08 09:19:25 this is what android create project did, for some reason. I specified the name when I made it. Apr 08 09:20:57 also I assume changing it in res/values/strings.xml in the first place would have just fixed it. Apr 08 09:21:04 works now in any event. thanks. Apr 08 09:21:10 yeah ;) Apr 08 09:48:55 humm i found a tutorial for andengine but i didnt get it to work at all Apr 08 10:30:09 nice morning Apr 08 10:31:43 depends where you are Apr 08 10:42:44 any way to make google maps fast on android with html/js ? Apr 08 10:42:47 or just natively Apr 08 10:43:02 i am trying to implement an autocomplete for a searchview on the actionbar from the database which contains a list of countries. any starting point on how it can be done ? Apr 08 10:43:57 harshamv: i think i've seen tutorials on that Apr 08 10:44:06 harshamv: look up Filterable Apr 08 10:44:29 should be a piece of cake.. chocolate mouse cake.. Apr 08 10:48:24 how discoverable is the flick to archive like in gmail? i've got it working but not sure if the users will figure it out. alternative is to have a button they can click Apr 08 10:49:45 i only found it by accident -- perhaps do a long press function as well, i think that's more predictable/expected Apr 08 10:52:02 bankai_: i use long press to trigger reordering. that's everywhere and users know that Apr 08 10:52:23 i might have the designer mock up something that says "HEY THIS IS HOW YOU USE THIS CRAZY THANG RIGHT HERE" Apr 08 11:03:45 funkbox: sorry i got disconnected Apr 08 11:04:10 harshamv: look up Filterable, lots of tutorials, not hard Apr 08 11:04:34 funkbox: the datasource can be a sqlite right ? Apr 08 11:05:15 data source doesn't matter, look it up Apr 08 11:05:27 thanks :D Apr 08 11:05:29 will do so Apr 08 11:12:59 If I have two applications where one application calls a function in the other application's service synchronously using binder, what construct would I use to multiplex these calls in the server application to be able to server more than one client at a time? The calls might take up to 10 seconds to return. Apr 08 11:17:15 I don't know the answer, but what have you actually tested ? Are you even sure the binder calls happen synchronously service-side ? Apr 08 11:21:31 Chainfire: as parameters can be modified during the call, the call is blocked until the server returns from the server-side implementation. Apr 08 11:23:09 by you? or by binder? Apr 08 11:25:54 The call blocks in binder Apr 08 11:26:16 It's just a synchronous method call **** BEGIN LOGGING AT Mon Apr 08 11:29:07 2013 Apr 08 11:29:35 Basically I'm just wondering if I have to care about blocking when different applications call the same service functionality which might block its clients for let's say 10 seconds. Are the client calls then handled in parallel? Apr 08 11:29:36 pleed: treat it as a network operation maybe; callbacks Apr 08 11:29:37 http://malsandroid.blogspot.com/2012/02/aidl-step-7-using-callbacks.html Apr 08 11:29:37 Hey, how can i force the suggestions to show when using a SearchView? right now they won't show untill the second letter has been typed..? Apr 08 11:33:55 g00s: I already have an AIDL based callback mechanism and I could do it asynchronously but blocking the client is considered a feature here and I'd implement the blocking in the client then. Apr 08 11:50:43 Hello :) Apr 08 11:55:42 hi Apr 08 11:55:46 anyone around? Apr 08 11:56:30 i'd like to learn fragments. Is it required to have for each fragment a separate class? is this needed? Apr 08 11:56:55 i just need a basic tabs navigation that loads xml layouts Apr 08 11:57:14 any help would be great **** BEGIN LOGGING AT Mon Apr 08 11:59:37 2013 Apr 08 11:59:53 yeah but its not clear to me, how do i attach a layout to a fragment? Apr 08 12:00:50 sup muchachos Apr 08 12:08:38 my newly aquired android book tells me to make games Apr 08 12:08:46 cause the best games are made by one person and the big companies are shit :P Apr 08 12:10:06 up up and away to droidcon :) Apr 08 12:11:19 what's a droidcon? Apr 08 12:11:31 droidcon.com Apr 08 12:11:59 hmmm Apr 08 12:12:10 guy I installed need advice Apr 08 12:12:13 guess after google i/o 2nd largest android android developer conference :) Apr 08 12:12:39 ah Apr 08 12:12:43 why not just go to io? Apr 08 12:12:55 ahh i see, nvm Apr 08 12:13:10 I was recommended in here.. android engine libgdx for wanting to learn about 2d game making Apr 08 12:13:23 I downloaded the book aswell.. 'Android game making' something like that.. Apr 08 12:13:26 because traveling to IO is a bit more expesnvie from here, since its literally around the world Apr 08 12:13:37 and io is this year, while i am already on holidays :) Apr 08 12:13:45 but its from 2011.. should I be reading books 'that old' Apr 08 12:13:46 :) Apr 08 12:15:17 no opinions ? :) Apr 08 12:48:02 Is it possible to create widgets to interact with other applications without having access to those application's source? Apr 08 12:48:16 Like say, make a widget that would run the "Add Note" button of ColorNote ? Apr 08 12:48:19 P3nnyw1se: the android game book isn't horrible. it will teach you the foundations of libgdx Apr 08 12:54:49 good morning everybody Apr 08 12:55:22 i have a viewpager that inflates a fragment with views hoy can i update them? Apr 08 12:58:10 everytime someone slides a page you give it a new instance Apr 08 12:58:31 in your adapter Apr 08 13:00:07 yep as in the tutorial Apr 08 13:00:19 http://developer.android.com/training/animation/screen-slide.html Apr 08 13:00:51 public Fragment getItem(int position) { Apr 08 13:00:51 return new ScreenSlidePageFragment(); } Apr 08 13:00:53 it creates a new ScreenSlidePagerFragment() Apr 08 13:00:57 yeop Apr 08 13:01:31 i want to pass arguments to that fragment and update the view in my fragment Apr 08 13:01:37 how can i do that? Apr 08 13:03:18 Don't return a new fragment everytime and call getItem Apr 08 13:04:29 then? Apr 08 13:05:27 Then u have the instance of your fragment. Do w/e u want with it lol Apr 08 13:07:46 im sorry what does w/e means? im from Mexico Apr 08 13:09:13 "whatever" Apr 08 13:09:36 popers: ^^ Apr 08 13:09:49 ok thanks Apr 08 13:10:19 then, how can i pass info to my fragment? Apr 08 13:11:02 popers: do you have a FragmentPagerAdapter? Apr 08 13:11:35 yes Apr 08 13:11:51 http://stackoverflow.com/questions/11728203/replacing-fragments-correctly-within-viewpager Apr 08 13:12:45 just pass the arguments to the fragment class and return a new instance ? Apr 08 13:13:03 popers: Bundle args = new Bundle(); args.putInt(FragmentView.ARG_SECTION_NUMBER, 42); fragmentView.setArguments(args); Apr 08 13:13:38 popers: the stackoverflow question contains code similar to that, but the question isn't about passing args. Apr 08 13:14:28 but i've to implement onCreate on my Fragment? Apr 08 13:15:29 popers: onCreatView, yes Apr 08 13:15:41 I still don't see why not just getting a new instance Apr 08 13:15:42 ? Apr 08 13:16:32 popers: or you could see if you can access savedInstanceState (The Bundle set in fragmentView.setArguments(args)) from anywhere else Apr 08 13:17:24 joar really Apr 08 13:17:51 I have an issue that I use viewPager in portrait.. and I don't in landscape.. in landscape I show 2 fragments in 2 views Apr 08 13:17:56 in portrait just the one Apr 08 13:18:04 I can't seem to figure out how to use the same fragments Apr 08 13:18:12 so I end up having a portrait fragment and a landscape fragment Apr 08 13:18:49 is it needed to setContentView inside Fragment? Apr 08 13:19:04 I have a LinearLayout containing [TextView height=40dp, ViewPager height=match_parent, LinearLayout height=40dp], when rendering the bottom is shown outside of the screen. Apr 08 13:19:08 BulleTime: no Apr 08 13:19:12 anyone displaying admob ads, have you noticed improvement when using keywords for the ads? Apr 08 13:19:22 how would it find correct layout then? Apr 08 13:20:15 joar the problem is Apr 08 13:20:23 lets say I switch to landscape.. in the viewPager Apr 08 13:20:32 in landscape I will then just use a fragmentManager Apr 08 13:20:45 but I don't know how to take out that viewPager hosted fragment Apr 08 13:20:52 or how to refer to the same objects Apr 08 13:20:54 onCreateView has a Bundle in its arguments i used them but i cant use findViewById Apr 08 13:21:01 in a fragment Apr 08 13:21:21 the thing is the FragmentPagerAdapter sets its own tags Apr 08 13:21:22 i have serveral classes with each a setContentView. How do i make these as fragment anyone knows? Apr 08 13:22:06 public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) Apr 08 13:22:06 { // Inflate the layout for this fragment Apr 08 13:22:06 return inflater.inflate(R.layout."Layout", container, false); } Apr 08 13:22:20 BulletTime Apr 08 13:22:46 how do I make these as fragments ? Apr 08 13:22:50 the same way you make an activity Apr 08 13:22:52 extend Fragment Apr 08 13:25:03 popers: Yes you can Apr 08 13:25:40 ScrollView specificationsView = (ScrollView) inflater.inflate( Apr 08 13:25:40 R.layout.specifications, container, false); Apr 08 13:25:40 LinearLayout specificationsMatrix = (LinearLayout) specificationsView Apr 08 13:25:42 .findViewById(R.id.spec_matrix); Apr 08 13:26:20 ok Apr 08 13:26:47 popers: that only searches within the inflated fragment though. Use getActivity().findViewById(R.layout.specifications); if you want to look in the entire activity. Apr 08 13:27:47 but that means that all fragments instantiated will be affected? Apr 08 13:29:34 popers: I'm not sure I understand what you are saying. Apr 08 13:29:57 P3nnyw1se: I don't unserstand what you're trying to achieve. I'm a novice Android/Java programmer myself. Apr 08 13:31:16 ok nevermind Apr 08 13:31:25 :D Apr 08 13:31:33 sorry for my english Apr 08 13:31:34 :D Apr 08 13:32:04 I even have issues with basic LinearLayout issues, (see my previous question) Apr 08 13:32:36 I want to have a LinearLayout that fits all its children into the visible space of the screen. Apr 08 13:33:24 LinearLayout [TextView height=40dp, ViewPager height=match_parent, LinearLayout height=40dp] doesn't do that. Apr 08 13:38:55 maybe you'll have to use weights Apr 08 13:39:54 layout_weights or use a RelativeLayout Apr 08 13:40:10 layout_weight im sorry Apr 08 13:49:04 popers: layout_weight helps a lot :) Apr 08 13:49:40 yes Apr 08 13:50:15 for performance you must use a relative layout and ids to identify all your views Apr 08 13:53:00 is it possible to update the action buttons of a Notification? or do i have to create a new Notification object through the Builder everytime? Apr 08 14:16:11 oh man, i cant get this andengine to work Apr 08 14:16:31 hi. my question is in this paste: http://pastebin.com/bmkJ9aB2 Apr 08 14:19:37 hi Apr 08 14:21:08 can you help me find, what external storage may have Huawei U9508 with Android 4? Apr 08 14:22:59 I am looking for mount and /sys/class/mmc_host for that device, any hints where could I find it? Apr 08 14:24:12 now i got you andengine :) Apr 08 14:24:49 superlinux-hp: what... does that extend? Apr 08 14:25:24 TheTrash, no extension.. Apr 08 14:25:54 superlinux-hp: getFilesDir() is your method? Apr 08 14:26:08 TheTrash, NOPE! it's android's Apr 08 14:26:14 From what? Apr 08 14:26:16 Activity? Apr 08 14:26:29 Files Apr 08 14:27:27 superlinux-hp: so this is a method in an activity? Apr 08 14:27:51 getFilesDir() is an method from android.os.Context class i think Apr 08 14:28:02 TheTrash, this is the path of the getFilesDir() : File android.content.ContextWrapper.getFilesDir() Apr 08 14:28:24 it's non static Apr 08 14:28:27 Safest way is to provide a context as argument to your static method. Apr 08 14:28:54 ok Apr 08 14:29:55 You could also set a context to a field of your activity and refer to that, but that's tricky since it needs to be done in onCreate, doing it on the static field or in the constructor is too early. Apr 08 14:30:26 So the general pattern you see for most things android is a context passed around... not pretty but the best of the worst solutions, I guess. Apr 08 14:32:37 there is reason why Context is not static variable, if you do not have to, do not try to make it global and static Apr 08 14:34:14 hey guys Apr 08 14:34:33 activity is a context... Apr 08 14:34:48 why would you make a member variable of activity point to your context Apr 08 14:34:51 i have a small code. This is my main activity, but it wont start (not found exception) anyone knows why? Apr 08 14:34:52 http://pastebin.com/BHd0Jxie Apr 08 14:37:02 good morning how can i update a fragment view from an activity Apr 08 14:37:18 popers, usually a fragmentactivity is the container/controller Apr 08 14:37:29 so you would update it from there, having access to each fragment Apr 08 14:38:37 anyone seen my code ^ Apr 08 14:38:43 its not much Apr 08 14:39:40 BulleTime: is it in your manifest correctly? have you cleaned your project? Apr 08 14:40:03 Hey guys, so I have a login page for my android app, but I would like the user to be kept logged in so that when he/she opens the app again, it goes straight into the main activity. I've searched online but to my understanding, using shared preferences only allow the username and passwords to be kept in the edittext fields. It doesn't really pick up from where they left off? Apr 08 14:40:31 Leeds yes its in my manifest. ill try cleaning Apr 08 14:41:28 BulleTime: "correctly" :) Apr 08 14:42:19 Im sorry i've an error in my computer Apr 08 14:43:02 my question was how can i update a fragment view from an activity, i use a viewpager and a FragmentStatePagerAdapter Apr 08 14:45:20 Leeds i removed more things only have setContentView left and still Exception Not Found Apr 08 14:45:22 http://pastebin.com/zEDv8yEX Apr 08 14:45:45 BulleTime: that's nothing to do with it Apr 08 14:46:02 is there good solution for devices with internal and external SDcard? Is there API extension for such design? Apr 08 14:46:05 yeah its extends FragmentActivity Apr 08 14:46:45 some people want to choose between "internal" and "external" sdcard, is there api for that Apr 08 14:46:45 pihhan: not really, it seems to vary by device Apr 08 14:46:55 do i have to do something special to get FragmentActivity to work? Apr 08 14:47:02 we've had to put in a ton of rules for checking different things Apr 08 14:48:22 though, i haven't checked in a bit, so i'm not sure if something was recently introduced into the API Apr 08 14:48:49 usually it's presented as "store to sd card" or "pick a directory" Apr 08 14:48:53 b/c it's wonky Apr 08 14:49:02 w/ newer android versions they're more consistently mounted Apr 08 14:49:04 Hey guys, so I have a login page for my android app, but I would like the user to be kept logged in so that when he/she opens the app again, it goes straight into the main activity. I've searched online but to my understanding, using shared preferences only allow the username and passwords to be kept in the edittext fields. It doesn't really pick up from where they left off? Apr 08 14:49:12 but it'd be bad to make assumptions Apr 08 14:49:42 coco89: you never want to store a username and password. Do a token exchange and store a login token; look at oauth Apr 08 14:49:58 dragorn, oauth? okay what about sessions? Apr 08 14:50:14 coco89: session tracking is your problem; you'll have to remember what they were doing and store that Apr 08 14:50:20 Leeds any idea? Apr 08 14:50:23 coco89: and figure out how to resume from that point Apr 08 14:50:39 coco89: if you're connecting to a webapp you can try to store their position in the token or something Apr 08 14:51:07 dragorn, okay, i mean i don't mind where they left off in the app actually just as long as their logged in so they dont have to log in everytime Apr 08 14:51:19 dragorn, so looking up tokens and oauth should be fine? Apr 08 14:52:13 coco89: for some definition of "fine". Security is very hard. If you're caching credentials you need to do some research into how you do that securely on android. At the minimum, you never want to save their login or password, you want to do a token exchange w/ something like oauth. There are other systems as well. Apr 08 14:52:58 dragorn, I see. So I'll look into oauth Apr 08 14:53:51 dragorn, thanks Apr 08 14:54:16 also, why Apr 08 14:54:45 security for a virtual puppy care app is different from something that may cost money Apr 08 14:54:59 SpeedEvil, was that question directed at me? :S Apr 08 14:55:24 * SpeedEvil is depressed to realise there are probably virtual animal apps that take real money now. Apr 08 14:55:46 what is the threat. Apr 08 14:56:15 hello. is it possible for an Android device to be connected to both a serial bluetooth device and bluetooth keyboard simultaneously? Apr 08 14:56:17 protecting from casually browsing 5 year olds, or state actors who are willing to use torture. Apr 08 14:56:46 nemik: should be fine Apr 08 14:57:05 nemik: you might see some problems establishing new connections if you're doing very high-bandwidth stuff like streaming audio over bt Apr 08 14:57:21 how can i update a fragment view from an activity, i use a viewpager and a FragmentStatePagerAdapter Apr 08 14:57:28 nemik: i find devices are a bit finicky then; if you establish the serial first the audio is fine, but if you're actively streaming audio you can't establish serial Apr 08 14:57:52 dragorn, am I on the right page http://developer.android.com/training/id-auth/index.html Apr 08 14:58:24 coco89: specifically oauth2, yes Apr 08 14:58:33 * coco89 doesn't know the difference Apr 08 14:58:44 but sure I will look it up Apr 08 14:58:45 cool Apr 08 14:59:07 coco89: on that page, the link to oauth2 Apr 08 14:59:26 sweet, thanks Apr 08 15:00:26 dragorn: thank you! i did just try it. i'm only using BT keyboard/mouse combo and low 9600 SPP BT module. seems to work perfectly so far, regardless which one is connected first. Apr 08 15:00:54 nemik: yeah those are low bandwidth and should be fine Apr 08 15:03:10 nemik: your SPP channel isn't actually 9600bps (there's no fixed baudrate on spp) but if your output is limited it will effectively throttle you anyhow Apr 08 15:09:00 how can i update a view in a fragment Apr 08 15:09:07 does anybody knows Apr 08 15:11:05 hi ppl Apr 08 15:11:23 how am i able to use findViewById inside a fragment class? Apr 08 15:11:43 its undefined now as its defined in view or activity Apr 08 15:11:51 how do i get the view? Apr 08 15:12:09 have you tried turning it off and on again? Apr 08 15:12:13 dragorn: ah that makes sense. thanks again Apr 08 15:12:25 container.findViewById() Apr 08 15:25:35 Hey Apr 08 15:26:08 i want to create different versions of an app (e.g. free/paid) using a library project. someone recommended dependency injection with extended classes, however I'm not sure how to apply this, e.g., on code like this: http://pastebin.com/qvHisksh can someone please give me a hint? Apr 08 15:26:42 I've set android:inputType="textCapCharacters" and by default the keyboard is set to uppercase chars. But if I close the keyboard and go to the EditText again, the next letters are typed in lowercase. Why is that and how can I fix? Apr 08 15:35:36 how can I set the view when I'm not in an activity? I assume I should be redesigning everything here... Apr 08 15:36:19 I have a main class (which extends activity) that makes a Game object that makes a StatScreen object. in the StatScreen object I want to set to the stat_screen layout. Apr 08 15:36:29 what would be a sensical way of doing this? Apr 08 15:42:09 alexander__b, do you have the context of said activity? Apr 08 15:42:17 if so you can runOnUiThread Apr 08 15:43:36 kaneda^: I assume my whole structure is just stupid. I'm not all too familiar with android. Apr 08 15:43:54 couldnt rightly say Apr 08 15:44:10 I use setOnItemClickListener to get values on click in my ListView and the result I get is {word=TEST, number=4}. How can I fetch just TEST instead? http://pastebin.com/SiycB3Fu Apr 08 15:44:41 basically I have main, Game, a bunch of Screen objects (StatScreen, MapScreen, etc). each *Screen has a layout xml. I want to be able to change between these layouts with tabs in main or Game. Apr 08 15:45:57 all of a sudden my build is super slow. Apr 08 15:46:55 funkbox: when that happens with my eclipse I just restart it Apr 08 15:47:09 i use intellij Apr 08 15:47:16 alexander__b, it sounds like you want a fragmentactivity and activities Apr 08 15:47:43 kaneda^: I just want to have different layouts and be able to change between them in a sort of mvc way. Apr 08 15:48:07 whether that means "fragmentactivity and activities", I do not know. Apr 08 15:48:51 I think theres a way to just fetch the right word from my listview, so I don't have to use substring etc Apr 08 15:48:53 Any ideas? Apr 08 15:53:17 hello, what hardware do I need to run the Android emulator on a Linux system? I installed it a while back but it was too slow, but my computer is really old, I need a benchmark for what computer (CPU, RAM, etc.) it will work Apr 08 15:53:58 i'm debating switching to a maven build. Apr 08 15:55:36 guys, I'm sorry for this question, but: what _is_ SMS? Or, rather, sender (or caller) identify in cell phone network? Apr 08 15:56:02 mjt: SMS as in short messaging system? Apr 08 15:56:56 I'll elaborate. Sometimes I receive SMS spam from "names" instead of phone numbers. But I know there _is_ a real phone number assotiated with that name (it is _not_ in the address book), because in call log app I can tap to this log entry and press "phone" and it will dial a number. Apr 08 15:57:15 but using any other regular ways I can't see that phone number Apr 08 15:57:38 so my question is: where this name comes from, how the phone receives it, where actual phone number is stored? Apr 08 15:58:17 Hopefully this clears possible doubts about me asking in wrong channel :) Apr 08 15:59:10 mjt: presumably it's delivered to the phone as part of the PDU Apr 08 15:59:40 aha, that's a keyword for google Apr 08 16:00:46 mjt: USA? Apr 08 16:00:51 russia Apr 08 16:00:55 Hi, quick question. How do I programatically show or hide a List View contents ? Like the "click" simulation that displays the list content Apr 08 16:01:09 hmmm Apr 08 16:01:53 does anybody know if i can update a fragment view? Apr 08 16:03:10 How should I go about changing the colour of an ImageView when it is clicked if I want that colour change to be dynamic? (I couldn't create all of the images for each colour change) Apr 08 16:03:48 I would basically like to change the HSV value of the ImageView, where the "V" is changed to 50% of it's original value. Apr 08 16:04:05 Leeds: i'm looking at http://www.smartposition.nl/resources/sms_pdu.html - not exactly a specification but appears to be genuine. There's no "sender NAME" in there, only sender NUMBER, and this is principal, because sender NUMBER consists of "semi-octets", so can only contain hex-numbers, not letters. Apr 08 16:05:12 can i just say that the commerical version of intellij looks great i had a look at it last night Apr 08 16:05:21 I don't know, haven't looked at the SMS specs for, oh, a decade now Apr 08 16:05:27 i now need to come up with $200 Apr 08 16:06:28 hey ppl Apr 08 16:06:32 scrollViewAgenda = new ScrollView(this); Apr 08 16:06:40 how can i get this inside a fragment? Apr 08 16:07:18 Leeds: yes the name comes together with the sms obviously, but there's no separate field in the pdu for the name (but there is a place for number)... so things becomes even more interesting :) Apr 08 16:08:10 BulleTime either put it in a layout xml or stuff it in getView() somewhere Apr 08 16:14:24 heh. so, a sender address consists of address type followed by a number of "semi-octets", especially defined as _digits_. Later on, one of address type (re)introduces "text type", which means "interpret two semi-octets as a byte". So they re-introduced names in the field which were supposed to contain numbers. Apr 08 16:16:19 Dr_Coke: I switch to light version of Intellij IDEA last week from Eclipse, I'm liking it so far as well. Apr 08 16:19:17 jdawes you should use my plugin http://plugins.jetbrains.com/plugin?pr=idea&pluginId=7146 Apr 08 16:20:41 ..and there's also another type of address, "abbreviated number", which is probably what's actually used Apr 08 16:20:51 p_l: hmmm? why? Apr 08 16:24:08 I'm trying to follow https://developer.android.com/training/basics/fragments/creating.html -- but I'm having some trouble. I have a Fragment called StatScreen, id stat_screen. however, I get "cannot find symbol stat_screen" Apr 08 16:24:34 R.id.stat_screen Apr 08 16:24:54 xorgate: Sounds good! Apr 08 16:24:57 or if it's a layout R.layout.stat_screen Apr 08 16:25:10 Game extends FragmentActivity and does setContentView(R.layout.game). in the game layout, I have Apr 08 16:25:27 xorgate: I'm using return inflater.inflate(R.layout.stat_screen, container, false); Apr 08 16:25:43 please just use gist.github.com or sth for pasting code Apr 08 16:25:54 for posting one line? Apr 08 16:25:56 seems a bit overkill Apr 08 16:27:03 we would need more info to locate the problem Apr 08 16:27:27 what info would you need? Apr 08 16:28:32 anything containing 'stat_screen' Apr 08 16:28:37 since that's the error Apr 08 16:29:00 stat_screen only appears in res/layout/game.xml Apr 08 16:29:34 it's the id (android:id="@+id/stat_screen") of the fragment StatScreen. Apr 08 16:30:01 and somewhere you are referencing it, who is saying 'cannot find symbol stat_screen' ? Apr 08 16:30:17 StatScreen Apr 08 16:30:36 when doing "return inflater.inflate(R.layout.stat_screen, container, false)" in the onCreateView callback. Apr 08 16:31:08 so you have a layout/stat_screen.xml Apr 08 16:31:49 erm no. that's why I think I'm not understanding https://developer.android.com/training/basics/fragments/creating.html Apr 08 16:32:07 R.layout.anything implies you have a layout file named anything.xml Apr 08 16:32:15 I have a game.xml that has Apr 08 16:32:29 android develoipment is so frustrating Apr 08 16:32:33 with the buggy xml editors Apr 08 16:32:50 that's hardly android's fault Apr 08 16:32:56 the example is confusing. it does return inflater.inflate(R.layout.article_view, container, false); Apr 08 16:33:06 then it doesn't refer to article_view *anywhere* else Apr 08 16:33:32 alexander__b: it doesn't need to. It returned a view that was defined in R.layout.article_view Apr 08 16:33:43 It's not a tutorial Apr 08 16:33:54 And there's a sample Apr 08 16:34:13 SimonVT: right, I'll look at that. Apr 08 16:35:34 When you get to the fragment articles in the training, xml layouts have already been covered Apr 08 16:38:38 xorgate: I assume you've got some experience with Intellij, have you found a way to get logcat to output package names? Apr 08 16:38:57 what do you mean output packagename? Apr 08 16:39:23 Like, filtering by com.example.project Apr 08 16:40:05 In eclipse, the logcat puts that information in each line of output, so you can filter for a specific package name Apr 08 16:41:19 http://i.imgur.com/Qv8a5wj.png guess you mean that thing? Apr 08 16:42:02 i've been using pusslog Apr 08 16:42:03 Well, sort of. I know that's where you create filters but I guess I can't filter by the output that I want. Apr 08 16:42:14 you can put in a regex Apr 08 16:42:20 which is a horrible name for software Apr 08 16:42:33 Yeah, that is really bad. Apr 08 16:42:36 jdawes not quite sure what you mean Apr 08 16:43:47 xorgate: Yeah, don't worry about it. I think I've kind of found my own answer. Apr 08 16:44:20 pusslog has a -p which allows filtering on the package of an app and has nice colors in the terminal Apr 08 16:47:00 I've take a look, thanks bryanl. Apr 08 17:10:20 hey P3nnyw1se i got andengine to run Apr 08 17:10:26 what about you? Apr 08 17:14:34 Hello. My view (using it as a horizontal divider) is not showing up in my LL. https://gist.github.com/Random101/5338546 Apr 08 17:16:03 hello everyone Apr 08 17:17:00 anyone free to help a new android developer? Apr 08 17:17:02 Anybody know why it isnt showing up? Apr 08 17:18:23 do you setup width and height Apr 08 17:18:35 and what kind of view is Apr 08 17:19:25 It's just a view. new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, 1); is the setup for the width/height Apr 08 17:19:38 I have it working in XML, but when I do it from the app it doesn't seem to work. Apr 08 17:19:39 I am currently trying to Apr 08 17:21:32 would this work ? myGraphView.setLayoutParams(new LayoutParams(width, height)); Apr 08 17:22:23 mmoassistdev1: nope. Apr 08 17:23:55 Anybody know why? Apr 08 17:24:08 I been stuck on my application for months now that is what lead me to irc. Apr 08 17:26:35 you trying to declare that in your manifest file? Apr 08 17:26:55 Declare what? Apr 08 17:27:37 Eric_Loves_You: HEY IM IN HERE Apr 08 17:27:42 Eric_Loves_You: DOING A JAVA Apr 08 17:28:03 Eric_Loves_You: the problem with the apk I sent you was that it wasn't signed with anything Apr 08 17:28:17 andrewcarter That'll do it. Apr 08 17:28:33 I am sorry I got here half way into the conversation and am still trying to understand what problem your having with the view Apr 08 17:28:33 Eric_Loves_You: I'm going to try and finish the app tonight Apr 08 17:28:43 andrewcarter Sweet Apr 08 17:28:53 Eric_Loves_You: Is there like a built in search magnifying glass drawable? Apr 08 17:29:17 I believe so. Apr 08 17:29:20 The view just flat out isn't showing up. Apr 08 17:29:32 In XML it works, butw hen I try to do it in code it doesn't. Apr 08 17:30:21 i supposed r is a relative layout Apr 08 17:30:28 Yes Apr 08 17:30:43 and it is on a layout that you put in your screen with setcontentview Apr 08 17:30:59 This may be a stupid question, but I have View parameter in a method because I set onclick in XML. How can I run this method programatically? Apr 08 17:31:04 Yes Apr 08 17:31:17 The text views that go allong with this show up, it's just that view. Apr 08 17:31:19 Along* Apr 08 17:31:45 What value should I use for the View parameter in the method? Apr 08 17:32:04 mmmm Apr 08 17:32:44 The view you want to run the method for? Apr 08 17:33:12 what suppose that your view show Apr 08 17:33:21 because i see that is empty Apr 08 17:33:34 It's supposed to be a divider Apr 08 17:33:37 put a background or something to see anything Apr 08 17:33:37 So just a line Apr 08 17:33:42 Works now. Just had to set the the parameter final Apr 08 17:33:50 I have a .setBackgroundColor() Apr 08 17:33:59 setAlpha Apr 08 17:34:02 nice quacked Apr 08 17:34:57 I did .setAlpha(1) Apr 08 17:35:26 anyone here know anything about unbuffered input streams? Apr 08 17:37:18 Even with .setAlpha(1) it doesn't show. Apr 08 17:37:22 it is just 1 pixel height? try to put a bigger value Apr 08 17:37:43 I'm trying with 5 right now just to try Apr 08 17:37:51 Anyone care to give feedback on the design of this? http://bildr.no/image/1434517.jpeg Apr 08 17:38:08 50 or more Apr 08 17:38:10 :D Apr 08 17:38:25 Nope :| Apr 08 17:38:30 mmmm Apr 08 17:39:20 anyone here good with input/output streams? Apr 08 17:39:39 Also, I would like a suggestion for how I should display name of each column. :) Apr 08 17:39:42 https://gist.github.com/Random101/5338768 popers that's my XML that works, if that helps? Apr 08 17:40:09 Not in code, but design wise Apr 08 17:41:42 I'm trying to set the wallpaper via the android's camera CropImage activity (included as a library). The idea is to get the double of the width of the screen as width, and the height as itself. When the image's width is lower than the desired one, the width and height of the wallpaper adapt to it. The problem is that even if I setup the crop to be as large as the image's width, the program still shows a crop rectangle less wide than th Apr 08 17:41:42 rectangle with the width the same as the image). Here is the code... thanks! http://pastebin.com/7PHfWqTJ Apr 08 17:42:14 This is making me mad... Apr 08 17:42:54 lol yea stupid android 4k buffer is doing the same to me Apr 08 17:42:57 Hi, anybody seen the Google IO 2013 Android app yet? Apr 08 17:44:16 popers: any other ideas? Apr 08 17:46:15 Any way to make an input stream that does not end, end and return -1? Apr 08 17:46:54 uhm.. stupid ZNC Apr 08 17:47:00 btw... any idea on my problem? Apr 08 17:47:29 here is the source code of the CropImage class: https://github.com/lvillani/android-cropimage/blob/develop/src/com/android/camera/CropImage.java Apr 08 17:47:54 I must be doing something wrong with the aspect/output X/Y extra variables, still don't know where. Apr 08 17:50:24 check this http://pastebin.com/EzF8BNmF Apr 08 17:50:28 re Apr 08 17:50:32 this work for me Apr 08 17:51:52 should I do HttpPost in an IntentService? Apr 08 17:52:37 I assume not in an Acitivty Apr 08 17:52:42 anyone have advice on how to read from a stream without read() blocking? Apr 08 17:52:43 popers: found another version, thanks though. Apr 08 17:53:00 ??? Apr 08 17:53:35 you've solved Apr 08 17:53:37 ? Apr 08 17:53:54 For the most part, yes, thanks Apr 08 17:54:01 ok Apr 08 17:54:12 awsome nice DylanG Apr 08 17:54:14 ywc Apr 08 17:55:07 thanks Apr 08 17:56:51 It seems that whenever I use .setBackgroundColor() it doesnt appear, even if its a color like orange Apr 08 17:58:19 anyone know of a channel that might be able to help me with input/output streams? Apr 08 17:59:13 quack async task Apr 08 18:00:26 mmoassistdev1: you could try #java or something but really the contract is that it DOES block. You might be lucky enough to have backing selectors, etc. Apr 08 18:00:37 there could be some NIO stuff you could use Apr 08 18:00:55 the one Apr 08 18:00:56 NIO Apr 08 18:02:23 good seggestion. I have tried using nio with no luck. but I am glad you suggested what im allready trying. Apr 08 18:03:34 Hey, I have a LinearLayout and some small views (about 8) inside it, and want this small views to behavior like CSS float left property, somebody knows how can I do that? Apr 08 18:03:47 about 8 * Apr 08 18:07:23 ninharp: why asynctask and not intentservice? Apr 08 18:07:52 Sambarboz: gravity left on the LL? Apr 08 18:08:55 Hi, does anyone know how I can achieve a platform-independent SecureRandom, producing consistent output on the JRE and dalvik? I don't care about copying some classes... Apr 08 18:10:29 Quacked you can do it with an intentservice too Apr 08 18:10:47 brx_: But I'll add some views inside it. And I need it to be multi line. Apr 08 18:10:57 I've found some example on StackOverflow. Apr 08 18:11:17 I'll need to do it programatically Apr 08 18:11:26 Thank you anyway :) Apr 08 18:11:54 quacked ive done httppost in an async task Apr 08 18:13:38 mmoassistdev1: also, NIO was kinda fucked in GB Apr 08 18:16:06 hey dylan how do have in setContentView() Apr 08 18:16:17 what do you have im sorry... Apr 08 18:21:10 dont click on that email from the IRS spam campaign :) Android Stels trojan Apr 08 18:22:49 hey g00s maybe you can point me in the right direction. I send getevent to the stream. I am trying to get the output from getevent without blocking Apr 08 18:23:04 oh hey it's g00s Apr 08 18:23:11 i assume i can accomplish this with java.nio wich I have been trying Apr 08 18:23:14 g00s: your advice is still paying off btw :3 Apr 08 18:23:26 andrewcarter: :) Apr 08 18:24:11 mmoassistdev1: wish i could help more, but i had enough trouble with NIO at the time - and this was froyo / gb - that i gave up. i'm sure its better now though. NIO is one strange api. anyhow, the world moved on to nio.2 but android still has the old one Apr 08 18:24:57 yea my app is for android so i have to get it working. Thanks tho Apr 08 18:27:00 The way i see it working is with nio I can secify the buffer size. Then when I read I flip the buffer. have not got it working yet. Apr 08 18:29:35 g00s: oh man I totally installed a random apk :( Apr 08 18:29:54 lov: it says you need to update flash Apr 08 18:30:33 I do? :( Apr 08 18:30:37 haha Apr 08 18:30:40 do it ! Apr 08 18:31:19 ok one sec gonna go to flash.totally.legit.ru Apr 08 18:31:52 oh no my browser! :( Apr 08 18:32:21 actually, flashplayer.android.update.apk Apr 08 18:32:23 hehe Apr 08 18:32:57 lov: come one, don't you 127.0.0.1 *.ru yet :P Apr 08 18:33:48 i dont understand is that a bitcoin Apr 08 18:33:52 anyhow, for shiggles, http://www.secureworks.com/cyber-threat-intelligence/threats/stels-android-trojan-malware-analysis/ Apr 08 18:34:07 lov: yes, mine the bitcoinz please Apr 08 18:44:40 anyone have experience with using a custom type/font for view widgets? I'm seeing an issue where if i specify a font for a label which only has characters for english/roman alphabet then say russian/chinese users cant see their languages text Apr 08 18:45:28 so to be explicit, I'm using the Lato font, and then russian users I have can't see their russian content because lato only has characters for roman languages. Apr 08 19:00:37 hi ppl i was looking for a way to call a function that is within a Fragment is that even possible? Apr 08 19:05:38 BulleTime sure why not? Apr 08 19:05:45 ooh:) Apr 08 19:05:45 what are you trying to do Apr 08 19:05:50 well Apr 08 19:06:40 i have a fragment and inside it i call other classes for the specific page. But within that classes i just want to call functions that are within the fragment class Apr 08 19:07:19 .. you said nothing new Apr 08 19:07:28 hehe :D Apr 08 19:07:38 ooh yeah right :8 Apr 08 19:08:22 well i just look for a way i tought about getActivity.functionName() but im not sure Apr 08 19:16:03 So, anybody seen the Google IO 2013 Android app yet? Apr 08 19:16:28 nope Apr 08 19:17:07 well you need glases ;) Apr 08 19:17:33 google glass? Apr 08 19:18:13 boytoy: its usually released during i/o Apr 08 19:18:26 yeaj Apr 08 19:20:34 g00s: Ah I see, cool Apr 08 19:20:45 I bet it's ready now though, IO is just a few days away Apr 08 19:20:59 I checked roman nurik's stuff, nothing there Apr 08 19:22:24 boytoy: i'm interested to see what their minSdk will be :D Apr 08 19:22:55 hey g00s, what's the difference between minSdk in NDK and SDK? Apr 08 19:22:56 boytoy: And by "a few days" you mean "well over a month"? Apr 08 19:23:03 the NDK one only gives me a warning, whats' up with that? Apr 08 19:23:32 kaneda^: dunno, haven't used the NDK (sounds like a good move so far) Apr 08 19:23:39 you should write it in objective c lol Apr 08 19:23:53 g00s, fair enough Apr 08 19:24:06 ok ok ok i know objective c is apple only Apr 08 19:24:26 you guys ever played with c# Apr 08 19:24:31 actually it not, but in practice ;) Apr 08 19:24:32 and used mono Apr 08 19:24:33 Dr_Coke, yep, for unity Apr 08 19:24:37 Dr_Coke, yep, talk to jonp Apr 08 19:24:42 i have Apr 08 19:24:47 he isnt talking to me now Apr 08 19:24:47 :) Apr 08 19:24:51 what'd you do?? Apr 08 19:24:52 i asked to many questions Apr 08 19:24:59 i doubt it Apr 08 19:25:00 i dont know Apr 08 19:25:01 jonp is very understanding Apr 08 19:25:12 yer he was really good Apr 08 19:25:43 but im worried about a performance hit Apr 08 19:25:51 he said it happens with different things Apr 08 19:25:55 like with games Apr 08 19:26:24 but ive pretty much only learnt java and vb.net Apr 08 19:26:34 and the java is the one i remember more Apr 08 19:26:43 had a play with c++ too Apr 08 19:26:57 so i think im gonna buy this intellij Apr 08 19:27:01 its awesome Apr 08 19:27:06 200$ Apr 08 19:27:48 Buy? Do you need features not available in the Community Edition? Apr 08 19:27:51 hey kaneda^ do you think making apps for android is dead i mean i seen the amount of apps in the store Apr 08 19:28:05 Dr_Coke, i doubt it Apr 08 19:28:11 Not that I want to hold you back, I just wondered. Apr 08 19:28:12 never got hold of the community edition Apr 08 19:28:19 It's free, try it. Apr 08 19:28:27 i tried to download it Apr 08 19:28:37 Dr_Coke: The time for _good_ Apps is certainly not over. Apr 08 19:28:48 they made me put in my details and told me they would assess me Apr 08 19:28:55 i filled it out with bogus details Apr 08 19:28:57 lol Apr 08 19:29:04 and downloaded the commerical one Apr 08 19:29:06 for 30days Apr 08 19:29:26 thats the thing man Apr 08 19:29:33 where do you get a good idea for an app Apr 08 19:29:42 i also heard Apr 08 19:29:53 people buy android because they want free stuff Apr 08 19:29:57 kakazza: hehe Apr 08 19:30:08 Dr_Coke: I'm not sure what you're on. The Community Edition is free, the download starts automatically and you can OPTIONALLY fill in your details. Apr 08 19:30:19 really Apr 08 19:30:27 Yes Apr 08 19:30:34 https://www.jetbrains.com/idea/download/ Apr 08 19:30:36 Click download now Apr 08 19:30:40 On the Community Edition Apr 08 19:30:45 ok i will try it Apr 08 19:31:00 what do you mean what im on Apr 08 19:31:01 lol Apr 08 19:31:06 im not on drugs Apr 08 19:31:27 well i am but they are doctor prescribed Apr 08 19:31:28 too much coke :] Apr 08 19:31:31 lol Apr 08 19:31:48 < captain obvious Apr 08 19:32:05 first of all i can't come up with an idea for an app Apr 08 19:32:25 second i am worried no one will buy the app Apr 08 19:32:25 will this be your first ap? Apr 08 19:32:28 yes Apr 08 19:32:45 well, heres an analogy Apr 08 19:32:56 I heard the story people with iphones buy apps people with android like free apps Apr 08 19:33:11 it worried Apr 08 19:33:12 me Apr 08 19:33:13 would you buy a painter off someone who had only made one painting? Apr 08 19:33:26 Dr_Coke: is there a difference in income and social status between the two? Apr 08 19:33:51 i think android has 60% market share Apr 08 19:33:59 iphone has 40% Apr 08 19:34:05 is that right Apr 08 19:34:14 nah but i mean Apr 08 19:34:19 FWIW Android sales are ~25% of iOS sales for my app. Apr 08 19:34:21 like i see a lot of rich folks buy the macbook Apr 08 19:34:35 yer Apr 08 19:34:37 people with enough money to fool themselves they got class :P Apr 08 19:34:46 lol yer Apr 08 19:35:02 just curious if likewise rich folks prefer the iphone due to the apple brand and therefore has more money to spend on apps Apr 08 19:35:15 young women buying apps like it's shoes etc. Apr 08 19:35:35 lol yeah Apr 08 19:35:54 lol Apr 08 19:36:01 LOL. Apr 08 19:36:23 i guess i should google Apr 08 19:36:36 for young women? Apr 08 19:36:41 them too Apr 08 19:36:42 be careful my friend! Apr 08 19:36:45 lol Apr 08 19:36:52 you'll get a russian bride Apr 08 19:37:07 yer but they dont want me when i tell them im broke Apr 08 19:38:36 what does FWIW mean Apr 08 19:38:51 lol u guys go to #android please Apr 08 19:38:57 lol Apr 08 19:39:01 this is development .. Apr 08 19:39:13 #android Apr 08 19:39:20 this has to do with development though Apr 08 19:39:29 realy? Apr 08 19:39:42 ok :) Apr 08 19:39:43 yer i am wondering if it is worth pursueing Apr 08 19:39:53 ? Apr 08 19:39:56 from all the bad stories i hear Apr 08 19:39:59 what is your question?] Apr 08 19:40:08 is android very profitable Apr 08 19:40:12 no. Apr 08 19:40:14 next question. Apr 08 19:40:27 damn Apr 08 19:40:29 hi lov :) Apr 08 19:40:54 i was about to ask something Apr 08 19:40:56 how do you come up with an idea for an app Apr 08 19:41:19 Dr_Coke: Scratch an itch. Apr 08 19:41:29 Dr_Coke: you stick your dick in it Apr 08 19:41:33 lol Apr 08 19:41:45 seriously, do you have any development questions or are you just trolling or what Apr 08 19:41:55 i am not trolling Apr 08 19:42:02 i promise you that Apr 08 19:42:24 so anyone knows how to call a function inside a class that i created inside a fragment? i need to access functions inside the fragment class Apr 08 19:42:33 i have paranioa Apr 08 19:43:07 aka schizophrenia Apr 08 19:43:19 those two are not the same thing Apr 08 19:43:25 ^^ Apr 08 19:43:31 ok Apr 08 19:43:40 well i have schizophrenia Apr 08 19:43:47 would u like to help me lov? Apr 08 19:43:52 not really, no. Apr 08 19:43:59 haha why? Apr 08 19:44:09 because I'm in a pretty foul mood so I'm gonna just say this is for the best. Apr 08 19:44:24 ooh ok lol :P Apr 08 19:44:35 is it because of to much COKE ? Apr 08 19:44:40 lol :D Apr 08 19:44:42 BulleTime: you just call it like any other method. If you can't see it, make it visible. If you don't have the right type, cast it. That's about all you need. Apr 08 19:45:11 well in eclipse im not able to find it its undefined Apr 08 19:45:30 BulleTime: so you have to learn how to program and then write the code to make it defined :/ Apr 08 19:45:33 is there something wrong how i declare my functions inside fragment? Apr 08 19:45:55 BulleTime: show us some code Apr 08 19:46:10 eclipse should atleast pickup the functions i need to call Apr 08 19:46:30 cool i will evanc Apr 08 19:46:59 Eclipse is there to help you write java code, not show you how java works Apr 08 19:47:13 i am converting a project to understand fragments so it might be large codes im afraid Apr 08 19:49:24 BulleTime: so reduce it down into a simple test case Apr 08 19:49:38 okay Apr 08 19:49:48 but i think u dont understand me though Apr 08 19:50:25 i think i could get it to work by getting the fragment and then call functions on that Apr 08 19:50:32 but i tought why not better Apr 08 19:51:14 i just want to call a public function inside a fragment from other classes thats it Apr 08 19:51:38 ill show some code in a moment Apr 08 19:52:17 i wish to localize 1 string into a bunch of languages, but i don't want lint to complain about missing translations. Any more 'resource-like' options than just having a check at current language and a big switch statement? Apr 08 19:53:06 Just disable the lint check Apr 08 19:53:18 xorgate: in lint.xml, add Apr 08 19:53:58 i dont want that because i do want it to check for missing translations, just not for these specific languages Apr 08 19:54:17 i think i should take another approach Apr 08 19:54:46 that actually sounds sane :) Apr 08 19:58:49 Can someone help me? I am using a web service to populate a listview inside a fragment, I am getting the data fine. The problem is that the listview only updates its data when I swipe 3 tabs to the right and then come back to the tab with the listview. I am assuming it is because it is destroying the fragment and recreating it with the new data. How can I update the listview as soon as the data is retrieved from the web service? Apr 08 19:58:49 I have tried notifyDataSetChanged() and a bunch of other things. Been trying to fix this for like 4 days straight lol Apr 08 19:59:13 also try listview.invalidate Apr 08 20:00:02 k ill try it Apr 08 20:00:05 Make sure your adapter has a reference to the new items before you call notifydatasetchanged Apr 08 20:00:12 And don't invalidate the listview Apr 08 20:00:48 the adapter does have a reference to the new items, it just doesnt update for some reason unless i go to another tab off screen and come back Apr 08 20:01:03 I bet it doesn't Apr 08 20:02:20 Either your adapter doesn't have a reference to the new items, or your listview doesn't have a reference to the adapter you're calling notifyDataSetChanged on Apr 08 20:02:22 Your pick Apr 08 20:02:43 it might be 2nd option, ill check Apr 08 20:04:28 i just checked, it does Apr 08 20:04:53 Then it's the other one Apr 08 20:05:39 before i call notifyDataSetChanged(), i do this in the adapter: this.data = data Apr 08 20:05:44 data is the new data Apr 08 20:12:54 https://lh4.googleusercontent.com/-k_e2GeEPivI/UWMkgR0B9PI/AAAAAAAAEa8/qW6HB1zn4RA/s653/IMG_20130408_130151.jpg Apr 08 20:12:55 mmmm Apr 08 20:14:05 anyone tried out AndEngine? Apr 08 20:19:07 anyone familier with java.nio? Trying to read from an input stream without read() blocking. Can I do this by using channels? Apr 08 20:23:50 pfn invites everyone over to his place for espresso tonight Apr 08 20:23:59 orly? Apr 08 20:24:03 :) Apr 08 20:24:18 espresso? bunch of hipsters. Apr 08 20:24:48 mmoassistdev1, yes Apr 08 20:24:54 espresso is yum Apr 08 20:25:10 burned through half of the beans I bought trying to get my crappy grinder dialed in :-/ Apr 08 20:26:08 does that knob on the left tune the amount of bacon in the espresso ? Apr 08 20:26:29 no, it's the steamer knob Apr 08 20:26:35 damn Apr 08 20:27:19 does that knob on the right filter out the mainstream? Apr 08 20:27:30 no, it's the hot water tap Apr 08 20:27:33 hahah Apr 08 20:32:37 Hi :) Apr 08 20:34:25 how is called component that allow me put a information text with scrolling functionality ? Apr 08 20:35:00 ScrollView ? Apr 08 20:35:26 maybe a ScrollView with a TextView inside? Apr 08 20:37:19 Thats was my first idea but maybe there is some other better way ? Apr 08 20:37:51 Hi, trying to write conways game of life app for getting to know android. I created a custom surfaceview (https://github.com/ggermis/GameOfLife/blob/master/src/org/codenut/game_of_life/GameOfLifeView.java) which has a GameThread (= Runnable) that actually does the logic for the game and should then refresh the surfaceview. I read that i shouldn't be updating the GUI from another thread and use view.post(), but then the content is never redr Apr 08 20:37:52 Can someone please explain what the correct way would be? Or point me in the right direction? Apr 08 20:45:34 lol i was yelled at to come ask my questions here. Apr 08 20:47:28 so theres the new startActivity(Intent, Bundle) which is useful for doing nice window zoom animations. is there any way of achieving this as part of fragment transactions? Apr 08 20:47:49 like itd be nice to be able to zoom out of some selected view and replace/add the fragment from that location Apr 08 20:49:40 lurch_: You may want to start here (Under the "worker threads" section): http://developer.android.com/guide/components/processes-and-threads.html Apr 08 20:50:18 here is what I need done. Need to read a stream after sending "getevent". I need to proccess the output that get event producess. I need to do this without read() blocking. Apr 08 20:52:00 Locale.getDefault().getDisplayLanguage() returns a string, where can i find a list of what this string is per locale? Apr 08 20:53:31 kjeldahl: thx. That's where I read that I should not manipulate the UI from another thread. I'll try with an AsyncTask. Apr 08 20:58:46 how long should i wait before i ask my question again? Apr 08 20:59:42 every 30 minutes or so? Apr 08 21:00:05 hi, quick question about root management apps. If I uninstall the app (eg. SuperSu) but the binary is still there, should I still be able to get root access or is running "su" supposed to fail? Apr 08 21:01:50 public health announcement: i hope nobody is taking l-carnitine supplements :) Apr 08 21:02:17 mmoassistdev1: maybe every hour or so Apr 08 21:02:25 ok thx Apr 08 21:02:41 (at least) Apr 08 21:03:00 mmoassistdev1: every 5 minutes until you get banned Apr 08 21:03:07 then when you get unbanned try every 6 minutes Apr 08 21:03:21 yeah, exponential backoff Apr 08 21:03:30 lol im doing my best not to piss ppl of with my problems Apr 08 21:03:33 i++ until question answered Apr 08 21:03:35 linear backoff Apr 08 21:04:05 read always blocks Apr 08 21:04:16 mmoassistdev1: even better, register a few nicks to ask the same question Apr 08 21:04:26 round robin between them Apr 08 21:04:33 oh Apr 08 21:04:48 didnt realize andorid has nio Apr 08 21:05:01 yea thats what i been trying to get working Apr 08 21:07:16 see i write "getevent" to the outputstream. This starts filling the inputstream. my problem is i can only read the input to output after the 4k buffer fills Apr 08 21:08:30 flush yo buffahs Apr 08 21:08:40 son Apr 08 21:08:52 now help me make a world of warcraft killer Apr 08 21:08:54 if the getevent does not fill the buffer it blocks if it does fill i get the 4k buffer but lose whatever is at the end that didnt fill the buffer Apr 08 21:09:11 http://impactjs.com/ $49 for a few more hours Apr 08 21:14:36 In my IntentService I do: "Intent broadcastIntent = new Intent(); broadcastIntent.putExtra("response", response); sendBroadcast(broadcastIntent);" And in my Activity I do: "public class SearchServiceReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) {responseString = intent.getStringExtra("response"); }}" What am I missing? Apr 08 21:15:13 is something not working? Apr 08 21:15:29 onReceive isnt called Apr 08 21:15:53 did you registered the receiver? did you very that sendbroadcast is actually called? looks like you need an action to look for Apr 08 21:16:15 seriously mike you think Im not flushing the buffer correctly? Apr 08 21:16:16 Yes, I think I need an action.. I didn't really understand that Apr 08 21:17:18 mmoassistdev1: no, i feel like i've heard bugs about this thought, i don't have much experience with nio Apr 08 21:17:48 Quacked: an action helps yo to filter intents that only match that Apr 08 21:18:03 you could use data types too but that because much messier, and i think an action might still be required Apr 08 21:18:25 kk atleast now i feel like i have been on the right track. this is preventing my application from being completed. Apr 08 21:18:56 mikedg: thanks Apr 08 21:24:17 np Apr 08 21:29:10 Does anyone know what google is releasing at this years I/O? Apr 08 21:29:54 i heard everyone is getting a self driving car and 50 gallons of rum Apr 08 21:30:11 What?! Free rum? Apr 08 21:30:16 brb, blogging Apr 08 21:30:20 hmm Apr 08 21:30:50 Free rum, where i stay there ;) Apr 08 21:31:29 guys breaksclusive: http://myterribleandroidblog.net/free_rum_at_google_io Apr 08 21:31:30 it's to show off that no matter how drunk you are you can still get home safely in a google self driving car Apr 08 21:31:54 even cross country Apr 08 21:32:18 ... Server not found Apr 08 21:32:55 I can bit that it will be hard in my case :) Apr 08 21:32:58 ugh i wanna go home Apr 08 21:33:10 hetii: you are going to io? Apr 08 21:33:21 how complicated is it to code in C for android? i understand that underlying C libs would work great if they are API compatible to the libc. but am i enforced to programm in java to create visual output? Apr 08 21:34:13 I suppose it will be not easy to go there cause i`m in Poland :) Apr 08 21:34:26 Anaphaxeton: if you want to use typical views then yes you need java Apr 08 21:34:40 you can do open gl natively, i think... Apr 08 21:34:44 im pretty sure on that Apr 08 21:34:57 but you really should make sure you have a compelling business need before ditching java Apr 08 21:35:02 Anaphaxeton: You might want to look at NativeActivity. but note that this is intended for things like games, where you are doing full custom drawing in GL for your application Apr 08 21:35:19 what jesus said Apr 08 21:35:45 nbńnñmküū Apr 08 21:35:58 speaking in tongues? Apr 08 21:36:33 yes Apr 08 21:36:34 lol Apr 08 21:36:36 sey Apr 08 21:37:41 mikedg: make sure you speak in tongues when giving your I/O talk Apr 08 21:38:14 JesusFreke, i was hoping to use sdl as a means for that Apr 08 21:38:44 anyone notice any slick android jobs in nyc? Apr 08 21:39:10 as a first experiment i would like to transfer video between a pc and and android phone Apr 08 21:41:31 sdl plays almost everywhere, thus the idea Apr 08 21:42:04 mikedg: yeah, I saw some decent ones the other day at groupme and this place called isobar. Dunno if those are interesting to you, though. Apr 08 21:58:24 can i bounce some ides off you guys? Apr 08 21:59:53 like... March 15? Apr 08 22:00:10 the android terminal is open source. and it seems that when "getevent" is ran throught the terminal the output is instant. Apr 08 22:00:53 does adroid use a lower level video provider? i suppose yes, and what does that have? Apr 08 22:00:55 would this be because of maybe jackpal some libraies they are using to accomplish this Apr 08 22:06:13 i read there is a technique but requires java Apr 08 22:06:30 but surely it consumes more power Apr 08 22:08:26 My HttpPost normally uses less than a second. You people use ProgressBar for such things? Apr 08 22:09:08 Quacked: a) is your user going to be using your home wifi? b) Depends on what the significance of the network call is. Apr 08 22:09:45 n8 Apr 08 22:09:47 could be on lousy edge reception too.. and the network call is alpha and omega Apr 08 22:09:57 "As of GINGERBREAD, if the Activity was already created and a new Intent is being delivered to onNewIntent(Intent), any newly granted URI permissions will be added to the existing ones it holds." <-- HORSESHXT Apr 08 22:10:09 evanc: without the network call the app is useless Apr 08 22:10:39 has anyone played extensively with singleTask activities and content-provider permissions? Apr 08 22:10:57 Quacked: right, but is it a blocking operation? Does the user have to wait for it to be done? does _progress_ matter, or should you show them an infinite spinner? Or anything at all? Apr 08 22:11:22 tophyr: ask your question Apr 08 22:11:39 tophyr: i have the feeling that you are telling something about the cursor 2mb limit Apr 08 22:12:08 evanc: user types in and clicks Søk: http://bildr.no/image/1434517.jpeg . Progress does not matter so I'm thinking an infinite spinner, yes Apr 08 22:12:35 evanc: for those occasions that the network is slow I think it would be wise to show feedback that something is happening Apr 08 22:12:50 Quacked: maybe show the spinner after 1s or something has elapsed. So if it's a quick request, it won't normally be shown, but the user isn't just hanging there wondering if it does happen to take a long time Apr 08 22:13:15 JesusFreke: thats probably a good idea Apr 08 22:13:19 Quacked: what JesusFreke said, though I'd do 250ms or something Apr 08 22:13:31 monsti: touché. I have a singleTask activity that's set up to receive intents from outside apps, specifically in this case gmail. when the activity already exists, opening an attachment from gmail into it causes a SecurityException - requires com.google.android.gm.permission.READ_GMAIL Apr 08 22:13:47 despite the activity receiving the new intent in onNewIntent Apr 08 22:14:00 tophyr: oh yeah , i had that problem starting with JellyBean Apr 08 22:14:03 no binder limit Apr 08 22:14:05 if I do that I dont have the issue with the ProgressBar moving because the keyboard is closed when user hits Søk Apr 08 22:14:08 g00s: yeah, this is a JB device Apr 08 22:14:26 google sometimes changes permissions ;) Apr 08 22:14:45 thats was a big pain in the ass. eventually wound up looking at and reading a note from Dainne on SO that basically said it was all broken Apr 08 22:14:53 i was like, ok, yeah - thanks Apr 08 22:15:02 how would you go about showing the spinner after 1 second? I'm using an IntentService for the httppost Apr 08 22:15:04 e.g. tjey killed network conectivity in 3.x from gui threads Apr 08 22:15:07 i fixed it by making the provider public, which kinda sucked Apr 08 22:15:12 Quacked: Handler#postDelayed Apr 08 22:15:30 crap. I find those confusing :) Apr 08 22:15:38 Quacked: then you'd send a broadcast (or just a standard observer pattern) back to the activity Apr 08 22:16:14 g00s: lol :) Apr 08 22:16:19 right Apr 08 22:16:28 g00s: google makes their app more secure ;) Apr 08 22:17:18 monsti: well, doesn't work on URIs passed in Intent.EXTRA_STREAM Apr 08 22:17:36 not documented, broken, whatever Apr 08 22:17:44 very frustrating Apr 08 22:18:17 g00s: can you not request READ_GMAIL ? Apr 08 22:18:32 HP was invented in a garage - sometimes it still stinkes like a garage Apr 08 22:18:40 android is based on a hacked OS Apr 08 22:18:58 and sometimes it still stinks like linux Apr 08 22:19:33 evanc: gmail was trying to get an attachment from my app via the provider Apr 08 22:19:35 evanc: no, it's a permission that the gmail app grants on the intent it sends off to open the attachment Apr 08 22:19:41 it happens to any app Apr 08 22:19:56 goodnight fellas Apr 08 22:20:10 tophyr: i used the stock email client for testing Apr 08 22:20:21 g00s: so there's no workaround, other than just telling the user "sorry, please make sure gmail attachments are the first ones you open, and if you want two in the same session, cry me a river"? Apr 08 22:20:31 oh that was fun, the stock email client is still missing from the latest api 17 x86 images Apr 08 22:20:38 oh weird. they can't have broken this that badly. really? Apr 08 22:21:02 and intel never seems to update their x86 images; like they do the first one and then forget about it Apr 08 22:21:05 g00s: thats why i use androvm ;) Apr 08 22:21:52 when the arm image is updated, somebody needs to tell the Intel dude "heh, update your crap!" Apr 08 22:22:15 anyhow, i didn't have a JB device so I wound up using API 16 x86 image which had it Apr 08 22:23:28 g00s: so there's no workaround, other than just telling the user "sorry, please make sure gmail attachments are the first ones you open, and if you want two in the same session, cry me a river"? Apr 08 22:23:41 s/gmail/permission-protected/ Apr 08 22:24:32 tophyr: in my case, it happened to any app i send ACTION_SEND with Intent.EXTRA_STREAM pointing to my non-exported content provider. It wasn't just gmail Apr 08 22:24:51 i could not find a fix for froyo --- jelly bean Apr 08 22:24:55 weak. k. Apr 08 22:25:19 except, just exporting my content provider. i guess in newer versions of android, the preferred thing is to use the clipboard manager to pass uris to gmail Apr 08 22:25:22 i think it works in ics.. cehcking Apr 08 22:25:37 it worked in ICS for me, stopped in 4.1 Apr 08 22:26:29 ok. that mirrors my experience Apr 08 22:26:29 shit Apr 08 22:27:07 i spent like week trying to get this working because i didn't want to publicly export my provider Apr 08 22:29:00 do you happen to remember any of the keywords on the SO post you mentioned? Apr 08 22:29:19 Anybody know why my JPG background doesn't show up in my LinearLayout? All I get is black. Apr 08 22:29:47 tophyr: no, somebody else here pointed me to it :D Apr 08 22:30:23 lol. kk. thx :) Apr 08 22:30:31 at least i know this isn't uncommon Apr 08 22:30:41 it was gmail / attachment / security exception / hackbod maybe Apr 08 22:31:28 well yeah - i prefere outlook Apr 08 22:31:39 it silently eats mails with .exe attachements Apr 08 22:31:50 sounds like a feature :) Apr 08 22:32:09 peter nortons tool for "suck the company" rules Apr 08 22:32:20 is there something like xpath/xquery for json? Apr 08 22:32:34 found some outdated shitty tool from 2007, thats it Apr 08 22:35:16 g00s: there's modern variants based on Jackson... YMMV... e.g. https://github.com/nebhale/JsonPath Apr 08 22:35:16 JesusFreke and evanc: handler postdelayed turned out very nice :) Apr 08 22:35:24 went for 250 ms Apr 08 22:35:39 nice :) Apr 08 22:35:58 TheTrash: thanks - saw that, was looking for a standalone command line Apr 08 22:36:55 Command line.. hmm. Apr 08 22:37:13 Shouldn't take a lot of time to slap up something using that lib, though. Apr 08 22:37:22 Quacked: \o/ Apr 08 22:40:09 hi everybody. what would be the best way to manage working on a separate Thread for doing some image processing? I think I should permanently run a second thread, and each time I get a new camera frame I would like to check if the image processing thread is still busy processing an image, and if not, call some Apr 08 22:40:15 function to have it prcess the next frame. What is the best way of impelemnting htis? AsysncTasks? Service? Directly calling Thread somehow? Apr 08 22:40:39 evident: ExecutorService? Apr 08 22:42:39 So you'd suggest a service? My first idea was to have an asyncTask that processes a frame, in preExecute blocks the app from calling other AsyncTasks (if the camera gets a new frame while last one is still being processed), do stuff in background and then unlock so on the new frame a new AsyncTask would start. But I thought this might not be too good for performance since everytime a new Task has to be created and ergo a new Thread and so on... Apr 08 22:43:14 evident: I don't think you looked up what ExecutorSevice is, haha Apr 08 22:43:37 no not yet... was just wanting to tell you of my first idea... :) Reading throug hte ExecutorService right now ;) Apr 08 22:52:21 is there a way to determine whether a process has died? Apr 08 22:52:33 I get a PID from my client, and I would like to determine whether the PID has died Apr 08 22:55:10 sleepster: there are 2 probelms where you need this info Apr 08 22:55:16 1) start a program once Apr 08 22:55:34 2) do a watchdog in case of a crash Apr 08 22:55:37 ... what do you want? Apr 08 22:57:39 false dichotomy Apr 08 22:58:39 in therapy it often helps, when the client rethinks his or her problems ;) Apr 08 22:58:45 monsti: sorry I am confused :) Apr 08 22:58:57 I just need a way to clean up my cache once a process has died Apr 08 22:59:05 lol :) Apr 08 22:59:14 "died" as in Apr 08 22:59:16 1) OS shut down Apr 08 22:59:18 2) crash Apr 08 22:59:25 3) android kicked out the process Apr 08 22:59:29 4) process finished Apr 08 23:00:04 oh sorry, I mean 2, 3 and 4 :) Apr 08 23:00:15 there is no way Apr 08 23:00:34 just add a cache cleaner in your ApplicationObject and clean the cache at restart Apr 08 23:02:09 for 2,3,4 if you are dead and you have no more relatives - there will be no funeral Apr 08 23:04:15 sleepster: one simple method would be to open a tcp socket between the 2 processes Apr 08 23:04:27 sleepster: all open connections are terminated when the process dies Apr 08 23:04:45 thats just one of many methods Apr 08 23:04:57 he didn't told us about 2 processes, nor who and when starts them ;) Apr 08 23:05:32 waitpid would be better if you started the other directly Apr 08 23:06:38 oh, so the other process is just a random process Apr 08 23:06:41 that I have interest in Apr 08 23:07:06 it connects to me using Binders Apr 08 23:07:11 so I was thinking, I can use binders some how Apr 08 23:07:23 that's actually how I get its process Apr 08 23:08:46 i still have the feeling, that you want to fix some stablilty issue with some watchdog Apr 08 23:08:56 i might be wrong with this Apr 08 23:10:14 sleepster: yes, you can definitely tell if your client is killed, if you have a binder connection Apr 08 23:10:41 http://developer.android.com/reference/android/os/IBinder.html#linkToDeath(android.os.IBinder.DeathRecipient, int) Apr 08 23:12:04 so basically, you get the client to pass you a binder from its process, and then call that to register to be notified when it dies Apr 08 23:12:20 I think :) Apr 08 23:12:24 JesusFreke: thanks. yeah I've done that before.. the problem is that I do not have a binder from him Apr 08 23:12:31 I thought there was a way Apr 08 23:13:03 so when I get a binder connection.. it calls my Interface.Stub code Apr 08 23:13:07 is there any way I can change the color inside a string or make it bold without html? Apr 08 23:13:12 from within this .Stub code, there should be a way to get the calling binder Apr 08 23:14:22 sleepster: I'm not positive, but I think the client has to pass you a binder. Apr 08 23:16:20 The first time I click my search button to do a HttpPost the progressBar does not show when network is unvailable (this is the correct behaviour). But the second time I hit search button it is visible again and wont go away. What am I doing wrong? http://pastebin.com/AbjwsTfm Apr 08 23:17:55 its about that handler taskdelayed you suggested earlier, JesusFreke Apr 08 23:18:30 anyone know how i can get the output of "getevent" as it arrives like android terminal can? Apr 08 23:19:59 Quacked: I suspect your call to removeCallbacks isn't doing anything. The docs at least don't mention anything about what happens if you pass in null Apr 08 23:20:25 I read somewhere that null cleared all Apr 08 23:20:41 Hello everyone. I have a problem hopefully you can help me with. In Eclipse when ever i add an Android library project to my main Android project Eclipse starts an endless loop of builds and won't stop unless I remove the "build automatically" setting. Is there a way to keep the "build automatically" setting on and prevent the endless loop of builds Apr 08 23:21:11 Quacked: It might - I'm not positive. Might be worth looking at the source :) Apr 08 23:21:20 is there a way to pass a binder in a bundle? Apr 08 23:21:26 what should I use as parameter instead? Apr 08 23:23:11 Quacked: it looks like passing null is a no-op Apr 08 23:25:23 Quacked: I would probably refactor it to use sendEmptyMessageAtTime, and move the Runnable logic to handleMessage in a custom Handler subclass Apr 08 23:25:28 I gave the "new Runnable" a variable Apr 08 23:25:37 That should probably work too Apr 08 23:25:37 then it looks like it worked Apr 08 23:25:45 and of course used that instead of null Apr 08 23:27:00 on a related note, It's super useful to set up your IDE so that you can easily view the source for platform code :) Apr 08 23:27:34 youre not talking about "Javadoc" tab in Eclipse? Apr 08 23:27:43 source, not docs :) Apr 08 23:27:55 oh Apr 08 23:27:58 right :) Apr 08 23:29:21 I usually set up IDEA so that I can ctrl+b (go to definition) for android/core java classes. Apr 08 23:30:26 anyone have any ideas on how I can process "getevent"'s output line by line Apr 08 23:30:55 Btw, what happens if I have network available but the website is very slow when I try to execute the httppost? Apr 08 23:31:36 It shows the spinner until it completes/times out? Apr 08 23:32:00 Yes, but that time out... Apr 08 23:32:14 Is there a default set for the HttpClient.execute? Apr 08 23:32:19 no idea :) Apr 08 23:32:26 Ok Apr 08 23:32:29 I need to investigate :) Apr 08 23:32:43 Need to find out what it does WHEN it times out too Apr 08 23:35:42 Can anyone help me with SharedPrefs? Mine aren't saving on restart. https://gist.github.com/Random101/5341546 is my code. Apr 08 23:37:04 JesusFreke: would it be bad to simply kill my IntentService after with a handler#postdelayed after 10 seconds? :P Apr 08 23:37:26 Anybody know why? Apr 08 23:38:06 DylanG_: do you commit() to editor? Apr 08 23:38:15 Quacked: yes. Apr 08 23:38:25 Oh sorry, it's at the end of that method Apr 08 23:38:26 Quacked: I would try to configure/set it in the HttpClient if possible Apr 08 23:38:27 i chopped some out Apr 08 23:38:53 evening Apr 08 23:39:26 JesusFreke: hehe.. crap Apr 08 23:39:35 JesusFreke: but yeah, makes sense Apr 08 23:39:51 thanks again Apr 08 23:40:42 Anyone? Apr 08 23:46:25 DylanG_: 1) You're posting Java code without Syntax highlighting. Makes it harder to read. 2) You said yourself that you purposedly left code out. You might wanna paste everything. Apr 08 23:46:53 kakazza: the rest is just setting up fragments and editor.commit() Apr 08 23:47:18 Yeah, editor.commit() is something you might not want to leave out usually. Apr 08 23:47:35 I have it in my code, just not the gist. Apr 08 23:50:58 any way to set the end of a never ending stream of data? Apr 08 23:51:13 DylanG_: Could this be your problem? http://stackoverflow.com/a/14034804 Apr 08 23:53:47 JesusFreke: not easy to test for slow webpages you dont own :P Apr 08 23:54:17 kakazza: It stores it on the app run, but it doesnt stay after the app restarts. I used that fix but it still didnt work Apr 08 23:54:17 Quacked: temporarily change it to one that you do own? :) Apr 08 23:54:55 Wait, er Apr 08 23:55:11 hmm.. too much effort to make one and cap its bw to test :P Apr 08 23:55:29 looks like I found a nice method to specify timeout though Apr 08 23:55:51 The accepted answer here was nice: http://stackoverflow.com/questions/693997/how-to-set-httpresponse-timeout-for-android-in-java Apr 08 23:56:01 no need to cap bw, just make a quick CGI that does an infinite loop :) Apr 08 23:56:27 At least when I set the timeouts to 30 and 50 ms and it triggered IOException Apr 08 23:56:41 sounds like a winner :) Apr 08 23:56:48 Yeah :) Apr 08 23:57:07 kakazza: I must be doing something wrong, still can't get it to work Apr 08 23:57:07 set timeoutConnection to 3000 and timeoutSocket to 8000 Apr 08 23:57:25 even on a slow network surely 3 seconds must be enough to get a connection, and 8 seconds enough to grab data Apr 08 23:58:13 maybe I need to call someone living under a bush to test .. or maybe I can find an android app that caps my device's bw to 100 kbit Apr 08 23:59:39 Got it, thanks. Apr 08 23:59:48 cool. I can cap bw on emulator Apr 09 00:02:49 what apps make money Apr 09 00:05:37 the ones that provide value to the users Apr 09 00:05:55 heh Apr 09 00:06:03 =p Apr 09 00:06:37 I can confirm that my free penrose live wallpaper does *not* make any money. Apr 09 00:09:21 gnite Apr 09 00:11:56 JesusFreke, ah :( Apr 09 00:12:06 well it is free Apr 09 00:12:07 lol Apr 09 00:12:11 hur dur Apr 09 00:19:02 Need help with reading the output from "getevent". Cant read data unless buffer fills. Need to be able to read even if buffer never fills. Apr 09 00:20:01 any way to fill the inputstream with fake data till it fills that would work Apr 09 00:21:57 is it even possible to write to a DataInputStream? Apr 09 00:27:59 any way to fill a buffer that is not filled. Maybe with a line like "Stream ends here". Then I can read until I hit that line? Apr 09 00:28:51 mmoassistdev1: what buffer are you talking abouT? Apr 09 00:30:36 i create a datainputbuffer and dataoutputbuffer. I write "getevent" to the outputstream. This starts filling the inputstream with the getevents output Apr 09 00:31:14 problem is if geteven does not fill the buffer read() blocks Apr 09 00:31:39 have you tried flushing the output buffer? Apr 09 00:32:31 Not rely. So does this mean its auto flushing when the buffer fills? Apr 09 00:33:36 yes. the usual way a buffer works is that it soaks up the data until it fills its buffer, then it writes it all out. Apr 09 00:34:01 and offers a flush method to force it to write it out early, before the buffer is filled Apr 09 00:34:49 maybe i just have not goten the flush() working correctly. Apr 09 00:35:45 there's not much to it. You call it, and it flushes. Apr 09 00:35:52 it just seems like no matter what i do i have to keep touching the screen before i get output because read() is blocking Apr 09 00:36:38 I guess i would have to flush before the read() Apr 09 00:37:00 wich i dont think i have been doing Apr 09 00:37:24 i do know the point at wich i want to flush() so if that works ill be happy Apr 09 00:37:49 I'm vaguely suspicious of why you need the DataOutputStream in the first place. Can't you hook DataInputStream directly to however your getting the output from getevent? Apr 09 00:38:20 shouldnt available() not return 0 if I flush() when i know there was data? Apr 09 00:38:59 one should always flush() after a dump() Apr 09 00:39:12 see i want to record getevent then be able to convert it and play it back Apr 09 00:39:29 Fall: where does the wipe come in? Apr 09 00:39:41 but this blocking problem has plegued me for months Apr 09 00:39:54 when they lift thier finger off the screen Apr 09 00:40:01 that is the point to stop recording Apr 09 00:41:23 JesusFreke: in the GC phase. Apr 09 00:43:11 im gona test the flush() ill let ya know if i have any luck that for explaining Apr 09 00:43:35 thanks* Apr 09 00:45:13 hello, i have spend the last 24 hours searching for a cross phone framework that lets me develope native apps on a single codebase Apr 09 00:45:25 so far i found loads but im really having issues picking one Apr 09 00:45:36 can anyone help with his experience Apr 09 00:46:42 if you find one that does it, don't use it! lol Apr 09 00:46:50 heh Apr 09 00:47:05 so far i looked at mosync, which looks ok but doesnt have any UI tools Apr 09 00:47:13 phonegap i dont understand Apr 09 00:47:32 xamarin i round Apr 09 00:47:45 xamarin is a scam, don't use it Apr 09 00:47:52 ok good to know! Apr 09 00:48:05 i need to store configuration and stuff Apr 09 00:48:11 so jquery mobiel is no option Apr 09 00:48:12 Seppoz: phonegap is also terrible if you care about performance Apr 09 00:48:23 Seppoz: native on all platforms is the only good solution Apr 09 00:48:34 the mentality is completely different among the different smartphones OS ( iOS, Android, Win )... you really need to write for the device, not try to write something that will 'kinda sorta work' on everything Apr 09 00:48:44 also Kendo UI doe snot seem to have access to apis Apr 09 00:49:06 its really giving me a hard time Apr 09 00:49:14 Good advice bankai Apr 09 00:49:47 Seppoz: if you're interested, read this - http://blog.iangclifton.com/2013/03/30/the-negative-impact-of-ios-on-android/ Apr 09 00:49:57 see i am doing a quite easy app, all i need to store is some kind of configuration Apr 09 00:50:25 so any web framework that has access to store settings would be fine to me Apr 09 00:50:29 so far i havent found one Apr 09 00:50:41 cookies are bad, mm'kay? Apr 09 00:50:49 cookie monster!!! Apr 09 00:51:16 i didnt know that one could use cookies for that Apr 09 00:51:24 i need to store files aswell Apr 09 00:51:29 and data Apr 09 00:51:42 so i guess my statment was wrong Apr 09 00:51:45 sorry about that Apr 09 00:53:13 see imo this article is very adroid based Apr 09 00:53:29 i really dont like apple but this article isnt very objective IMO Apr 09 00:53:41 its one one direction Apr 09 00:54:21 I suppose one could write an article the other way around... but still, some valid points in there. Apr 09 00:56:03 it would be easier to write "The Negative Impacts of Android on Android" Apr 09 00:56:07 I've been in that situation many times... some pointy haired boss says "Make it like the iOS app", the app becomes a nasty clone with massive UI failure, pointy haired boss complains about app not catching on, boss does not take Android seriously as a market from then on. Apr 09 00:56:23 of course it could, but the main point is that android apps should be written for android, and iOS apps for iOS Apr 09 00:57:03 when in Rome ... Apr 09 00:57:07 Google is to blame for that, though. Initial UI patterns and graphics for Android were very, very poor. Apr 09 00:57:46 With Holo they're at a point where it got its own identity and has patterns that are much nicer than iOS on various levels, but before that it really was a mess. Apr 09 00:57:53 it will be interesting to see what Google does if FB Home has measurable impact on Android add revenues Apr 09 00:58:16 i think for now they are just like, hmm, we'll see ;) Apr 09 00:58:55 That's my stance on it as well... I'm curious to find out if anyone over 16 will use FB Home. Apr 09 01:01:35 you cant flush() an inputstream =(. Apr 09 01:02:34 well it makes no semantic sense... Apr 09 01:02:36 so if its buffer is not filled how can I get input.availible() to not return 0 even tho there is data Apr 09 01:03:12 input stream != buffered input stream Apr 09 01:04:11 you shouldn't be relying on available() Apr 09 01:04:24 i think the documentation even tells you that Apr 09 01:05:22 im running out of ways to test this tho everything i try results in a read() block. Apr 09 01:06:37 only option i see that i have left is declaring the buffer size with java.nio and copeying the stream with a writer Apr 09 01:06:46 what are you trying to accomplish? Apr 09 01:07:52 im trying to retrive events from geteven for the screen touch . when user does small touch stream does not fill. if user does enough movment it fills and i get a readout Apr 09 01:09:22 if you use android terminal it will output what im talking about as getevent recives input Apr 09 01:09:58 without any blocknig and as the touches executed Apr 09 01:20:44 does anyone know how I might be able to figure out what the binder driver is trying to call in my app that's causing it to crash? Apr 09 01:28:47 hey guys, does anyone know of a fix for the WebView white screen bug? Apr 09 01:34:19 Hmm - I have a webview in an Activity that shows an external URL, however I need to re-use this Activity to display a different URL but be able to go back to the original URL: hints? Apr 09 01:42:46 TheTrash: http://tapastic.com/episode/3453 Apr 09 01:47:21 is there a way to fill an inputstream with fake data like "Stream ends here" so I can read until i hit that line? Apr 09 02:38:42 viewpager hell.. how do I only show one page at a time Apr 09 02:41:24 Anybody know where can find some free vpns? Apr 09 02:42:59 xastey`: that's how it works... Apr 09 02:43:15 it shows one page at a time Apr 09 02:43:29 well I must be doing something wrong as hell cause its showing both of my views Apr 09 02:44:44 this is what I have right now http://pastebin.com/XaUe4RST Apr 09 02:45:17 i'm downloading some data from the internet and for some reason the amount of bytes im reading is less than the content-length of the response... Apr 09 02:45:42 any ideas? Apr 09 02:47:09 server is fucked Apr 09 02:47:19 No idea. Apr 09 02:51:00 http://www.businessinsider.com/google-uses-16000-computers-to-find-cats-on-youtube-2012-6 Apr 09 02:51:06 Google creates SkyNet Apr 09 02:51:12 \o/ Apr 09 02:52:11 hello i'm trying to implement a left-right swipe listener. I found this code on SO http://stackoverflow.com/questions/13095494/how-to-detect-swipe-direction-between-left-right-and-up-down - but I'm not sure how to include that to the class that extends Activity. any ideas? **** ENDING LOGGING AT Tue Apr 09 02:59:58 2013