**** BEGIN LOGGING AT Thu Sep 05 02:59:59 2013 Sep 05 03:01:01 wow, there's alot of people here. Sep 05 03:01:30 pfn it should be if (type.equals("value")) ? Sep 05 03:02:00 nesoi: IRC is not real time communication for the most part, no need to repeat, he'll get to your response when he gets to it :) Sep 05 03:02:29 Asterfield: using someone's nick in a message often alerts them. That's why I resent it including the nick Sep 05 03:02:55 and the answer is yes, it worked. Thanks all! Sep 05 03:03:35 nesoi: pardon me, I spoke in error :) Sep 05 03:04:07 ok, another question. If I want to dismiss a notification, I can just do cancel(notificationID) if I do it within the context of the intent which produced the notification. How do I cancel it from elsewhere? Sep 05 03:04:35 np Asterfield Sep 05 03:04:40 new to android development, I'm not sure if I'm getting this right, but there doesn't seem to be a self contained way to ask the user a Yes/No dialog in a self contained way. Is the correct, or am I missing something fundemental? Sep 05 03:05:04 I can see that asking new developer questions here is going to be like being a drop in a flood o.o Sep 05 03:05:50 Asterfield: lol any suggestions as to where else to ask? Sep 05 03:06:05 jilocasin: Nope :P If I knew, I'd be asking there Sep 05 03:06:40 so, no one here uses notifications? :( Sep 05 03:06:57 onStart is called after onCreate. but it is also called if you leave the activity and return later (like by turning the screen off, or pressing the home button then going to recent apps and selecting your activity) Sep 05 03:06:59 Asterfield: I take it you are new to Android as well. Desktop/ Windows Mobile here. Sep 05 03:07:19 yes/no dialogs can easily be created with AlertDialog.Builder . Keep in mind that modal dialogs are kind of annoying so don't overuse them Sep 05 03:08:43 jilocasin: Quite new, I'm afraid Sep 05 03:08:45 Any takers on this one? setContentView works fine from onCreate(), but doesn't want to work in onStart(). Why? Sep 05 03:10:15 kevinb: I thought AlertDialog.Builder was frowned upon unless it's wrapped in a fragment. But even if I use AlertDialog.Builder it doesn't return a value, but instead needs to be wired to positive and negative response callbacks. Sep 05 03:10:59 GUI programming is callback driven, there is no way around that Sep 05 03:11:26 Asterfield: why do you want to setContentView from onStart? (it should work there, but it seems like an odd approach) Sep 05 03:12:38 kevinb: I don't really need to, I'm just curious as to why it wouldn't work from there. It's pretty much a standard class, no heavy computing at all Sep 05 03:13:08 what happens when you try? Sep 05 03:13:24 Just a blank screen with the app titlebar Sep 05 03:13:40 Exact same setContentView() line, just moved from onCreate() to onStart() Sep 05 03:15:15 kevinb: I thought AlertDialog.Builder was frowned upon ukevinb: vb/c#/js all let you call display a confirmation dialog box (MessageBox.Show()/Confim()/etc.) that returns a value. Android/Java doesn't seem to. You're saying that's just how it is? Sep 05 03:21:20 that's how it is Sep 05 03:21:20 kevinb: I seem to have found the issue (I think). onStart() doesn't seem to be running at all Sep 05 03:21:37 it always runs Sep 05 03:23:04 jilocasin, and that's how it works because modal windows can block the UI thread on those platforms while spawning their own thread Sep 05 03:23:20 you're right pfn, I just thought it wasn't because one of my Log.i() calls never fired. Sep 05 03:23:40 there is only a single ui thread on android Sep 05 03:24:29 so in "onstart(){ Log.i(); somestuff(); Log.i();}", The second log never runs. Is that a hung thread? Sep 05 03:24:49 The app eventually closes Sep 05 03:26:50 sounds like it Sep 05 03:26:51 pfn: Thanks I was afraid that was the case and hoping that I was just missing something. a confirmation dialog fragment spans at least 5 seperate pieces of code; the dialog fragment, the routine that called it, the positive callback, the negative callback, and the routine that actual does something when the response is retrieved. Sep 05 03:27:44 5 for you may be Sep 05 03:28:19 pfn: Too bad Java doesn't support delegates, it would make things so much cleaner. How do you do it? Sep 05 03:28:52 scala Sep 05 03:29:10 pfn:scala for android development? Sep 05 03:29:32 yes Sep 05 03:30:37 Oh cool, I got the app to crash straight off. at least I can attempt to debug that :P Sep 05 03:31:45 pfn: Go figure. Here I was thinking that Java was _the_way_ to develop for Android. Sep 05 03:33:25 pfn: thanks for the help.... off to write more Java (sooo many keyboard shortcuts to figure out in Eclipse..............) Sep 05 03:52:12 Anyone know anything about using hardfp vs softfp with the NDK? Sep 05 03:53:09 it's *the* way for most people Sep 05 03:58:21 jfpoole, It's soft Sep 05 03:58:46 Sonicadvance1: So it's not possible to use hard even if you're targeting armv7 and x86 exclusively? Sep 05 04:00:39 I guess I haven't even tried passing -mfloat-abi=hard to the NDK GCC, I just used what it gave me Sep 05 04:18:45 Which is better practice, context.deleteFile() or File.delete()? Is there a difference? Sep 05 04:26:46 for the layout of buttons, how can i get it one on the left and one on the right on the same line Sep 05 04:29:34 ssfdre38: Are you using a Relative Layout? Sep 05 04:30:38 Hey Sep 05 04:30:46 yea i have the layout hight and width setup to wrap_content for now Sep 05 04:31:00 What java skills should you know before working with android? Sep 05 04:31:03 this is my first app and im just trying to make something for me first just to give you a heads up Sep 05 04:31:18 ssfdre38: Align the left button to parent left and the right button to parent right, then add a margin Sep 05 04:31:23 You could also center both and add a margin Sep 05 04:31:31 ok Sep 05 04:31:44 Or, add an invisible line (through a linear layout) and have them both align with the line Sep 05 04:31:56 I'd recommend aligning them parent left and parent right, but you have options Sep 05 04:32:49 shaun413: If you can code a basic command-line application in Java, you can pick up Android pretty quickly. That was my experience, at least Sep 05 04:32:59 I'd recommend knowing some Java, however, before you dive in Sep 05 04:33:29 I can Sep 05 04:33:33 I know java Sep 05 04:33:45 One semesters worth at least Sep 05 04:33:58 shaun413: Cool. That's where I was (two semesters, but same idea), and I picked Android up and made a basic app in about two weeks of light work Sep 05 04:34:02 shaun413: You should be fine Sep 05 04:35:01 I'm not familiar with GUI Sep 05 04:35:17 A little off topic, but how similar is java's object orientation to c++'s? Sep 05 04:35:31 concept-wise Sep 05 04:35:34 Pretty similar Sep 05 04:35:52 C++ OO feels so bolt-on and adhoc to me Sep 05 04:36:18 Ive heard that before, but its the only object orientation I know so far Sep 05 04:36:32 I don't have anything else to compare it to Sep 05 04:37:24 shaun413: Neither was I, but you can dive in pretty quickly. There's a layout editor you can use before you get comfortable with the XML Sep 05 04:37:32 OK Sep 05 04:39:38 Gtg Sep 05 04:39:46 Night Sep 05 04:39:48 Are there advantages to learning the xml way over using the editor? Sep 05 04:40:01 the editor is shit Sep 05 04:40:27 lol really? Sep 05 04:40:40 im using AIDE on my tablt to help me code Sep 05 04:40:44 Shit or the shit? Sep 05 04:43:38 it's nice to use to render the XML to give you a vague guess at what it may look like on a device Sep 05 04:44:21 I figured xml was probably the way to go Sep 05 05:08:39 YAY! finally got my 32GB Nexus 7 but ... Sep 05 05:08:53 when I plug it in to charge, it still says connect your charger Sep 05 05:08:58 wtf Sep 05 05:10:21 wall chargeR? Sep 05 05:10:32 yep, I tried both, and it wouldn't react Sep 05 05:10:54 but I powered off now, and then plugged in again and then white charging icon did appear, so it should be ok Sep 05 05:11:15 its the first charge so I'll leave it like that overnight, but I better not have to return this crap Sep 05 05:11:36 took a whole week to get here Sep 05 05:12:17 mine didn't take that long, and it traveled (back) about halfway around the planet... Sep 05 05:12:21 buy it local next time Sep 05 05:12:31 it doesn't exist local Sep 05 05:12:52 you can only get the 16 GB from Best Buy in Toronto Sep 05 05:12:58 okay, 1/3 of the way Sep 05 05:13:36 I just hope everything works, cause it looks lovely Sep 05 05:14:02 shmooz if it doesn't work out, i'll take it Sep 05 05:14:19 :D Sep 05 05:14:22 yeah if you send me $304 Sep 05 05:14:36 that's what I paid total Sep 05 05:14:53 thats a lot of canadian acorns Sep 05 05:44:42 am I missing something with android studio, debug my start activity, and it times out with a very quick ANR kill, is this normal ? not getting enough time! Sep 05 06:21:10 StingRay_ i heard of that before Sep 05 06:21:40 dont matter what dev settings I have on the devices Sep 05 06:21:43 always happens Sep 05 06:21:48 royal pain! Sep 05 06:22:23 Well, it is pre-release. Sep 05 06:22:35 And based on the still unstable IDEA 13 EAP. Sep 05 06:23:02 indeed, then I would think the dev team need to get some priority awearness Sep 05 06:23:05 :) Sep 05 06:28:24 StingRay_ just use rubber duck debugging Sep 05 06:28:28 or logs Sep 05 06:28:46 i haven't used a debugger in maybe 3 years Sep 05 06:32:10 I gave up on trying to use a debugger with Android. Sep 05 06:32:16 It's all printf debugging for me. Sep 05 06:32:29 printf debugging and a lot of carefully placed asserts. Sep 05 06:33:06 i thought assert didn't work on android :P Sep 05 06:33:17 Scala has its own assert. Sep 05 06:33:24 ah k Sep 05 06:33:48 It also has `require` which is basically the same as assert, but throws an illegal argument exception instead. Sep 05 06:34:29 I should probably write a compiler plugin that strips them if enabled. Sep 05 06:41:18 How do I debug my android app not saving preferences Sep 05 06:41:58 Mrono doing a .commit() ? Sep 05 06:42:29 yep Sep 05 06:45:56 Mrono: read or write error ? Sep 05 06:46:12 well, read or write problem ? Sep 05 06:46:30 un sure Sep 05 06:46:40 device rooted ? Sep 05 06:46:46 As far as I can tell it's a read Sep 05 06:46:55 no unfortunately I can't get to the file directly Sep 05 06:47:05 though let me see if it happens on my other device Sep 05 06:47:11 the one that is rooted Sep 05 06:49:07 so then you can find out if it is a read or write if you look :) Sep 05 06:49:39 Nilium are you using any rss reader on mac ? Sep 05 06:49:48 you seem to have good taste in stuff ;) Sep 05 06:52:03 Hmm, it's creating two files Sep 05 06:52:08 one for each activity Sep 05 06:53:03 Looking for a good general use IME app. Java, HTML, Python, etc. Doesnt have to be able to compile. Sep 05 06:53:11 however, both have the variables in them Sep 05 06:53:41 Mrono: different package path call ? Sep 05 06:53:58 mobile notepad++ basically Sep 05 06:54:53 well Sep 05 06:55:08 JamesUS: you mean a keyboard ? Sep 05 06:55:09 anyone debug C++ NDK code in the ADT eclipse IDE using the simulator? I have a shared library that I can get to stop on breakpoints and step but I am unable to inspect any variables. Sep 05 06:55:13 i'm using getPreferences(Context.MODE_PRIVATE) Sep 05 06:55:25 would that give me a private preference file per activity Sep 05 06:55:45 the other "IME", a text editor meant for coding Sep 05 06:55:57 g00s: I gave up RSS a while back, so no. Sep 05 06:55:59 all I can find are keyboards Sep 05 06:56:29 I am currently on a breakpoint where I should have a basic float variable. GDB in eclipse tells me "No symbol "dt" in current context." Sep 05 06:56:49 Mrono: would that not create a private instance to the context of the package/activity from what is being called ? as in mylib.activity Vs myApp.activity ? guessing btw Sep 05 06:57:28 I am calling it from an async to write and a ui thread to read Sep 05 06:57:32 if that makes a difference Sep 05 06:58:18 no, what I was thinking is if you write from a path outside your app activity root and then read from your app path.. then there would be nothing there Sep 05 06:58:21 again just guessing Sep 05 06:59:24 StingRay_ when i load the preferences from my register class it's calling the file /data/data/com.lazynotifier/shared_prefs/LazyRegister.xml Sep 05 06:59:35 but when I call it from my main class it's loading /data/data/com.lazynotifier/shared_prefs/LazyMain.xml Sep 05 07:00:52 but the function to load them is identical Sep 05 07:09:22 Hi, I have a question about "extending Application". In my application im using Volley to get language "pack" from the API, I receive it as a JSON and using Gson to extract the information. The question is, how can I share the "language-pack" on all the fragments? I guess its not a good practice to "extend application" Sep 05 07:09:31 works now Sep 05 07:09:37 I changed to a defined file Sep 05 07:09:46 getSharedPreferences(Constants.PREF_FILE_NAME, MODE_PRIVATE); Sep 05 07:14:42 wow sounds like sammy has really done some heavy mods to android at many levels for knox http://www.androidpolice.com/2013/09/04/samsung-opens-up-knox-to-consumers-available-for-2014-galaxy-note-10-1-and-note-3-at-launch-support-for-s3-s4-and-note-ii-coming-later/ Sep 05 07:28:36 This serializing and deserializing thing is driving me crazy Sep 05 07:29:00 kevinb: I could successfully run the executable from the Context.getFilesDir() Sep 05 07:29:23 even the file was created in there with exec permissions by the sdk Sep 05 07:29:48 before executing the setExecutable / chmod *+x Sep 05 07:43:41 hey, i have some problems with fragments..I have a fragment, and inside this fragment i have an method which runs new activity, in this new activity i'm inserting some data to my DB, and after I insert this data. i call finish(), and what i want to do now i refresh fragment state, to see my new data Sep 05 07:43:49 any help ? Sep 05 07:48:11 Why do I get this: java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView on view = getContext().getLayoutInflater().inflate(R.layout.layout_product, parent);? Sep 05 07:55:32 Morning All! Sep 05 07:55:37 I have a question about android, is it 'safer' to make all my sprite sheets /atlases 1024x1024 instead of their current 2048x2048? Sep 05 07:55:46 Morning Sep 05 07:57:17 I'm aiming for 2.3.1 and above and using OpenGL ES 2.0 Sep 05 08:09:21 Can anyone help me with this for (de)serializing not working? http://pastebin.com/sFQbTN3c Sep 05 08:16:34 All of this Galaxy Gear talk is really making me want my Agent Sep 05 08:41:25 Hi all, I made an async task for getting all the contacts (name + phone nr + internet call). This is my code http://pastebin.com/EvUEgzX3 but it's not working fast, can I optimize it? Sep 05 09:10:21 http://developer.android.com/design/media/help_cling.png is there some standard component for this gesture help screen? Sep 05 09:19:50 Can anyone help with this? http://stackoverflow.com/questions/18631542/gson-fails-to-deserialize-with-custom-serializer/18632142?noredirect=1#18632142 Sep 05 09:36:48 Is it 'safer' to make all my sprite sheets /atlases 1024x1024 instead of their current 2048x2048? Sep 05 09:37:00 I'm aiming for 2.3.1 and above and using OpenGL ES 2.0 Sep 05 09:41:37 smaller size less memory./ Sep 05 09:49:11 Thats the problem , the larger resolution looks better on HD devices but I want to support old ones too Sep 05 09:49:32 I'm not sure if I should lower then or if I will get away with keeping them that high? Sep 05 09:49:51 4 meg (?) is massive on older devices Sep 05 09:50:17 Considered a 'hd' version of the app - or shipping multiple resolutions? Sep 05 09:50:40 or why not just load a smaller texture on devices with small screens? Sep 05 09:50:45 scale them down programmatically if necessary? Sep 05 09:51:31 loading 4 meg of texture is going to take a sizeable fraction of a second on most 2.3.1 devices - even only considering the storage Sep 05 09:55:09 ah ok I see, would 1024x1024 sprite sheets be reasonable? Sep 05 10:07:55 Hello Sep 05 10:11:23 i can't understand what i give this error Sep 05 10:13:22 http://dpaste.com/1366728/ Sep 05 10:19:36 Do we need to round the icons ourselves? Sep 05 10:19:45 they seem to be coming out square shaped Sep 05 10:19:51 with iOS it did this automatically Sep 05 10:22:46 you round whatever they're on Sep 05 10:24:00 Thanks Xabster, that makes sense I was trying to figure out what was going wrong Sep 05 10:24:16 I usually do iOS stuff but I'm trying to help someone out with their project Sep 05 10:24:31 IOS rounds your buttons and or icons by default? Sep 05 10:24:40 yep Sep 05 10:24:54 not really a big issue Sep 05 10:24:55 i see Sep 05 10:25:00 it's fine i guess Sep 05 10:25:03 takes 2 seconds in photoshop Sep 05 10:25:11 how is it working in a better language than object-c? :) Sep 05 10:25:33 you can't claim java over many languages, but obj-c is definitely one Sep 05 10:25:41 haha I actually don't mind either Sep 05 10:25:51 both can be fun , I do this as a hobby :) Sep 05 10:34:56 hi, have any of you's used the rilproxy by Mozilla - B2G? https://github.com/mozilla-b2g/rilproxy Sep 05 10:42:28 Is there a way for a RelativeLayout to apply android:layout_centerVertical="true" to all of it's children? Sep 05 10:43:12 Ankhwatcher, Only thru java i think Sep 05 10:43:20 superlinux: bummer Sep 05 10:43:29 Ankhwatcher, ☺ Sep 05 10:44:05 it seems like android:gravity="center_vertical" should do it, but it doesn't Sep 05 10:45:12 Ankhwatcher, i give you a way but i am not sure of.. put this relative layout into another layout. how about this? Sep 05 10:45:21 hello everyone! Sep 05 10:45:29 shibakaneki, hala! Sep 05 10:45:57 superlinux: that would probably let me do it, but my RelativeLayout is already in a LinearLayout in a LinearLayout in a LinearLayout Sep 05 10:46:13 I am trying to use the DrawerLayout, but according to the Android documentation, I should specify match_parent for it's width and height. If I do that I have a crash in my app Sep 05 10:46:25 if I put a fixed value instead of match_parent, it works Sep 05 10:46:26 there comes a point where further complexity just isn't an option Sep 05 10:46:38 any idea why I get this issue? Sep 05 10:46:56 shibakaneki, clean the project Sep 05 10:47:02 try that 1st Sep 05 10:47:19 ok, I will try that, i use android studio Sep 05 10:47:24 just to rebuild the class R* Sep 05 10:47:43 oh! i assumed eclipse Sep 05 10:47:53 but it won't harm anyways Sep 05 10:48:51 Ankhwatcher, i think as long as you are using relative layout, there is no need for other layouts Sep 05 10:49:30 I amactually migrating my project on android studio :) Sep 05 10:49:32 superlinux: what if you want to evenly split the screen Sep 05 10:49:33 because, as you know, the relative is like a grid Sep 05 10:50:00 Ankhwatcher, use weights Sep 05 10:50:25 superlinux: can you weight in a RelativeLayout? Sep 05 10:50:34 not sure Sep 05 10:51:12 but all i know is that weightSum and layout_weight do it Sep 05 10:51:31 and it works! thank you superlinux ;) Sep 05 10:51:36 welcome Sep 05 10:51:47 shibakaneki, guess what!? Sep 05 10:51:49 yes it uses weight Sep 05 10:51:53 what? Sep 05 10:52:40 when ever you change the layout somewhere and you feel like you bet your pc it must work, then clean the project Sep 05 10:53:53 It used to happen to me many times with the Spinners in eclipse Sep 05 10:54:38 I am currently listening to sky.fm online radio on smooth jazz channel. seriously awesome Sep 05 10:54:55 yes most of the issues are related to the R generation Sep 05 10:55:50 I am discovering gradle so I spent some time recently to understand how to manage dependencies and so on Sep 05 10:55:57 but it's always good to learn something new ;) Sep 05 10:55:58 shibakaneki, don't you feel class R is like the Wednesday in the middle of the week!? Sep 05 10:56:16 hahaha, no its like Monday!!! Sep 05 10:56:22 LOL Sep 05 10:56:32 it pisses me off all the time, hahaha Sep 05 10:57:32 it's a figure of speech in Lebanon we use.. "wednesday in the middle of the week" Sep 05 11:00:45 ok, good to know :) Sep 05 11:17:11 Hi all, I'm developing a SIP Client app. I have a broadcast receiver for an incoming call. Then i start my IncomingCallActivity. It opens if my app is open (visible) but when I close my app, the IncomingCallActivity isn't launching from the android home screen/app Sep 05 11:21:23 SimonVT, I followed your suggestion of putting the type into a field, but I get an error, could you help me? Sep 05 11:23:15 and is there a widget/library for creating a widget for answering an incoming call (little swipe) ? Sep 05 11:35:42 Hi, is it possible to get 2 times in a activity this data of this? intent.getStringExtra("league_saison"); Sep 05 11:36:36 first at doInBackground and then onOptionsItemSelected Sep 05 11:37:23 the first getIntent works fine but the second is empty Sep 05 11:37:54 dot8, why don't you put the value inside a String object and use that String again for the 2nd time? Sep 05 11:38:49 there is a String in the doInBackground but I can not access the String in the onOptionsItemSelected Sep 05 11:39:55 dot8, do you start your asynctask from the same activity? Sep 05 11:40:12 FrancescoV: yes Sep 05 11:41:07 private String myValue; then set myValue from the value inside your intent, use the myValue for your asynctask & inside optionmenu Sep 05 11:43:12 eclipse error: Illegal modifier for parameter league_saison; only final is permitted Sep 05 11:43:34 when I use private Sep 05 11:45:23 dot8, set the value inside onCreate Sep 05 11:48:43 FrancescoV: same eclipse error Sep 05 11:49:06 can you show your code? Sep 05 11:49:44 hello Sep 05 11:50:46 i have questions about youtube library: can i use YoutubeView withot YoutubeActivity? Sep 05 11:51:19 http://pastebin.com/3K2VNsb2 Sep 05 11:52:16 line 80 and 183 Sep 05 12:17:58 thanks, bye… Sep 05 12:24:05 Hey Everyone, about 8 hours ago I downloaded the ADT Bundle to start development with Android. However when I go to build a project I get a error saying "Errors running builder 'Android Resource Manager' on project 'test'." I'm on a mac, java version 1.6, I also have 1.7 and turned that on and nothing happened so I reverted. Does anyone know how to fix this? I can't even build a hello world app. It just hangs when I click Sep 05 12:25:35 Here is a stack trace. http://www.pastebucket.com/19769 Sep 05 12:34:20 How could I make it so that if I modify a "Category" in a ListView I modify all the "Products" in it? For example, the background color. Sep 05 12:37:23 Can anyone tell me how to ask for the Account_type in my delete contact method? I really don't know what else to try.... need to get the raw data, somehow... dunno... :/ http://pastebin.com/VJRL9Nat Sep 05 12:39:15 Setter and getter? Sep 05 12:43:11 shaun413, me? Sep 05 12:43:24 Yeah Sep 05 12:43:36 I would really like to get the value, but where from Sep 05 12:43:39 ^^ Sep 05 12:43:58 For account type? Sep 05 12:45:31 yes... for the account type of the already searched contact which shall only be deleted if its account_type matches another type Sep 05 12:47:09 I don't see where you made account_type Sep 05 12:47:48 its global doesn't matter I need the account_type from the contact... so I can compare it to the one I made Sep 05 12:48:15 Ahh Sep 05 12:48:18 Not sure Sep 05 12:51:05 thx :/ I've been looking and brute forcing methods for 24 hours now.... is it in uri? cur? do I need another uri or curser? the contact gets deleted already, which meens its data is loaded already, why cant I just access it like. ... uri.rawstuff.getAccount_type().F$%$§force(!!!!) Sep 05 13:01:09 Anyone here a professional developer? Sep 05 13:01:22 99% of us ? :) Sep 05 13:01:26 can you tell me what i need to get a job as an android dev? Sep 05 13:01:35 be a good developer? Sep 05 13:01:45 and propose yourself to jobs Sep 05 13:01:50 I've been working independently for a few months now Sep 05 13:02:06 and i have been thinking about sending out a few applications Sep 05 13:02:18 i was hoping i can get some pointers Sep 05 13:04:27 Develop some cool applications, and get actual users. Sep 05 13:05:02 I have a few Sep 05 13:05:07 not popular Sep 05 13:05:26 But i do have a small userbase Sep 05 13:05:28 try to get the Account_type out of a contact.... if you can do that, anything is possible ^^ Sep 05 13:06:02 lol nunu Sep 05 13:06:43 SpeedEvil, actually for a new developer it's an evil world out there now Sep 05 13:06:51 vekexasia: very Sep 05 13:07:04 So hard to get your app noticed without getting featured Sep 05 13:07:09 vekexasia: I can't imagine trying to get your app noticed in play store Sep 05 13:07:11 or some blog posts from androidpolice Sep 05 13:07:18 etc Sep 05 13:07:28 The easiest way may be to buy several hundred phones. Sep 05 13:07:32 :) Sep 05 13:07:35 lolololol Sep 05 13:08:17 Play _really_ needs more ways to search. Sep 05 13:08:45 I'd love to be able to search for apps with no permissions at all, for example. Sep 05 13:09:55 what do you mean? Sep 05 13:10:25 btw you'll also encounter another issue. If your app has an original name which people does not search often Sep 05 13:10:25 Some apps do not require permissions. For example a calculator. Sep 05 13:10:27 you're still cutted off Sep 05 13:10:37 ah lol ok Sep 05 13:10:49 I would like to be able to search for calculators requiring no permissions. Sep 05 13:12:06 I'm trying to run an android emulator using jenkins, and I can't figure out any properties that work. http://pastebin.com/XgfMvs0B Sep 05 13:13:30 Does someone have a good link/source for how to implement IN_APP_NOTIFY for managed product refunds? Sep 05 13:16:04 SpeedEvil: Short of internet for ads, why would a calculator need permissions? Sep 05 13:16:23 we talking about mine? xD Sep 05 13:24:28 where do I get the account_type... do I need to use a curser or a uri? Sep 05 13:24:28 I'm very close to smack my s3 to the wall Sep 05 13:26:17 How could I make it so that if I modify a "Category" in a ListView I modify all the "Products" in it? For example, the background color. Sep 05 13:30:13 huh Sep 05 13:30:15 anyone? Sep 05 13:30:43 anthony_, why create an avd and not use an existing? just wipe data on every run Sep 05 13:31:02 because one doesn't exist yet Sep 05 13:31:11 :) Sep 05 13:31:13 why not just create one for the jenkins run Sep 05 13:31:15 beforehand Sep 05 13:31:49 yeah, guess so Sep 05 13:31:57 * pfn shrugs Sep 05 13:32:00 or at least create one so you know where the userdata.img comes from Sep 05 13:36:48 nunu: cursors require a uri Sep 05 13:38:54 how can you start an activity from a broadcastreceiver? Also start it if the app is closed and phone is in sleep mode? Sep 05 13:38:56 yeah.. thx. getting confused by that crap. Sep 05 13:43:22 huh, why is my search suggestion provider always just showing one result in global search? Sep 05 13:43:22 but in my logs, my cursor's getCount is >1 Sep 05 13:48:27 * pfn headscratches Sep 05 13:48:33 How can I tell my ArrayAdapter to repaint a certain element? Sep 05 13:50:29 notifyDataSetChanged Sep 05 13:51:44 why just redraw 1? Sep 05 13:51:56 Hmm.. for example, I do: product.color = new Color(Blahblah); adapter.notifyDataSetChanged(); and it doesn't seem to work Sep 05 13:52:24 that should work you will have to link the code Sep 05 13:53:04 lemonxah, sure, will pastebin related code in 1 sec Sep 05 13:53:10 kk Sep 05 13:53:36 lemonxah, http://pastebin.com/ULGZ5N1q :) Sep 05 13:53:51 those get called by ArrayAdapter#getView() Sep 05 13:55:33 Is there a problem if I Override notifyDataSetChanged? I just have a super call and then some additional methods to save the list into memory Sep 05 13:59:57 Anyone know what would be causing this? error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory Sep 05 14:00:22 lemonxah, anything wrong there? Sep 05 14:00:25 zyngawow, then you didn't update the product in the arrayadapter Sep 05 14:00:35 when trying to run adb Sep 05 14:01:26 you don't have a 32bit userspace installed Sep 05 14:02:05 do you know how to do that? Sep 05 14:02:18 ask your OS provider Sep 05 14:02:46 amazon linux Sep 05 14:03:00 pfn, that I didn't update the product in the arrayadapter? Which one do I update then? Sep 05 14:03:14 the uri describes the location of the "database table" right? the curser marks the position in that tablerow right? Sep 05 14:04:31 zyngawow, soz had to do something quick looking it quick Sep 05 14:05:11 i give up ... making a game in android is far more simple than accessing a simple value of a contact... thats really crap Sep 05 14:07:22 zyngawow, that code is in your adapter its not the part that updates the adapter Sep 05 14:07:30 how do you update your adapter value? Sep 05 14:07:53 lemonxah, yeah, that code is in the Adapter Sep 05 14:08:24 your adapter sits on data lets say an Array .. you need to change the values in the array then call the notifyDataSetChanged on the adapter Sep 05 14:08:41 Ah! Sep 05 14:08:50 thats how adapters work Sep 05 14:09:10 zyngawow weren't you using an ArrayAdapter though? Sep 05 14:09:11 makes sense zyngawow ? Sep 05 14:09:19 g00s, yes Sep 05 14:09:27 well, that owns the array Sep 05 14:09:31 yeah he is but he didn't change the underlying array's values Sep 05 14:09:40 well thats what i gathered Sep 05 14:10:07 ArrayAdapter is dumb anyhow, just implement BaseAdapter ;) Sep 05 14:11:01 either way an adapter sits on data .. to update the ui you need to first change the underlying data then call notifyDataSetChanged() Sep 05 14:11:37 its a MVVM pattern almost Sep 05 14:11:49 but java doesn't implement that very well Sep 05 14:12:12 i thought the last time i read BaseAdapter code, you modify the array through the adapter, and it calls notifydatasetchanged Sep 05 14:12:21 oh wells Sep 05 14:12:24 the best thing to use to get the same feel is the ContentProvider ContentResolver pattern Sep 05 14:14:09 somebody experience with intent filters etc.? Sep 05 14:14:43 FrancescoV: just ask, someone here will likely know Sep 05 14:15:43 I need to know how I can start my incommingCallActivity from my broadcastreceiver. It works if my app is open but if the app is closed (home or sleep), then the activity isn't visible Sep 05 14:16:06 kind of Sep 05 14:16:33 you need to put intent filters in your manifest Sep 05 14:16:37 i guess you have done so? Sep 05 14:17:43 I have tried with android.intent.action.MAIN inside my IncomingCallActivity Sep 05 14:17:49 but doesn't work Sep 05 14:17:56 :/ Sep 05 14:17:58 k so Sep 05 14:18:03 you know your manifest file Sep 05 14:18:15 yes Sep 05 14:18:44 it has each activity you have in your manifest file can tell the system how to start it up Sep 05 14:19:21 android.intent.action.MAIN is used from the launcher Sep 05 14:19:44 your broadcast receiver can send a completely seperate intent Sep 05 14:20:11 with like action name="com.my.project.TAKE_CALL" Sep 05 14:20:42 yes i use that i.setClassName("be.cheqroom.siptest", "be.cheqroom.siptest.IncomingCallActivity"); Sep 05 14:20:56 its not about the class Sep 05 14:21:00 its about the action Sep 05 14:21:18 you have to set the action on the intent Sep 05 14:21:28 and then android gets that action Sep 05 14:21:42 then it asks all installed apps .. pony up guys who can handle this action? Sep 05 14:21:52 and then one or more tells the system me Sep 05 14:22:04 that is why you sometimes get the .. choose which app does this or that Sep 05 14:22:14 just make a static final string and use it inside my manifest and intent inside broadcast receiver? Sep 05 14:22:39 yeah although you cant use static final string in the manifest Sep 05 14:22:51 has to be a @string value Sep 05 14:23:16 ok, i'll try Sep 05 14:23:20 well actually i dont know if you can use static final strings int he manifest Sep 05 14:23:28 here is some documentation on the subject Sep 05 14:23:34 http://developer.android.com/guide/components/intents-filters.html Sep 05 14:27:40 lemonxah, I have added the action to my manifest and my intent but still not showing up if app is closed Sep 05 14:28:20 why do i see some apps using android.R., and others just R.? Sep 05 14:29:17 helo: android.R. --> android resources. R. --> own resources (res folder of your project) Sep 05 14:31:25 this layout in a project's (actionbarsherlock FragmentTabsPager sample) res/ is doing: android:id="@android:id/tabhost" Sep 05 14:33:39 helo, reusing predefined ids Sep 05 14:34:11 why is that preferable to making new ids? Sep 05 14:34:42 some ids have predefined meanings and uses Sep 05 14:35:37 * g00s yawns Sep 05 14:35:37 helo: if you have 2 textview, you're not going to use the same id for editing in code Sep 05 14:35:41 good morning pfn Sep 05 14:35:51 morning Sep 05 14:36:03 much too early Sep 05 14:36:31 indeed Sep 05 14:38:31 I still don't understand why my search provider says there's more than 1 result but global search only presents 1 :( Sep 05 14:38:40 googling is not proving useful Sep 05 14:41:43 How can I animate "Products" in a ListView when the "Category" they're in is deleted? Sep 05 14:42:00 zyngawow: upon deletion? Sep 05 14:42:11 Yes Sep 05 14:42:14 like you want to animate it away? Sep 05 14:42:18 Yes Sep 05 14:42:23 you could try a ViewOverlay Sep 05 14:42:38 http://developer.android.com/reference/android/view/ViewOverlay.html Sep 05 14:42:41 possibly ViewGroupOverlay Sep 05 14:44:48 tnzr, I don't see how that works Sep 05 14:56:27 tnzr, don't I still need the View to get the ViewOverlay? Sep 05 15:08:48 I just reopened an AS project, it's giving me that "getClass() is ambiguious" bullshit again Sep 05 15:12:33 ugh, still can't get my search suggestions to show more than one Sep 05 15:15:00 is it a bad idea to send data from an activity to a fragment directly, instead of using intents(args). Sep 05 15:23:08 jaynewstrom, I don't think it's a bad idea. But the most robust way is to pass it as fragment arguments. Sep 05 15:23:56 Yeah, that's how I have always done it is through arguments, but I want to setup an interface back to the activity. Sep 05 15:25:41 If on the getView method from an ArrayAdapter I do: category = this.getContext().items.get(position); category.setColor(0xFFCC0000); ((RelativeLayout) view.findViewById()).setBackgroundColor(category.getColor()); this.notifyDataSetChanged(); should the background change? Sep 05 15:25:44 jaynewstrom, for fragment->activity communication consider to use an event bus like otto or "EventBus" Sep 05 15:26:05 Thanks @rciovati, I'll look into it. Sep 05 15:27:12 Because something really weird is happening with my app. Say I have a a bunch of Products inside Categories, and when I edit one, only the first two in the ArrayList are kept and the rest are deleted. Sep 05 15:32:42 Does anyone know a way to stop this coming up in Android Studio? It only happens in one project. http://picpaste.com/Zfm8DVD3.png Sep 05 15:33:00 is there a lint setting I can change or something? Sep 05 15:39:05 usually caused by improper sdk setup in project settings Sep 05 15:39:26 @rciovati: if I understand it properly, EventBus is a faster, easier to use BroadcastReceiver, right? Sep 05 15:41:31 yeah, the idea is the same Sep 05 15:41:43 Thanks Sep 05 15:42:47 hi! is it possible to access application context from a preloaded system class? Sep 05 15:48:40 somebody who has used the android sip api before? Sep 05 15:54:12 Something else, can you get the vibration pattern that is used for an incoming call? Sep 05 16:14:23 I can't seem to understand why my box is not showing up.. http://pastebin.com/7nvm4K6k Sep 05 16:15:23 I got it figured Sep 05 16:15:29 sorry lol Sep 05 16:20:46 ehhm, did a little too much testing with my contact app.... Sep 05 16:20:58 noe I got 12000 cotacts marked for delete Sep 05 16:21:17 when I sync my phone it says "too many to delete" Sep 05 16:21:58 any idea how to fix that -.-? I deleted the data of the "contacts" app but it still wont sync Sep 05 16:23:11 is it possible to access application context from a preloaded system class? Sep 05 16:52:55 is there a technical reason why phone call recorders for Android produce audio files with abysmal quality? Sep 05 16:53:16 the opposite end of the line is almost inaudible. Sep 05 16:53:25 happened with multiple recorder apps I tried. Sep 05 16:54:23 the live call was perfectly audible. Sep 05 16:55:44 so the system has the audio stream in acceptable/best-possible quality. Is there no API to get that? Sep 05 17:00:02 multi_io, try another phone Sep 05 17:00:43 Is there some built in way to zebra stripe listviews and gridviews? Sep 05 17:00:57 what is a zebra stripe? Sep 05 17:01:30 nseidm1: why do you think that could make a difference? Sep 05 17:01:43 it would rule out the phone being the issue Sep 05 17:01:53 if it works fine on another phone there's an issue with the current phone Sep 05 17:01:59 nseidm1: like when the first element has a white background, then the next element has a grey background and so on Sep 05 17:02:04 how could the phone be the issue if I can hear the calls live perfectly? Sep 05 17:02:18 on that phone, I mean. Sep 05 17:02:19 multi_io: It likely isn't an issue then Sep 05 17:02:24 like this: http://www.iinuu.eu/userfiles/images/IT_guru/2011/zebra/1.jpg Sep 05 17:03:19 mmathis: position % 2 == 0 ? ((LinearLayout)convertView).setBackground(Color.BLACK) : ((LinearLayout)convertView).setBackground(Color.WHITE); Sep 05 17:04:13 This app is driving me craaaaazy Sep 05 17:04:51 I was thinking of doing something like that for the listview, but I'm not sure how to do that for the gridview Sep 05 17:04:56 does the adapter know which row it is on? Sep 05 17:09:25 I guess I can just override getview Sep 05 17:09:30 I forgot about that :/ Sep 05 17:10:41 hi, is there something similar to twitter bootstrap but for android, for building amazing interface? thanks for your time Sep 05 17:15:40 Hello guys. How do I set a layout with an image with the text around it like this? http://i.imgur.com/V26cUB2.png I've tried flow-text but that lib sucks and there's no support Sep 05 17:19:56 I'm creating a simple app where I thought of using two activities, the main one has a navigation drawer that points to ListFragments (that would be open inside the main activity) and each item in the ListFragment points to a Fragment (containing more information about the item) contained in the second activity. If the items of the ListFragment are the same but point to different information can I use the same ListFragment? (bette Sep 05 17:19:57 explained: I have a ListFragment (let's call it NoteF) with all the subject and each subject points to another fragment with the notes of the subject, and a ListFragment (GradeF) with again all the subjects where each items points to another fragment with the list of grades in that subject. The only way I go to NoteF or GradeF is through the navigation drawer.) I just started with android and not familiar at all. Thanks Sep 05 17:24:35 ah! Sep 05 17:24:43 At least I found out what's causing my troubles Sep 05 17:45:37 zyngawow, do tell Sep 05 17:48:07 If i store data in my applications "Application" class, can i access those data from say a widget? Or wont they share context? Sep 05 17:51:26 How can I animate a ListView item from outside the Adapter? (I mean, not in the getView() method itself) Sep 05 17:55:58 Any idea how can i change the tablet user's profile photo? Sep 05 17:56:12 using CONTENT_URI Sep 05 17:57:27 How to you end previous activity? Sep 05 17:57:27 I mean, I have started another Activity via intent from previous activity Sep 05 17:57:58 But I noticed previous activities are running Sep 05 18:05:14 finish() Sep 05 18:05:34 FLAG_ACTIVITY_CLEAR_TASK may be useful Sep 05 18:05:44 singleTop launch mode Sep 05 18:06:31 singleTop is likely the best choice Sep 05 18:06:49 serrghi: Yes, your application class is instantiated whenever any part of your application is running. Sep 05 18:07:26 serrghi: you're data can be destroyed at any time Sep 05 18:07:32 nseidm1: that's not what singleTop does. Sep 05 18:08:13 see this for what it actually does: http://developer.android.com/guide/topics/manifest/activity-element.html#lmode Sep 05 18:08:36 singleTop prevents multiple insances of an activity in a single task, so no need to kill off previous activity given a properly designed navigation pattern Sep 05 18:08:41 that's exactly what singleTop does Sep 05 18:09:48 if previous instances of the same activity are running singleTop is the best solution Sep 05 18:10:07 ...yes, *that's* what singleTop does >_> Sep 05 18:10:25 what it does *not* do is clear *other* activities Sep 05 18:10:34 which is what he asked about. Sep 05 18:20:59 hello, i have a field i want to add to a contact if this contact has my app installed. should i add a new contact or should/can i just add the data to the RawContact ?? Sep 05 18:23:53 How can I animate a ListView item from outside the Adapter? (I mean, not in the getView() method itself) Sep 05 18:44:33 zyngawow, the same way you'd animate any view Sep 05 18:54:44 canadiancow, and how do I get the view? Sep 05 18:55:02 well you need a reference to it Sep 05 19:07:32 canadiancow, where, in the own Object? That seems like a bad thing to do Sep 05 19:07:34 this android studio is amazing Sep 05 19:07:36 in a bad way Sep 05 19:07:47 can't force it to use a newer xml.values file Sep 05 19:07:56 rebuilding it, make-ing it Sep 05 19:07:57 sadjkfhasd Sep 05 19:14:10 im just wondering if anybody has suggestions for accelerated build process (ie, for building entire aosp quickly) . We'd like to cut the hour-long build down to minutes. I was thinking of setting up a few build servers running distcc & ccache, are there other solutions that I should be aware of? Sep 05 19:18:29 mkrufky: ccache definitely helps (but obviously not for a cold build). Put the source on an SSD if you have one. Sep 05 19:18:46 distcc may not be worth the effort to set up Sep 05 19:18:53 ah yes, another good point - thanks JesusFreke Sep 05 19:19:38 well, its a handful of developers and we're looking to make changes and test without an hour long delay of the rebuild process Sep 05 19:19:53 so i think it will help in our case Sep 05 19:20:14 I don't think distcc would help much, if any, except maybe for for that initial cold build. Sep 05 19:20:21 unless. have you tried distcc without any gain? Sep 05 19:20:22 ah Sep 05 19:20:26 I haven't tried it Sep 05 19:20:30 the cc compilation will mostly be cached via ccache though Sep 05 19:20:43 but there's still a lot of non-cc stuff to compile :) Sep 05 19:21:12 true... very good point Sep 05 19:23:41 Why do google play try to use my old account when i just told it to use another account... Sep 05 19:29:50 JakeWharton, i want to use inMode() MULTIPLE but make it so the user cannot deselect the dates I initialize it, is that possible without changing things? Sep 05 19:32:10 so the list of dates the view is initialized with remain selected when user clicks a given date Sep 05 19:32:14 brx_: I don't think so. I didn't write the widget. Sep 05 19:32:35 ahh i see Sep 05 19:34:03 Hi guys. I was looking at AsyncTask for doing a long operation and updating a TableLayout with rows as the loop executes. I read this comment on stackoverflow.com "preExecute() and postExecute() offer you access to GUI before and after the heavy lifting occurs in this new thread, you can even pass the result of the long operation to postExecute() to then show any results of processing." which explains it nicely. It does however not mention Sep 05 19:34:03 "onProgressUpdate()" which is supposedly executed everytime publishProgress() is called in doInBackground(). Sep 05 19:34:13 My problem is this: the only method that appears to be executed and outputting the text is onPreExecute() and it does not output "onProgressUpdate()" or "postExecute()". Sep 05 19:34:17 My code is here: http://pastebin.com/eVrYYUbe Sep 05 19:36:27 Zurfer: did you not look at the example i did for you? Sep 05 19:37:02 Napalm: Did you send me a link? It may have disappeared in the chat. Sep 05 19:37:34 Zurfer: https://github.com/slightfoot/android-asynctask-correctly Sep 05 19:37:47 missing @Override annotations maybe? Sep 05 19:38:53 Zurfer: you looking at this > https://github.com/slightfoot/android-asynctask-correctly/blob/master/AsyncTaskCorrectly/src/com/demondevelopers/asynctaskcorrectly/MainActivity.java Sep 05 19:39:37 onProgressUpdate() and onPostExecute() doesn't exist on AsyncTask Sep 05 19:39:46 It has methods with those names, but both have parameters Sep 05 19:42:35 Napalm: I am looking at it right now. Sep 05 19:42:55 brx_: Eclipse wont allow me to use @Override Sep 05 19:44:41 How can I animate a ListView item when I delete its "parent"? Sep 05 19:46:04 zyngawow: explain what you mean in more detail Sep 05 19:46:11 * jmpp greets! Sep 05 19:46:29 need help getting my custom_rules.xml to run under Eclipse when building a project Sep 05 19:46:53 explain problem Sep 05 19:47:07 i have a fragment and when i inflate the layout here http://goodtime.indus.uberspace.de/filebin/index.php/b4q99/java it works Sep 05 19:47:14 Is there away to generate a random character a-c? Sep 05 19:47:15 custom_rules.xml has the wrapper, but the problem that I'm seeing is that no 's within that wrapper are being run Sep 05 19:47:16 it crashes sry Sep 05 19:47:31 but if i set the viewgroup to null, it works Sep 05 19:47:39 Napalm, sure. I have Categories and Products. when I delete a category, its products get deleted too, but are not animated Sep 05 19:47:50 They get deleted from the ArrayList Sep 05 19:47:59 under: if I write ant rules within the project wrapper but outside any targets, they run fine. But as soon as I place them within a target, i just can't get them to run Sep 05 19:48:11 is it ok to set the viewgroup to null? in the documentation it's always used witht the container as viewgroup Sep 05 19:48:27 skullcrasher: your missing the final parameter it should read: View fragmentView = inflater.inflate(R.layout.fragment_projects, container, false); Sep 05 19:49:02 I've named the targets pre-compile, pre-build, -pre-compile, -pre-build, or other entirely different strings, and no matter what I do Eclipse just doesn't run them Sep 05 19:49:27 Napalm: oh -.- thx, works now... i quickly find out what the "false" is for Sep 05 19:49:39 i should learn to read ... Sep 05 19:49:44 properly Sep 05 19:49:51 Napalm, is that well enough? Sep 05 19:50:01 any tips that could get me in the right direction to run my custom rules under specific targets? Sep 05 19:51:23 zyngawow: im not seeing the problem. it sounds like its an implmentation detail. you should remove your products "views" and then the owning "category" view Sep 05 19:51:43 My app icon in the google console edit page looks pixelated - is this normal or does it mean I need to upload the apk again? Sep 05 19:52:04 Napalm, how do I remove them without reference to them? They are generated via the getView() method Sep 05 19:54:10 zyngawow: each element in your adapter has a position and id, Sep 05 19:54:24 Napalm, they do Sep 05 19:55:46 Napalm: I'm getting a lot of errors @Override: "The method onMyAsyncUpdate(String) of type napalm must override or implement a supertype method" Sep 05 19:55:59 Napalm, how do I get the view with the position? getView is not recommended isnt it? Sep 05 19:56:42 Anyone? It involves an expansion pack so it takes a while if I have to re-upload. Sep 05 19:56:50 let me put it in other words: what do I have to do to get Eclipse to run an ant in the custom_rules.xml file? Sep 05 19:57:18 zyngawow: ListView has getFirstVisiblePosition() which is telling you the position of Listview#getChildAt(0) Sep 05 19:57:43 like I say, if the ant rules within custom_rules.xml are *outside* a , Eclipse executes them just fine. As soon as I place them within a , they don't run Sep 05 19:57:55 Napalm, ListView.getChildAt(5) would return the 5th item? Sep 05 19:58:06 which leads me to believe that Eclipse is ignoring the targets for some reason. No matter how I name them, they're always ignored Sep 05 19:58:10 6th* Sep 05 19:58:16 zyngawow: would be getFirstVisiblePosition() + 5 Sep 05 19:58:23 not the 6th position Sep 05 19:58:31 but whatever is on the screen in "view" Sep 05 19:58:47 Napalm, I don't want what is on the screen, I want the xth item Sep 05 19:59:16 but you want to animate whats on screen right? Sep 05 19:59:29 ive your just trying to remove datam, just remove it from your adapter Sep 05 20:00:07 I want to animate the xth item Sep 05 20:00:30 Why should I bother knowing if it's on the screen? Afaik Android handles that Sep 05 20:02:58 Hey everyone Sep 05 20:03:03 anyone able to help me getting ant in custom_rules.xml running? with sugar on top…? ;) Sep 05 20:03:43 zyngawow: as i said, im not seeing your problem, explain it again perhasp Sep 05 20:05:16 Could someone help me out? My onResume isn't working. Trying to use a bundle which saves my string values onPause(), using these values, the same values are returned for the onResume() method Sep 05 20:05:55 markyosullivan: Activity or Fragment? either way those are the wrong functions to use Sep 05 20:06:01 Fragment Sep 05 20:06:08 Really? :\ Sep 05 20:06:19 how do I set a layout with an image with the text around it like this? http://i.imgur.com/V26cUB2.png I've tried flow-text but that lib sucks and there's no support Sep 05 20:06:20 Fragment#onSaveInstanceState(); Sep 05 20:06:33 This is my code Sep 05 20:06:33 http://pastebin.com/ADx4k82s Sep 05 20:07:11 Napalm, my problem. I have a Shopping list. It has Catagories and Products in a ListView. When I delete just a Product, I animate it and remove it from my ArrayList. When I delete a Category, I animate it and remove it from my ArrayList. What I want is to animate the Products whose parent is the Category deleted and remove them from the ArrayList Sep 05 20:07:14 under: at the moment, the only solution is WebView.. hint: at the moment Sep 05 20:07:39 There may be a third party lib for it, but I've never heard of it. Sep 05 20:07:55 yeah, I know, but I don't like WebView, it's not as fast as I want Sep 05 20:08:02 under: im working on a solution to this issue, but i cant tell you when it will be released Sep 05 20:08:14 markyosullivan: how is that code ever going to work Sep 05 20:08:24 markyosullivan: that's incredibly wrong, but the biggest issue is this: if(getArguments().getString("EDITLOAN").equals(null)) Sep 05 20:08:32 that's gonna crash. Sep 05 20:08:33 Napalm: ok Sep 05 20:08:49 My app icon in the google console edit page looks pixelated - is this normal or does it mean I need to upload the apk again? Sep 05 20:08:55 I had it originally as if(getArguments().getString("EDITLOAN") == null) Sep 05 20:08:57 http://pastebin.com/x9w38Bh4 there's my custom_rules.xml file, if anyone can take a look. Thank you/ Sep 05 20:08:58 you should consider reading a basic Java tutorial and learning Java more thoroughly before attempting Android Sep 05 20:09:27 I was just testing different ways RyanM, I understand Java Sep 05 20:09:33 no you don't Sep 05 20:09:37 Yes I do Sep 05 20:09:39 lol Sep 05 20:09:54 RyanM: you cant argue with a brickwall Sep 05 20:09:54 no competent java programmer would think that null-checking with .equals would work Sep 05 20:10:21 Does == null work? Sep 05 20:10:25 yes Sep 05 20:10:32 I originally had that Sep 05 20:10:43 But changed it because it didn't work Sep 05 20:10:54 Napalm, so... Sep 05 20:10:59 markyosullivan: because your using the wrong callbacks Sep 05 20:11:07 zyngawow: hang on dude, jeez Sep 05 20:11:23 I have my app working, just wanted to transfer over to Fragments instead and implement a Swipe View Sep 05 20:11:31 Napalm, sorry, just thought I wasnt explaining myself well this time either Sep 05 20:12:02 RyanM: sorry if I seemed a bit rude, just thought it was a bit of an insult telling me to look up basic Java Sep 05 20:12:12 Napalm: I change my question. Here's my activity portrait mode. Any suggestion for landscape one? http://i.imgur.com/77jAlST.jpg Sep 05 20:12:58 zyngawow: re-read what you posted. you have to remove and animate the products of the catergory before the category itself.. if you want it the other way around, thats up to how you implement the data behind your adapter Sep 05 20:13:33 Napalm, that's the thing. How do I animate the products? Sep 05 20:13:44 Does sharedPreferences work with Fragments? Because that's what I originally had in my code before this guy I know told me to change it Sep 05 20:14:02 zyngawow: the same way you currently do when you delete 1 product Sep 05 20:14:14 He gives me advice because he's more experienced in Android dev than I am Sep 05 20:14:15 markyosullivan: nooo Sep 05 20:14:25 markyosullivan: savedInstanceState Sep 05 20:14:34 Napalm, I delete it the product when a ImageButton is pressed on the layout Sep 05 20:14:34 This is what I didn't want to try Fragments Napalm Sep 05 20:14:35 :( Sep 05 20:14:39 Napalm, on the getView method Sep 05 20:14:41 what? Sep 05 20:14:49 markyosullivan: use an activity then, what are you getting at? Sep 05 20:15:04 Yeah but Swipe Views need fragments Sep 05 20:15:10 huh? Sep 05 20:15:13 since when Sep 05 20:15:28 Wait Sep 05 20:15:33 I don't need Fragments? Sep 05 20:15:45 i would recommend you use them, they are a good thing Sep 05 20:15:51 but you dont "need" them Sep 05 20:15:56 Yeah most fancy apps seem to use them Sep 05 20:16:04 Mine looks pretty boring atm Sep 05 20:16:10 First android project Sep 05 20:16:51 https://lh3.ggpht.com/G_ziezXEnFTTnakUhwnOTxUel34bGgZmcuM3q9LjnpmDyb2HccSzv3-p7arEVxRJCw=h900-rw Sep 05 20:16:51 markyosullivan: Are you trying to persist data between runs of the application? Sep 05 20:17:08 https://lh5.ggpht.com/NULCFSOBEIgAIc9e5UCDB8F5VGPy77POjrzvJmXjPjKVWCL2tJ71Z93sh_8Fff-H_WHm=h900-rw Sep 05 20:17:14 https://lh3.ggpht.com/85UMoS4QtYOyXA0o7wDp9DBNpUTE_zZ0h0dVoM6keWWtfTHFKUkCmAaAp780CTtjt58=h900-rw Sep 05 20:17:19 That's my working app atm Sep 05 20:17:30 Excluding the Payments activity Sep 05 20:17:43 https://lh6.ggpht.com/UXw_RfMq95iIJ7...teSAqA=h900-rw Sep 05 20:18:12 Shit wrong URL for the Payments activity Sep 05 20:18:12 https://lh6.ggpht.com/UXw_RfMq95iIJ7ChORl1peg2eNsRzD2CFQcWZP1kp-Ni_RO5qvaA301ICyUHteSAqA=h900-rw Sep 05 20:18:21 https://lh5.ggpht.com/ElJYYM2IT2PYKMvwa3u3bLB1SkqbPQhb7isDAnTRClz9pK0q_YIc8KrB2hjuSrZx7MA=h900-rw Sep 05 20:18:25 That's my app atm Sep 05 20:18:34 What do you mean RyanM? Sep 05 20:18:58 markyosullivan: http://pastebin.com/9MmKThiD Sep 05 20:19:11 What are you trying to use sharedpreferences vs savedinstancestate for? Sep 05 20:20:26 sharedPreferences in my current version of my app is used to store the values of the Edit Texts on both the Income and Expense activities (2nd and 3rd url) Sep 05 20:20:48 also used to transfer over the Total Income/ Expense number to the Balance activity (1st url) Sep 05 20:21:10 Napalm, if I'm looking to store data I should always use savedinstancestates? Sep 05 20:22:02 also I used sharedPreferences to store what Spinner the user used for the Edit texts on both the Income and Expense activity Sep 05 20:22:57 markyosullivan: if you're trying to save data between runs of the app, use sharedpreferences. if you're trying to save data when the screen rotates, use what Napalm said. Sep 05 20:23:47 RyanM by runs of the app do you mean when you start and close the app, then start it up again? Sep 05 20:24:41 also what do you mean by when the screen rotates, as in when the screen goes from vertical to horizontal? Or do you mean when I swipe through each fragment on the Swipe View Sep 05 20:26:51 Also does anyone want to give feedback on my app, just from the design of it? Sep 05 20:28:29 Does anyone else have to reboot their mac to get gradle dependencies to work? Sep 05 20:32:55 under: I would guess something like this.. http://i.imgur.com/IRq0iA0.jpg Sep 05 20:35:23 markyosullivan: first question: yes. second question: The former. Sep 05 20:36:18 Is the former the first thing, or is the latter the first thing RyanM? Sep 05 20:36:46 for those that would like to know a #Nexus7 channel exists here on freenode :) Sep 05 20:37:52 *sigh* this bit of code causes my program to crash, but I don't know why. It looks fine to me. http://ideone.com/hosczx Sep 05 20:38:10 Can someone take a look at it and bash me over the head when they find some simple mistake, please? :) Sep 05 20:39:10 Napalm big thanks for sending me the code Sep 05 20:39:15 going to test it now Sep 05 20:40:10 Redmega: what's the crash? Sep 05 20:40:36 I can' Sep 05 20:40:43 Can't tell, the debugger doesn't help me much. Sep 05 20:41:04 IT just says it has stopped working, right after startup. none of my buttons or textviews display Sep 05 20:41:19 Redmega: there will be an exception trace in logcat Sep 05 20:41:45 or some additional information, depending on the exact problem Sep 05 20:41:53 Oh, right, sorry. Let me check that now Sep 05 20:42:14 logcat should be the first thing you check :) Sep 05 20:42:41 im just waiting for the Doh! moment Sep 05 20:44:22 Uhm... this one pops out to me... 09-05 20:36:35.410: E/AndroidRuntime(1986): java.lang.RuntimeException: Unable to start activity ComponentInfo{edu.mdc.entec.quiz_alt/edu.mdc.entec.quiz_alt.MainActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x16 Sep 05 20:44:27 What does that mean exactly? Sep 05 20:44:48 Take a guess Sep 05 20:45:24 Well it couldn't ifnd a string but what is ID #0x16? Sep 05 20:45:27 mButtonA.setText(randGen.nextInt(51)); Sep 05 20:45:27 Sep 05 20:45:32 that's where Sep 05 20:45:39 It's ""+ Sep 05 20:45:48 Wait, did I miss one? D'OH Sep 05 20:45:50 Wow Sep 05 20:45:53 you missed in the first one in case c Sep 05 20:46:09 Yeah, see, that's why I needed a fresh set of eyes on it. Thanks f2prateek_... Sep 05 20:46:18 You got your D'oh moment Napalm Sep 05 20:46:38 :) Sep 05 20:47:31 Oh boy. Now clicking "Next Question" causes a crash Sep 05 20:47:33 lol Sep 05 20:49:03 Okay, but now at least I understand why. Okay so I have mCurrentIndex++ happen when NextQuestion is pressed Sep 05 20:49:19 The problem is the only entry in that array is 0, for the initial question. Sep 05 20:50:14 int next = (current + 1) % count; Sep 05 20:50:31 Hi! What is best practice regarding login? Should I show a login-dialog window, or create a login-activity? Sep 05 20:50:46 Ah, I forgot the % bit. Thank you Sep 05 20:53:08 i have some text which has gravity right. however if the text is too long the LEFT side (the biginning of the text) is cut of (using ellipzis="marquee"). how can make it cut the right edge instead (end) ? Sep 05 20:53:22 markyosullivan: http://www.merriam-webster.com/dictionary/former , definition #2 Sep 05 20:53:37 actually, #3 is better. Sep 05 20:53:54 Napalm: I don't like it, a lot of wasted space Sep 05 20:54:21 Napalm thanks for the code. Appreciate it. Will it be gone if the user closes the app then re-opens it? Sep 05 21:04:16 RyanM, so sharedPreferences stores the data for when the app is opened then closed then opened again? Sep 05 21:05:25 My app icon in the google console edit page looks pixelated - is this normal or does it mean I need to upload the apk again? Sep 05 21:05:39 Its the one in the top left corner Sep 05 21:06:50 sarahL: is it pixelated on Play store? did you upload the 512x512px icon? Sep 05 21:10:17 Hi Napalm, not in the play store(still in draft mode) , its the small icon it shows in the console Sep 05 21:10:25 I'm not sure if thats normal Sep 05 21:11:24 sarahL: the play store normally tells you if something is wrong, its probably because its resizing the 512x512px smaller Sep 05 21:13:03 Napalm: Thats what I thought, although I've not uploaded the 512x512 yet, just my apk and obb and google took the image from that itself Sep 05 21:19:44 I'm stepping through my code, and at certain points my thread gets suspended in an entirely different part of the Android API, and I can't step out of it. Anyone have any clues how I'm supposed to diagnose what's going on? There's no exception. I'm just stepping through my own code, and then all of a sudden I'm thrown into a different part of the code, Suspended, with zero indication of why the thread stopped. Sep 05 21:20:20 markyosullivan: Seriously, try reading the documentation. Sep 05 21:20:20 https://developer.android.com/guide/topics/data/data-storage.html#pref Sep 05 21:23:52 finally, AS update. lets see if its less messed up than the last one Sep 05 21:26:46 Can I not put a toast into public void onClick(View v) ? Sep 05 21:36:54 @g00s I don't update AS during the week anymore. Sep 05 21:37:07 sharedPreferences is what I used but can you use that with Fragments? Sep 05 21:37:45 dcow good idea when stuff works but last one was so busted - whats to lose :P Sep 05 21:38:29 @g00s no that's my point. I only update on the weekend because if it breaks stuff I don't have time to be fixing it Sep 05 21:38:41 during the week Sep 05 21:38:58 they updated to the latest EAP, thats good Sep 05 21:39:11 hopefully Sep 05 21:39:13 @g00s EAP? Sep 05 21:39:23 the intellij bits Sep 05 21:39:47 " .aar library dependencies are now properly supported, " Sep 05 21:39:58 @g00s are the release notes up? I couldn't find them yet. Regardless I think they usually update the intellij bits Sep 05 21:40:17 http://tools.android.com/recent/androidstudio027released Sep 05 21:40:55 oh, this is a big improvement Sep 05 21:42:29 Can someone tell me why mQuestionAnswered isn't doing its job? http://ideone.com/hosczx Sep 05 21:43:15 @g00s it didn't break anything? Sep 05 21:43:22 nope Sep 05 21:43:59 what's the next best thing for android to advertisingIdentifyForAdvertisors? Sep 05 21:49:20 craptastic, i'm bummed sqlite stores all reals as 64 bits; i can't ask it for 32-bit Sep 05 21:50:45 why is that a problem? more precision is a problem? Sep 05 21:54:46 pfn if you dont need the precision, its twice the space ;) Sep 05 21:54:58 g00s, yeah, well, just ignore it until it becomes a problem Sep 05 21:55:56 wow, Chrome looks like its really coming along. https://news.ycombinator.com/item?id=6335016 Sep 05 21:56:09 * g00s hasn't tried it yet, but looks … nice Sep 05 22:00:59 yuck Sep 05 22:01:10 time to brush up on my non-android skills it seems Sep 05 22:02:51 ? Sep 05 22:02:56 quitting your android job? Sep 05 22:03:56 So I'm looking to implement an inactivity timeout in my app, but there's a minor problem. The client wants the app to warn the user with a dialog when they have one minute left on the inactivity timer. Sep 05 22:04:27 Normally I'd just use onResume()/onRestart() to start an intent forcing them to re-enter their credentials, but because I need to have that alert come up I'm not sure how to do it. Sep 05 22:04:35 pfn, mmm, seriously dislike JS :) Sep 05 22:04:49 can't bring myself to read any aritcle about a browser being an OS. Sep 05 22:04:52 just seems idiotic Sep 05 22:05:05 eh? browser os? what? Sep 05 22:05:34 Norrin, well it kinda does already work :) Sep 05 22:07:47 Mavrik, I'm sure you don't need to do any js, I most certainly never will :) Sep 05 22:08:02 I've done too much js, don't want to anymore Sep 05 22:08:49 i laughed so hard when the appcelerator ceo wrote some crap for BusinessInsider proclaiming JS was destined to take over the enterprise Sep 05 22:09:03 ;) Sep 05 22:09:03 js sucks so hard Sep 05 22:09:20 but, it also interesting seeing these little arduino like thingies popup with node.js Sep 05 22:12:58 the language is just so meh Sep 05 22:13:08 fully dynamic typing ftl Sep 05 22:14:08 so android's jvm is register style vs stack style Sep 05 22:14:12 whatever that means Sep 05 22:14:46 something tells me Sun Microsystems wouldn't have aproved of android stuff Sep 05 22:14:57 android isn't a jvm Sep 05 22:15:02 They initially did. Sep 05 22:15:05 hmm Sep 05 22:15:06 what does sun have to do with approving android Sep 05 22:15:13 Oracle bought them and wiped out the evidence. Sep 05 22:15:14 it's explicitly not a jvm Sep 05 22:15:15 they don't anymore Sep 05 22:15:56 ok dalvak vm Sep 05 22:15:59 dvm Sep 05 22:19:43 pfn how much does a scala dev depend on java libraries? is scala pretty much self contained? Sep 05 22:20:15 for example, networking, do you guys use plain urlconnection or something scala provides? Sep 05 22:20:28 If I want to use a line break inside my AlertDialog message, do I use
or \n? Sep 05 22:20:40 g00s, uses lots of java libraries Sep 05 22:20:42 I'm pretty sure you're going to be using the base platform (Java or .NET) in addition to Scala. Sep 05 22:20:51 you can use scala-specific libraries if you want Sep 05 22:20:53 I prefer not to Sep 05 22:21:33 hi Sep 05 22:21:50 hello veQue Sep 05 22:21:54 <|0xD34D|> Fallout2man: \n Sep 05 22:22:07 pfn for concurrency, does java.util.concurrency still have value, or does scala have it own stuff in addition to akka ? Sep 05 22:22:12 |0xD34D| ah, thank you Sep 05 22:22:25 how do i get more 'Targets' ? like that are already pre-existing phones for the avd? is there a place or do i just make them? Sep 05 22:22:46 veQue, run sdk manager Sep 05 22:23:08 g00s, depends on your needs, I suppose, I usually just a threadpool and handler Sep 05 22:23:19 so I async { background shit; handler.post { shit when done } } Sep 05 22:23:51 yeah, on android handler is nice Sep 05 22:24:03 if I'm working on the jvm, sure, I'll use akka and whatever as necessary Sep 05 22:26:25 is there a way to have a spinner on just a plain activity? Sep 05 22:26:43 pfn did you see that Twitter site 'effective scala' ? presumably modeled after 'effect java' , etc. just saw it yesterday. now, the effective Java/Obj-C books are great , not sure how good this is Sep 05 22:26:48 I'm toying w/ the idea of programming a simple sequencer but I want to at least get a tone generator working first Sep 05 22:26:53 *picker Sep 05 22:26:59 not spinner Sep 05 22:27:02 man, my search provider is so broken, I really really don't understand why :( Sep 05 22:27:14 g00s, dunno, twitter isn't generally correct with effective scala, I think Sep 05 22:27:16 pfn i ran sdk manager. i have a list of devices but i was looking for the galaxy S3 Sep 05 22:27:27 veQue, you can't get specific devices, only emulated platforms Sep 05 22:27:29 okay, hopefully this is the last question. But how do I dismiss a dialog programmatically? Here's what I need to do. I wrote a CountDownTimer that runs for ten minutes to log the user out due to inactivity. However at one minute away from my timeout I display a dialog warning the user about their session being about to expire. Sep 05 22:27:31 is it even worth it ? i do see galaxy nexus Sep 05 22:27:42 ok Sep 05 22:27:45 all the API guides have are just date & time pickers Sep 05 22:27:46 Fallout2man, .dismiss()... Sep 05 22:27:50 But if they don't press the screen I'm worried putting up a second dialog without being able to dismiss the earlier one will prove confusing Sep 05 22:28:07 so basically i have to find the specs and manually enter them? Sep 05 22:28:26 veQue, yes Sep 05 22:28:29 pfn: hrmm, right I could assign it to some sort of variable and then dismiss it from m onFinish() Sep 05 22:28:41 pfn: Thanks, sometimes I just need to hear this stuff from somewhere else. Sep 05 22:28:46 k thanks, well that's cool. =) Sep 05 22:29:04 mQuestionAnswered isn't doing what it's supposed to do http://ideone.com/hosczx Sep 05 22:29:05 Any ideas? Sep 05 22:31:00 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/SearchableActivity.scala Sep 05 22:31:03 * pfn headscratches Sep 05 22:31:09 wtf isn't my SearchProvider giving me more than 1 result Sep 05 22:31:25 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/SearchableActivity.scala#L89 Sep 05 22:31:28 oops, missed the line number Sep 05 22:32:23 * g00s doesn't understand what any of that is Sep 05 22:32:34 too bad for you :p Sep 05 22:33:05 pfn: are you using some particular framework? Sep 05 22:33:11 no Sep 05 22:33:11 pfn white your ontent provider in java and see if it works :D Sep 05 22:33:18 g00s, it would make no difference there Sep 05 22:33:29 under, no Sep 05 22:33:31 just joking Sep 05 22:34:07 my cursor and resulting cursor both specify the right number of results Sep 05 22:34:09 I hate languages which specify type after the variable name ;) Sep 05 22:34:13 but global search only ever shows one Sep 05 22:34:36 Zharf, it enables many features, such as allowing the type to be optional Sep 05 22:34:39 I didn't ever know what scala is since 1 minute ago Sep 05 22:34:40 pfn are you sure your cursor really works right? sounds like maybe the window isn't being filled with results and shipped across process boundaries ? Sep 05 22:34:49 pfn, optional type is even worse! Sep 05 22:34:53 everything has a type! Sep 05 22:35:02 Zharf, everything has a type, having to specify it is optional Sep 05 22:35:19 right, which makes it confusing to read and more difficult to prove :) Sep 05 22:35:21 Mavrik, work? so does malbodge. doesn't mean it should be used. Sep 05 22:35:25 Zharf, not really Sep 05 22:35:48 Norrin, it works pretty well as well ;) Sep 05 22:35:52 g00s, I suppose that is a remote possibility, AbstractCursor is supposed to take care of all windowing issues Sep 05 22:36:28 https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/database/AbstractCursor.java Sep 05 22:36:48 getWindow returns null, and fillWindow is supposed to get all results starting at position Sep 05 22:37:09 g00s, and yeah, I've tried providing a cursor window, no use Sep 05 22:37:31 hm, i thought that was just 'default' behavior - but legwork was required Sep 05 22:37:48 maybe jasta knows, he did a lot with this stuff Sep 05 22:37:58 g00s, well, my cursor from keepassdroid makes it over to my sharing activity fine, with all rows Sep 05 22:38:09 ok Sep 05 22:41:31 so I don't think it's a cursor issue, I have another cursor implementation that is passing all results fine Sep 05 22:41:39 I think there's a nuance of the search suggestion content providers that I'm missing Sep 05 22:44:45 I have an EditText in which I've added a search-image with: android:drawableRight="@drawable/ic_search". It is visible BUT, how can I implement onclick on this drawable inside the EditText?? Sep 05 22:45:47 pfn MatrixCursor is a good template of correctness, you probably saw that already though Sep 05 22:47:03 yeah, seems pretty easy Sep 05 22:47:09 hm Sep 05 22:47:55 yeah, matrixcursor is an example of the suck Sep 05 22:47:57 :) Sep 05 22:48:19 my mapping abstractcursor wrapper is way simpler and straightforward Sep 05 22:49:23 I wish I could get more debug output out of global search Sep 05 22:52:28 <^cheeky> hi is there a way to search for ketwords or functions in your whole projects in android studio .. like in eclipse ? Sep 05 22:52:35 sure Sep 05 22:52:41 look in the view/nav/edit menus Sep 05 22:52:53 <^cheeky> k looookinnnnn Sep 05 22:54:09 how do you know to use android studio? the prediction is so slow Sep 05 22:54:24 prediction slow? Sep 05 22:54:29 eclipse has historically been slower... Sep 05 22:54:35 *how can you do Sep 05 22:54:58 seriously? Sep 05 22:55:08 eclipse is very fast Sep 05 22:55:20 not fast as visual studio of course Sep 05 22:55:23 <^cheeky> pfn: no .. so i added this flag .. .and i wanna find where in my project did i use that constant .. nothing to do with prediction i love the prediction Sep 05 22:55:43 ^cheeky, easy, use the find usages command Sep 05 22:56:07 <^cheeky> i wish i got auto-complete/prediction to work .. on eclipse ADT .. i eclipse .. used it in college and internship .. kinda .. fond of it . Sep 05 22:56:28 <^cheeky> yeah ctrl + f . but it only finds it in the current file .. Sep 05 22:56:33 that's not find usages Sep 05 22:56:56 ^cheeky, right click on the variable, find usages Sep 05 22:56:58 <^cheeky> and there is icon for whole project but it becomes disabled when i type the constant Sep 05 22:57:16 <^cheeky> well see i need to find that variable in my project Sep 05 22:57:44 oh, I <3 finally having uverse Sep 05 22:57:44 <^cheeky> its okay pfn thank you , ill just go through the files for now .. my add sucks so badly !!!!!! Sep 05 22:57:55 huh? Sep 05 22:57:59 find usages does exactly what you want... Sep 05 22:58:55 <^cheeky> hmm .. ok i see the option Sep 05 22:59:12 man, you have bad ADD if you can't even be bothered to search a menu for an option that does what you need... Sep 05 22:59:20 <^cheeky> i see it Sep 05 23:00:21 <^cheeky> i do .. tho have bad ADD ..i just typed that word in and did find usages and it worked :) Sep 05 23:00:57 <^cheeky> i dont even know if ADD is a real thing !!!!! .... ADD given to people who cant think properly i spose lol Sep 05 23:01:02 <^cheeky> pfn: thank you again Sep 05 23:01:05 what the difference betweem @ and @+ in resource files? Sep 05 23:01:27 bel3atar, + is for new ids that have not been predefined Sep 05 23:01:42 <^cheeky> @+ is when you first are assigning a ID .. and it will create it in th R file Sep 05 23:02:07 * pfn waits for ungodly slow armeabi emulator to boot Sep 05 23:02:08 <^cheeky> me.slow-- heh Sep 05 23:02:19 I don't understand why it doesn't use 100% cpu, though Sep 05 23:02:26 so I'm supposed to remove the + after compilation? Sep 05 23:02:30 bel3atar, no Sep 05 23:02:34 only if it's /predefined/ Sep 05 23:02:47 if you aren't doing anything to predefine it, then there you go Sep 05 23:07:04 googling picasso stuff, got SimonVT github project ^_^ Sep 05 23:07:10 I have a Shopping list. It has Catagories and Products in a ListView. When I delete just a Product, I animate it and remove it from my ArrayList. When I delete a Category, I animate it and remove it from my ArrayList. What I want is to animate the Products whose parent is the Category deleted and remove them from the ArrayList Sep 05 23:07:18 How do I do that? Sep 05 23:12:43 What are the pros and cons of using eclipse vs android studio? Sep 05 23:12:56 what about IJ ? Sep 05 23:13:40 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android.quicksearchbox/com.android.quicksearchbox.preferences.SearchableItemsActivity}: java.lang.ClassNotFoundException: Didn't find class "com.android.quicksearchbox.preferences.SearchableItemsActivity" on path: DexPathList[[zip file "/system/app/QuickSearchBox.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]] Sep 05 23:13:42 stupid emulator Sep 05 23:14:17 friggin' worthless Sep 05 23:14:26 Folks -- having trouble seeing the "3-dots" menu on the actionbar, when using appcompat v7 on android-8. I haven't done anything but extend ActionBarActivity - and then the usual menuinflation within onCreateOptionsMenu() Sep 05 23:14:36 If I have an ArrayAdapter feeding a ListFragment, the context of the Adapter is the Fragment or the Activity? Sep 05 23:15:02 (The menu continues to exist, attached to the menu button on android-8) Sep 05 23:15:50 kbs, you only get 3 dots if you don't have a physical menu key Sep 05 23:16:03 that has always been the behavior Sep 05 23:16:47 pfn: oh - didn't realize that. So, that's true even when using the appcompat v7 actionbar? I get an action bar; just missig the menu icon on it. Sep 05 23:17:06 (and out of curiosity, is that the behaviour with action-bar-sherlock as well?) Sep 05 23:17:31 kbs, yes and yes Sep 05 23:17:38 well, it should be Sep 05 23:17:44 dunno, abs menu looks like shit anyway Sep 05 23:17:49 when it's attached to a menu key Sep 05 23:17:54 *Android menu Sep 05 23:18:13 pfn: thanks for the heads-up. I'll run away now while JakeWharton whacks you with a fish. Sep 05 23:18:50 JakeWharton, don't care, it looks like crap :p Sep 05 23:19:02 i don't care either Sep 05 23:19:05 minSdkVersion="14" Sep 05 23:19:12 appcompat-v7 looks good, so it's ok Sep 05 23:19:27 that one user on 2.3 thanks you Sep 05 23:19:41 Could you guys recommend any books/tutorials for someone who has previous programming experience (c/c++) but needs to learn java? Sep 05 23:19:56 JakeWharton, indeed Sep 05 23:20:07 I'm testing my new app on 2.3 for the first time... man, runs like shit, heh Sep 05 23:20:24 <^cheeky> pistolpete333: might be to easy of read .. but head first java .. or this text book i used .. Sep 05 23:20:37 pistolpete333, thinking in java is always a good start Sep 05 23:20:38 and by the time you optimize it 4.x will have 75% market share Sep 05 23:20:40 pistolpete333, Java has a lot of similarities to C++ Sep 05 23:20:56 JakeWharton, I'm just really wanting to understand why my search content provider isn't working correctly Sep 05 23:21:04 JakeWharton, in global search, it's only giving me 1 result Sep 05 23:21:05 pistolpete333, except with Java here are no functions, everything is a method of a class Sep 05 23:21:09 trying to see if 2.3 behaves differently Sep 05 23:21:22 can't help. never used one and hope to never have to Sep 05 23:21:39 I want my global search to work right :( Sep 05 23:21:44 pistolpete333, also there are no pointers, memory management etc. Sep 05 23:21:45 <^cheeky> Ologn: oh .. i thought functions .. are methods .. in java .. Sep 05 23:21:55 Ologn, interesting I didn't know that Sep 05 23:21:56 maybe I'll just clone all of the keepassdroid pwdatabase code into my own codebase if bpellin doesn't accept my pull request Sep 05 23:22:38 ^cheeky, http://stackoverflow.com/questions/155609/what-is-the-difference-between-a-method-and-a-function Sep 05 23:22:41 E/AndroidRuntime( 1827): android.content.ActivityNotFoundException: No Activity Sep 05 23:22:41 found to handle Intent { act=com.google.android.gms.common.account.CHOOSE_ACCOUN Sep 05 23:22:41 T (has extras) } Sep 05 23:22:46 Ologn, so is it simpler because of less memory management? Sep 05 23:22:48 yay, hooray for my old 2.3 device, can't do shit Sep 05 23:23:02 pistolpete333, pretty much, yes Sep 05 23:23:26 Although I am doing a lot of JNI stuff so I have the worst of both worlds Sep 05 23:23:40 env->ReleaseByteArrayElements(jword, wordBytes, JNI_ABORT); Sep 05 23:24:44 of course, google search code isn't public so I can't see why it might only get 1 result :( Sep 05 23:24:52 Ologn, what do you mean by worst of both worlds? Sep 05 23:25:52 pistolpete333, I have C++ libraries in my Android code. So I deal with Java, C++, C++ memory management, cleaning up JNI calls etc. Sep 05 23:26:13 oh jeez. doesnt sound like fun lol Sep 05 23:27:31 cheeky^, how did you like headfirst java? Sep 05 23:31:03 <^cheeky> pistolpete333: i absoloutely LOVED IT!!!!!!! it was a fun book to read man. See if you can check it out in a library or something.ahh good memories lol Sep 05 23:31:18 what book? Sep 05 23:31:19 <^cheeky> pistolpete333: even the sun tutorials are good Sep 05 23:31:38 <^cheeky> caverdude: the head first book for java Sep 05 23:31:44 ah Sep 05 23:32:17 I never understood "head first" in the title lol Sep 05 23:32:21 <^cheeky> i am thinking of .. reading the design patterns one and the OBJECT design one but blah .. i dont have time it sucks and i hav ADD i think so its bad ... Sep 05 23:32:38 <^cheeky> me thinks you dive into java head first .. i think Sep 05 23:32:41 <^cheeky> might be wrong Sep 05 23:32:44 oh ok Sep 05 23:32:45 sure Sep 05 23:33:22 * caverdude writes a book "sink or swim java" Sep 05 23:33:24 <^cheeky> see irc is bad when you trying to program and have ADD lol !!! Sep 05 23:33:27 <^cheeky> haha Sep 05 23:34:00 * ^cheeky trying to wrap head around orientationchange listener for my lil test app Sep 05 23:34:41 <^cheeky> i guess a drawback .. having android on so many different phones .. and each phone does this oirentation camera thing different Sep 05 23:34:59 ^cheeky, I might check it out. I do have the Head first object orientation and design book, Ive heard its good, I just havn't cracked it yet. Now that Im working on android dev stuff thought I feel it might come in handy Sep 05 23:36:00 <^cheeky> pistolpete333: it will but .. i mean you know C++/C .. you could just dive into android headfirst .. with what you know and learn on the way .. just a suggestion man ... but i am no guru or nething Sep 05 23:36:56 ^cheeky, so you think diving in to android will be enough to learn oop concepts? Sep 05 23:37:24 <^cheeky> with android .. just what i understand .. its more about learning how the architecture works .. like its states , like some on here mentioned process boundaries and stuff Sep 05 23:38:04 Oh ok, so its kind of a differant ballgame then? Sep 05 23:38:32 <^cheeky> oh i dunno about OOP concepts .. well i mean you could just read about it... its stuff like inheritence, polymoph, interfaces .. which in java you have and c++ you have multiple inheritences .. Sep 05 23:39:19 <^cheeky> pistolpete333: ummm mebe .. not sure some else should answer that who is not me lol Sep 05 23:40:00 ^cheeky, haha no worries. how well would you say you know java? Sep 05 23:40:35 <^cheeky> very little .. srsly Sep 05 23:40:56 <^cheeky> i mean i just know know the basics ..like OOP concepts .. loops, if statements lol i dunno Sep 05 23:41:32 <^cheeky> i actually dunno how to answer that question .. i dunno the metric i could gauge myself lol Sep 05 23:41:51 haha sounds pretty similar to me Sep 05 23:42:29 <^cheeky> i mean i have done c++ .. pointers was crazy trip for me .. but it was an awsome feeling when you actually doing pointer arithmetic .. and you actually manipulting electrons .. which hold data .. idunno it was pretty nifty Sep 05 23:43:09 holy shit, I just made my search provider work right Sep 05 23:43:20 pointers are sweet. I never had to much of a problem with them. pointers to pointers still get me sometimes though Sep 05 23:43:20 <^cheeky> niiice :) Sep 05 23:43:21 I needed to add column SUGGEST_COLUMN_INTENT_EXTRA_DATA_ID Sep 05 23:43:25 good god, this needs to be documented Sep 05 23:44:27 pfn, for a noob, what exactly is a search provider in android? Sep 05 23:44:41 pistolpete333, fills entries in when you use the global search Sep 05 23:44:47 <^cheeky> pistolpete333: yeah i had to learn it on the job .. and all i did was java .. in school so .. pointers and stuff like typedefs and using key:map values acessing them by refernce got me it was funny when i first wondering why the hell my map was empty lol Sep 05 23:46:22 pfn, cool thanks Sep 05 23:47:38 ^cheeky, I was lucky enough to take my intro to programming classes in c++. Got exposed to all that stuff early on when I had time to learn it Sep 05 23:48:34 <^cheeky> yeah man, but learning it coming from java .. you really appreciate that all the stuff has been taken care for it Sep 05 23:48:51 <^cheeky> *taken care of Sep 05 23:50:05 Ill bet haha Sep 05 23:51:00 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my item? (It does change the color variable on the object) Sep 06 00:02:35 Hey guys Sep 06 00:03:31 I need help in understanding how I would go about implementing an interface that is defined in a Fragment upon inserting that Fragment into the Activity layout/UI layout. Sep 06 00:07:05 If I define an interface in a Fragment, where that interface includes a method that I must implement myself via overriding it in the host Activity where the Fragment will be inserted, would the host Activity implement it the interface automatically upon attaching of Fragment to Activity, or would I need to implement the method from the interface in the Activity in order for that interface to be 'implemented' in the Activity? Sep 06 00:17:47 incognitto: your activity must implement the interface. if your class don't have "implements MyFragmentInterface", then you're not implementing it. Sep 06 00:18:13 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my item? (It does change the color variable on the object) Sep 06 00:20:18 Anyone know if there's a way to make the drawable in a RadioButton bigger *without* having it overlap the text? Sep 06 00:20:26 I dont know why but im thinking it automated as opposed to me hardcoding it before launching the activity. Weird. Sep 06 00:20:30 Thanks. Sep 06 00:22:44 zyngawow, is that View the main layout? Sep 06 00:23:10 incognitto, it is a ListView item Sep 06 00:23:23 oh Sep 06 00:27:45 seems like AS 0.2.7 comes with some prerelease gradle 1.8; anyone know the implications of just using an already installed 1.7 stable ? Sep 06 00:28:22 worst case: the universe implodes. Sep 06 00:28:35 that is bad ... Sep 06 00:28:59 granted, that's the worst case for anything you do. Sep 06 00:30:16 historically the android gradle plugin had some hard dependency on a specific gradle version; but enough of the prerelease/alpha stuff, i'll try with 1.7 stable for now i guess Sep 06 00:38:03 Is Gradle strictly for open source projects? Sep 06 00:39:32 no, why? Sep 06 00:42:08 just wondering Sep 06 00:42:18 on the site it says it's the top choice for open source. Sep 06 00:43:31 hi, could i set up google play merchants if my country is not on list via entropay ? Sep 06 00:51:37 Hello everyone Sep 06 00:52:24 anyone use picasso? If I set a http url, size() won't work Sep 06 00:52:34 *resize Sep 06 00:52:49 what do you mean "wont' work"? Sep 06 00:52:51 I'm trying to access a remote MySQL database from android app. And any tutorials I can find suggest using PHP as a middle man. Can I just use Java's JDBC Mysql/J Connector? Sep 06 00:52:53 what's picasso? Sep 06 00:53:23 JakeWharton: image is not loaded and if I implement Callback, onError() is invoked Sep 06 00:54:16 incognitto: http://square.github.io/picasso/ Sep 06 00:54:24 what's in the logs? Sep 06 00:54:30 Yeah i was just looking at that :P Sep 06 00:54:35 pretty neat Sep 06 00:55:07 use the visual debug tool in the IDE Sep 06 00:55:23 or in the Android package Sep 06 00:55:30 which would be installed in the IDE Sep 06 00:55:36 does picasso 2.0 include a "local cache only" option Sep 06 00:55:58 in this case is useless, onError() has no parameter Sep 06 00:56:28 JakeWharton: logcat? absolutely nothing Sep 06 00:56:37 anyone here using Android Studio Sep 06 00:56:50 Try restarting the IDE under Sep 06 00:56:56 you never know Sep 06 00:57:15 :D Sep 06 00:57:21 Napalm: not me at all Sep 06 00:57:34 everytime i launch my project to test on device it pop's up with the "choice device" window.. when I only have one device plugged in Sep 06 00:57:36 really annoying Sep 06 00:57:53 Im using Eclipse with ADT plugin Sep 06 00:58:05 I fear Studio isnt stable. Sep 06 00:58:13 Napalm: why don't you use eclipse? Sep 06 00:58:22 I use Eclipse Sep 06 00:58:42 im just playing with Studio, getting used to the new interface, trying to find out if i like it or not Sep 06 01:00:43 same here. I played with layout creator, typed android:'CTRL+SPACE' I waited about 1.5 seconds for prediction. quicly unistalled Sep 06 01:01:00 *quickly Sep 06 01:01:00 under: its super fast for me Sep 06 01:01:04 lastest version Sep 06 01:01:18 oh, and you can configure the settings to use the Eclipse keys Sep 06 01:01:23 which is handy as I know them Sep 06 01:01:43 im sure it will be a great IDE to use in the future Sep 06 01:01:43 mmmh you are the second who tell me that is fast so it's my problem Sep 06 01:02:06 Napalm i remember the ADT did that for the longest time (always ask). in fact, i filed a bug years ago :P Sep 06 01:03:29 hey there anyone can give some advice or an actual app that i can use to see the ip of the server an app i have connects to ? Thanks Sep 06 01:07:42 Anyone have a more readable or practical tutorial on android's in app purchas system than google's own? http://developer.android.com/google/play/billing/billing_integrate.html#billing-permission Sep 06 01:07:45 I'm down to setContentView(R.layout.activity_main); but activity_main isn't in R.layout Sep 06 01:14:19 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my ListView item? (It does change the color variable on the object) Sep 06 01:22:14 <^cheeky> hi , i am trying to implement onOrientationChanged() during the onActivityCreated(), but when i am debugging it .. it doesnt even trigger the orientationEventListener(). i am assuming that its to late .. for the listener Sep 06 01:28:45 ^cheeky: why don't you use onConfigurationChanged(...) ? Sep 06 01:30:01 are developers just allowed to compile apps direct from the cyanogen source tree, rename them and release on play ? maybe with a few tweaks ? Sep 06 01:30:08 <^cheeky> under: well i did . but its always coming back .. as 2 .. which is landscape .. and also i set the activity to be landscape specifying it in my manifext Sep 06 01:30:13 <^cheeky> *manifest file Sep 06 01:32:04 ^cheeky: what are you trying to do exactly ? Sep 06 01:34:39 <^cheeky> under: just playing with the camera app or learn . so .. i am creating surfaceview .. and not using inbuild app to snap pics .. but i want to rotate the pic if it was snapped in portrait mode or rotate it to landscape if it is was taken in landscape Sep 06 01:35:31 simple linear algebra Sep 06 01:38:30 java.util.concurrent.Exchanger ftw Sep 06 01:39:02 <^cheeky> yeah it never hits my listener inActivityCreated() .. coz exif returns 0 all the time Sep 06 01:40:39 <^cheeky> maybe ill check android.Display.getRotation Sep 06 01:45:14 <^cheeky> how do i get the .. source code for the native camera app or .. source code for a camera app Sep 06 01:52:16 <^cheeky> k Sep 06 01:52:18 <^cheeky> that was a bad idea Sep 06 02:30:01 Where would NullPointerException.printStackTrace() get piped in an android app? Sep 06 02:30:30 into logcat System.err Sep 06 02:30:35 don't ever use printStackTrace, though Sep 06 02:30:36 that's just stupid Sep 06 02:30:45 Log.e(TAG, "oh shit", e) Sep 06 02:31:22 pfn: Okay thanks, I'll try that. I was only using stacktrace because I was trying to figure out which line was throwing the bloody nullpointer :P Sep 06 02:32:15 and why are you even catching the null pointer Sep 06 02:32:20 let it crash and read AndroidRuntime for the stack Sep 06 02:32:25 logcat -s AndroidRuntime Sep 06 02:33:01 I'm catching the null pointer because adding a view programmatically crashes the app every time on start. I'll try that though Sep 06 02:33:13 yeah, like catching it is gonna fix it :p Sep 06 02:33:24 :P I'm just trying to figure out what's causing it Sep 06 02:34:19 reading the logcat would have told you that without having to printStackTrace Sep 06 02:34:44 Yeah I'm a tad new to this, if you can't tell. I'm probably going to do a lot of things that make no sense at all Sep 06 02:35:46 As I thought, It's when I'm trying to add a view to a layout programatically. To Google! (again) Sep 06 02:36:03 pfn: Thanks for the logcat tip, that makes things a lot easier o.o Sep 06 02:37:16 <^cheeky> any suggestions on how to get what the orientation was when the camera app snapped a pic ? Sep 06 02:38:15 read exif Sep 06 02:39:03 <^cheeky> i have implemented it .but i always get a 0, i just read that i need to enable and disable the orientationEvenListener() on pause() and on resume() .. ill give that a shot Sep 06 02:43:21 <^cheeky> OMG Sep 06 02:43:41 <^cheeky> i think the enable and disable() worked .. but when i did it in landscape mode it crashed hehe Sep 06 02:46:15 I can have multiple Views inside a Fragment right? Sep 06 02:46:41 incognitto: just have the fragment onCreateView return a ViewGroup Sep 06 02:46:59 I feel stupid Sep 06 02:47:10 its passing in an inflater also Sep 06 02:47:24 For my question above about learning about in app payment in android here's a link: Sep 06 02:47:32 http://www.techotopia.com/index.php/Integrating_Google_Play_In-app_Billing_into_an_Android_Application_%E2%80%93_A_Tutorial Sep 06 02:47:37 incognitto: just make sure you use it properly, .inflate(R.layout.X,root,false); Sep 06 02:47:42 right Sep 06 02:47:45 lol im not that stupid Sep 06 02:48:02 ive seen many people leave the false out, and it throws an error because it already has a parent Sep 06 02:48:13 so they then remove the parent, and wonder why parent based sizing doesnt work Sep 06 02:48:26 how do you guys go about thinking of the many alternatives for a handlers, etc./ Sep 06 02:48:36 lol clever Sep 06 02:49:42 Alternatives for a handlers, etc.? Sep 06 02:50:07 What's the etc. in that? Sep 06 02:50:12 well more along the lines of the thinking pattern Sep 06 02:51:04 Im guessing the possibilities and various forms of acheiving a solution to a programming problem comes with experience? Sep 06 02:52:09 Here I am thinking I have to include Views in my fragments layout and theres no other way around it, and then someone tells me I can have the onCreateview handler return a ViewGroup...Why didnt I think of that?! Sep 06 02:52:55 incognitto: you would put all of the views into a layout file, and use the inflater to inflate that Sep 06 02:53:09 incognitto: it will return a subclass of ViewGroup (likely LinearLayout) and onCreateView returns that Sep 06 02:53:58 no I know I have to do it that way, but I was thinking I had to put it in the Fragments layout Sep 06 02:54:14 regardless I digress Sep 06 02:54:16 Thanks! **** ENDING LOGGING AT Fri Sep 06 02:59:59 2013