**** BEGIN LOGGING AT Thu Sep 26 02:59:59 2013 Sep 26 03:44:49 I wish crash reports could be responded to Sep 26 03:45:31 yeah Sep 26 03:47:39 so the user doesn't think their shit goes into a black hole at least Sep 26 03:48:52 pfn: So, Android Test Case... How do I load an asset from the asset folder (which is not inside the rest folder) or the Test Project (which is different from the project under test)? Sep 26 03:49:32 getContext().getAssets().open("/myassetfile") doesn't work... with "/asset/myassetfile/" it doesn't work either Sep 26 03:49:43 only assets from the main asset can be loaded Sep 26 03:49:46 er, main apk Sep 26 03:49:49 not from the test apk Sep 26 03:49:53 pfn: but what if I need an asset for the test? Sep 26 03:49:59 not for the program itself? Sep 26 03:50:01 I haven't figured that out myself Sep 26 03:50:05 :( Sep 26 03:50:18 maybe there's a way, but I didn't bother researching it Sep 26 03:50:28 I imagine there should be.... Sep 26 03:50:56 pfn: can you load it from the res folder? or that doesn't work anyway? Sep 26 03:51:00 http://stackoverflow.com/questions/3901342/android-accessing-test-application-assets Sep 26 03:51:47 seems like you should be able to getInstrumentation().getContext().getAssets()... Sep 26 03:51:56 same with getResources Sep 26 03:52:00 I'll try that Sep 26 03:52:05 and what will the path be Sep 26 03:52:12 if the asset is /asset/myasset Sep 26 03:52:12 ? Sep 26 03:52:17 myasset Sep 26 03:52:22 k, thx Sep 26 03:52:25 other question Sep 26 03:52:34 how to prevent people clicking two times in a button? Sep 26 03:52:42 the setdisabled thing doesn't work Sep 26 03:52:46 remove your listener, disable the button, etc. Sep 26 03:52:56 setEnabled(false) seems to work fine for me Sep 26 03:53:05 pfn: it works unless you have 2 clicks already queued... Sep 26 03:53:24 then set a variable while your listener is processing and ignore any clicks while the variable is set Sep 26 03:53:52 pfn: my problem is that I want to re-enable the click when the action that the click perform is finished, yet I don't want to do this manually every time Sep 26 03:54:12 how are you managing to queue 2 clicks anyway... Sep 26 03:54:19 shouldn't be possible on a device Sep 26 03:54:28 pfn: it's definitly possible Sep 26 03:54:43 pfn: you either click fast, or you perform a bunch of work in the UI or a lot on the device Sep 26 03:54:52 * pfn shrugs Sep 26 03:54:53 there is nothing preventing many clicks for being queued Sep 26 03:55:00 do it manually, write an abstraction to filter it Sep 26 03:55:05 It's just that you usually respond to the first one pretty fast Sep 26 03:55:07 so you don't have to do it manually Sep 26 03:55:30 pfn: my problem is how to figure out if I click camed while I was processing the previous one, or not Sep 26 03:56:01 onClick() { if (iAmProcessing) return; iAmProcessing = true; ...; iAmProcessing = false } Sep 26 03:56:26 pfn: that's useless given that clicks are executed all in the UI thread Sep 26 03:56:36 indeed Sep 26 03:56:40 you'll never get 2 calls of onClick at the same time Sep 26 03:56:43 but you'll get one call Sep 26 03:56:45 and then another call Sep 26 03:56:50 you're right Sep 26 03:57:00 * pfn shrugs Sep 26 03:57:14 setEnabled(false) and if your users click faster than you can process... optimize your processing ;-) Sep 26 03:57:19 or blame their device for being shitty Sep 26 03:57:23 * pfn go zzz Sep 26 03:57:43 pfn: if the device is doing things on background, there is nothing you can do to stop it Sep 26 03:58:01 it's not the most common thing, but still.... Sep 26 03:58:08 I dunno how heavily you're doing stuff in the background, but I haven't really encountered that Sep 26 03:58:26 pfn: if other apps are doing stuff in background, they affect you Sep 26 03:58:49 * pfn shrugs Sep 26 03:58:56 you figure it out, I'm not interested, too tired Sep 26 04:08:39 I am trying to update apps on my android device and it shows there is an update but after it downloads says X app is not installed when it is. Is there a way to find out why it does this? I do have a sd card mounted(installed)' Sep 26 04:11:34 It is not possible to override the hard keyboard search button to launch a specific activity from the background, but it is possible to do so on a long press of that button, correct? Sep 26 04:14:28 Hey Guys, I'm trying to install roboelectric with eclipse. But my project is not able to resolve roboelectric library Sep 26 04:14:52 The import com.xtremelabs cannot be resolved Sep 26 04:15:20 I'm using robolectric-2.2-20130925.063940-58-jar-with-dependencies.jar with android api 16 Sep 26 04:16:57 this http://pivotal.github.io/robolectric/eclipse-quick-start.html guide is specific to API 8 Sep 26 04:17:11 does roboelectric only supports API 8 Sep 26 04:49:00 Hey Guys, so I've a basic question on automation. I want to write a RPC test cases for my application Sep 26 04:49:07 what is the best tool to use Sep 26 04:51:35 I am trying to update apps on my android device and it shows there is an update but after it downloads says X app is not installed when it is. Is there a way to find out why it does this? I do have a sd card mounted(installed) Sep 26 05:04:58 oh he's back!!! Sep 26 05:21:49 I've got a fairly basic webview-based application that loads a javascript app over the local network. The app displays images in a sequence (i.e. pages of a comic, with 1 page == 1 image file). The user clicks the image to load the next one in the sequence etc. This all works fine, for a while, but intermittently clicking to get the next image takes ages to load the image, say 30 seconds - 1 minute. Sep 26 05:22:04 I see the same behaviour in the built-in Internet appllication Sep 26 05:22:52 The javascript app is hosted by a machine on the local network, and I'm connecting to it via the device's wifi. The device I'm using is a Galaxy Tab 2 10.1 running 4.0. Sep 26 05:24:11 Is this a common problem? I can't tell if it's a client/webview issue, or something about the wifi connection, or the host is being weird (the wifi network is being created by the device [a raspberry pi] hosting the javascript app, through putting a wifi adapter into host mode) Sep 26 05:25:06 While the image is attempting to load, the wifi icon shows up and down activity, but still, it takes much longer than usual (30s-1m vs 1s or so) Sep 26 05:34:33 At a guess, it could be a memory management issue, but I am under the impression that WebView manages memory itself, and would crash the application rather than make the image load take longer Sep 26 05:37:49 I am trying to update apps on my android device and it shows there is an update but after it downloads says X app is not installed when it is. Is there a way to find out why it does this? I do have a sd card mounted(installed) Sep 26 06:07:45 hello Sep 26 06:08:02 I am trying to update apps on my android device and it shows there is an update but after it downloads says X app is not installed when it is. Is there a way to find out why it does this? I do have a sd card mounted(installed) Sep 26 06:09:47 well, if it isn't 'NOT A BOT" LLckfan spamming us again with bullshit Sep 26 06:10:04 I AM NOT A FING BOT Sep 26 06:10:08 bs Sep 26 06:11:18 hi , anyone know a good way to list at database data/data without root ? I tried adb shell ls data it said i didn't have permission and didn't list anything Sep 26 06:11:47 newll, one way is to adb backup the db to your desktop Sep 26 06:11:51 It is not possible to override the hard keyboard search button to launch a specific activity from the background, but it is possible to do so on a long press of that button, correct? Sep 26 06:12:01 the other way, assuming its your app, is 'run-as' Sep 26 06:13:47 LLckfan, this is android DEV, please take it elsewhere Sep 26 06:14:59 like where Sep 26 06:15:46 LLckfan anywhere, not here. Sep 26 06:17:07 g00s : which way to backup the whole database data/data Sep 26 06:17:18 g00s : my gtab device was not rooted Sep 26 06:18:47 how do you see the future of android ? Sep 26 06:19:03 newbiedroid you would just back up your app i think Sep 26 06:20:28 g00s : I have some bookmark save at opera browser which I wanted to backup the opera database which only located at data/data Sep 26 06:20:50 oh in that case, i dunno Sep 26 06:23:08 is it not possible to make an app that connect every device android ? Sep 26 06:24:34 every device android of the world. Sep 26 06:24:52 i mean Sep 26 06:25:06 cortexA9 : android future is very complicated Sep 26 06:25:31 we use all android right ? Sep 26 06:25:42 :) Sep 26 06:25:52 but we can't interact each others. Sep 26 06:26:02 in a certain time , there'll be nothing to be improve for user. Sep 26 06:26:22 what do you mean interact ? Sep 26 06:26:26 yes Sep 26 06:26:35 interact with androidians. Sep 26 06:26:42 anyhow , does anyone able to solve my question Sep 26 06:27:07 yeh , like I need help but no one willing to lend a hand Sep 26 06:27:12 oh Sep 26 06:27:15 i dont know sorry Sep 26 06:31:28 I repeat , anyway to list read protected file on database ? ls doesn't work for non rooted devices . adb root doesn't work , run-as doesn't work since I can't even view the ls Sep 26 06:32:18 newbiedroid is this related to /your/ application ? Sep 26 06:33:11 g00s : nope , not a debugger , it's just opera browser classic Sep 26 06:33:43 newbiedroid than its not app development , so its off topic for this channel - take it somewhere else Sep 26 06:33:46 is it not possible to make a social browser for android ? Sep 26 06:33:54 g00s : It get crash and can't open but I have a bunch of bookmark overthere.didn't use sync though my regrets . Right now , only option to pulll the data out Sep 26 06:34:36 g00s : guess which channel is suitable for my question ? Sep 26 06:34:51 maybe #android-root or something Sep 26 06:39:02 oh thanks then Sep 26 06:42:52 is it possible to "sort" divs based on their class? i.e. In a container I want all the divs with class="foo" to come before any other divs ? Sep 26 06:42:57 I am trying to update apps on my android device and it shows there is an update but after it downloads says X app is not installed when it is. Is there a way to find out why it does this? I do have a sd card mounted(installed) Sep 26 06:44:09 LLckfan get an iPhone Sep 26 06:50:25 Hello guys I am having a strange problem I am rendering a custom View in a LinearLayout with some graphics drawn in onDraw method, when I call invalidate() or postInvalidate() from my activity everything works perfect on my android 2.3.5 but on my 4.2 it doesn't invalidates until I focus on the LinearLayout Sep 26 06:50:28 any ideas ? Sep 26 06:50:47 I am not using hardware accelaration Sep 26 07:10:11 What's the best way to handle letter by letter triggered search results for a listview that combines several different sources? Sep 26 07:51:15 good morning Sep 26 07:51:29 any ideas about getting data from another fragment? Sep 26 07:51:47 could you be more specific Sep 26 07:51:49 like i am on a fragment and then start a new fragment to get selected contacts Sep 26 07:52:06 I am trying to update apps on my android device and it shows there is an update but after it downloads says X app is not installed when it is. Is there a way to find out why it does this? I do have a sd card mounted(installed) Sep 26 07:52:19 and then go back to the previous fragment that has saved state and get the list of selected contacts Sep 26 07:52:23 makes sense? Sep 26 07:56:18 so no go? Sep 26 07:57:53 lemonxah: use targetFragment Sep 26 07:57:55 does anyone ever worked with iText creating PDF and know how to set a reference to jump form a list (item) to an anchor? Sep 26 07:58:28 lemonxah: http://developer.android.com/reference/android/support/v4/app/Fragment.html#setTargetFragment%28android.support.v4.app.Fragment,%20int%29 Sep 26 07:58:41 lemonxah: http://developer.android.com/reference/android/support/v4/app/Fragment.html#getTargetFragment%28%29 Sep 26 07:59:39 misterli: wouldnt that just be a standard link? to a #anchor Sep 26 07:59:41 awesome thnx Sep 26 08:00:36 LLckfan: sounds like data in your installation of the play-store has become corrupt/out-of-sync why not force-stop the play-store app and clear its data and lunch it fresh Sep 26 08:01:27 Not using the play store Sep 26 08:01:49 so this is in the app settings? Sep 26 08:02:08 no Sep 26 08:02:41 then what the hell are you talking about ? Sep 26 08:02:48 Napalm|wrk LLckfan is a bot Sep 26 08:03:11 hey g00s'y Sep 26 08:03:17 hows it hnaging? Sep 26 08:03:19 :) Sep 26 08:03:51 hey Napalm|wrk :D Sep 26 08:04:02 get the AS 0.2.10 update? Sep 26 08:04:04 Good morning I would contribute to the AOSP project. Anyone can help me? Sep 26 08:04:35 stesal: construbute what? Sep 26 08:04:46 *contribute Sep 26 08:05:09 g00s: erm, nope? AS?! Sep 26 08:05:23 Napalm|wrk are you using vim also ? :P Sep 26 08:05:42 i use vim, but not for Android dev :( Sep 26 08:06:06 it would be awesome if Google made an Android plugin for vim and emacs :D Sep 26 08:06:08 oh sht, you mean AndroidStudio Sep 26 08:06:10 doh Sep 26 08:06:14 :) Sep 26 08:07:46 Napalm|afk, yeah. But it's a chunk. How to add a chunk to a table cell? Sep 26 08:13:45 Napalm|wrk: contribute to the software development of the AOSP or any of its sub-project Sep 26 08:14:30 probably best to work for google ;) Sep 26 08:15:56 ahah this isn't a bad idea Sep 26 08:18:32 stesal: i think you miss my point, what area of AOSP would you like to contribute too? Sep 26 08:18:41 http://vimeo.com/75260457 < awesome video Sep 26 08:19:44 <^cheeky> gridView does not have fragment like listFragment :( Sep 26 08:20:22 ^cheeky thats ok Sep 26 08:21:19 <^cheeky> i think what i have learnt is wrong, in my adapters, i am not passing context as a inner class class variable Sep 26 08:21:27 <^cheeky> ill try passing it in maybe Sep 26 08:22:16 if my phone has android 4.1.2, what do I need to set minSdkVersion as? Sep 26 08:22:54 Jonno_FTW ? thats like saying, "my car is green, what kind of gas do i need" Sep 26 08:23:09 nvm Sep 26 08:23:17 :) Sep 26 08:40:32 Napalm|wrk: In any apps present in platform/packages, but I don't have a clear idea of which of them. Sep 26 08:41:15 stesal: you probably want this. https://groups.google.com/forum/#!forum/android-contrib Sep 26 08:43:29 http://youtu.be/FD-5DmT5SLU Sep 26 08:43:50 doh, wrong window Sep 26 08:56:47 Is it possible to have a lifo queue using volley? Sep 26 09:07:21 aww bummer, had to force quit AS Sep 26 09:09:06 <^cheeky> :/ Sep 26 09:09:09 <^cheeky> :( Sep 26 09:09:10 <^cheeky> sorry Sep 26 09:13:57 it has a nasty habit of showing the device chooser window in a different desktop; both windows then become inactive Sep 26 09:25:21 <^cheeky> hmm mac thing i spose Sep 26 09:35:22 How tightly coupled with the actual kernel is the divalik virtual machine Sep 26 09:37:55 <^cheeky> blaah Sep 26 09:38:01 <^cheeky> i have to manually set up an adapter Sep 26 09:38:09 <^cheeky> for a gridview in a fragment Sep 26 10:24:57 Hi i've subclassed ImageView in MainActivity as public class MyImageView extends ImageView, and in my layout I've done , but I get a class not found exception Sep 26 10:25:31 any ideas why that might be? Sep 26 10:26:18 I think you need to do , I'm not familiar with what the other thing means Sep 26 10:29:14 oh. I think I see something. Sep 26 10:29:19 You probably have to replcae the last . by $ Sep 26 10:29:42 and the class must be static, can't be inner. Sep 26 10:30:30 I didn't even notice that was an inner class name at first. Sep 26 10:32:36 ah Sep 26 10:33:49 java, could you please get real inner classes? any time this century would be swell, okay. Sep 26 10:34:59 what is the difference between fragment.add and .replace? Sep 26 10:35:19 alankila: thanks Sep 26 10:35:27 cause .add().commit() doesn't show the new fragment i want shown Sep 26 10:37:06 alankila: now my onclick method can't be found Sep 26 10:37:56 it's a private method of MainActivity Sep 26 10:39:17 Jonno_FTW: you're trying to do non-static inner classes. I strongly suspect that's not going to work. Sep 26 10:40:06 because to work, it would require that the layoutinflater notices that this class is inner, find the instance of the outer class, and pass it in the constructor. All doable in theory, but whether it's smart enough is another matter. I suspect not. Sep 26 10:42:16 alankila: thanks I got it though Sep 26 10:42:20 I'm trying to make a file downloader asynctask. But I have a issue when saving the file. Not all urls ends with a filename. How can I hash the url into something which I can use as a unique file name? md5, sha1 something faster and better? Sep 26 10:42:43 but now it isn't using my custom onDraw methofd Sep 26 10:44:25 snot: basically canonicalizing the url and hashing it would do, or you could just let the androids httpurlconnection or like cache it for you, though it required some setup to happen Sep 26 10:47:29 snot: I was lazy when I did something like that myself and just replaced / by _ and used the URL otherwise as-is as a cache key to a file on filesystem Sep 26 10:47:53 there are only two forbidden characters to a filename on unix-like systems and they are the null byte and / Sep 26 10:48:19 urls aren't allowed to contain the null byte, so that leaves only / Sep 26 10:53:23 alankila: I got it working, but now I can't do MyImageView iv = (MyImageView)findViewById(R.id.istMap); Sep 26 10:53:38 it gives a class cast exception from ImageView Sep 26 10:54:35 Well, did you do like I told you to? Sep 26 10:54:48 I have no idea if this class is supposed to work or what it's meant to do Sep 26 10:54:52 i used the class attribute Sep 26 10:55:00 well I'm going to guess it didn't work out Sep 26 10:55:04 it's a subclass of imageview that draws some stuff onto the view Sep 26 10:55:42 and logs Sep 26 10:55:53 but it's ont acting like MyImageView Sep 26 10:59:48 <^cheeky> is there something that i am not doing right .. because when i rotate the gridView .. its reloads everything by downloading images again and i have setRetainInstance(true). Is it because i have alot of imageViews that it doesnt save them Sep 26 11:00:17 also Hmm. Disappointing. Can you try replacing the $ by . again, see if that allows it to work? Sep 26 11:00:53 it didn't work Sep 26 11:01:01 what happened Sep 26 11:01:19 it says no such class? I'm guessing the $ is not a valid qname for an element Sep 26 11:01:52 so, anyway, get rid of the inner class altogether. Just separate it into separate files and chalk this to java being shit or android being shit, whichever you prefer Sep 26 11:02:13 haha Sep 26 11:02:14 okay Sep 26 11:02:15 I think they're both poo in that inner classes deserve to be an actual runtime abstraction, just like generics Sep 26 11:02:32 and android and this xml shit can go die in a fire for being irritating as hell Sep 26 11:02:51 I agree Sep 26 11:04:03 if the XML file constructed a class like foo.layout => FooLayout, and you'd say setContentView(fooLayout = new FooLayout()) or something, I'd hate it a good deal less. Sep 26 11:04:25 first point. 1) no findViewById. 2) no IDs; 3) easier to use; Sep 26 11:04:49 I hate code generators but given that you basically have to do *something* to get that XML shit going, I'd rather they generated full classes rather than this id shit Sep 26 11:05:23 or, alternatively, that they generated nothing at all and you'd reference objects by looking up IDs by string. Just like in ordinary xml stuff. Sep 26 11:06:01 Useless to complain, this will never get fixed. It's just another idiotic design choice made by people who were probably thinking that applications get written in C++. Sep 26 11:06:25 well I put it in another file, but now how do I get a reference to MainActivity? Sep 26 11:06:47 well it receives a Context. That Context happens to be the activity, so you can just cast it and it ought to work. Sep 26 11:07:05 but if you think that's ugly, or you use the same thing from multiple places, you can define a method to pass in activity instance (by an interface you define) Sep 26 11:12:41 alankila: I ended up doing url.toString().hashCode(). Is that ok? I havent tested my code just yet... it's part of a bigger scheme :) Sep 26 11:16:43 I am doing some pinch zooming. When panning around at default scale value, it works fine. But when i scale the picture up or down, the panning stops functioning. Anyone who has any idea to how i can solve that issue ? Sep 26 11:16:54 <^cheeky> is it bad to use setRetainInstance vs onSavedInstance Sep 26 11:17:06 snot: no, it's a horrible design and you don't understand hashCode Sep 26 11:17:15 don't use it. It's only meant for hashmap implementations. Sep 26 11:17:24 or well, anything based on hash buckets Sep 26 11:19:12 how a Sep 26 11:19:14 when ive for instance zoomed in, so the scale value is 2.0 - i can pan to the lower right corner, but whenever i start dragging the image from that point, it gets dragged to the upper left corner Sep 26 11:20:25 is there a room for android studio (the IDE)? Sep 26 11:22:35 alankila, i desperatly need your help ;) Sep 26 11:23:01 troloyolo: I have no idea whatsoever about your situation. Sep 26 11:23:10 darn it Sep 26 11:23:19 ive tried almost about everything Sep 26 11:25:13 j Sep 26 11:26:29 alankila: I moved myimageview into a class, and now I get binary xml file: erro inflating class com....MyImageView Sep 26 11:29:26 you probably neglected to implement relevant constructors Sep 26 11:29:32 yeah I did Sep 26 11:30:09 well what is the actual cause of error Sep 26 11:31:57 yay it works now Sep 26 11:32:04 except it's not doing my custom drawing Sep 26 11:33:10 do I have to call a special method in onDraw to make the canvas change or something? Sep 26 11:38:14 <^cheeky> can anyone please help me ? Sep 26 11:42:00 ^cheeky: what seems to be the problem? Sep 26 11:43:41 <^cheeky> :( i think i overwhelmed myself and i am confused with saving my images once i do a screen rotation Sep 26 11:44:52 <^cheeky> can i show code ... please Sep 26 11:48:24 <^cheeky> Jonno_FTW: is should i not use setRetainInstance .. if i am using threads or something Sep 26 11:49:23 I recommend asking on stackoverflow Sep 26 11:49:30 <^cheeky> ok Sep 26 11:49:38 <^cheeky> thank you Sep 26 11:55:20 anyone else uses asmack? Sep 26 11:55:39 it takes 10 seconds to connect Sep 26 11:55:50 that is the timeout for the reverse dns lookup? Sep 26 11:55:56 is there a way to disable that? Sep 26 12:09:08 How to read an .apk file in eclipse ? Sep 26 12:11:15 you dont Sep 26 12:11:32 yeah i dont understand what you mean with reading an .apk file in eclipse Sep 26 12:11:39 what do you actually want to do? Sep 26 12:12:20 I meant to read an open source app source is it possible ? Sep 26 12:12:31 nope Sep 26 12:12:37 not from apk Sep 26 12:12:40 unless you download the source Sep 26 12:12:56 baksmali Sep 26 12:14:02 Ok if i have the source ....can u give me link to open it ...i mean the procedure m a newbie.. :) Sep 26 12:14:25 the source you can read with any text editor Sep 26 12:14:54 its just text files with a .java extension Sep 26 12:15:18 so when you have it then just import it into intelliJ or eclipse Sep 26 12:15:25 Can even recompiling can b done if i edit the source a bit? Sep 26 12:15:25 why are you going to read the source if you're not going to understand it? Sep 26 12:17:38 <^cheeky> YESSSSSSSSSSSSSS i retain my images and everything on screen rotation :) Sep 26 12:19:52 man0war: please state your actual question Sep 26 12:20:06 man0war: what do you wish to accomplish? Sep 26 12:49:14 Is anyone know if it's possible to have a lifo queue using volley? Sep 26 12:51:24 hi i try to select an item from a "ListPreference" the settings of an app - using uiautomator - i try new UiObject(new UiSelector().index(5)) and new UiObject(new UiSelector().index("title")) but it doesnt set finalize | go back - any hints ? Sep 26 12:52:15 Hey again. Sep 26 12:53:48 How easy/horrible is it to implement true fullscreen (hiding the status bar and the on screen buttons)? I need it in a way that doesn't resize an important view, but that view needs to nearly fill the screen when the bars are hidden (so it is larger than the "screen" when the bars are visible). Sep 26 12:54:13 I just need a rough estimate. Sep 26 12:54:32 2 window flags Sep 26 12:55:27 or an Activity theme Sep 26 12:55:40 @android:style/Theme.NoTitleBar.Fullscreen Sep 26 12:57:16 when ive for instance zoomed in, so the scale value is 2.0 - i can pan to the lower right corner, but whenever i start dragging the image from that point, it gets dragged to the upper left corner Sep 26 13:02:55 my onDraw method does nothing Sep 26 13:03:17 in my subclass of imageview, i call canvas.drawCircle but nothing is shown Sep 26 13:03:53 I've used Log.i() and the method is being called but, nothing is being drawn Sep 26 13:14:26 I am doing some pinch zooming. When panning around at default scale value, it works fine. But when i scale the picture up or down, the panning stops functioning. Anyone who has any idea to how i can solve that issue ? Sep 26 13:23:04 sample source code uses this FileHandler .. com.fscz.snatches.util.FileHandler Sep 26 13:23:18 tried findjar.com cant find the jar it belongs too Sep 26 13:25:32 seems like it is used to create a tmp file from an asset file Sep 26 13:25:42 in particular keystore and truststore files Sep 26 13:25:51 how do i create and write those assets? Sep 26 13:32:39 Hi, when I try to start an AVD using AVD Manager from within ADT, by clicking on start, nothing happens... as in absolutely nothing Sep 26 13:32:48 these are the contents of console:- http://pastebin.com/SiQP9LGi Sep 26 13:32:57 Any help is greatly appreciated Sep 26 13:43:15 anyone? Sep 26 13:43:41 I'd try starting it on the commandline Sep 26 13:46:08 Leeds: Thanks for the response. :) Sorry for the noobish question, but how would I do that? Sep 26 13:46:21 emulator -avd a Sep 26 13:48:29 hmm.. I get "no command 'emulator' found" Sep 26 13:48:44 yeah... you'd need to know where the emulator is Sep 26 13:55:26 do you have to use intent to start an Activity ? Sep 26 13:55:35 yup Sep 26 13:55:59 Zylinx - any reason why you wouldnt wanna use intent ? Sep 26 13:56:29 just wondering, also when i start an Activity is there any way of accessing that object from where i started it ? Sep 26 13:56:34 have an assets issue Sep 26 13:56:50 where should the assets folder be to be automatically picked up? Sep 26 13:57:12 like i got startActivity(blah) then on the next line talk to the new activity somehow Sep 26 13:58:17 zylinx: intent.putExtra("MyClass", obj) - to get it write: getIntent().getSerializableExtra("MyClass"); Sep 26 14:00:41 what is the sercond parameter for the putExtra ? Sep 26 14:00:54 the value Sep 26 14:01:12 value ? Sep 26 14:01:30 "MyClass" is the key obj is the value if you want to get obj you can get it with the key "MyClass" Sep 26 14:01:45 Zylinx: youre aware of the key-value concept? Sep 26 14:02:23 I'm coding my first app from the developer.android.com page, and i got my Send button not working; my button has android:onClick="sendMessage" and the corresponding activity class has the public void sendMessage(View view) method.. which doesn't get invoked when i click the button :( Sep 26 14:03:03 i am not apparantly :/ Sep 26 14:03:46 but besides that... obj should be what type ? Sep 26 14:04:04 the object type of whatevery you are saving Sep 26 14:04:36 so like this? Sep 26 14:04:38 Zylinx: a key-value store is a data structure where you store certain elements of data under a certain key... most of the times those keys are human readable strings (like "MyClass" in your example) but in fact a key could be of any type... Sep 26 14:04:40 Activity obj; Sep 26 14:04:41 intent.putExtra("MyClass", obj); Sep 26 14:04:53 Voi: have you made a method called sendMessage? Sep 26 14:05:09 troloyolo: as i mentioned, yes Sep 26 14:05:32 oh ok, thanks ohcibi. Sep 26 14:05:39 makes sence Sep 26 14:05:55 whats the R in setContentView(R.layout.activity_main); ? Sep 26 14:06:25 sorry i for disconnected Sep 26 14:06:26 i think nothing in my MainActivity.java get invoked Sep 26 14:06:28 got* Sep 26 14:07:44 What is the best way to check on boot if a "Preference" is set and if yes then starting an AlarmManager? Creating a service which starts on boot, checks the pref and if yes start a receiver? Sep 26 14:08:52 Hi all, is it possible to implement something for getting the error when the app crashes? like on which java file/line , which kind of error etc ? Sep 26 14:09:08 FrancescoV: locally, or in the field? Sep 26 14:09:12 misterli, you mean create an on-boot receiver that starts a service Sep 26 14:09:18 try { } catch (e.printstacktrace(); } Sep 26 14:09:33 Yes. With a specific delay Sep 26 14:09:39 But only if the user want it (Autostart) Sep 26 14:09:41 FrancescoV, acra, crittercisms, zubhium, testflight, etc. Sep 26 14:09:55 crashlytics Sep 26 14:10:17 troloyolo, putExtra isnt working for me it says it must be putExtra(String, Boolean) Sep 26 14:10:25 pfn: The app is in the store but need to get the errors from the users Sep 26 14:10:45 FrancescoV, I already gave you like 6 different ways of how Sep 26 14:10:58 users can also choose to 'send report' Sep 26 14:11:00 and that would work Sep 26 14:11:04 Zylinx: is whatever you are trying to transfer a boolean variable? Sep 26 14:11:32 no Sep 26 14:11:34 wait what Sep 26 14:12:09 i want to have the Activity context of the Activity i just started Sep 26 14:12:20 the activity is a context Sep 26 14:12:30 getActivity(), this, Context Sep 26 14:12:55 mikedg, almost time to go home... yay! Sep 26 14:13:01 ... Sep 26 14:15:32 I start an activity, then do some AsyncTask stuff then i want to update element on the activity i just started... Sep 26 14:15:57 how do i parse the AsyncTask the context of the new Activity i just started Sep 26 14:16:05 in the constructor Sep 26 14:16:11 .... Sep 26 14:16:17 Zylinx: just ignore Sep 26 14:16:17 in onPostExecute you better make sure the context isn't null Sep 26 14:16:23 make a public static Activity activity; variable Sep 26 14:16:24 parse the asynctask the context? hrm Sep 26 14:16:26 and put your activity there Sep 26 14:16:30 then read it form the asynctask Sep 26 14:16:32 there's no guarantee the activity will still be available Sep 26 14:16:35 hey all, I have an android application built with android studio, and I have an eclipse plugin to build for blackberry 10 Sep 26 14:16:49 ha ha BB10 Sep 26 14:16:55 how do I combine these? can I export the project from android studio to open in eclipse or something? Sep 26 14:17:14 jpwhiting, find something to do it from the commandline Sep 26 14:17:20 jpwhiting: develop in Eclipse Sep 26 14:17:29 that's a brilliant solution... Sep 26 14:17:37 pfn: ok, blackberry also has command-line tools Sep 26 14:17:44 then you're done Sep 26 14:17:45 :p Sep 26 14:17:46 Zylinx: if the task is defined as inner class of the activity you have access to the object with ActivityClass.this Sep 26 14:17:50 use them Sep 26 14:17:52 I could develop in eclipse, but opening the project in eclipse gives tons of errors Sep 26 14:18:12 I'm very new to java, but have done C++ stuff for BB10 before Sep 26 14:18:13 I personally prefer eclipse, just my 2 cents Sep 26 14:18:13 btw.. has anyone here modified the eclipse.ini to high-ram boxes (16GB Ram+) with success and without lags? :) Sep 26 14:18:29 pfn: ok, I'll try that, thanks Sep 26 14:18:35 nseidm1, android studio has lots of cool stuff which is not available in eclipse.. :) Sep 26 14:18:35 misterli: there is no success with eclipse 8-)) Sep 26 14:18:52 android studio has lots of cool stuff? Sep 26 14:18:56 I would prefer android studio if it wouldnt use this crappy fuckass gradle Sep 26 14:19:08 ohcibi, it isnt an inner class. but my problem is i use intent to make a new Activity then from where i used intent how do i access the Activity i just started. im not sure if im making sence Sep 26 14:19:10 the android stuff has roughly feature parity with eclipse for android, doesn't it Sep 26 14:19:10 not impressed by android studio yet, I make apps just fine with eclipse Sep 26 14:19:22 * pfn just uses intellij Sep 26 14:19:30 i like android studios autocomplete better than eclipse Sep 26 14:19:31 intellij is not for free, isnt it? Sep 26 14:19:36 and the xml editor better then intellij Sep 26 14:19:36 vim FTW Sep 26 14:19:37 much better, I'm just twiddling my thumbs 'til monitor is ported to intellij Sep 26 14:19:44 intellij is free for android essentially Sep 26 14:19:51 misterli, intellij ce is free Sep 26 14:20:15 Leeds, I still use vim from time to time, but intellij makes naivgation much nicer Sep 26 14:20:22 i c. Well, android studio is great for exporting packages. Its cool to have an included keystore generator, and such stuff.. but sucks for integrating other librarys Sep 26 14:20:31 sorry disconnected ohcibi, did you say anything ? Sep 26 14:20:36 and hotkeys are not very well planed in android studio .. Sep 26 14:20:37 android studio works perfectly fine for integrating other libraries Sep 26 14:20:42 and hotkeys are very well planned Sep 26 14:20:45 you're just smoking crack Sep 26 14:20:53 and for that matter, hotkeys are completely configurable Sep 26 14:20:54 does it? I had LOTS of problems integrating the v7 support library with resources Sep 26 14:21:04 AS comes with crack? Sep 26 14:21:06 misterli, appcompat-v7 is so trivial to add to AS Sep 26 14:21:20 misterli, add com.android.support:appcompat-v7:18.0.0 to build.gradle Sep 26 14:21:24 and appcompat-v7 *works* Sep 26 14:21:26 poof, like that Sep 26 14:21:31 That's crazy talk! Sep 26 14:21:43 thought that, yeah. But if you have configured sherlock before you will get tons of problems Sep 26 14:21:46 misterli, your inability to do it right is your fault Sep 26 14:22:03 Zylinx: i dont understand yet.. you use an intent to start a new activity from one activity and then you want to manipulate views from the layout of the first activity? Sep 26 14:22:10 actionbarsherlock has an aar now, doesn't it? also trivial to import Sep 26 14:22:10 misterli: That's not a problem of IntelliJ, that's a problem of having switching from ABS. Sep 26 14:22:25 and for that matter, you shouldn't even be using abs in AS/gradle Sep 26 14:22:25 s/having// Sep 26 14:22:38 shouldn't, eh? Sep 26 14:22:52 sure, there's no reason to with appcompat-v7 there to use Sep 26 14:23:12 ohcibi, yes, in short, except i want to parse the context to do it from somewhere else but i dont think its relevant Sep 26 14:23:50 Zylinx: i'm confused.. are you starting a service with that intent, that runs asynchronously? Sep 26 14:24:40 meh, I'm sticking with Emacs Sep 26 14:24:49 so brave Sep 26 14:24:57 emacs would work fine, too Sep 26 14:25:05 especially if it has a good jdb mode Sep 26 14:25:48 JakeWharton: Your Scoped Event bus, what exactly is the advantage? Sep 26 14:26:34 I think I don't clearly see the big difference between that and just injecting the Bus into the BaseActivity directly. Sep 26 14:28:43 Heya guys, quick question Sep 26 14:28:47 ohcibi, i have LoginActivity class which extends Activity, this is where the user types in his credentials. once he hits connect i use intent to fire of LoadingActivity then immediatly in the same code i get the values of what he typed in and parse that to an AsyncTask to do the log in .... now i want to update LoadingActivity from the onPostExecute of the AsyncTask... so along with the parsing the credentials to AsyncTask i also want Sep 26 14:28:47 to parse him the LoadingActivity object Sep 26 14:28:56 I have an application wide LruCache for remote images. Sep 26 14:29:28 Now, logging in the sizeOf method has shown me that the cache caps at its allocated 32MB but the more images I load the more the memory usage keeps increasing Sep 26 14:29:37 it's like the image are being properly evicted from the cache but they are still in memory. Sep 26 14:30:21 Zylinx: so LoadingActivity starts that async-task? Sep 26 14:30:27 I've tried using SoftReference instead of Bitmap but according to the android guidelines this approach has been deprecated Sep 26 14:30:35 ohcibi, no LoginActivity does Sep 26 14:31:18 Zylinx: but you want to start LoadingActivity immediatly after the user hits enter? not when the task finishs? Sep 26 14:31:26 yes Sep 26 14:32:02 Zylinx: then there is no reason to not start the task in LoadingActivity Sep 26 14:33:10 yes i realize that but is there a way to do it without starting it inside LoadingActivity Sep 26 14:33:13 Zylinx: else you could create the task as a service and bind to that service from both activities Sep 26 14:33:51 hmmm Sep 26 14:34:53 i just got an email in comic sans :| Sep 26 14:35:19 best font ever Sep 26 14:35:21 I <3 comic sans Sep 26 14:35:28 I think that's the font I used for my qicr logo :p Sep 26 14:44:27 pfn, I'm trying acra. https://github.com/ACRA/acra/wiki/BasicSetup what's the fromUri ? Sep 26 14:44:59 pfn: yea its one of those fonts haters loved to hate Sep 26 14:45:04 but that over time has gotten a place in all our hearts Sep 26 14:46:29 boytoy: in the same way that a dagger can find a place in your heart? Sep 26 14:51:29 Leeds: LOL Sep 26 15:46:07 kakazza: you can unregister everything in the scope Sep 26 15:48:35 Can you give me a short example? Sep 26 15:49:22 Every Activity will have a scoped bus. And I guess you are refering to unregistering every fragment, class instance etc related/held by that Activity? Sep 26 15:51:21 Is that just cleaner or is there also a performance bonus compared to using a global bus inside the Application class? Sep 26 16:10:45 Say I have an array of TV shows and each show has an array of episodes. I store this into two sqlite tables Shows and Episodes. How can I query this in such that a CursorLoader could be used? Sep 26 16:14:42 if I simply do a left join and get back a cursor with duplicates what will the cursor loader do? Sep 26 16:15:42 hello everyone! I have a small question regarding populating a ListView Sep 26 16:16:18 actually I query my SQLite database in an AsyncTask in order to do it out of the UI thread, then I update the Adapter Sep 26 16:16:32 I read some things regarding Loaders as well Sep 26 16:16:33 hey guys, any idea how i can directly connect to a mysql server ? Sep 26 16:16:50 which one is better between AsyncTask and Loaders? Sep 26 16:17:07 I'm more asking for experience feedback in fact.. Sep 26 16:17:39 overburn: don't Sep 26 16:19:38 shibakaneki, Loaders are more convenient than managing AsyncTasks Sep 26 16:19:53 http://www.javacodegeeks.com/2013/01/android-loaders-versus-asynctask.html Sep 26 16:19:58 both are roughly equal except that Loaders also have extra functionality that a bog standard async task doesnt have Sep 26 16:20:03 e.g. auto updating Sep 26 16:20:34 link describing what must be done for auto updating loader? Sep 26 16:20:57 i'm currently using a loader to fetch from a sqliteopenhelper Sep 26 16:21:38 the auto updating relies on URI matching Sep 26 16:21:53 sqliteopenhelper doesn't use a uri :/ Sep 26 16:21:58 specifically: cursor.setNotificationUri and getContentResolver().notifyChange Sep 26 16:22:03 so you'd need to have a content provider Sep 26 16:22:30 "AsyncTask isn't the only way to do background processing, you can also use a Loader that uses an AsyncTask to do background processing" Sep 26 16:22:59 ok I see, Loader are more convenient because it takes more care of the Activity/Fragment lifecycle and thus, is more aware of configuration changes Sep 26 16:23:04 wrapping the sqliteopenhelper in a contentprovider isn't too bad to do, but depending on what it is it may be a bit heavyweight to what you need it for. Sep 26 16:23:04 "You don't need to develop your own provider if you don't intend to share your data with other applications." led me to not make a content provider :( Sep 26 16:23:32 Indeed, and I very nearly went down the same route tbf Sep 26 16:23:39 with regards to that sentence Sep 26 16:24:08 auto-updating isn't crucial, but it would be kind of nice Sep 26 16:24:21 You can of course emulate this behaviour by just wrapping calls which would update/insert and notify and listeners.. Sep 26 16:24:33 yay, "Use host GPU" option isn't crashing any more Sep 26 16:24:35 -and Sep 26 16:25:26 thank you for your feedback anyway ;) Sep 26 16:25:36 np :) Sep 26 16:25:55 1:25, time to sleep now Sep 26 16:29:43 i can't find anything in google, CursorLoader with a join query on two tables with 1:N relationship Sep 26 16:30:09 not possible? will cursor loader know to skip over duplicate _id rows? Sep 26 16:37:38 may it possible that the httpclient 4.3 http://hc.apache.org/downloads.cgi is not working flawless with android? Sep 26 16:44:54 I guess there's a workaround using a LinearLayout - but is there a reason why TextView doesn't have a @RemotableViewMethod annotation for setGravity(int) ? Sep 26 16:45:13 actually - I don't think there's a workaround, come to think o it Sep 26 16:46:48 misterli: Do they even test for Android compatibility? Sep 26 16:47:02 You can use okhttp if you want a standalone http client on all platform versions. Sep 26 16:47:50 Im not sure, but i get lots of could not find method warnings bei dalvik vm Sep 26 16:50:02 Okay. It looks like that 4.2 is the latest which is working with android Sep 26 16:52:49 hello Sep 26 16:53:18 Can someone help me with an easy problem ? (i'm new to android developme,t) Sep 26 16:54:08 The problem is that i have a class to draw a blue rectangle, but when i call it ( Sep 26 16:54:16 damn "enter key" Sep 26 16:56:01 The problem is that i have a class to draw a blue rectangle, but when i call it ( with Boardinit boardiniit = new Boardinit(this);) it do nothing. The class i call have no layout linked, so i can't call it with startActivity. Sep 26 16:56:20 Does anyone have ideas of common errors ? Sep 26 16:57:06 Flotosor: are you adding the thing to your view tree at all? just constructing the object only calls the constructor(s). Sep 26 16:57:31 I should restate my question :-) is it possible to change the alignment of a TextView (programatically) within an appwidget? Sep 26 16:58:26 what do u mean by adding things to the view tree ? my class have "exends View" if it is what you mlean Sep 26 17:12:28 alankila, the problem appear to be that when i call my class it don't execute the onDraw class in it Sep 26 17:12:48 Flotosor: Is the view in a layout added using setContentView(); Sep 26 17:13:03 ahhhhhh Sep 26 17:13:07 forgot this Sep 26 17:13:26 but Sep 26 17:13:40 so i need a xml layout with it ? Sep 26 17:13:51 yes Sep 26 17:13:57 inflate your custom view in that layout Sep 26 17:14:53 can 2 activty call the same layout ? Sep 26 17:14:57 yes Sep 26 17:15:49 it say me unknow method for setcontentview, why ? does i also need to add the onCreate method ? Sep 26 17:16:34 yes Sep 26 17:16:45 setContentView is the first thing you do in onCreate Sep 26 17:17:58 ' we want only gratuated people ' fuck you! Sep 26 17:19:13 gdrc: we didn't do anything! Sep 26 17:19:42 technically setContentView can be called any time, and it will change the current view root to some other object Sep 26 17:19:55 but most normal activities do it in onCreate, of course. Sep 26 17:20:37 But onCreate is public so i don't need to copy/paste the onCreate method on my new class, but setcontentview is still unknow for my ide Sep 26 17:21:08 alankila: just a surge becouse of an employer Sep 26 17:21:17 perhaps you keep writing it in lowercase. Sep 26 17:21:33 no Sep 26 17:21:45 i copy/pasted it from my mainactvity Sep 26 17:22:56 did you manage to extend Activity Sep 26 17:23:24 uhh i extended View Sep 26 17:23:47 ahhh Sep 26 17:23:48 it's fine Sep 26 17:23:50 thanks a lot Sep 26 17:24:19 but now it's a context that don't work anymroe when i remove view Sep 26 17:24:47 huh, start over in the activity Sep 26 17:24:52 (the class is for drawing a square, with onDraw method, if it can help) Sep 26 17:25:13 You have a View Sep 26 17:25:19 the view needs a ViewGroup container Sep 26 17:25:29 the ViewGroup container needs an activity to manage it Sep 26 17:25:47 call setContentView in your activity to add a layout containing a ViewGroup container Sep 26 17:25:57 have your custom View (class) in the layout file Sep 26 17:26:25 bing bang boom Sep 26 17:26:35 you can do nothing with just a View Sep 26 17:26:41 ok Sep 26 17:34:32 nseidm1 sorry but i don't get something, i have a main.xml in layout, it is the one linked to the setcontentview on my mainactivity.jar. But i don't get how to add my class in this layout file. Sep 26 17:34:59 com.package.blahhblahh.MyView Sep 26 17:36:46 Is it possible to turn on the bluetooth adapter synchronously? Sep 26 17:38:52 no Sep 26 17:42:42 nseidm1, ok Sep 26 17:43:51 I found this : http://stackoverflow.com/questions/11162626/android-use-a-view-from-a-xml-layout-to-draw-a-canvas but at the first answer is this a correct way of importing a view in a layout ? i don't get what to put instead of "sm.view.test." Sep 26 18:06:00 so i was asking earlier if there's any way to connect directly to a mysql server , any ideas? Sep 26 18:08:21 overburn: even if there is, don't do it. Sep 26 18:08:46 evanc: i want to make a tool to help me connect to databases on the fly , not to use it as an actual data-source Sep 26 18:09:23 make a tool then Sep 26 18:09:25 id use it Sep 26 18:09:45 yeah, well, i have no idea how i could connect directly to a mysql server from android heh , that's what I was asking Sep 26 18:09:54 why wouldn't you be able to? Sep 26 18:09:58 It's just tcp Sep 26 18:10:14 What's the best way to store a bible in android? I mean, it has two testaments, each testament has some books, each book has a lot of chapters and each chapter has a lot of verses. Is SQLite the most efficient way? Sep 26 18:10:25 SidGBF: pray Sep 26 18:10:41 god will handle the code Sep 26 18:10:56 theve Sep 26 18:11:13 mikedg: Nice joke, but it wasn't needed. Sep 26 18:11:27 SidGBF why not just a text file thats indexed ? Sep 26 18:11:47 index needs book, verse, etc … mapping to line Sep 26 18:12:08 Well, In thinking about fetching a chapter/verse... Sep 26 18:12:09 or, embed that markup in the file and generate the index on the fly Sep 26 18:12:50 toss it in a json Sep 26 18:12:55 SidGBF maybe check out to see if ou can dif up any info on the Logos format Sep 26 18:13:15 i thought it was closed, but Sep 26 18:13:28 If you have very well-defined and unchanging sorts of access patterns (eg: chapter/verse) then you can probably just have directories/files. Otherwise, sqlite is probably just less trouble overall. json I would avoid, mostly because you have to read the whole thing in order to pull out data. Sep 26 18:14:07 kbs: that`s a nice idea... Sep 26 18:15:33 and the angels sang ... Sep 26 18:26:09 <\monster\> If someone submits a trademark infringement request to Google why doesn't Google contact you and give you a chance to correct the issue. Instead they just suspend your app instantly and say the complaining person has to contact google to get you readded Sep 26 18:26:13 <\monster\> that makes no sense Sep 26 18:26:36 <\monster\> I can't even edit my app to simply remove a word from the app name when it's suspended Sep 26 18:28:43 whats the app name Sep 26 18:28:47 please be mini tasker Sep 26 18:30:13 <\monster\> Droid Auctions eBay ..been around for few years, they just now got to it I guess Sep 26 18:30:31 that sucks Sep 26 18:30:32 \monster\: sad story Sep 26 18:30:39 <\monster\> I think I just need to add "for eBay" to get around it ..but I can't because the app is suspended Sep 26 18:30:47 was it ebay or disney that came after you Sep 26 18:30:52 <\monster\> ebay legal Sep 26 18:31:08 i'd ditch droid too :) Sep 26 18:31:13 <\monster\> heh Sep 26 18:31:19 Auctions for Ebay for Android Sep 26 18:31:21 <\monster\> doubt they care in this context Sep 26 18:31:46 <\monster\> but still, geez google give people 24h or something to respond/correct before suspending the app Sep 26 18:31:47 just email ebay legal and say "these aren't the droids you are looking for" Sep 26 18:31:47 problem solved Sep 26 18:31:56 <\monster\> :) Sep 26 18:32:11 <\monster\> I wrote to the person behind the complaint ..duno if I'll get a response Sep 26 18:33:54 you should call ebay and get them to approve you maybe Sep 26 18:34:28 rat out all the other ebay apps, then go bitch on reddit, let them get the pitch forks and get your app reppaorved Sep 26 18:34:30 tell ebay to tell google to restore your app Sep 26 18:34:34 i know somebody at ebay … but he's probably the one that filed the complaint in the first place :O Sep 26 18:34:59 g00s: can you have him lock out a few auctions for me so noone else bids Sep 26 18:35:05 motherfuckers keeping sniping me Sep 26 18:36:25 <\monster\> they didn't have a problem when I was beta testing their android sdk Sep 26 18:36:27 why aren't you doing the sniping? Sep 26 18:36:49 mikedg its like high frequency auctioning, heh Sep 26 18:37:03 jrr: i dont have time for that silly shit Sep 26 18:37:13 fucking one percenters stealing my auctions Sep 26 18:37:24 http://esniper.sourceforge.net/ Sep 26 18:37:36 it's really really easy Sep 26 18:37:46 * ^cheeky happpy got gridview working !!!!!!!! Sep 26 18:45:42 has anyone else done any work with the wifi management api? On almost every device the SSIDs are wrapped in quotes - but i've got at least one that isn't. Sep 26 18:46:06 does it depend on whether there are spaces? Sep 26 18:46:18 dragorn, yeah, I've noticed the same as well Sep 26 18:46:26 dragorn, on my GN it's quoted, on my SGS3 it isn't Sep 26 18:46:26 jrr: nope Sep 26 18:46:30 pfn: balls Sep 26 18:46:31 pfn: ok Sep 26 18:46:41 pfn: do you just look for start/end quotes and strip appropriately? Sep 26 18:46:43 and there doesn't seem to be any indication of when it occurs Sep 26 18:46:45 dragorn, yep Sep 26 18:46:58 pfn: and deal w/ the fact that sometimes people will have a ssid that's literally "\"foo\"" Sep 26 18:47:08 in my case it probably won't break anything if they do Sep 26 18:47:28 dragorn, yeah, that's basically what happens for me, too Sep 26 18:47:59 pfn: alright I'll just do the same hack too Sep 26 18:48:12 aren't quotes valid though? Sep 26 18:48:17 g00s: yes Sep 26 18:48:27 g00s: however the android api sometimes returns all SSIDs wrapped in quotes Sep 26 18:48:30 g00s: and sometimes doesn't. Sep 26 18:48:41 g00s: and when inserting a new network config it defintiely requires it be wrapped in quotes Sep 26 18:48:54 Samsung probably broke it Sep 26 18:48:56 ie to make a new network you have to literally specify "\"foo\"" for a network named "foo" Sep 26 18:49:00 SimonVT: it's not just samsung Sep 26 18:49:05 aww Sep 26 18:49:23 the first device I can confirm is weird for my stuff is a UK htc one V running pacman Sep 26 18:53:04 Should probably file a bug Sep 26 18:53:23 See if you can get them to be consistent Sep 26 18:58:13 i hear their ceo is pretty meticulous; he should have personally noticed such a thing! Sep 26 18:59:17 peter chou should have tested pacman? Sep 26 18:59:30 hey guys, running into a lifecycle issues with DialogFragment. I have a function in my overridden onDismiss function that calls FragmentManager to grab a reference to an object for analytics. However, if I have the "Don't Keep Activities" developer option enabled, backgrounding the app with the DialogFragment open causes it to throw an NPE on getFragmentManager()'s result. Sep 26 18:59:39 I'm wondering if there's a more appropriate place to be calling this Sep 26 19:00:06 I also realize it's a shitty thing to do to be calling getFragmentManager in onDismiss. This needs a refactor, I know. Sep 26 19:01:47 birbeck i don't know what pacman is ;) Sep 26 19:01:50 <^cheeky> is there away i can download an app and run it .. on android studio... not like look @ the source code but just run an apk or something instead of downloading the app to a device if i just want to see it Sep 26 19:01:57 isn't it a file manager on linuc :) Sep 26 19:02:00 *linux Sep 26 19:02:31 https://www.archlinux.org/pacman/ \o/ Sep 26 19:05:22 how long to gcm payload messages take when the device is not idle? Sep 26 19:05:27 (to be received) Sep 26 19:05:43 long *do :/ Sep 26 19:07:14 a couple of seconds Sep 26 19:07:16 at most Sep 26 19:07:21 in my experience Sep 26 19:07:29 but nothing is guaranteed Sep 26 19:08:41 I am trying to update apps on my android device and it shows there is an update but after it downloads says X app is not installed when it is. Is there a way to find out why it does this? I do have a sd card mounted(installed) Sep 26 19:09:18 SimonVT can you help LLckfan out ;) Sep 26 19:09:49 hi , how to display all the installed app in my android activity with there thumbnail images Sep 26 19:10:51 chinu you can look at the code for the aosp Settings app Sep 26 19:11:05 PackageManager is ur fwend Sep 26 19:12:49 I helped him out Sep 26 19:12:53 thx SimonVT ") Sep 26 19:12:53 of the channel Sep 26 19:13:03 g00s : can i get a link to that ? Sep 26 19:13:16 * kakazza plays CSI:Miami jingle Sep 26 19:13:26 heh Sep 26 19:13:59 chinu https://android.googlesource.com/platform/packages/apps/Settings/ Sep 26 19:14:32 last i looked at that code, they did a bit for lazy loading images etc. you'll have to do something similar i think Sep 26 19:15:57 <^cheeky> g00s: hi, lazy loading ../ Sep 26 19:17:54 <^cheeky> just getting the images from a back ground thread Sep 26 19:30:19 Has anybody messed with logging from within the Android system .cpp files? ALOG/SLOG stuff? Sep 26 19:31:37 Andrew76, yes Sep 26 19:31:43 no Sep 26 19:32:23 how would u guys design the programming of an rest json android app? Sep 26 19:32:33 <^cheeky> whyyyyyy am i such a n00b b00b !!!!! Sep 26 19:33:18 h Sep 26 19:34:00 Trying to figure out if my ALOG()/SLOG() debugging messages are actually getting sent somewhere. They aren't appearing in the logcat (via adb logcat) so I'm not sure if they're disabled or if they're dumping the log output somewhere else. Sep 26 19:35:03 I'm using ALOGE and SLOGE because I figured by default error-level messages would be enabled. Possibly a bad assumption. Sep 26 19:35:58 Perhaps this is not the correct chatroom for these questions. Sep 26 19:45:15 TechEffigy: iteratively Sep 26 19:46:08 Ah, I figured it out. By default logcat shows the main log buffer, but the system ALOG stuff goes to the system buffer. Needed to do logcat -b system to get to my logged output. Sep 26 19:47:18 <^cheeky> ugggh, h8 it when all of sudden your logcat just stops .. spitting out stuff to the window .. when you re-run your apps in android studio :/ have to restart android studio to get it to work Sep 26 19:47:54 just disable/re-enable adb integration Sep 26 19:48:40 <^cheeky> ummm .. k dunno how to Sep 26 19:48:44 * ^cheeky googling Sep 26 19:48:46 <^cheeky> thanks Sep 26 19:48:55 <^cheeky> its no biggie Sep 26 19:49:03 Tools->Android->ADB Integration Sep 26 19:49:12 dont google yourself while your chatting with us Sep 26 19:49:20 <^cheeky> heh Sep 26 19:49:21 <^cheeky> sorry Sep 26 19:49:40 <^cheeky> sheesh .. i am just wastig time since i got my gridview on my wanna be gallery app working Sep 26 19:49:54 <^cheeky> .. i am messing with the aesthetics when i have so much to do Sep 26 19:52:37 <^cheeky> fiiiiine.. ill stop messing with it :P Sep 26 19:57:18 20% of Yelp reviews are fake" … "The office of New York’s Attorney General announced Monday that it fined businesses over $350,000 for generating phony reviews online.". I wonder if this could have implications in app reviews also Sep 26 19:58:22 wow Sep 26 19:58:31 i hope so Sep 26 19:58:43 g00s needs ot get fined for leaving phoney reviews all over my apps Sep 26 19:58:49 my apps did not give you herpes Sep 26 19:59:03 anyway im out Sep 26 19:59:04 ttyl Sep 26 19:59:11 lolwut Sep 26 19:59:48 a cell phone repair shop threatened to sue me because i left a negative review which they claimed was fake Sep 26 20:00:28 here is the article http://www.marketwatch.com/story/20-of-yelp-reviews-are-fake-2013-09-24 Sep 26 20:00:29 they responded publicly to my review on yelp, cursing me out and making threats, seems legit ;-) Sep 26 20:01:04 "some sports — like gymnastics — use a “trimmed mean” where the highest and lowest scores are discarded." interesting Sep 26 20:02:58 g00s: there is median for that Sep 26 20:03:42 <^cheeky> hmm.. action bar .. is kinda .. useless if its a gallery app Sep 26 20:09:14 I'm not using this getSupportActionBar().setDisplayHomeAsUpEnabled(true); Sep 26 20:09:25 in onCreat method Sep 26 20:09:40 and still have a UP navigation button Sep 26 20:09:41 ?? Sep 26 20:09:45 why Sep 26 20:09:46 ?? Sep 26 20:10:20 <^cheeky> err hi .. i am so distracted by irc .. i was just about to mess with action bar .. are you using a fragment Sep 26 20:11:16 lobi, did you specify a parent activity in the manifest? Sep 26 20:11:28 yes Sep 26 20:11:35 well, there is your answer Sep 26 20:11:41 birbeck: thanks Sep 26 20:13:04 is SimpleCursorAdapter deprecated? Sep 26 20:13:43 what do the docs say... Sep 26 20:13:49 that seems pretty easy and obvious to find Sep 26 20:14:31 so use loadermanager instead? Sep 26 20:16:05 Im just confused to the relationship between a cursorloader and loadermanager Sep 26 20:16:58 a cell phone repair shop threatened to sue me because i left a negative review which they claimed was fake Sep 26 20:17:00 nice Sep 26 20:17:14 yeah, they are nice people Sep 26 20:17:35 hello , i m having trouble on Socket write method.I open new Thread on Android then make Socket connection on the Thread and i send file with calling "write" on loop.But android device hangs on "write" method and thread never killed.I dont know why hanging on "write" method ? Sep 26 20:18:50 hey guys, anyone here using AppBrain banners for monetizing your apps? Sep 26 20:18:57 I would like to know what ecpm you have Sep 26 20:21:43 Should the images downloaded with Picasso be cached to disk? I'm not seeing them being cached. Sep 26 20:22:05 the HTTP client is responsibel for caching on disk Sep 26 20:22:13 jaynewstrom: yes Sep 26 20:22:27 maybe your response headers disallow caching Sep 26 20:22:40 I'll take a look. Thanks Sep 26 20:23:18 really noone is using appbrain? what banners do you use then? I was using admob, but they blocked me one of my apps and their ecpm was pretty low so I´m looking for some equivalents Sep 26 20:27:46 JakeWharton: the browser seems to cache the images fine, and retrieve them from the cache fine. I'm just using the http client built into Picasso. Any other things I should look for? Sep 26 20:28:31 pfn, if SimpleCursorAdapter is deprecated how should I display a cursors contents in a listview? Sep 26 20:34:44 @style/MyActionBar Sep 26 20:34:56 @style/MyActionBar Sep 26 20:35:32 LocationType error: Error: No resource found that matches the given name: attr 'actionBarStyle'. Sep 26 20:35:36 ??? Sep 26 20:35:41 why this error Sep 26 20:35:55 i copy this code from android tutorial Sep 26 20:39:42 Hi guys, I have a strange issue. Each time I build my project with Android studio, it adds autmatically a line about my fragment in my manifest Sep 26 20:40:03 anyone who experienced that before? Sep 26 20:40:11 I just updated my android studio just in case. Sep 26 20:46:14 what's the line? Sep 26 20:49:01 Ok, for some reason Sep 26 20:49:09 this was generating a new xml file Sep 26 20:49:14 removing it fixed everything Sep 26 20:49:15 can someone pleas tell me the meaning of this error or how can i fix theme, becasu I new to android app dev. I copied this code from oficial tutorial. http://bpaste.net/show/feTV6cwubPv41Ys7Ctxp/ Sep 26 20:49:19 thanks Sep 26 20:50:08 http://developer.android.com/training/basics/actionbar/styling.html#CustomBackground Sep 26 20:51:46 lobi: seems like you are building against an older version of the sdk Sep 26 20:54:10 whats the minSdkVersion i can set to support the galaxy s3? (4.1.1) Sep 26 20:54:22 1 Sep 26 20:54:33 lol Sep 26 20:54:43 http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels says 16 Sep 26 20:54:49 but ive gone down to 12 now Sep 26 20:54:57 and i stillg et Failure [INSTALL_FAILED_OLDER_SDK] Sep 26 20:55:03 4.1.1 is 16 sure, but that is your tagetSdkVersion Sep 26 20:55:10 oh Sep 26 20:55:16 minSdkVersion should be the lowest sdk your app supports Sep 26 20:55:30 if it is "1", then you support everything from 1 higher Sep 26 20:55:50 set it to 16.. for target.. still Failure [INSTALL_FAILED_OLDER_SDK] Sep 26 20:56:46 birbeck: ?? any idea? Sep 26 20:57:08 try minSdkVersion="14" targetSdkVersion="18" Sep 26 20:57:24 trying Sep 26 20:57:31 nope Sep 26 20:57:57 are you sure its trying to install on the s3 and not an emulator or old device? Sep 26 20:58:09 adb -d install -r, or select the device in the run dialog? Sep 26 20:58:09 yea only thing plugged in Sep 26 20:58:22 im using android studio Sep 26 20:58:43 AS shows the device and prompts me Sep 26 20:58:56 says SGH-i747 android 4.1.1 API 16 Sep 26 20:59:06 AS even says its compatible Sep 26 20:59:20 odd Sep 26 20:59:21 hmm, im stumped then. try doing a clean build? Sep 26 20:59:25 birbeck: 11 - 18 Sep 26 20:59:41 hmm where do i clean in AS Sep 26 21:00:06 Build -> Rebuild Project Sep 26 21:00:07 ah rebuild Sep 26 21:00:08 thanks Sep 26 21:00:21 lobi: 11 to 18 worked? Sep 26 21:00:39 dosen't wokr Sep 26 21:01:12 hi guys Sep 26 21:01:12 lobi: try running android lint and see if it complains about any newer apis Sep 26 21:01:26 I want to know something about spinner Sep 26 21:01:27 birbeck: what is android lint Sep 26 21:01:43 I can't use entryValues for spinner, how can i define values for spinner? Sep 26 21:01:43 birbeck: still no go.. wtf Sep 26 21:02:26 acidjazz: hmm, maybe uninstall the app from the device first? reboot it? restart AS? Sep 26 21:02:35 something is f'd up Sep 26 21:02:42 birbeck: its never been installed on this phone Sep 26 21:02:46 huh the note 2 is complaining too Sep 26 21:02:54 is there anyone? Sep 26 21:02:54 the s4 nexus is fine Sep 26 21:03:31 birbeck: http://bpaste.net/show/4gzyyMDA7v3DeQ1oGdoI/ Sep 26 21:03:39 lobi: lint is part of the android tools in eclipse or android studio, it will check your project for errors, one being using classes and methods newer than your declared min sdk Sep 26 21:04:17 s4 nexus? Sep 26 21:05:20 yea man Sep 26 21:05:25 galaxy s4 nexus Sep 26 21:05:34 birbeck: ?? Sep 26 21:05:41 you mean google play edition? there is no s4 nexus Sep 26 21:05:48 lobi: lint looks fine Sep 26 21:05:52 yes Sep 26 21:06:03 but in eclipse I get errors Sep 26 21:06:16 and this code is from oficial tutorial Sep 26 21:06:21 sure if you want to call it that Sep 26 21:06:37 the app isnt going to build and install with errors, aapt wont run Sep 26 21:06:40 birbeck: just tried command line Sep 26 21:06:53 so its not AS Sep 26 21:06:54 do anyone know how to define values for spinner? Sep 26 21:07:06 birbeck: is AS refreshing the manifest xml file when doing a rebuild? Sep 26 21:07:43 what do you mean by refreshing? it includes it in new builds Sep 26 21:08:06 and just to be sure.. Sep 26 21:08:06 but only R.java and BuildConfig.java and changed dynamically Sep 26 21:08:06 right Sep 26 21:08:15 yes Sep 26 21:08:19 hm Sep 26 21:08:32 lobi, what errors do you see in eclipse? Sep 26 21:08:33 does AS have anything outside of hte manifest i should edit for sdk versions? Sep 26 21:09:07 acidjazz: there are annotations for supported api you can place on classes and methods Sep 26 21:09:21 birbeck: but that wouldnt be my issue Sep 26 21:10:03 @TargetApi(xx) Sep 26 21:10:11 yea i dont use that anywhere Sep 26 21:10:37 ok Sep 26 21:10:39 opened up the sdk manager Sep 26 21:10:41 api 16 is not installed Sep 26 21:10:53 it doesnt need to be Sep 26 21:11:00 sigh Sep 26 21:11:04 birbeck: http://pastebin.com/fN6MHCkx Sep 26 21:11:08 you just need sdk 16 or higher installed Sep 26 21:11:38 birbeck: what else can i do? Sep 26 21:11:42 lobi: have you included appcompat v7 support lib in your project? Sep 26 21:11:59 acidjazz: what apis are installed? Sep 26 21:12:11 4.3 and 4.2.2 Sep 26 21:12:57 birbeck: I don't know. where I can check this Sep 26 21:13:07 ok. you should always compile against the latest sdk available, and then set your minSdkVersion and targetSdkVersion appropriately Sep 26 21:13:21 yea id like it to be 16 and 18 Sep 26 21:13:28 but hte s3 and note2 wont install it Sep 26 21:13:39 even gone down to 11 Sep 26 21:13:40 lobi: http://developer.android.com/tools/support-library/setup.html Sep 26 21:13:42 birbeck: tutorial dosen't mention this Sep 26 21:15:27 acidjazz: and you have no build errors? no lint errors? Sep 26 21:15:53 birbeck: nah doesnt AS pop those up? Sep 26 21:16:06 when you build yeah Sep 26 21:16:09 2:00:50 PM Compilation completed successfully in 14 sec Sep 26 21:16:17 over and over again in my logs Sep 26 21:18:58 birbeck: http://i.imgur.com/IeUIahz.png Sep 26 21:19:35 birbeck: http://i.imgur.com/hMRpwZl.png Sep 26 21:21:20 birbeck: ok so i just started a brand new project in AS.. 16/16 and it runs on the s3 Sep 26 21:22:12 i got back to this one.. install failed older sdk Sep 26 21:22:48 what about gradle build files Sep 26 21:24:54 bidyea i missing the support library stuff Sep 26 21:25:00 in my project structure Sep 26 21:25:21 damn Sep 26 21:25:22 no im not Sep 26 21:27:52 FUCK Sep 26 21:29:38 birbeck: i got it :) Sep 26 21:33:17 Alrighty, decided to publish my app. Goody. Sep 26 21:33:28 nice Nilium ;) Sep 26 21:33:36 did you use Scala ? Sep 26 21:33:37 Commence the angry reviews Sep 26 21:33:39 Yes. Sep 26 21:33:48 linky ? (if yoou don't mind) Sep 26 21:33:52 The entire app is written in Scala, with the exception of the generated resource stuff. Sep 26 21:33:56 It's not visible on the store yet. Sep 26 21:34:06 Takes a while. Sep 26 21:35:39 Nilium: url Sep 26 21:35:59 I also think that'd fall under the 'no advertising' thing in the topic. Sep 26 21:36:27 Nilium is a moral absolutist Sep 26 21:36:28 Nilium: wtf u mean the "entire" app Sep 26 21:36:30 isnt scala just DB Sep 26 21:36:36 .. No Sep 26 21:36:54 so your app isnt native? Sep 26 21:36:57 http://www.scala-lang.org/ ← You should go check out the site. Sep 26 21:37:10 how od you write an android java app in scala though Sep 26 21:37:13 The app is as native as a regular Java app. Sep 26 21:37:13 does it covert it to java Sep 26 21:37:32 oh so it slike.. coffeescript Sep 26 21:37:36 its* Sep 26 21:37:38 where's pfn :-) Sep 26 21:37:44 coffeescript for java? Sep 26 21:39:09 Scala compiles to JVM bytecode, and dx doesn't care one bit about the source. Sep 26 21:39:14 ah i see Sep 26 21:39:16 cool Sep 26 21:39:40 so.. is it rough writing in this for android? there a android-friendly IDE for this? Sep 26 21:39:59 I use IntelliJ for editing and sbt for building, so it's fine for me. Sep 26 21:40:16 are there any docs/tuts on android+scala setups? Sep 26 21:40:21 * Nilium shrugs Sep 26 21:40:43 http://fxthomas.github.io/android-plugin/ Sep 26 21:40:44 https://github.com/pfn/android-sdk-plugin ← There's pfn's thing that I use. Sep 26 21:40:58 Do not use android-plugin. Sep 26 21:42:51 lnaguage sounds great Sep 26 21:43:20 where are some android scala code examples Sep 26 21:43:44 no ; eh Sep 26 21:44:08 ; is optional, but it's there. Sep 26 21:44:54 Hi, having trouble working out the Calendar stuff. I am trying to programatically add a calendar entry, but when the event is created, the time is not what I expect. I guess I'm doing something wrong with how I work with the Calendar java class. Sep 26 21:44:56 http://pastebin.com/JYH7aPHC Sep 26 21:50:38 RyanM, g00s_ well I can confirm the different behavior between the support library and the framework fragments.. Sep 26 21:51:26 ok now back to the fun.. so im using a ViewHolder pattern for this listview.. and i have functionality where i need to loop through the list w/in a single item handler.. is this possible Sep 26 21:52:59 Nilium: did you have any issues using sdks/libraries/etc ? Sep 26 21:53:04 No. Sep 26 21:53:19 so youd look at like.. java sampel code and write the scala versioN? Sep 26 21:53:32 What? Sep 26 21:54:00 so youd look at like.. java sample code and be able to write it in scala? Sep 26 21:54:06 pretty clear question.. Sep 26 21:55:41 I don't know why it involves sample code though. Sep 26 21:55:56 sometimes when you read documentation Sep 26 21:55:58 there is sample code Sep 26 21:56:05 Are you asking me to convert a piece of code to Scala? Sep 26 21:56:08 its like for a demonstration Sep 26 21:56:35 as an example of how to use the library Sep 26 21:56:39 If I look at sample code, I'm looking at it for process, not the code specifically. Sep 26 21:57:37 have you used v4 fargment and viewpager functionality with scala? Sep 26 21:57:43 fragment* Sep 26 21:57:58 dcow: do tell Sep 26 21:58:11 I rewrote FragmentPagerAdapter in Scala because I didn't like the way it worked. Sep 26 21:58:25 as in it didnt work? Sep 26 21:58:36 It worked, I just wanted to be able to give my fragments names. Sep 26 21:58:54 you cant do that from extending the class? Sep 26 21:59:04 As is, FragmentPagerAdapter generates a tag for the fragments, so you can't easily look it up via the fragment manager. Sep 26 21:59:11 ah i see Sep 26 21:59:29 can i see a sample gist of some fragment/whatever action in scala? Sep 26 22:01:25 http://docs.scala-lang.org/tutorials/ ← I think you'd probably just want to read the tour. Sep 26 22:02:23 yea i been reading that Sep 26 22:02:32 i want to see some android-style samples Sep 26 22:02:59 I don't know what qualifies as android-style over anything else. Sep 26 22:05:48 birbeck: I tried to import v7 Sep 26 22:05:58 but I get new errors Sep 26 22:06:03 I cant import Sep 26 22:08:22 birbeck: http://bpaste.net/show/t4tzKq0bwl4z3rHtgrFT/ Sep 26 22:10:09 hmm i dont think im properly implementing these listeners w/ this viewholder class Sep 26 22:12:57 lobi: install sdk's v7 and v16 Sep 26 22:16:47 birbeck: why everything is so complicated. why this is not mention in tutorial Sep 26 22:17:09 i dont know i dont write the docs ;-) Sep 26 22:17:47 project law: every project costs more money and time than expected Sep 26 22:22:07 :D Sep 26 22:23:36 birbeck: ok. i instal v7 and v16 Sep 26 22:23:49 no i can't import v libary Sep 26 22:23:51 wtf Sep 26 22:26:25 hi there :) Sep 26 22:26:31 does anyone know how to make it so that Android Studio autmatically pushes the new app to my connected device? Sep 26 22:26:55 my development cycle is quite long when I have to hit 'run' all the time :) Sep 26 22:27:05 hmm dunno Sep 26 22:27:14 I usually justy run it, but then my app isnt large Sep 26 22:29:10 mine neither, not yet... Sep 26 22:29:21 but I thought there might be a quicker way Sep 26 22:30:13 birbeck: i can click finish Sep 26 22:30:14 Click Finish to import the project. For the v7 appcompat project, you should now see a new project titled android-support-v7-appcompat. Sep 26 22:30:34 Hey guy's looking for some one test a site for me on an s3 having some werid css issue Sep 26 22:30:37 issues* Sep 26 22:30:54 with webkit Sep 26 22:32:29 Hey all, I'm trying to set the summary field of an EditTextPreference to a specific preference that I have set with SharedPreference.putString(). Is bindPreferenceSummaryToValue() the correct way to do this? Also, how do I use bindPreferenceSummaryToValue()? Sep 26 22:33:03 birbeck: Cannot import android-support-v7-gridlayout because the project name is in use Sep 26 22:33:06 ??? Sep 26 22:33:09 awesome :) Sep 26 22:33:53 and yeah, I'm at the airport Sep 26 22:33:58 which airport Sep 26 22:34:38 stl Sep 26 22:39:21 pfn: going where? Sep 26 22:41:50 going home Sep 26 22:50:35 anyone at droidcon? Sep 26 22:56:30 http://www.pasteall.org/45881/ I'm getting this showing up plus a bunch of repeats after a jarsigner -verify -verbose -certs command any suggestions? Sep 26 23:00:03 wtf is droidcon Sep 26 23:01:55 sounds like an event where people go and learn about android stuff? Sep 26 23:02:02 just from the top of my head Sep 26 23:02:03 at london yes Sep 26 23:02:57 anyone here ever have errors while trying to get an apk to market? Sep 26 23:03:09 cause this is day 3 or 4 Sep 26 23:03:18 and it's freaking me out now Sep 26 23:06:07 wtf is wrong with oficial tutorials Sep 26 23:07:26 http://pastebin.com/7mjfFYyA I have a thread running in the background that is crunching data from a cursorloader, and then feeding the data to an adapter. The part where I feed it into the adapter is shown in my pastebin link. I am getting a concurrent modification exception, but I am making sure the adapter modifications are run on the ui thread... Is there some other precaution im missing?... Sep 26 23:08:41 array adapter btw Sep 26 23:08:56 or is that exception pertaining to mItems? Sep 26 23:09:38 iterator.next probably means im modifying mItems while im traversing it in the ui thread... Sep 26 23:09:42 aha :|.. Sep 26 23:10:29 i import v7 and now this file has an errors Sep 26 23:10:38 i didn't change anything Sep 26 23:10:42 f..k Sep 26 23:14:05 Hey all Sep 26 23:14:53 What is the best dev tool for someone that never programmed in android? Sep 26 23:15:45 I heard about Eclipse+Android SDK, are the any others? Sep 26 23:16:28 VIM Sep 26 23:16:56 MOUD: dont do vim if you've never programmed before (unless youre familiar with it of course) Sep 26 23:17:19 yes, eclipse + sdk are the most supported tools, and probably the best for beginners although eclipse is a steaming pile of shit Sep 26 23:17:28 never used VIM. Isn't it and extension of VI for linux? Sep 26 23:17:29 if youre so inclined, you can give android studio a try Sep 26 23:17:33 but understand its still beta Sep 26 23:17:35 Yeah don't use it then... :) Sep 26 23:17:44 My point is try to start in a simple text editor Sep 26 23:17:50 until you understand how everything works Sep 26 23:17:54 MOUD: android studio Sep 26 23:18:07 GUI's do a lot for you that you need to understand... Sep 26 23:18:26 AS is nice cuz it does stuff for you but notifys you Sep 26 23:18:31 After you understand all of the little pieces a dev ide is great to help you... Sep 26 23:18:33 flipture: suggesting vim to a beginner is never a good idea Sep 26 23:18:39 MOUD: http://developer.android.com/sdk/installing/studio.html Sep 26 23:18:44 Pyuruku: it was mostly a joke... Sep 26 23:19:03 flipture its a joke for people who know what vim is :P Sep 26 23:19:06 can I do most of the work using the GUI rather than coding? Sep 26 23:19:09 :) Sep 26 23:19:20 MOUD: you'd still be coding in the GUI Sep 26 23:19:24 MOUD no Sep 26 23:19:26 MOUD: if you're looking for that you should just stop looking into this Sep 26 23:19:28 MOUD: but it assists you in many ways... Sep 26 23:19:45 you cant expect to build anything without programming experience Sep 26 23:19:48 MOUD: http://gamesalad.com/ heres what you want Sep 26 23:19:57 maybe Appinventor or Catroid ? Sep 26 23:20:54 MOUD: Google some Java tutorials Sep 26 23:20:59 The thing is that I haven't done any programming in the last 3 years so I forgot almost everything. Sep 26 23:21:01 Java is one of the more newbie friendly languages Sep 26 23:21:20 lol Pyuruku it definitely is not Sep 26 23:21:22 java is a bitch Sep 26 23:21:35 obj C is alot more friendly Sep 26 23:22:16 acidjazz: err... you mean the original C, not C++? Sep 26 23:22:24 objective c Sep 26 23:22:40 smalltalk+C Sep 26 23:22:52 never heard of it Sep 26 23:22:55 MOUD: you dont want to pay attention to Objective C if youre not going to develop things for apple products Sep 26 23:23:21 NeXT FTW Sep 26 23:23:27 Pyuruku: yeah, i know that, tks :) Sep 26 23:23:29 MOUD: maybe look into scala Sep 26 23:23:36 some scala kiddies in here Sep 26 23:23:44 https://www.youtube.com/watch?v=YlVi0noRr-o < LOLZ Sep 26 23:24:00 Nilium: wheres my sample gist Sep 26 23:25:36 are there many differences between Java and Java for Android? Specially in the Web parts Sep 26 23:26:01 you get Java 6, with non-standard classpath Sep 26 23:26:21 MOUD: Not particularly Sep 26 23:26:36 MOUD: Java in android works the same, you just need to be aware of the libraries you have available. Sep 26 23:26:38 the language is the same, most of the *base* class library is the same, various other interfaces etc. are different from JRE/CDC/JEE Sep 26 23:26:57 MOUD: you can consider Android to be a "profile" just like JRE, CDC etc. Sep 26 23:27:11 I see. So it's better for me to try Java then jumping directly to Android programming? Sep 26 23:27:17 its a requirement Sep 26 23:28:26 I learned Java in about two weeks while working on an Android app. Sep 26 23:28:32 is there any fast to learn Java tutorial and with samples to try? Sep 26 23:28:35 Then I swore off Java. Sep 26 23:28:46 MOUD Google is your friend Sep 26 23:29:00 Nilium: which java tutorial did u use? Sep 26 23:29:10 I didn't use a tutorial. Sep 26 23:29:19 I've never read a Java tutorial or a book on Java. I learned it by using it. Sep 26 23:29:28 And reading documentation. Sep 26 23:29:28 MOUD: Effective Java 2nd Edition by Bloch Sep 26 23:29:30 Pyuruku: I know, but I just want some input from you Sep 26 23:29:40 i dont know your learning style Sep 26 23:29:45 I haven't read it cover to cover Sep 26 23:29:46 so whatever i give is a vauge assumption Sep 26 23:29:49 but it's a good reference Sep 26 23:30:10 I see. Thanks for all the input :) Sep 26 23:43:14 [23:23] < acidjazz> Nilium: wheres my sample gist Sep 26 23:43:35 ive pretty much learned assembly in a dream Sep 26 23:43:55 and now i write all my android apps in it.. usually blindfolded Sep 26 23:44:26 i take a fine magnet and magnifying glass to my harddrive, i find it calming Sep 26 23:45:08 MOUD: pretty much were just gonna tell you how cool we are with our programming Sep 26 23:45:53 acidjazz: I've been rather busy trying to find someone to schedule counseling with, so haven't really bothered with finding code for you. Sep 26 23:46:13 'Cause I sort of assume I should put my psychological issues first. Sep 26 23:46:30 takes 20 seconds Sep 26 23:46:56 probably as long as it took you to tell me why you cant and/or talk about your level 100 java skills Sep 26 23:47:39 Since when have I said anything about "level 100 java skills?" Sep 26 23:47:41 acidjazz: hehe Sep 26 23:48:00 And I still don't know why you can't just read the tour and think "Android code would look like this" Sep 26 23:48:09 < Nilium> I learned Java in about two weeks while saving puppies from a fire using only my right pinky Sep 26 23:48:17 There's nothing special about regular Scala code and Scala written for an Android app Sep 26 23:48:30 Nilium: i am... im just curious Sep 26 23:49:32 alright thats it im scratching SimpleAdapater Sep 26 23:51:01 I've got a photo picker like this: http://hastebin.com/qelobocemu.coffee - in onActivityResult, it always reurns with the resultcode as RESULT_CANCEL Sep 26 23:51:52 I'm not quite sure what I"m doing wrong Sep 26 23:52:27 Here, Scala I use in my app: Tap(new Array[String](length)) { arr => util.Arrays.fill(arr.asInstanceOf[Array[AnyRef]], "application/json") } Sep 26 23:52:29 Have fun. Sep 27 00:10:29 nobody on the image picker? I've got it sending me out to the gallery app Sep 27 00:11:07 when I click on an image, it sends me back, but my activity's onActivityResult gets RESULT_CANCELED for the resultCode Sep 27 00:12:31 i really hate the AS installer Sep 27 00:12:34 never finds my jdk Sep 27 00:13:12 there's an installer? Sep 27 00:13:23 weird - I've always just extracted and used it Sep 27 00:13:32 installer? Sep 27 00:13:43 you're supposed to point it yourself in the project setup Sep 27 00:13:51 why let something scan your whole HD when you know where it is Sep 27 00:14:18 acidjazz - rager: Android studio setup Sep 27 00:14:24 jdk cant be found Sep 27 00:14:33 formatted and have to reinstall it Sep 27 00:14:41 what OS Sep 27 00:14:45 just point it to your JDK Sep 27 00:14:47 ain't no than Sep 27 00:14:53 I'm assuming windows Sep 27 00:14:53 yea how lazy are u Sep 27 00:15:00 os x does not Sep 27 00:15:06 because in linux and osx, you just find java at JAVA_HOME Sep 27 00:15:21 sometimes it's not exported Sep 27 00:15:35 im on windows 8 Sep 27 00:15:39 installed perfec Sep 27 00:16:42 so like... no experience picking images from your apps? Sep 27 00:20:59 not yet.. i "intent" to soon though Sep 27 00:21:14 yea i know.. im hilarious. Sep 27 00:23:59 funkbox: its not that easy just to point it to my jdk Sep 27 00:27:12 funkbox: no amount of environment var setting fixes it either Sep 27 00:28:22 latest prng patch (tiny.cc/prng_patch) suggests to put apply it via {@link #apply()} in {@code onCreate} , what exactly do i need to put in OnCreate (of a mainactivity, as example) ? Sep 27 00:29:01 sigh Sep 27 00:29:11 I'm following the stackoverflow posts and blog entries I've found Sep 27 00:29:26 except one that's got lots of side effects - might have to go with it Sep 27 00:32:34 Hey all, I'm trying to set the summary field of an EditTextPreference to a specific preference that I have set with SharedPreference.putString(). Is bindPreferenceSummaryToValue() the correct way to do this? Also, how do I use bindPreferenceSummaryToValue()? Sep 27 00:46:35 http://stackoverflow.com/questions/16590629/error-dump-failed-because-no-androidmanifest-xml-found hi has anyone managed to have this problem and fix it? Sep 27 01:00:49 hey guys, I'm wondering, how can I catch when my Fragment is being popped off the backstack? Sep 27 01:03:41 where can I find source code for API (example http://developer.android.com/reference/android/view/Display.html#getOrientation%28%29) Sep 27 01:08:09 so i got a listview with a viewholder.. i need to add click/play handlers.. should i put the handlers in my adapter? or the viewholder? Sep 27 01:30:10 @romainguy Im not sure if you are there or not, but I was wondering if there was any consideration on whether or not an "SMS_PRIVILEGED" permission is considered necessary, so that SMS can only be sent with the direct confirmation of the user? Sep 27 01:30:34 As it stands, I believe, it is possible to send an SMS with the user completely unaware. Sep 27 01:35:36 yup Sep 27 01:35:43 you can do anything Anthaas .. the beauty of android Sep 27 01:36:24 Whilst I believe the openness of Android is brilliant, I still believe the ethics of being able to send an SMS without the users confirmation needs to be assessed. Sep 27 01:38:20 Anthaas: confirm every time an app wants to send an sms? Sep 27 01:39:27 thats just preposterous Sep 27 01:39:52 For example, the CALL permission is split into CALL and CALL_PRIVILEGED. You can only use the CALL_PRIVILEGED (Call without actually pressing the "dial" button) if you are given access by Google. I believe the same should be the case for SMS. You can set up the destination(s) of the SMS, and the message, and even any attachments, but the user should have the final say. Sep 27 01:39:55 How is it? Sep 27 01:40:41 How easy would it be now, to take the numbers from say, 10 contacts, and send them any message that I want them to without you knowing. I could even set it up so it receives the message I want to send silently through GCM and send. Sep 27 01:41:06 I think you should need the permission to send sms Sep 27 01:41:13 but individual confirmation per each sms is just dumb Sep 27 01:41:14 Its fair enough that Google operates on a "Do no evil" approach, but you cannot guarantee that every developer does too. Sep 27 01:41:19 You do need the permission. Sep 27 01:41:32 oh Sep 27 01:41:34 But you are assuming that every Android user knows about permissions and what they do, or even reads them. Sep 27 01:41:34 then in that case Sep 27 01:41:56 individual confirmation is not good, dont install apps without knowing their permissions, etc. Sep 27 01:42:02 Also, if that is the case, that a permission being needed is fine, why is the CALL permission split into two? Sep 27 01:42:48 What about apps that send large amounts of SMS, or airdroid where you might not be able to access your phone but still need sms? Sep 27 01:42:57 individual confirmation per sms sent is just not feasible Sep 27 01:43:13 you need to strike the balance between feasibility and security Sep 27 01:43:35 part of the principle of the permission system is that once you've granted a permission (as a user), the app can currently assume it's got that permission without further prompting Sep 27 01:43:36 In which case, these apps (such as AirDroid) should submit to Google (I know it might be a pain in Google's ass) to acquire the SMS_PRIVILEGED permission. Sep 27 01:44:04 @Leeds Again, in which case why is the "CALL_PRIVILEGED" permission in existance? You could argue the same case about the CALL permissions. Sep 27 01:44:11 Anthaas: you just went fucked up the feasibility/security balance. Sep 27 01:44:16 went and* Sep 27 01:44:45 @desmin88 Well, that is how the CALL_PRIVILEGED permission works. Same with BRICK, etc. Sep 27 01:45:08 note that as of Android 4.2, SMS sent to short codes *do* require a manual confirmation from the user Sep 27 01:45:10 Hi, I am trying to use the JNI in android to get to my 2 textview objects from my C code so i can update thier vlaues from there. Sep 27 01:45:11 regular SMS doesn't Sep 27 01:45:33 I've managed to find the textView class, but i can't really figure out how to find the objects. Sep 27 01:45:56 @Leeds That is good to know, but again, why not? A bill could be accrued simply by spamming numbers. Not necessarily for personal gain upon the developer, but simply malicious intent. Sep 27 01:46:20 Anthaas, then dont install that app with the sms permission? Sep 27 01:46:44 @desmin88 As I said before, it is not fair to assume that every Android user knows about permissions, what they do, and reads them etc. Sep 27 01:47:12 The end user can be stupid, very stupid, and as much should be taken into account as possible to reasonably protect them. I believe that this split of the SMS permission is reasonable. Sep 27 01:47:25 its not fair to force these over protective measures and make sending sms difficult just because of fuck up joe not knowing how his phone works Sep 27 01:47:29 Anthaas: it's fair to assume that users in aggregate do exactly that Sep 27 01:48:43 desmin88 It isnt just the end user that we should be blaming here - there are malicious developers too. Also consider places that provide pirated APKs, or APKs that haven't been in/through Google Play. It would also act as a protective measure there. Sep 27 01:49:27 if you use pirated APKs, you deserve to have all your data stolen, sent to Russia, used and abused, shared with the NSA, and... everything else Sep 27 01:49:29 you're just being unreasonable Sep 27 01:49:46 if you install non-play-store apps, you still need to approve their permissions Sep 27 01:49:53 google should be super limiting on sending sms becaue of hte possibility of someone using a pirated apk? Sep 27 01:50:23 which btw, as leeds said, still needs permission approval Sep 27 01:50:27 desmin88 You are clearly missing the point of what I am saying - the whole pirating thing was just a small point and a small possibility, but Google would do well to protect everyone Sep 27 01:50:35 howdy! so if I have something like an jabber client that has an open connection but isn't sending/receiving a lot of data, does that keep the radio on? Sep 27 01:50:53 Leeds: Again - its not fair to assume everybody understands what they are. Not everybody with a phone is completely technologically literate. Sep 27 01:51:06 Anthaas: then let them get a fucking iphone Sep 27 01:51:12 Leeds: thank you. Sep 27 01:51:24 Wow, that was a bit of an aggressive response... Sep 27 01:51:47 really just go use an iphone if you want apps to be restrictive as all hell and developers to have to jump loops to do anything, just because an end user might fuck it up Sep 27 01:52:11 Guys, calm down! Stop being so defensive/aggressive. Sep 27 01:52:20 uhh Sep 27 01:52:26 you just keep arguing this moot point Sep 27 01:52:37 Its not a "moot point". Sep 27 01:52:39 yes Sep 27 01:52:40 it is Sep 27 01:52:47 Your opinion just says to you that it is. Sep 27 01:52:51 no Sep 27 01:52:58 Look, if you dont want a reasoned discussion, just shut the fuck up and stay out? Sep 27 01:53:11 Im not interested in someone who clearly sees their own opinion as fact. Sep 27 01:53:23 whoa, pot, kettle, blackness Sep 27 01:53:28 lul. Sep 27 01:53:38 I am not saying my opinion is fact, I was raising a point and asking a question. Sep 27 01:53:59 As I said to romainguy - "Is there any consideration...?" Sep 27 01:54:09 I never said "There should be - sort it out". Sep 27 01:54:53 starting your rant by asking the graphics guy about SMS permissions wasn't a good idea Sep 27 01:55:13 appeal to authority, and all that Sep 27 01:55:15 He might have been able to give me some kind of answer, or point me in some kind of direction. Sep 27 01:55:25 Not at all, just he would be more likely to know than you. Sep 27 01:55:26 Anthaas: Android development is supposed to be by design a little more free in terms of what possibilities you have. If you want everything to be restricted becaues an end-user might fuck up, I direct you to ##apple Sep 27 01:55:38 whatever Sep 27 01:55:45 anyways, lets move on. Sep 27 01:56:02 desmin88: so, how's Friday (or Thursday night, depending on timezone) treating you? Sep 27 01:56:07 desmin I completely understand that, but if that was entirely the case, why does "CALL_PRIVILEGED" exist, and why does it not just call unless the number is a high-charge line? Sep 27 01:56:15 Just as Leeds said SMS does to short codes Sep 27 01:56:20 Anthaas: ask google Sep 27 01:56:26 You dont think I did? Sep 27 01:56:40 Leeds: pretty good, made bourbon chicken in a wok for dinner, no class till 12:30 tomorrow. You? Sep 27 01:56:51 Anthaas: I don't care enough to assume you did or didn't Sep 27 01:57:21 lol Sep 27 01:57:24 ggwp Sep 27 01:57:29 desmin88: nice... mid-morning here, waiting for my boss to Skype me - or not, hopefully, which would mean I can get some work done... went to a BlackBerry conference yesterday, got some cynicism, a phone, and a nice lunch Sep 27 01:58:35 interesting Sep 27 01:58:41 hope you get some work done haha Sep 27 02:02:25 Probably worth noting, seeing as you both seemed to miss it, I didn't ask either of you. But hey ho... Sep 27 02:02:51 good riddance Sep 27 02:03:11 i just dont understand that mentality Sep 27 02:04:21 apart from anything, this is an open chat channel - you don't get to determine who answers your questions Sep 27 02:05:00 indeed Sep 27 02:06:03 I'm tired and grumpy this morning, already ragequit #android for all the dumb in there Sep 27 02:07:09 lol Sep 27 02:07:16 how is it dumb? Sep 27 02:07:18 never been there before Sep 27 02:07:39 so much dumb... Sep 27 02:08:11 there's #android and #android-root - which is a good breakdown, since so much rooting stuff, and so many rooted users, are dumb Sep 27 02:08:53 yeah Sep 27 02:08:54 except nobody bothers even telling people about that separation anymore, nevermind trying to actually enforce it Sep 27 02:09:56 so when you get the guy with stock/rooted 4.2 on his tablet, who has manually enabled multi-user support - not supported by the vendor - and is now complaining that there's a bug with browsers trying to use the same Download directory for multiple users Sep 27 02:10:47 the guy who wants to put cyanogenmod on his phone, asks if it's possible with Linux, then asks for a link to a tutorial - because apparently putting the simplest search term into a browser is just too complicated Sep 27 02:11:12 people just want to be spoonfed Sep 27 02:11:33 the guy who is trying to use fastboot, but doesn't know what to set his PATH to to find it, and asks the channel... Sep 27 02:11:49 ok that takes the cake Sep 27 02:12:11 when i was like 12 and wanted to program in java i had the same mentality. nobody spoonfed me and I think i'm a better programmer today because of it Sep 27 02:12:15 the guy who just randomly asks who has seen some movie, then throws in a link to a song from that movie on youtube Sep 27 02:12:37 all these within a 13 minute period this morning. Sep 27 02:13:11 now i'm 16 and doing exceptionally well if i want to toot my own horn for a bit Sep 27 02:13:20 13 minutes Sep 27 02:13:23 thats Sep 27 02:13:25 you should probably leave your horn out of this... Sep 27 02:13:27 thats just bad. Sep 27 02:13:43 * Nilium rambles on about the heady days of Slackware and damn kids Sep 27 02:13:58 Nilium: the days of Slackware are *now*! :D Sep 27 02:14:09 I always feel like Arch killed Slackware. Sep 27 02:14:37 Now I just keep Slackware in a VM for playing with it 'cause I don't have the patience to use Linux anymore Sep 27 02:15:02 Well, the patience to use it for my main OS, anyway Sep 27 02:15:11 I run on slackware all day, every day... I feel like maybe we've discussed this before Sep 27 02:15:27 desmin88: it was a particularly bad concentration of dumb Sep 27 02:15:27 For an open bluetooth connection, does anyone know when exactly an InputStream's read() call blocks? Sep 27 02:15:55 Leeds: lol. Sep 27 02:17:00 Possibly discussed it before. I don't really remember. Sep 27 02:17:56 All I know is that if I ever switch to Linux for my main OS, it's going to be slackware. Sep 27 02:18:31 I did that in 1998 :) Sep 27 02:20:07 computer science, hardware/software engineering, so many majors to choose from. Sep 27 02:20:30 anyone use the JNI on android here? Sep 27 02:20:53 me Sep 27 02:21:35 I did straight CS, a while ago... well, technically, I did a year of CS/economics, but economics was hard so I dropped it Sep 27 02:21:46 cool, do you know if its possible to access a TextView object directly from the JNI? Sep 27 02:22:27 if TextView is just a normal java object then it should be possible i think Sep 27 02:22:39 Leeds: I still have 2 years to go before I officially choose a major when I turn 18 and transfer but I feel abit overwhelmed with all the choices Sep 27 02:22:55 * Nilium was an English major. Sep 27 02:23:10 its one of the ones from anroid Sep 27 02:23:36 i have 2 textview, i can't see to look them up, think i could pastebin some of the code for some help? Sep 27 02:23:42 desmin88: I think my main advice would be not to sweat it too much - I wouldn't necessarily go as far as English, but it doesn't really matter that much in the end, so go for whichever feels best/most interesting/etc Sep 27 02:24:12 randommuse99 i dont know a lot about android's java classes; how are you trying to look them up Sep 27 02:24:27 I just ended up studying what interested me the most given that I had my choice of a grand total of two state schools. Sep 27 02:24:40 i've tried this : jclass androidTextView = (*env)->FindClass(env,"android/widget/TextView"); Sep 27 02:24:44 And the one I ended up at didn't really have a very good CS program, but had an excellent English program Sep 27 02:24:46 thanks for the advice :) Sep 27 02:24:50 and this: jfieldID fidNumber = (*env)->GetFieldID(env,thisClass, "textView1","Lcom/akp/myjnitest/R/id"); Sep 27 02:25:25 randomuse99: any help? http://stackoverflow.com/questions/15494136/android-jni-how-to-use-use-findviewbyid Sep 27 02:25:44 I've never looked at NDK stuff - I assume that's what you're using Sep 27 02:26:12 leeds: looking Sep 27 02:26:16 ya NDK stuff Sep 27 02:26:40 FindClass just finds the class definition for TextView. "textView1" doesn't look like a normal field id Sep 27 02:26:41 Nilium: different system, I guess - at the time, all universities in the UK were still free-to-the-student, so it was a case of choosing your place, choosing your course, applying, hoping for an offer, working for your grades Sep 27 02:27:06 I'm in the US, so yeah. Sep 27 02:27:09 although I was turned down for my first choice - straight Economics at the LSE Sep 27 02:27:19 I got grant money and such, but it's nowhere near free. Sep 27 02:27:52 Leeds: nah they gloss over the part i was looking for - int ID = 2; //get the ID somewhere else, it is just an integer =/ Sep 27 02:28:29 the UK moved from "free eduction and rent/food/book money from the government" to "free eduction and money if you can prove you need it" to "free eduction" to "cheapish eduction" to "less-cheap eduction" Sep 27 02:29:13 The US went from cheap to expensive-but-you-can-get-grant-money-if-you-prove-you're-poor Sep 27 02:29:29 but the grant money is private, not government, right? Sep 27 02:29:33 Noting that the prove-you're-poor part means also proving your relatives are poor too Sep 27 02:29:48 It's semi-government-semi-private Sep 27 02:30:01 The government arranges it, but doesn't provide it Sep 27 02:30:12 proving that you needed it in the UK was assumed to mean proving that your parents couldn't afford to support your eduction - mine could, so I didn't get any cash, which seems fair enough Sep 27 02:30:33 Mine couldn't, at least not going by our income. Sep 27 02:30:38 randomuse99: so the issue is finding an R value? Sep 27 02:32:47 leeds: yes Sep 27 02:33:03 i've tried this - jfieldID fidNumber = (*env)->GetFieldID(env,thisClass, "textView1","Lcom/akp/myjnitest/R/id"); Sep 27 02:33:21 but it doesn't find the textView1 object Sep 27 02:34:22 this may be a silly question, but could you just pass it through your JNI call? Sep 27 02:34:41 what errors do you get? where do you actually call GetObjectFIeld? Sep 27 02:34:49 i've tried that, but it doesn't seem to work. Sep 27 02:34:58 doesn't work how? Sep 27 02:35:17 can't access and of the data in the objects Sep 27 02:36:31 i call GetObjectField in my native function when i enter it from the onCreate method Sep 27 02:36:40 so in onCreate Sep 27 02:36:49 i call myNativeThread Sep 27 02:37:19 and in there i call GetFieldID Sep 27 02:37:35 post your code Sep 27 02:38:29 whats the pastebin for this channel? Sep 27 02:39:10 randomuse99: any that you like Sep 27 02:40:00 pastebin is pastebin of this channel I guess? Sep 27 02:40:25 I know that bing is the google of this channel Sep 27 02:41:27 state schools in the US are dirt cheap Sep 27 02:41:45 http://pastebin.com/83FVumbK Sep 27 02:41:47 At least if you're a resident of the state Sep 27 02:42:17 pf curious how long before you are counted as living in state? Sep 27 02:42:26 I know for college texas requires one year Sep 27 02:45:31 randomuse99 i dont know enough about java to reall figure out what you're doing but the field type in your DisplayData class is TextView and userText1 Sep 27 02:45:39 *for userText1 Sep 27 02:45:53 i dont see any textView1 field in DisplayData Sep 27 02:46:15 i moved the line while i was playing around. Sep 27 02:46:43 its outside right now, in between the oncreate intFromJNI() Sep 27 02:47:16 okay Sep 27 02:47:23 what do you mean by "line below blows up" Sep 27 02:48:03 when trying to find that object the system produces a sigev Sep 27 02:50:17 did you check if thisClass isvalid (it should be, but still)? and dalvik usually gives you some information... like it couldnt find the method or field Sep 27 02:52:30 also i think the return type should have a semicolon at the end (Lcom/akp/myjnitest/R/id;) Sep 27 02:58:23 yeah, i guess i should check that Sep 27 02:59:17 XXCoder, typically 12mos Sep 27 02:59:29 interesting. thanks. **** ENDING LOGGING AT Fri Sep 27 02:59:58 2013