**** BEGIN LOGGING AT Sat Dec 14 02:59:59 2013 Dec 14 03:13:13 g00s_: not bad Dec 14 03:42:41 hey I was just wondering what is the best way to connect android asa front end to a backend (in my case node.js) Dec 14 03:50:55 Hi, I am having an error running my emulated android device, the error I am getting from the AVDM is "NAND: could not create temp file for system NAND disk image: File exists", has anyone experienced this? Dec 14 03:52:18 I've spent 10 hours today searching for the file that already exists, and scouring Google for answers, but to no avail. Can anyone help? Dec 14 03:54:17 The stack trace is: [2013-12-13 21:53:46 - MyFirstApp] ------------------------------ [2013-12-13 21:53:46 - MyFirstApp] Android Launch! [2013-12-13 21:53:46 - MyFirstApp] adb is running normally. [2013-12-13 21:53:46 - MyFirstApp] Performing com.example.myfirstapp.MainActivity activity launch [2013-12-13 21:53:46 - MyFirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'GalaxyNexus' [2013-12-13 21:53:46 Dec 14 03:54:39 what the fudgecakes Dec 14 03:54:50 my thoughts exactly... Dec 14 03:55:20 like I said, the error is "[2013-12-13 21:53:46 - Emulator] NAND: could not create temp file for system NAND disk image: File exists" Dec 14 03:55:29 but it sounds like no one here knows the solution, so thanks Dec 14 03:56:24 you sure your hd has enough room? Dec 14 03:56:33 either host os itself or avd disk Dec 14 03:56:49 my hd definitely does Dec 14 03:57:01 but i'm not sure how i would be able to tell if the avd disk has enough space Dec 14 03:57:07 hello again, XXCoder Dec 14 03:57:17 hey 2x ;) Dec 14 03:58:44 anyone experience using android client Dec 14 03:58:47 with another backend language Dec 14 03:58:54 not sure what is the best thing to use Dec 14 03:59:39 Java Dec 14 04:00:10 LoneSoldier728 as long as its not PHP, you're fine Dec 14 04:00:21 but how do i connect them Dec 14 04:00:26 it is node.js Dec 14 04:00:36 I want to basically take a login page from android Dec 14 04:00:44 and send the info back to my server as a post Dec 14 04:01:08 and then from my server send back user info to android Dec 14 04:19:45 best way to connect android app to nodejs Dec 14 05:44:02 same as connecting to any thing else Dec 14 06:03:47 hi Dec 14 06:04:44 anyone know why i can't install my own app it said: App not installed Dec 14 06:04:45 why? Dec 14 06:05:01 i use eclipse and export the pak Dec 14 06:05:13 logcat should tell you Dec 14 06:05:19 apk file then bring it to android device and can't install with the following message: App not installed Dec 14 06:05:38 where can i get the logcat? Dec 14 06:05:57 in eclipse or using windows command prompt or linux terminal adb logcat Dec 14 06:06:15 i do have eclipse, that is what i program with Dec 14 06:06:35 canvs2321, i dont' really understand man Dec 14 06:06:36 i know you stated that Dec 14 06:06:42 then google? Dec 14 06:06:47 cause you need a hand to hold Dec 14 06:06:48 hmm Dec 14 06:07:55 so are you going to help me ? Dec 14 06:08:33 it'd take too much time. So google how to view logcat using your development environment & with adb Dec 14 06:09:16 teamviewer? Dec 14 06:10:25 google? it's simple, open browser type, how to view logcat eclipse/or using adb. run app from eclipse, get logcat failed error, profit? Dec 14 06:14:58 canvs2321, i enabled the logcat in eclipse Dec 14 06:15:11 but how can it be...i manually installed on my device Dec 14 06:15:17 i dont plug the wire Dec 14 06:15:37 i copy apk to sdcard and manually installed on the device Dec 14 06:16:33 you need details. App not installed doesn't tell you shit. so plug the wire in, get adb logcat running from a shell or command prompt, install app&read logcat to get a more descriptive message Dec 14 06:17:11 ok let me plug Dec 14 06:22:00 Phong_ wut the hell are you doing … copy apk to sd card and manually install O.o Dec 14 06:23:14 it was quiet here and you decided to liven up a bit, right ? Dec 14 06:23:28 :) Dec 14 06:23:38 lol Dec 14 06:23:55 g00s_, then how to install ..i thought normally you just install the .apk file right? Dec 14 06:25:03 under the hood, what the tools do is adb push it to the device and then run 'pm install -r' on it Dec 14 06:25:19 but you dont do that. eclipse or AS or intelliJ does that Dec 14 06:25:30 so what do i have to do? Dec 14 06:25:30 just press the green play button :) Dec 14 06:25:40 maybe you need to make a run configuration Dec 14 06:26:00 i'm rusty at eclipse now, but even so … its the same basically Dec 14 06:26:06 but usually i install .apk from internet ..i just copy to sdcard Dec 14 06:26:13 dafuq Dec 14 06:26:34 g00s_, :( Dec 14 06:26:37 Phong_ you got android for dummies right ? Dec 14 06:26:43 yes Dec 14 06:26:50 are you telling me they didn't say how to run your app ? Dec 14 06:26:57 i didn't finish Dec 14 06:27:03 oh well then Dec 14 06:27:03 reading that book yet Dec 14 06:27:28 almost always, the first chapter in the book goes over all the steps you need to run hello world Dec 14 06:27:30 can't you just tell me what to do ? Dec 14 06:27:34 and the d.android.com website has that too Dec 14 06:28:32 http://developer.android.com/training/basics/firstapp/index.html Dec 14 06:28:46 thanks, i always get yell at all the time :( Dec 14 06:28:50 notice that section there http://developer.android.com/training/basics/firstapp/running-app.html Dec 14 06:29:10 Phong_ if we were in the same room i would strangle you :) Dec 14 06:29:45 and if Nov 2014 you pop in and ask how to run an android app, i will find you and strangle you Dec 14 06:29:51 :D Dec 14 06:31:08 Phong_ so quiet … you realize i'm joking right Dec 14 06:31:12 :) Dec 14 06:31:13 mostly Dec 14 06:31:22 i'm scared of you now Dec 14 06:31:30 i'm scared of you too Dec 14 06:34:57 <_john_x> how do I add a button (programmatically) to a relative layout ? I've looked on stack overflow but none of the examples work for me. - I am trying -> http://pastebin.com/GiWJiPny Dec 14 06:35:30 how to make emulator have internet access? Dec 14 06:36:46 it does automatically Dec 14 06:37:08 but when i click browser, it unfortunately the browser stop Dec 14 06:37:12 ?? Dec 14 06:37:18 read logcat Dec 14 06:37:23 i hit F8 to toggle internet Dec 14 06:38:41 dang man, so complicated, i wish someone do a Teamviewer me please........ Dec 14 06:41:42 arghh :( Dec 14 06:43:14 pls Dec 14 06:56:14 i'll teamview you... $250 an hour Dec 14 06:57:12 Hi. Dec 14 07:10:09 What should I look into if I want my android app to post to a url on some type of timed interval? Would it be a timer, or a handler.. or...? Dec 14 07:24:56 guys i got this error: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] Dec 14 07:25:13 C:\Android\sdk\platform-tools>adb install c:\testapp.apk Dec 14 07:25:13 1328 KB/s (275829 bytes in 0.202s) Dec 14 07:25:13 pkg: /data/local/tmp/testapp.apk Dec 14 07:25:13 Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] Dec 14 07:25:23 help Dec 14 07:26:26 http://stackoverflow.com/questions/2914105/android-what-is-install-parse-failed-no-certificates-error Dec 14 07:26:31 Try that Dec 14 07:33:25 try signing the apk Dec 14 07:33:52 Phong_: you either use debug certificate that comes with SDK or create one Dec 14 07:34:01 i read it Dec 14 07:34:06 but dont seem to understand how to do it Dec 14 07:34:07 lol Dec 14 07:34:27 what can i download the tool to do it? Dec 14 07:34:47 what are you using to build your code Dec 14 07:35:35 where can you find the google play services sdk version number? Dec 14 07:35:36 eclipse Dec 14 07:38:23 found it Dec 14 07:38:33 damn manifest Dec 14 09:19:38 anyone with Airpush SDK experience Dec 14 09:19:41 <_john_x> help pweeze -> http://stackoverflow.com/questions/20580962/android-2-33-dev-adding-button-to-relative-layout-programmatically Dec 14 09:20:25 I am exception that permission to access network state is missing though it it is in my manifest Dec 14 09:37:06 Hi, does the Google Play Services package allows ratings of apps? or that can be done only in the Play Store itself? Dec 14 09:54:26 hello Dec 14 09:55:12 is there anyone bored willing to help me? :-) I am not that noobish... just a little Dec 14 09:56:10 post it Dec 14 09:56:15 maybe for a second Dec 14 10:00:03 Jerzak014 Dec 14 10:00:17 will be afk in a bit Dec 14 10:02:07 sry Dec 14 10:02:31 i need to prevent dialog, that appears after i enable wifi programatically showing networks in range Dec 14 10:02:47 from appearing :) Dec 14 10:02:59 i want to show wifis in range by myself Dec 14 10:03:21 um, i'm probably newb too Dec 14 10:03:24 but there's sample app Dec 14 10:03:31 that does this, or similar i think Dec 14 10:03:44 ok Dec 14 10:03:50 maybe it is on github Dec 14 10:03:53 ill check Dec 14 10:03:55 no Dec 14 10:04:07 in api support apps Dec 14 10:04:17 aha Dec 14 10:04:18 ok Dec 14 10:04:24 ill try, Dec 14 10:04:36 thank you and enjoy whatever youre up to Dec 14 10:04:38 do Dec 14 10:04:41 ;) Dec 14 10:05:54 err maybe i'm wrong Dec 14 10:05:59 i just remember something like that Dec 14 10:06:04 sdk/samples/android-19/connectivity/network/NetworkConnect Dec 14 10:06:22 check that out, if not disregard my advice Dec 14 10:07:15 np ;) any advice may lead to happyend Dec 14 10:09:32 and i'm off to hack together this code, but feel free to bother if you need Dec 14 10:20:31 can anyone confirm that he is also seeing whitepage after following https://apps.admob.com/admob/signup?subid=ww-ww-et-admob2&_adc=ww-en-et-developers_mobile&hl=en Dec 14 10:21:48 https://apps.admob.com/admob/ Dec 14 10:22:30 I am unable to create an account for myself :-( Dec 14 10:23:13 yep, nothing's loading Dec 14 10:23:37 ok Dec 14 10:23:50 then its safe to safe that its broken Dec 14 10:24:02 its not working :) Dec 14 10:24:03 safe to safe indeed Dec 14 10:24:51 hello guys Dec 14 10:25:15 well, I wonder who advertises with them when their sign-up page is broken Dec 14 10:25:29 not sign up page Dec 14 10:25:56 gotta see how to fix the exception airpush is throwing at me Dec 14 10:26:11 http://i.imgur.com/h2KmECI.png seems samsung wins low hands Dec 14 10:26:31 https://www.admob.com/login?_cd=1#utm_medium=et&utm_campaign=en&utm_source=ww-ww-et-admob2 Dec 14 10:26:39 they probably dont want nongoogle users signing up Dec 14 10:26:41 or something Dec 14 10:27:31 gdrc: the demographics are from Admob ? ? Dec 14 10:28:04 Eeeeeee: worked like a charm Dec 14 10:28:05 from android console Dec 14 10:28:08 ok Dec 14 10:28:13 ;) Dec 14 10:28:17 I don't have any ads on my apps ;) Dec 14 10:28:30 ok Dec 14 10:28:54 but I do not see why am I not able to get there with original link Dec 14 10:29:03 they probably dont want nongoogle users signing up Dec 14 10:29:06 or something Dec 14 10:29:38 no previous account history Dec 14 10:29:47 == shady advertisers Dec 14 10:29:52 or it's just broken Dec 14 10:33:09 just the man i'm looking to see Dec 14 10:34:43 whats the manfeast file do Dec 14 10:35:18 well Eeeeeee I would deem it broken Dec 14 10:35:20 sounds important Dec 14 10:35:26 oh ya? Dec 14 10:35:46 https://accounts.google.com/SignUpExpress?service=admob&continue=https%3A%2F%2Fwww.admob.com%2Fhome%2Flogin%2Fgoogle%3F&hl=en_US Dec 14 10:36:05 oh, but you got an account right? Dec 14 10:36:18 yeah you should probably contact them about that Dec 14 10:48:33 btw looney think its cause they want people using chrome Dec 14 10:48:36 if you use firefox Dec 14 10:48:50 nah, man Dec 14 10:48:57 cause i got on chrome Dec 14 10:48:59 I tried it in chrome Dec 14 10:49:03 ah Dec 14 10:49:07 then I tried it in FF Dec 14 10:49:10 no good Dec 14 10:49:16 but your link was good Dec 14 10:49:22 it work like a charm Dec 14 10:49:24 ya i just signed up too Dec 14 10:50:02 has anyone got adb over wifi working? Dec 14 11:00:42 I have used adb over wifi in the past Dec 14 11:02:28 getting device unauthorized Dec 14 11:02:33 and offline in ide Dec 14 11:03:22 further than i was when i asked earlier though Dec 14 11:03:57 Hmm. The stupid thing doesn't tell me the IP address it actually bound to Dec 14 11:04:07 ah now Dec 14 11:04:23 talking about something different? Dec 14 11:04:31 worked fine for me Dec 14 11:04:55 did you follow a tutorial? Dec 14 11:04:59 adb connect 192.168.5.107:5555 followed by adb shell opened a connection to phone Dec 14 11:05:02 no Dec 14 11:05:09 what do you need tutorial for, it's 2 simple commands Dec 14 11:05:27 the adb shell throws same error Dec 14 11:05:56 Well, I guess I don't know what such an error means. Dec 14 11:06:12 hmm, have you enabled network debugging ? ? Dec 14 11:06:21 need to delete keys Dec 14 11:06:26 ya Dec 14 11:06:53 gonna try everything on this so article Dec 14 11:07:03 probably just stupid mistake Dec 14 11:07:15 tried earlier on nonrooted device forever, so switched Dec 14 11:09:58 I got to admit that this adb over tcpip is pretty convenient. I think I'll start doing this from now on Dec 14 11:10:12 ya Dec 14 11:10:28 that's why i'm wasting my time trying to figure out the quirks Dec 14 11:10:49 i thought genymotion was awesome, but will use that way less now Dec 14 11:11:50 dunno if this speeds up the process, but seems like it would Dec 14 11:12:02 at least based on reviews and the tips Dec 14 11:12:03 https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb Dec 14 11:12:48 then again a bash script could do the same Dec 14 13:03:50 good morning (NY time) everyone Dec 14 13:06:25 I am a career Msft dev... but have done some android and ios dev.... side fun projects Dec 14 13:06:54 hoping to learn some android dev on my debian 7 box... android studio Dec 14 13:08:57 so far the layouts are a little frustrating... however GOogle does have decent docs Dec 14 13:16:33 hello! Dec 14 13:16:50 I'm making a dialog using a DialogFragment Dec 14 13:17:03 thus I will probably asking newbie java and android questions Dec 14 13:17:16 I don't need dialog title, so I use this line to hide title: getDialog().getWindow().findViewById(id.title).setVisibility(View.GONE); Dec 14 13:18:21 DialogFragment.STYLE_NO_TITLE Dec 14 13:18:23 But there is still a blue line at the top of dialog and I wnat to get rid of it same way. My question is: is it possible to find the default layout of android dialog Dec 14 13:18:34 check out onCreate doc - http://developer.android.com/reference/android/app/DialogFragment.html Dec 14 13:20:18 dragthor: Thanks a lot!!! This worked out right as I wanted to: getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE); Dec 14 13:20:51 glad i could help (me = android newbie... lol) Dec 14 13:22:07 I red using Application class to save data over activities is unsafe. What do you think about that? Dec 14 13:24:14 you can use whatever static class for sharing data if that's what you need, and for serializable data that you only have in small amounts, you can use sharedpreferences Dec 14 13:24:56 you don't have to use an application subclass per se, though it may be convenient in that it will be created before any of the activities will be, so it can do setup for you Dec 14 13:25:27 on the other hand, you can solve that with some SharedClass.getInstance() method where getInstance potentially does some setup work Dec 14 13:26:05 for example, if I want to keep login data for interacting with a webservice in all of my activity what should I use? I don't want to store it on memory Dec 14 13:28:17 sharedpreferences Dec 14 13:28:18 anyone know a good way to make things increase with a timer? i'm trying to use system clock but it doesn't seem to be working Dec 14 13:28:31 they are a fit in how they behave, if not for how they are named Dec 14 13:28:58 alankila: sharedpreferences means storing data :P Dec 14 13:29:13 yes, even data that isn't preferences Dec 14 13:29:22 yes of course Dec 14 13:29:41 but you see, it's persisted for you, all activities share the same instance in the same process, and you don't have to worry about activities and even the entire app process coming and going away Dec 14 13:35:08 hey guys, please could you check whats wrong with my sqlite query? Im calling c = db.query(tableName, null, where, null, null, null, null); f.e. where = Name like %ma%. this gives an error (1) near "%": syntax error Dec 14 13:37:43 alankila: sure but if the device is root, the user can access the data that is plain and not encrypted. Maybe I can ecrypt username and password strings Dec 14 13:44:26 how can I show soft keyboard on dialog "onCreate" for some EditText? Dec 14 13:45:24 if I use getActivity().in hideSoftInputFromWindow - nothing happens... Dec 14 13:47:40 gdrc: oh, so user isn't entering those strings in the first place? Dec 14 13:48:47 (you usually don't hide information from user that he already knows) Dec 14 13:48:48 alankila: yes there is a login activity but for any web request I think is better to check if is logged Dec 14 13:49:17 defuera: '%ma%' Dec 14 13:49:37 or use ? to mark the location of the value (Name like ?) and then pass the value of ? separately Dec 14 13:51:17 why would my game no longer be able to display the tile based map on my physical phone any more but works fine in the emulator? Dec 14 13:51:28 i picked the same rez on the emu as my phone has Dec 14 13:51:46 the display is all screwed up on the physical hardware, the wrong tiles are being drawn Dec 14 13:52:57 it also looks like its only drawing them half height. so i get a bar of half hight tiles, a bar of black... alternating Dec 14 13:56:56 aha! just changed my avd to MDPI and now thats crewed up too Dec 14 13:56:58 hrm Dec 14 13:58:20 erm no. changed it to HDPI i mean lol Dec 14 13:58:32 erm ok not sure how to fix this Dec 14 14:22:06 is it possible to hide soft keyboard without specifying particular window/widget identifier? Dec 14 14:24:16 nevermind... found it ^_^ Dec 14 14:31:01 hey guys, my app crashes when installed via testflight on a device right before it starts, how can i get to it's error log to get a stacktrace or something? Dec 14 14:40:47 darthdeus, check logcat? Dec 14 14:40:52 do you actually have the device in your hand? Dec 14 14:41:44 http://androidniceties.tumblr.com/ Dec 14 14:41:45 <333 Dec 14 14:42:19 Mavrik: cool thanks :) logcat works Dec 14 14:42:23 Mavrik: yes i do have it on my table Dec 14 14:43:38 and one more stupid question ... is there a good guide for using adb? i've been trying to google just the simplest thing, for example if i mark an app that it should wait for a debugger to attach, how do i actually attach it? ... http://developer.android.com/tools/help/adb.html doesn't talk about this Dec 14 15:05:51 darthdeus: I suspect authors expect people to be a bit more in the know with java, I guess Dec 14 15:06:05 darthdeus: you might notice in adb --help mentions of jwdp Dec 14 15:06:23 my ssd http://i.imgur.com/zOf6a1l.png Dec 14 15:06:33 p_l: yeah i'm using xamarin so i don't really touch java even on android:) Dec 14 15:07:37 darthdeus: Well, then you're in even worse condition ;) Dec 14 15:08:02 jwdp is for java debugger, and I think you can do some tricks with adb's ability to forward TCP/IP to connect remote debugger Dec 14 15:08:35 for Xamarin and native, you have to somehow connect apropriate debugger as well - Native debugging is supported with gdb_server, which afaik is available on some devices Dec 14 15:11:08 hmm, interesting Dec 14 15:11:56 to be honest i don't really need the xamarin debugger functionality, i thought i could get a reasonable info about what's going on when my app crashes on launch time, but stacktrace from logcat helped Dec 14 15:12:24 darthdeus: well, regarding specific xamarin stuff, I think it's time you got your money's worht ;) Dec 14 15:12:27 *worth Dec 14 15:13:51 i should still be able to use a java debugger and step through the bytecode, right? :o Dec 14 15:14:52 darthdeus: only for the java parts Dec 14 15:15:14 hmm :( Dec 14 15:15:23 afaik xamarin compiles into native executable that hosts CLR + copy of the bytecode, and loads it from java wrapper Dec 14 15:16:35 not sure about the details, but i think it compiles to native only on ios and on android it somehow requires the runtime to do some magic since it can't do ahead of time compilation Dec 14 15:17:01 darthdeus: it can, it just requires a java wrapper Dec 14 15:17:18 (which serves as a bridge to Android APIs) Dec 14 15:17:41 hmm interesting Dec 14 15:18:31 but if it can compile an ARM binary on iOS, doesn't android run ARM as well? Dec 14 15:19:04 i know i have dumb questions, i've only been doing this mobile thing for a month or so ... before that it was all dynamic interpreted thingies on webservers :D Dec 14 15:20:09 so i replaced my modem file on my phone with a picture file by mistake Dec 14 15:20:11 now i can't get on wifi Dec 14 15:20:15 how to fix? Dec 14 15:21:00 good morning guys Dec 14 15:21:08 morning sir Dec 14 15:21:28 just a quick quesiton about Android development. I am trying to ascertain the recommended way to update an entry in my listview to reflect changes in the underlying data Dec 14 15:21:50 so, user clicks an item, goes to an activity, does something, returns to the previous activity, I would like to see that entry updated Dec 14 15:25:12 lol Dec 14 15:25:15 and i figured it out Dec 14 15:25:23 i wonder why I was having so much trouble last night Dec 14 15:31:36 how does YouTube play video streams with audio Dec 14 15:31:46 I tried dissecting the page Dec 14 15:32:17 and there are streams which do not work/connect or only have video (soundless) Dec 14 15:32:22 bummer Dec 14 15:33:17 Some streams seem to simply have audio broken in all clients Dec 14 15:33:30 Or are you meaning streams that work in one format bit not others? Dec 14 15:40:43 well, try in your terminal Dec 14 15:41:11 curl -3 "https://www.youtube.com/watch?v=vw61gCe2oqI" | grep "\0026url" Dec 14 15:41:20 you will see info of all the streams Dec 14 15:54:16 hi i have List launchables=pm.queryIntentActivities(main, 0); launchable as a List with all the application in a device icon and label Dec 14 15:54:22 i want to show it in a grid view Dec 14 15:54:36 how can i add icon and label in getView Dec 14 15:54:46 what is the best way ? Dec 14 15:55:10 ; Dec 14 15:56:54 hello ? Dec 14 15:56:57 anyone please help ? Dec 14 16:04:05 wat ? Dec 14 16:29:20 chinu? Dec 14 16:29:22 I dont follow Dec 14 16:29:58 it sounds like you are talking about a custom view inflated in getView for your adapter? Is that right? Dec 14 16:37:17 Happy Saturday everyone Dec 14 16:38:50 zinx: what do you prefer to develop? adt, intellij or another text editor? Dec 14 16:39:30 hello Dec 14 16:39:47 hi zinx Dec 14 16:39:50 I'm trying to build AOSP, does that apply as custom rom? Dec 14 16:42:02 hi paulo_ Dec 14 16:42:25 paulo_, ever use ksoap2 ? Dec 14 17:29:16 hello Dec 14 17:31:44 it's possible to make a layered drawable that has a tiled background and a centered logo right (for instant splash screen window background) - I want it to work on all sorts of resolutions Dec 14 17:32:01 anyone done this? Dec 14 17:32:06 yes Dec 14 17:32:09 just do it in xml Dec 14 17:32:42 Napalm: experimenting with it now Dec 14 17:39:48 can anyone tell me the code is compile and create .apk...why it won't work? Dec 14 17:39:48 http://pastebin.com/34Lrdvb4 Dec 14 17:39:52 please man. Dec 14 17:41:22 hello? Dec 14 17:41:32 phong_: how should we know why it doesn't work? why don't you add debug statements and track how it goes Dec 14 17:41:43 also does your app have internet permission? Dec 14 17:41:48 this is a common newbie mistake Dec 14 17:41:51 yes in android manifaste Dec 14 17:42:11 alankila, . the version that i used to make game doesent need that params. anyway this version doesent works. i receive an error like "misconfigurati Dec 14 18:01:05 on". NEED HELP Dec 14 18:13:43 there a way of importing/converting basic4android projects to eclipse? Dec 14 18:31:01 i have done a game using play games works fine. after some month i need to upgrade that game and play services are new version. in this version i need to add in manifest . the version that i used to make game doesent need that params. anyway this version doesent works. i receive an error like "misconfigurati Dec 14 18:31:03 on". NEED HELP Dec 14 18:35:06 any idea how to parse a non-standard http response with okhttp? Dec 14 18:35:13 Caused by: java.net.ProtocolException: Unexpected status line: ICY 200 OK Dec 14 18:39:46 I feel a bit bad for doing this, but ping JakeWharton - any idea how to get a non-standard http response working with OkHttp? Dec 14 18:43:11 you'll almost certanly have to fork it :) Dec 14 18:43:30 yeah, s'what I figured Dec 14 18:47:14 just wondering if it's worth opening an issue for it or if it's just totally out of scope... Dec 14 19:00:19 anyone can help me with google play games? Dec 14 19:00:47 How hard is it to get an app approved for the google play store? Dec 14 19:00:58 xan_IT, what's your question? Dec 14 19:01:06 anthonym, there is no approval process. you just sign up and post apps Dec 14 19:01:14 i have done a game using play games works fine. after some month i need to upgrade that game and play services are new version. in this version i need to add in manifest . the version that i used to make game doesent need that params. anyway this version doesent works. i receive an error like "misconfigurati Dec 14 19:01:16 on". NEED HELP Dec 14 19:01:52 "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included." Dec 14 19:02:04 are you sure you're using the latest version of play games services? Dec 14 19:02:52 4030500 Dec 14 19:02:56 is last? Dec 14 19:03:16 im not sure. so that integer exists in your project, but it gives you an error that it's not found? Dec 14 19:03:24 sounds like the play games services project isnt being linked properly Dec 14 19:03:38 [05:59:47] anthonym, there is no approval process. you just sign up and post apps < thanks mate :) Dec 14 19:03:43 i not receive error in compilation Dec 14 19:04:42 library progect just need to import in workpace (im use eclipse) mark "is library" and import in my project ? Dec 14 19:05:05 that should be enough Dec 14 19:07:04 Hey guys, I have a problem with two apps which togetehr should make for a distributed pong. On an android tablet I run a "server" app which talks to two Android phones over bluetooth which both continuously send their accelerometer readings to the tablet. Now I use the same code on both phones and have two threads to handle the communication on the tablet, I have confirmed that both phones create a connection to the tablet and receive Dec 14 19:09:38 can google play services run on a nexus one? Dec 14 19:10:09 i think (?) it requires froyo Dec 14 19:10:16 so as long as the n1 is running froyo+, yes Dec 14 19:10:46 ok, thanks. just wanted to know if it was backwards compatible with the older devices Dec 14 19:11:30 CupOfCocoa: you have said what your problem is. Dec 14 19:11:37 haven't* Dec 14 19:11:46 I'm starting to like android dev so much more than iOS dev by the minute. Dec 14 19:12:09 anthonym: have you started using android studio yet? Dec 14 19:12:22 anthonym: I have doing it for 4 months now and had the exact opposite feeling :) Dec 14 19:12:23 nope haha. Dec 14 19:12:29 I'm going to have to download android studio now Dec 14 19:12:34 anthonym: try that and i bet you will even like it more. Dec 14 19:12:39 hehe thanks mate Dec 14 19:12:45 it is really quite nice Dec 14 19:13:09 OH SHIT YEAH. excuse the french Dec 14 19:13:11 that looks awesome Dec 14 19:13:32 CupOfCocoa: I just don't like the way Apple try to control everything very strictly Dec 14 19:13:33 nickfox: I think I found the issue, is it possible that AsyncTasks are singletons? Dec 14 19:14:28 i have a feeling you might want to a) post the exact error mesage you are getting and b) pastebin your code. Dec 14 19:15:04 nickfox: I'll post code, sorry about that :) Dec 14 19:15:19 and the exception Dec 14 19:17:10 Well if there was an exception that would be helpful but there is none :) Dec 14 19:17:32 hate when that happens Dec 14 19:18:55 Should activity or view implement OnTouchListener? Dec 14 19:21:14 can anyone help me about this?? > p, li { white-space: pre-wrap; } dlerror = Cannot load library: load_library[1096]: Library 'libmmparser.so' not found Dec 14 19:21:30 can anyone help me about this?? > dlerror = Cannot load library: load_library[1096]: Library 'libmmparser.so' not found Dec 14 19:21:45 BlackDal:where do u see that Dec 14 19:22:16 nick9998: this is a runtime error; occurred after slCreateEngine Dec 14 19:22:25 And I need some help trouble shooting why my empty app crashes on startup. Does any have any idea what could cause it or how I could go forward trying to figure it out? Dec 14 19:22:33 BlackDal:check the permissions on your app Dec 14 19:22:59 and google that error message Dec 14 19:23:01 first result on google for libmmparser not found Dec 14 19:23:07 is indeed permissions Dec 14 19:23:13 witch permissions should go to the list? I'd googled it; result = nothing Dec 14 19:23:13 nick9998: good call. Or quicker googling. :P Dec 14 19:23:15 Oh figured it out. I had the wrong class as starting point Dec 14 19:23:41 Kake_Fisk: have a look at this. http://www.vogella.com/articles/AndroidTouch/article.html Dec 14 19:23:47 canadiancow if i remove "" from manifest obtain same error, so i think this is the error Dec 14 19:23:48 nick9998: I browsed all of google result Dec 14 19:23:54 dragorn: quicker googling. :P Dec 14 19:23:59 BlackDal: I strongly disagree with that claim. https://www.google.com/search?q=libmmparser.so+not+found Dec 14 19:24:03 nickfox: I'll check it out, thanks Dec 14 19:24:33 Okay I try again, take a look at this class (tried to reduce it but I guess everything is relevant): http://pastebin.com/Vik6T53z I create two instances of it in my application with two different UUIDs and two different bluetooth devices, then start the thread. I have confirmed that the connection happens and both receive the write from line 54. Upon reading this "1" the devices start sending data about every 50ms (also confirmed that Dec 14 19:24:35 nick9998: interesting result from a perms issue, none the less. I guess they control library exposure vs rbac the calls, or somethign weird. Dec 14 19:25:05 nick9998: all links in this page is visited for my browser; trust me, nothing there help me. Dec 14 19:25:51 well, i am useless then Dec 14 19:26:13 I just came a little. Never forget the first time my computer opened up Android Studio. Dec 14 19:26:15 Thanks a mint :) Dec 14 19:26:37 CupOfCocoa: you cut off before you explained whatever was failing :P Dec 14 19:27:24 CupOfCocoa: yes, and you cut off your long last explanation also Dec 14 19:27:38 ah the IRC long text problem Dec 14 19:27:41 wait I split Dec 14 19:27:50 Okay I try again, take a look at this class (tried to reduce it but I guess everything is relevant): http://pastebin.com/Vik6T53z I create two instances of it in my application with two different UUIDs and two different bluetooth devices, then start the thread. Dec 14 19:27:51 "also confirmed that" was the last we saw Dec 14 19:28:05 I have confirmed that the connection happens and both receive the write from line 54. Upon reading this "1" the devices start sending data about every 50ms (also confirmed that happens on both devices) but I only ever see log messages from the incoming data of one device (from the BACKGROUND_READ log messages). Dec 14 19:28:10 Anybody has any idea what might be going wrong? Dec 14 19:28:12 better? Dec 14 19:28:44 anthonym: question: does Android Studio run on android? Dec 14 19:28:58 I'm on Windows :D Dec 14 19:29:14 If I could tho, I'd bend it over and give it a good one. Dec 14 19:29:25 do u think the linux version could be adapted to run on android/Linux over RDP? Dec 14 19:29:31 prolly Dec 14 19:29:33 CupOfCocoa: that's a weird implementation. While I don't know exactly what would cause that, generally you want to implement your BT stuff in a service independent of an activity Dec 14 19:29:33 i dont actually want to do this, as such Dec 14 19:29:43 I dunno, I literally just downloaded it :D Dec 14 19:29:53 ah ok Dec 14 19:30:05 CupOfCocoa: and generally you can set up the BT connection and then just do all the r/w in it's own thread in the service, instead of messing with asynctask reading Dec 14 19:30:28 nick9998: if you really want to do android dev on android, look at AIDE Dec 14 19:30:41 hi, is this place also for webworks apps? Dec 14 19:30:47 dragorn: Ah read and write in the same thread work? I thought the blocking read would make any write basically impossible Dec 14 19:30:48 nick9998: I don't think, myself, I would really want to do that Dec 14 19:31:11 dragorn: Know any sample code of that in one thread? Dec 14 19:31:23 need help for configuring play services and "api cloud console" for a game Dec 14 19:31:35 CupOfCocoa: Depends on how your async works out. I've also done an infinite read thread and then written independent of that thread, depends on how your device handles getting written to while it's blocked for output Dec 14 19:31:35 dragorn: cool thanks, i will check it out! Dec 14 19:32:14 dragorn: Mhm, it's all android devices Dec 14 19:32:34 or do you mean it depends on the bluetooth chip? Dec 14 19:32:42 Hey, anyone knows someone from Google? I'm under a negative ratings attack, 20 one star ratings in a few days (had only 5-6 of those in 6 months) and comments saying my app is a virus. Pretty much lost here, doesn't seem to stop, anyone I can contact on Google? Dec 14 19:33:21 Why are people saying your app is a virus? Dec 14 19:33:35 I got a flood of ratings in the past few days, although they're diffuse Dec 14 19:35:03 CupOfCocoa: well, i mean it depends on whatever you're talking to. In this case so long as your other side can handle arbitrary incoming data no matter what it's writing out, you can do a read thread and a write thread Dec 14 19:35:13 Is there a way to keep application configuration without keeping it in a external XML file and thus needing the WRITE permission when trying to change the configuration ? Dec 14 19:35:13 anthonym: must be the competition, I got pretty high in the search results on the word 'Calculator' Dec 14 19:35:16 CupOfCocoa: if you're talking to embedded hardware, that might not be a true statement Dec 14 19:35:36 socket: there is pretty much no way to directly contact google, they've made themselves more or less unreachable on purpose Dec 14 19:36:08 so i'm fucked? Dec 14 19:36:12 neredsenvy: shared preferences? Dec 14 19:36:19 google customer == borg. Dec 14 19:36:35 neredsenvy: you also don't need sd card write permissions to write to internal app storage, only external Dec 14 19:36:35 google customer support == borg. Dec 14 19:36:38 oops Dec 14 19:36:40 :) Dec 14 19:36:43 dragorn: Yep, understood. The problem is that I am not seeing the incoming data from the second device even though android supposedly supports up to 7 concurrent bluetooth connections Dec 14 19:37:13 anyway I will play some more with it, thanks for your explanations Dec 14 19:37:30 dragorn: So I don't need permissions for the following: File f = new File("./somefile.n"); Dec 14 19:37:42 socket: about all you can do is reply to the comments disputing them, and explain in the app description. If you don't need permissions like internet, etc, then it's pretty hard to be a virus Dec 14 19:37:45 socket: there is a way to contact google. Dec 14 19:37:46 To create a file in the same directory as the application resides Dec 14 19:37:59 socket: there is a form you can fill out, read this SO. http://stackoverflow.com/questions/11331656/protect-from-fake-reviews-on-google-play Dec 14 19:38:02 neredsenvy: you'd never want to use "./". There's an API for file storage, use that Dec 14 19:38:13 plx help me. how i can ceck if i done all right the configuration of play services and api console? Dec 14 19:38:14 neredsenvy: but yes, you can effectively make a file in the app directory Dec 14 19:38:15 socket: https://support.google.com/googleplay/?rd=1#contact=1 Dec 14 19:38:25 there is any professional support? Dec 14 19:38:36 xan_IT: Going to go out on a limb here, but the fact that you keep saying that and no-one responds implies no-one here uses it Dec 14 19:39:00 thanks nickfox, will try Dec 14 19:39:10 CupOfCocoa: right; your server implementation is weird enough I'm having difficulty following it :) Dec 14 19:39:16 CupOfCocoa: also I woke up on the retarded side of the bed today Dec 14 19:39:43 google has a pretty decide demo implementation, but I don't think they use a service (which is problematic) Dec 14 19:40:33 CupOfCocoa: dragorn seems to be fairly knowledgable about BT but if you continue to have problems later, ask g00s when he comes in, he has a lot of expertise with BT on android Dec 14 19:40:34 dragorn: So looking at this File file = new File(Enviroment.getDataDirectory().getAbsolutePath()); Dec 14 19:40:51 well that + "/filename.n" Dec 14 19:44:41 Hi, I'm trying to cross-compile gcc for android, but when I ran make, it error'd on the first file it tried to compile, saying sys/types.h wasn't found even though it was put in the configure flags. Here's my configure.log http://pastebin.com/Pv1D0cAC Dec 14 19:46:00 Snake_X: there are packages for ubuntu for this, i guess u already knew it? Dec 14 19:46:03 i tried to cross-compile something once. i never did it again. Dec 14 19:46:10 i'm aware, yes Dec 14 19:46:14 :) Dec 14 19:46:19 ok cool Dec 14 19:46:24 i will take alook Dec 14 19:46:31 alright Dec 14 19:52:47 hey can you try putting the A=B type stuff at the start of the command? Dec 14 19:53:04 Hi.. Can Android device be capable of "decoding" this kind of signal. http://en.wikipedia.org/wiki/Telecommunications_device_for_the_deaf Dec 14 19:53:40 yeah, ill try Dec 14 19:56:13 I have absolutely no idea why my app doesn't display content Dec 14 19:56:59 Vrooom: http://www.ehow.com/info_8089600_tty-droid.html Dec 14 19:57:06 I set the content to a surface view. I get the holder in the surfaceview and get the canvas object from it and draw on it. Still nothing Dec 14 19:57:13 Vrooom: this article discusses android in relation to services for deaf people. http://www.ncdhhs.gov/dsdhh/services/what_technology.htm Dec 14 19:57:53 damn i didnt know it can do that. Dec 14 19:59:10 same deal http://pastebin.com/ZxckVKMs new configure.log Dec 14 19:59:33 mmm my phone dont have those setting.. its CM10.2 rom. Dec 14 20:00:04 k, let me take alook Dec 14 20:01:17 nickfox: Awesome, will do! Thanks Dec 14 20:01:45 and he is here now Dec 14 20:04:34 Is there a way to preload or tell the application which strings file to use before it populates contentView Dec 14 20:05:01 huh Dec 14 20:05:02 there' Dec 14 20:05:08 s only 1 "strings" file Dec 14 20:05:26 For instance I have two strings.xml files both have same variables but in one variables have US values and in other Croatian values Dec 14 20:05:33 or well US and Croatian translation Dec 14 20:05:37 locale determines that automatically Dec 14 20:05:41 depending on your device language settings Dec 14 20:06:03 I don't want that I wan't the user him self to choose the language of the app Dec 14 20:06:24 why Dec 14 20:06:33 you can also use different string files if you create build variants with gradle in android studio, but that has another use Dec 14 20:06:59 you can set configuration selectors in Resources maybe Dec 14 20:08:10 SNake_x: what happens if you use a simple configure command Dec 14 20:08:23 like the one in the guide, http://wiki.osdev.org/GCC_Cross-Compiler#The_Build Dec 14 20:09:12 pfn: Because people like me for instance want our system lang to be English while local apps to be in Croatian Dec 14 20:09:17 let's see. Dec 14 20:09:35 nick9998: make or make all-gcc? Dec 14 20:09:45 i used make originally Dec 14 20:09:55 all-gcc its saying Dec 14 20:10:00 kk Dec 14 20:10:35 its working :) Dec 14 20:10:53 nice Dec 14 20:11:00 Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.8.1-10ubuntu7' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/arm-linux-gnueabihf/include/c++/4.8.1 --libdir=/usr/lib --enable-nls --with Dec 14 20:11:25 hmm i can send u the configure options for the ubuntu build of gcc/armhf Dec 14 20:11:30 that one was cut off... Dec 14 20:11:32 yeah sure Dec 14 20:11:46 oh, thought you were asking can i. whoops lol Dec 14 20:12:24 will it produce a binary i can push to /system/xbin? ;) Dec 14 20:13:25 neredsenvy, that makes no sense, but ok Dec 14 20:13:27 yea exactly Dec 14 20:13:35 pfn, that makes perfect sense Dec 14 20:13:39 u would have to use the static options Dec 14 20:13:39 awesome. Thank you Dec 14 20:13:46 Mavrik, from a user perspective, it doesn't Dec 14 20:13:49 when u compile ur c code Dec 14 20:13:50 and it's one of Android's warts that it doesn't support it Dec 14 20:13:55 that'll be fine Dec 14 20:13:57 pfn, uh, actually it does Dec 14 20:14:04 there's ton of users which demand that feature here Dec 14 20:14:21 otherwise u would have to copy all of the /lib libc stuff over to ur android Dec 14 20:14:31 neredsenvy, that's usually solved by forcing locale at activity start Dec 14 20:14:38 neredsenvy, it's not beautiful but it works: http://stackoverflow.com/questions/2900023/change-language-programatically-in-android Dec 14 20:14:50 np, good luck! Dec 14 20:14:52 is there any benefits to one method or another? Dec 14 20:15:04 and thanks :) Dec 14 20:15:08 static binary is bigger Dec 14 20:15:16 takes up more ram Dec 14 20:15:22 Mavrik, and for that matter, that works well enough, and is what I said Dec 14 20:15:26 update language in Resources Dec 14 20:15:29 ahh. that'll be fine. not too concerned about that Dec 14 20:15:33 but it's easier to build and get working ;) Dec 14 20:15:37 pfn: Why not ? When it comes to translations especially of things under settings and especially when translating from English to Slavic languages the translation is usually so stupid it makes no sense. I always use English translation on all my devices for system and local translation for apps Dec 14 20:15:44 Mavrik: Thanks mate Dec 14 20:15:55 more self contained im going to assume? Dec 14 20:16:03 i.e. one binary Dec 14 20:16:33 Mavrik, I dunno about android making it "hard" it's basically a 1 time update when starting your activities (or getting resources) Dec 14 20:16:37 if you're gonna use a non-NDK compiler you'll have to be careful how you link it Dec 14 20:16:39 yea they dont depend on the "linker" (/lib/ld-linux.so or some such) Dec 14 20:17:04 ah, thats what im looking for :) Dec 14 20:17:06 normally all linux binaries require this file (it's not on android byitself) Dec 14 20:17:22 Snake_X, Android's libc isn't really the same as the one you find on desktop linuxes so you can have problems with that if your app will link against it and try to find non-existing symbols Dec 14 20:17:30 pfn, ok. Dec 14 20:17:49 okay Dec 14 20:18:44 Snake_X, to make the pain less pronounced it's usually a good idea to use NDK to create a stand-alone toolchain, which will give you gcc/llvm that properly compiles and links binaries for Android Dec 14 20:18:51 onPause gets called for some reason when I start the app. Any ideas? Dec 14 20:19:56 mavrik: well, im trying to compile gcc using the ndk if that's what your talking about, unless that's not what you meant by toolchain Dec 14 20:20:18 mhm Dec 14 20:21:05 nick9998: what were the rest of the compiler flags by the way? Dec 14 20:23:24 cool let me sign up for paste bin Dec 14 20:23:32 tyt Dec 14 20:25:40 hi guys Dec 14 20:27:26 an exception in MY code? how rude... Dec 14 20:27:33 -.- Dec 14 20:27:54 Better than a syntax error Dec 14 20:28:16 Snake_X: http://pastebin.com/3ipeT9zx Dec 14 20:28:34 alright, thank you nick9998 ! Dec 14 20:28:57 your welcome, hack the planet! Dec 14 20:29:40 i'm trying to implement an image that responds to pinch and zoom using TouchImageView class at https://github.com/MikeOrtiz/TouchImageView . i also need the image to use fitXY scaling for the default size so my image occupies full width and height. it seems the class only uses matrix scaling. i've looked all over google and can't find a way to do this. please help Dec 14 20:30:38 hmm.. "The following requested languages could not be built: d" Dec 14 20:30:47 that's weird.. d isnt even in there Dec 14 20:31:12 there is some discussion about this issue at https://github.com/MikeOrtiz/TouchImageView/issues/39 but no solution yet Dec 14 20:31:13 wait, yes it is, it just didn't show it in the configure output Dec 14 20:31:33 it works now Dec 14 20:32:34 so basically i need to convert matrix scaling to fitXY scaling Dec 14 20:33:26 Why does android studio generate an activity_main.xml and a fragment_main.xml as well, by default? Dec 14 20:34:51 CupOfCocoa: everything i've done has been to custom BT endpoints and not another phone Dec 14 20:41:56 hi guys, it catches error line on this: HttpTransportSE ht = new HttpTransportSE(URL); in the OnCreate() Dec 14 20:42:07 any advise? Dec 14 20:42:27 with error NetworkOnMainThreadException. exception Dec 14 20:42:40 i'm not allow to use it in OnCreate() ? Dec 14 20:46:20 phong_ instead of hitting your head on every branch .. Dec 14 20:46:25 oh nm Dec 14 20:49:24 any ideas ? Dec 14 20:50:57 nick9998: it crashed again, this time quite a bit further down on. "configure: error: cannot compute suffix of object files: cannot compile" http://pastebin.com/Db8uMaPE Dec 14 20:52:18 dragorn: Got it working now, just moved everything into the thread. Thanks again! Dec 14 20:52:24 hmm Dec 14 20:53:37 ok try without all of the stuff that i sent u Dec 14 20:53:43 just the configure line from the guide Dec 14 20:53:48 ok Dec 14 20:53:57 maybe u would need to do make clean Dec 14 20:54:31 i just rm -fr * in the gcc-build directory :p Dec 14 20:54:51 oh nice Dec 14 21:04:46 I need to take a Bitmap object and increase it's width, Bitmap.createScaledBitmap does that but gives the image a bit of a stretch. Can I avoid that stretch? Dec 14 21:05:42 nick9998: compiled :) Dec 14 21:06:59 i got this error: org.ksoap2.serialization.SoapObject cannot be cast to org.ksoap2.serialization.SoapPrimitive Dec 14 21:10:28 CupOfCocoa: cool. yeah - it's much simpler than trying to balance it w/ asynctask stuff; being in a thread gets you off your main threads anyhow Dec 14 21:10:50 Snake_X: u are compiling on linux natively? Dec 14 21:11:00 yes, im on mint 16 64 bit atm Dec 14 21:11:17 nice , it doesnt take too long Dec 14 21:11:28 nah, ~5 mins with -j 8 Dec 14 21:11:32 ;) Dec 14 21:11:48 they make it seem like it takes much longer Dec 14 21:11:48 socket: you could increase padding on the view, if it's a view, otherwise I suspect you have to make a new bitmap then draw your old bitmap into it Dec 14 21:11:55 lol Dec 14 21:12:11 took 15 minutes without it when i made the mistake of forgetting to export my makeflags Dec 14 21:12:12 socket, you'll have to create a new bitmap and do a copy Dec 14 21:12:13 lol Dec 14 21:14:41 g00s, i know how to use soap now Dec 14 21:14:52 finally can bathe eh ;) Dec 14 21:15:01 g00s, once again, fuck the people trying to tutuial sux shlt Dec 14 21:15:07 nick9998: what should my next step be by the way? Dec 14 21:15:11 those people should not write at all Dec 14 21:15:32 how on Earth when they wrote tuturial when it is not really work Dec 14 21:15:42 I have to play around to make it work Dec 14 21:15:57 Snake_X: i recommend u look into this app, https://play.google.com/store/apps/details?id=org.dyndns.sven_ola.debian_kit&hl=en Dec 14 21:16:47 its possible to install the latest ubuntu, from there you can just apt-get gcc ;) Dec 14 21:19:11 I'll use that to create the GCC binary then and then re-install my nandroid and push it if that'll work :p Dec 14 21:19:34 im assuming it's sufficient to create it? Dec 14 21:20:52 well u can install it to your 'prefix' Dec 14 21:21:02 make all-target-libgcc Dec 14 21:21:04 make install-gcc Dec 14 21:21:19 make install-target-libgcc Dec 14 21:21:50 that would be your next step... Dec 14 21:22:22 Alright Dec 14 21:22:50 yea u dont need the debian-kit for this Dec 14 21:27:59 nick9998: if your talking about installing to my prefix on my native linux, i already have gcc installed from the repo's Dec 14 21:28:39 u will have another copy on your system after this Dec 14 21:29:02 need help for this error: "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included." Dec 14 21:29:16 a gcc which only makes arm binaries Dec 14 21:29:44 I see Dec 14 21:33:02 nick9998: "make: *** No rule to make target `install-target-libgc'. Stop." not sure if too important or not. Dec 14 21:33:20 install-target-libgcc Dec 14 21:33:28 i copied and pasted bad Dec 14 21:33:34 ah Dec 14 21:33:52 alright, all the make/make install's are done Dec 14 21:34:07 cool, so what prefix did u use Dec 14 21:34:11 hey can someone tell me if something is wrong with this the app is crashing (force close) before it even opens Dec 14 21:34:12 http://pastebin.com/sNtMk3JJ Dec 14 21:34:15 for the last time u did configure Dec 14 21:34:37 this is the error http://pastebin.com/qA5jVTmr Dec 14 21:34:51 referring to the build I just made or the one that I got an error on for the arm gcc? Dec 14 21:35:05 the one u just made Dec 14 21:35:09 that worked Dec 14 21:35:21 --prefix="$PREFIX" Dec 14 21:35:36 ah ok, u were supposed to put something there Dec 14 21:35:47 --prefix==/home/snakex/mygcc Dec 14 21:35:47 oh, my bad. lol Dec 14 21:35:59 then the make install would put the files there Dec 14 21:36:04 not sure what has happened now ,lol Dec 14 21:36:20 same for --target Dec 14 21:36:23 well gcc --version still reports 4.8.1 and this one is 4.8.2 xD Dec 14 21:36:49 I'm sure it won't interfear though with anything Dec 14 21:36:59 and alright Dec 14 21:38:22 f*ck google, it's a bug https://code.google.com/p/google-plus-platform/issues/detail?id=704 all day cecking my error and is a bug... Dec 14 21:38:40 anyone know what I am doing wrong : / Dec 14 21:39:26 http://pastebin.com/qA5jVTmr Dec 14 21:39:32 how do i read this error im new to android Dec 14 21:39:40 used to interpretive languages and the console Dec 14 21:39:58 nick9998: --target=arm-android-eabi sounds good? Dec 14 21:40:14 12-14 16:27:30.304: E/AndroidRuntime(448): FATAL EXCEPTION: main Dec 14 21:40:14 12-14 16:27:30.304: E/AndroidRuntime(448): java.lang.RuntimeException: Unable to start activity Dec 14 21:40:17 what does that mean? Dec 14 21:41:11 xan_IT no owner; not looking good Dec 14 21:42:08 yea, i think its okay Dec 14 21:42:23 nick9998 you talking to me? Dec 14 21:42:48 LoneSoldier728: no to someone else Dec 14 21:42:58 can you talk to me : / Dec 14 21:43:00 lol Dec 14 21:43:08 lol Dec 14 21:43:11 nick9998: alright, compiling Dec 14 21:43:34 LoneSoldier728: sure Dec 14 21:43:35 lol Dec 14 21:43:49 well can you tell me what this error means, or how to read it actually Dec 14 21:43:53 http://pastebin.com/qA5jVTmr Dec 14 21:43:59 ok, let me take a look Dec 14 21:44:17 i understand there is an issue with the main activity and it cannot be started, but does it say a line or what the eror is Dec 14 21:45:22 http://pastebin.com/sNtMk3JJ and this is the main file Dec 14 21:45:24 if it helps Dec 14 21:45:26 can you paste the line from your source about public class MainActivity ... Dec 14 21:45:33 ah ok, nm Dec 14 21:45:37 i will take alook Dec 14 21:45:57 ClassCastException on line 22 in MainActivity Dec 14 21:46:29 ya in eclipse i dont even see numbers Dec 14 21:46:52 according to pastebin: 22: final EditText usernameEditText = (EditText)findViewById(R.id.username); Dec 14 21:48:02 ah Dec 14 21:48:28 i think it was the wrong field selected maybe Dec 14 21:48:33 ya Dec 14 21:48:34 thanks ok Dec 14 21:48:40 so do I read it by looking at the bottom Dec 14 21:48:59 not sure what you mean Dec 14 21:49:02 like in javascript the first lines refer to the exact point and it goes backwards in hiearchy Dec 14 21:49:17 but here line 22 was like 10 lines down in the error Dec 14 21:49:21 the "Caused by" in this case was meaningful Dec 14 21:50:29 kk thanks Dec 14 21:50:34 it was the wrong fields basically Dec 14 21:50:51 np Dec 14 21:54:03 nick9998: http://pastebin.com/Db8uMaPE when compiling for my native system, configure: error: cannot compute suffix of object files: cannot compile Dec 14 21:54:03 so i though lemme try gradle, i have a new intellij project and i try to show a map fragment, i follow the tut but i get the error Didn't find class "com.google.android.gms.maps.MapFragment" on path: DexPathList[[zip file "/data/app/blahhh Dec 14 21:54:29 i added the compile 'com.google.android.gms:play-services:4.0.30' line to the build.gradle, what else do i need to do? Dec 14 21:55:10 Snake_X: weird, what changed since last time? Dec 14 21:55:19 other than prefix.. target? Dec 14 21:55:25 pretty much Dec 14 21:55:33 --target=arm-linux-gnueabihf Dec 14 21:55:36 try this one instead Dec 14 21:55:40 ok Dec 14 21:55:48 does it not like the other target perhaps you think? Dec 14 21:56:37 thats what im thinking Dec 14 21:57:15 hmm, i dont see what else it could be, perhaps a gcc bug Dec 14 21:57:24 in that specific target o.o Dec 14 21:58:19 if this compiles, ill see about sending in a bug report. Dec 14 21:58:57 yea , the target/arch names confuse me Dec 14 22:01:30 true :P Dec 14 22:01:36 I would like to get a list of them to be honest Dec 14 22:01:42 can't seem to find one Dec 14 22:02:21 people usually use the Android NDK for this, it makes a toolchain (gcc,ld,ranllib,etc.) for u Dec 14 22:02:45 automating all thest steps... Dec 14 22:03:41 is there some way to get the information that the other phone which i'm trying to call has started ringing using the TelephonyManager's CALL_STATE_RINGING or something else somehow? Dec 14 22:04:00 nick9998: yeah, im just a bit more hard-core, LFS has changed my life ;) Dec 14 22:04:21 osxorgate you have the 'android support repository' downloaded from the sdk manager right :P Dec 14 22:04:37 g00s yeah i got it all Dec 14 22:04:50 gradle plugin 0.6.3 ? Dec 14 22:04:58 im wondering if i need to make a custom project for the lib or sth? Dec 14 22:05:23 how can i check ? Dec 14 22:05:49 <-- gradle Noob Dec 14 22:05:51 osxorgate emu or phone ? Dec 14 22:06:12 tablet nexus7 Dec 14 22:06:17 hmm Dec 14 22:06:19 Help? anyone? Dec 14 22:07:19 g00s https://gist.github.com/xorgate/10416733e9a796190684 is what i have now Dec 14 22:07:29 nick9998: same error, http://pastebin.com/Db8uMaPE using --target=arm-linux-gnueabihf --prefix=/home/jacob/gcc Dec 14 22:07:39 Hm. Dec 14 22:08:14 hmm use the configure line that worked for u, except replace the $PREFIX part Dec 14 22:08:35 alright Dec 14 22:08:54 osxorgate nothing stands out to me Dec 14 22:09:26 g00s am i correct in thinking that i dont need to make a seperate module for the play services lib? Dec 14 22:09:37 i dont think so Dec 14 22:09:54 i haven't used play services yet, but it should be pretty easy from gradle Dec 14 22:11:02 osxorgate building from command line ? Dec 14 22:11:12 no i just wanna run it from intellij Dec 14 22:12:26 see this ? http://stackoverflow.com/questions/20543546/google-map-api-code-is-not-working-please-help-me Dec 14 22:13:22 have the meta-data tag? Dec 14 22:17:06 yup Dec 14 22:17:09 both :) Dec 14 22:17:42 intellij cannot resolve the play version in the manifest, but it will still build Dec 14 22:21:02 is itbad practice to rely on the order of expression execution in a conditional? e.g. while (a||b||foo()), can i rely on foo() never being invoked if a or b eval as true? Dec 14 22:21:06 nick9998: alright, did all the make/make install's Dec 14 22:21:12 prefix is in /home/jacob/gcc Dec 14 22:21:25 cool take alook inside /home/jacob/gcc Dec 14 22:21:52 storkme: you should wonder about how readable is it, how much brainpower does it take to figure out what this code does Dec 14 22:22:04 nice binary files inside :) Dec 14 22:22:26 can't think of a more elegant way of doing it, will try though Dec 14 22:22:46 great ,next step is to gcc -static -o hello hello.c Dec 14 22:22:56 try to compile something Dec 14 22:23:06 alright Dec 14 22:23:24 storkme i suppose you could add a comment about short circuit eval above the conditional Dec 14 22:23:42 but as a coding practice, it should be fine Dec 14 22:24:05 if (a != null && a.isHappy()) is fine Dec 14 22:25:21 g00s, i wouldnt even bother with the comment Dec 14 22:25:28 nick9998: no errors on compilation/execution :) Dec 14 22:25:43 cool now type: file hello Dec 14 22:25:52 it's extremely common to see checks like yours, or (a == null || a.isEmpty()), etc Dec 14 22:25:54 should say something about it being a ARM binary Dec 14 22:25:58 you can, though if foo() has side effects beyond performing a test, personally I might not do it that way Dec 14 22:26:07 maybe i should try.. *shudder* android studio Dec 14 22:26:23 the best is visual basic, where "And" does not shortcircuit, but AndAlso does (i think the Or version is OrElse?) Dec 14 22:26:27 that confused the hell out of me for a while Dec 14 22:26:38 (why is it calling this method when it should have short circuited already?!?!) Dec 14 22:26:57 nick9998: hello: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.24, not stripped Dec 14 22:27:16 osxorgate if it doesn't work from the command line … Dec 14 22:27:35 Snake_X: says to me you're using the wrong gcc Dec 14 22:27:47 g00s: idunno really, 'gradle' is not a valid command in the project dir.. as i said im a noob Dec 14 22:27:50 canadiancow: that's just evil Dec 14 22:28:01 osxorgate: ./gradlew Dec 14 22:28:07 Snake_X: use the 'gcc' that you compiled into the prefix folder Dec 14 22:28:18 nick9998: it did use it Dec 14 22:28:26 dragorn, they couldn't break previous VB behavior i guess, but they needed to add a way to do it :P Dec 14 22:28:27 Snake_X: u need to specify that in your command Dec 14 22:28:31 BUILD SUCCESSFUL Dec 14 22:28:32 Snake_X: and not use the one in the PATH Dec 14 22:28:34 well that's something Dec 14 22:28:47 yeah, i did ./gcc referring to the one in the current gcc directory Dec 14 22:28:58 hmm weird Dec 14 22:29:00 Snake_X: then you compiled an intel gcc and not an arm one Dec 14 22:29:17 osxorgate now gradle installDebug Dec 14 22:29:29 dragorn: right, the arm target would fail to compile Dec 14 22:29:44 dragorn: when i attempted to do make all-target-libgcc Dec 14 22:30:03 g00s, ok, still successfull Dec 14 22:30:15 dragorn: tried --target=arm-linux-gnueabihf as well as --target=arm-android-eabi Dec 14 22:30:17 Snake_X: if you're trying to make an arm binary you need an arm-targetting compiler Dec 14 22:30:48 right, but it fail's to compile. here's the config.log if you want to look inside it http://pastebin.com/Db8uMaPE Dec 14 22:30:58 and that's targeting arm Dec 14 22:32:40 dragorn: the error i get is when doing make all-target-libgcc, and the error is configure: error: cannot compute suffix of object files: cannot compile Dec 14 22:32:42 g00s: well it works.. i guess.. im a bit confused Dec 14 22:38:17 nick9998: by the way, what was the purpose of going ahead with creating an intel-targeted gcc build? Dec 14 22:40:43 actually it was an accident Dec 14 22:40:55 maybe you had --target=$TARGET ? Dec 14 22:41:08 yeah, that was the one that worked for me Dec 14 22:41:17 originally i mean Dec 14 22:41:32 ah ok so if you dont have TARGET set in your environment variables Dec 14 22:41:38 that would work out to be: --target= Dec 14 22:41:43 yeah Dec 14 22:41:49 and i guess it just assumes host system type Dec 14 22:41:51 in that case Dec 14 22:42:11 im not sure why your gcc is not compiling Dec 14 22:43:06 whoops, hit the window key close combination >_< Dec 14 22:43:11 can I acquire a wifimulticastlock from an instrumentation test? Dec 14 22:43:18 I'm not receiving mdns packets in my test case Dec 14 22:43:23 (just prototyping through tests) Dec 14 22:43:25 nick9998: gotta love mystery bugs :P Dec 14 22:44:10 dragorn: do you know why it won't compile perhaps? Dec 14 22:45:18 what is the error you get Dec 14 22:45:23 during make Dec 14 22:46:13 when doing make all-target-libgcc, configure: error: cannot compute suffix of object files: cannot compile Dec 14 22:46:23 make all-gcc is fine Dec 14 22:46:36 make all-target-libgcc gives me that though Dec 14 22:47:32 are you using: GMP/MPFR/MPC? Dec 14 22:47:42 yeah, they're in the gcc source directory Dec 14 22:48:22 http://stackoverflow.com/questions/11502045/gcc-compilation-cannot-compute-suffix-of-object-files-cannot-compile Dec 14 22:48:32 from googling your error message Dec 14 22:49:04 interesting, i didn't find that Dec 14 22:50:39 hsv.fullScroll(HorizontalScrollView.FOCUS_RIGHT); goes 99% to the right but not 100% - any idea why? and how can I make go all the way? Dec 14 22:51:38 nick9998: by /path/to/mpc/lib/, which .so file is it referring to? or is that after i do make all-gcc Dec 14 22:54:26 Snake_X: try: find -name '*.so' Dec 14 22:54:32 kk Dec 14 22:55:20 nice treasure trove of information I ran into anyone is interested ... http://www.pixelprospector.com/the-big-list-of-game-design/ Dec 14 22:55:58 nick9998: found nothing, ill try appending these flags though: --with-mpfr-include=$(pwd)/../gcc-4.8.1/mpfr/src --with-mpfr-lib=$(pwd)/mpfr/src/.libs Dec 14 22:56:58 is there anything in .libs? Dec 14 22:57:41 actually Dec 14 22:57:46 seems not. .lib doesn't exist Dec 14 22:57:53 there are some packages you need to install Dec 14 22:58:09 apt-get install libgmp3-dev libmpfr-dev libmpc-dev Dec 14 22:58:29 "In addition, to build GCC you need to have installed GNU GMP, GNU MPFR, and GNU MPC." Dec 14 22:59:15 yeah, i thought that by putting those in the source directory of GCC it would also compile those as well before compiling gcc as that's what happened with LFS. seems not. Dec 14 22:59:54 I'll re-attempt the bigger config string you gave on pastebin earlier Dec 14 23:00:32 okay cool Dec 14 23:00:49 and by the way, thanks for putting up with me so far :P Dec 14 23:01:23 no worries lol Dec 14 23:03:52 by the way, a question ive had on the side of my mind, is it true that google employee's that work on android visit here? Dec 14 23:04:13 Snake_X yes, that is true Dec 14 23:04:27 there is one bovine, and a few humans Dec 14 23:05:04 ahh I see, if any read this, then, nice work! (: Dec 14 23:05:29 is it a canadian bovine? Dec 14 23:06:06 what is a bovine exactly? Dec 14 23:13:38 nick9998: same error, going to attempt the smaller one w/ --target=arm-linux-gnueabihf Dec 14 23:13:46 i doubt it'll make it however. Dec 14 23:14:11 did you install those 3 using apt-get ? Dec 14 23:14:15 seems they are needed Dec 14 23:14:20 yeah Dec 14 23:14:26 i did before re-compiling Dec 14 23:16:57 maybe try export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/ Dec 14 23:17:18 not sure if that is needed Dec 14 23:18:00 ok Dec 14 23:18:54 also there may be a contrib/download_prerequisites script in your gcc folder Dec 14 23:19:13 maybe try that Dec 14 23:20:33 i dont see any sh's that look like they would have that functionality Dec 14 23:21:16 there's no contrib/download_prerequisites ? Dec 14 23:21:56 oh by / i interpreted that as or, not a directory path lol Dec 14 23:22:05 yeah there is Dec 14 23:22:56 by looking at the sh script, i already have those files in place Dec 14 23:23:22 hmm Dec 14 23:23:26 try make install Dec 14 23:24:05 w/o running make all-target-libgcc first? Dec 14 23:24:15 yea exactly Dec 14 23:24:20 kk Dec 14 23:24:37 it's still compiling, so gimme a few Dec 14 23:26:03 ... the compiler is smart enough to optimize local variable allocation out of tight loops, right? Dec 14 23:28:28 nick9998: got this: /bin/bash: line 3: cd: arm-linux-gnueabihf/libgcc: No such file or directory Dec 14 23:28:39 ;) Dec 14 23:30:16 is there a property on TextView that defines the "focus" border color? Dec 14 23:30:42 Snake_X: hmm, have you seen this one: http://advogato.org/person/redi/diary/253.html Dec 14 23:31:47 darthdeus: you can supply your own state list drawable to change the border color when focussed Dec 14 23:32:26 f2prateek: is it possible to just disable the states altogether without supplying the values implicitly? so that it only has one state Dec 14 23:33:21 nick9998: alright, ill try that with the --target alteration Dec 14 23:33:45 yea exactly, i'd so re-do it from scratch following these instructions Dec 14 23:33:57 plus the --target= Dec 14 23:34:03 yeah Dec 14 23:34:18 darthdeus: not quite sure Dec 14 23:34:50 i will be back later this evening Dec 14 23:35:04 alright, tyt Dec 14 23:36:06 i only have one textedit on that activity which gets immediate focus and is used for search, so it's not really a UX issue to disable the highlight, since it'd like to have it have a border anyway :\ i guess the state list will have to do Dec 14 23:36:10 np Dec 14 23:36:22 but it feels rather complicated Dec 14 23:58:42 hello Dec 14 23:59:52 I installed pydev Dec 14 23:59:58 now android sdk not working Dec 15 00:14:09 ohshit, android 4.0 doesn't have tls1.2 Dec 15 00:19:37 how would I compile c++ code with the ndk to produce a binary with static lib's to run on android? I think i've given up on compiling gcc at this point. Dec 15 00:21:56 you have arm-eabi-g++ Dec 15 00:21:57 use it Dec 15 00:23:49 alright Dec 15 00:32:41 Well thats gay, my tablet running icecream sandwich isn't a valid usb device in Android Studio :/ Dec 15 00:33:00 pfn: trying to compile hello world for now, iostream not found in the ndk though. just use standard include directory? using ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ Dec 15 00:35:24 oh, even a blank program wont compile due to missing stuff. Dec 15 00:40:23 I feel like im missing something very obvious and somehow im not seeing it... Dec 15 00:44:52 oh, -nostdlib fixes it, but is there a way to access the standard library Dec 15 01:09:50 couple of questions about APN settings: where are manually-added APNs stored by android? is data about connection attempts stored so I can see why a certain APN setting might not be working? Dec 15 01:14:12 there we go, new versions of android need to bind the mdns listener directly to the wifi iface Dec 15 01:14:18 can't just let it default... Dec 15 01:21:06 is there a way to debug my app when it is returning from the background? I'm getting a null pointer crash when I switch from another app to mine, but only when a specific dialog is open in my app. When I switch to another app, the debugger disconnects Dec 15 01:21:35 so I can;t seem to be able to hit a breakpoint that I've set so I can step Dec 15 01:22:00 hey pretty nooby question but how do u see a print ln Dec 15 01:22:29 in eclipse Dec 15 01:22:50 im in the console, and in the onCreate method of the activity i am calling System.out.println("hey"); Dec 15 01:22:56 and it is not printing in the console Dec 15 01:23:42 LoneSoldier728: use the Log() method Dec 15 01:24:45 log.d() ? Dec 15 01:26:17 LoneSoldier728: try log.v() Dec 15 01:26:38 or log.i() Dec 15 01:29:21 kk Dec 15 01:29:29 and it should show in the console? on the bottom of eclipse? Dec 15 01:59:20 regreddit, set your app as the debug app to be debugged when starting Dec 15 02:01:02 pfn, you mean in the dev options on the device? Dec 15 02:01:25 yes Dec 15 02:01:43 If I'm using showcase view will I have to write that in my app? Dec 15 02:02:16 I want to create a user interface like the official Twitter app. Dec 15 02:02:33 Is it possible with a webview to get the same experience? Or would I ned to look at something else? Dec 15 02:03:44 it'll be mud slow Dec 15 02:04:12 Tweet lanes Dec 15 02:04:34 it's possible, but it sucks Dec 15 02:04:39 phonegap will do it Dec 15 02:04:43 What should I do instead pfn? Any suggestions? Ive not made an app before and dont really have much spare time left ;_; Dec 15 02:04:57 give up then Dec 15 02:05:02 use phonegap if you really have no choice Dec 15 02:05:32 TWeet lanes sucks> Dec 15 02:05:47 AndreYonadam, whats wrong with it? Dec 15 02:05:49 pfn: do you know any way to make a guided tour for an android app? Dec 15 02:05:58 lol i want to copy paste this to my friend using phonegap now Dec 15 02:06:12 like the launcher tour that first came up in ICS Dec 15 02:06:16 GEEGEEGEE: Not sure. Dec 15 02:06:21 Using A Webview? Dec 15 02:06:32 You would need Javascript and it would be slow Dec 15 02:06:50 not sure how you would go about responding to drags Dec 15 02:06:51 lol Dec 15 02:23:38 hey if i have this if statement Dec 15 02:23:39 usernameEditText.getText().toString() == "a" Dec 15 02:23:53 if i enter a in the textField it should be == right? Dec 15 02:25:10 LoneSoldier728 String.equals() Dec 15 02:26:25 pfn, that didn't seem to change anything. I'm trying to catch a null pointer when my app returns from a paused state Dec 15 02:26:40 String.equals( a ) Dec 15 02:28:50 ah Dec 15 02:28:54 in quoates? Dec 15 02:29:03 and is it not == then ever? Dec 15 02:29:56 shouldn't need to user the == if using String.equals Dec 15 02:30:14 usernameEditText.getText().toString().equals("a") Dec 15 02:30:16 well that works Dec 15 02:30:22 but why wouldn't that work Dec 15 02:30:34 usernameEditText.getText().toString() == "a" Dec 15 02:30:42 im used to javascript Dec 15 02:30:45 thats why i was confused Dec 15 02:31:47 yeah i understand I'm more familar with C++ Dec 15 02:32:26 try with the "a" then w/o see if you get a syntax error Dec 15 02:35:44 wafflebot loves kumar Dec 15 02:35:44 i get no error just Dec 15 02:35:49 the if statement is not called Dec 15 02:35:51 if i use == Dec 15 02:36:20 oh ok Dec 15 02:38:22 helps reduce processing time Dec 15 02:38:31 what .equals Dec 15 02:39:31 less code using the .equals Dec 15 02:40:18 being it is apart of the standard library Dec 15 02:54:47 Has anybody here used Roboelectric to test their own library (one that provides resources)? It doesn't seem to be picking the manifest from the library properly. By default this what the config would look like `@Config(manifest = "AndroidManifest.xml")`, but I have to change it to `@Config(manifest = "progressbutton/AndroidManifest.xml")` for the tests to actually be able to load resources **** ENDING LOGGING AT Sun Dec 15 03:00:00 2013