**** BEGIN LOGGING AT Fri Jul 04 02:59:58 2014 Jul 04 03:01:25 i wonder how well groovy works on android Jul 04 03:01:51 not really a groovy fan, but maybe under art, since its a jvm language, its … acceptable Jul 04 03:02:00 in performance Jul 04 03:02:05 and therefore maybe utility also Jul 04 03:02:09 Of all the languages that they could have used for Android, they chose Java. :( Jul 04 03:03:02 you never hear the linux desktop guys saying, hey lets rewrite gnome / kde / xfce in Java Jul 04 03:03:33 no, just C# :) Jul 04 03:03:45 otoh, those poor bastards are still using C in lots of cases, well KDE C++ Jul 04 03:03:54 also, let's re-implement OLE Jul 04 03:04:01 OLE2 ! Jul 04 03:04:03 auxchar, hello Jul 04 03:04:26 Does Groovy compile into standalone bytecode, or does it need a runtime, too? Jul 04 03:04:56 oh yeah, i just remember groovy just got official android support Jul 04 03:05:02 apparently it was a huge pita Jul 04 03:05:17 http://www.infoq.com/news/2014/06/groovy-android Jul 04 03:05:29 mmm... huge pita Jul 04 03:05:44 Sorry for being slow, I'm a bit new at typing on mobile. Jul 04 03:06:02 auxchar you do pretty well then all things considered :) Jul 04 03:08:46 im finding it impossible to properly work with a broadcast receiver unless its registed in the manifest* Jul 04 03:09:06 network connectivity change must it be registered in the manifest? Jul 04 03:09:15 i dont think so Jul 04 03:09:29 some broadcasts have to be used one way or the other, usually says in the docs Jul 04 03:09:48 (manifest or dynamically) Jul 04 03:09:57 jaspertheghost i'm sure you can find plenty examples on SO Jul 04 03:10:05 i been looking Jul 04 03:10:21 IMO, a good language should nw productive without an IDE. Jul 04 03:11:34 s/nw/be/g Jul 04 03:11:43 CONNECTIVITY_CHANGE should i just keep it registered .. i previously had an issue where it fired a bunch of times even though i was connected i dont want to queue up intentservices* Jul 04 03:12:19 jaspertheghost well, the receiver could just look at the prior state and only forward non duplicates :P Jul 04 03:12:30 or maybe you should not be using intentservice Jul 04 03:12:49 it has to be an intentservice Jul 04 03:13:05 it runs every 15 mins in the background to read from an sql data and upload images/data to a server Jul 04 03:13:28 time intensive could take 10 mins to run each time Jul 04 03:13:45 10 minutes :| Jul 04 03:14:08 and if it starts and there is no network i want it to register a receiever for connectivity change so thatr when it gets it back it starts up again Jul 04 03:14:15 good luck with that, 10 minutes puts long running intentservice in kill zone Jul 04 03:14:30 whats that mean? Jul 04 03:14:44 kill zone isnt exactly a technical term Jul 04 03:14:47 break it up Jul 04 03:14:50 its very common for long running services to get nixed Jul 04 03:14:56 unless its foreground Jul 04 03:15:10 well if it gets nixed the alarm manager will restart it Jul 04 03:16:36 hiya, my language use this particular character 'd with dot below' ( http://graphemica.com/%E1%B8%8D ), i'm trying to implement using the sample softkeyboard, everything works fine except for this character. why can't android display it? it can't display also on the stock browser. any ideas guys. Jul 04 03:18:46 try doing from html and using its html code? Jul 04 03:21:08 ive tried like this Jul 04 03:21:30 and android:keyLabel="ḍ" Jul 04 03:24:47 I am still trying to resolve that spinner issue... on Android Studio and ADT http://pastebin.com/pBh0cGHg could someone take a look... perhaps spot something Jul 04 03:27:32 IrishGringo whar is line 35 ? Jul 04 03:27:44 whar = what | where :) Jul 04 03:28:34 spinner.setAdapter(adapter); Jul 04 03:29:00 It happenes every time... same issue... and it just started. Jul 04 03:30:40 IrishGringo after Spinner spinner = (Spinner) findViewById(R.id.spinner02); Jul 04 03:30:46 put a log to see if spinner is null Jul 04 03:30:52 seems like it is Jul 04 03:31:44 g00s: I'm more of an iPHONE developer... how would I do the log? Jul 04 03:32:03 IrishGringo look up logcat Jul 04 03:35:14 spinner is null... I just ran the debugger... Jul 04 03:36:05 that is so wierd... I've never had that problem before Jul 04 03:36:26 what's the fragment that gets loaded? Jul 04 03:36:51 i don't see container in your xml Jul 04 03:37:11 fragment_my.xml Jul 04 03:37:33 where do you specify the arch and crosscompile in the android source code? Is that required? Jul 04 03:38:23 g00s: should I be calling something else if I have a second fragment? Jul 04 03:38:26 wouldn't you need a view with id container for that to load? does it load? or is that not your whole activity_my Jul 04 03:39:16 is that xml in your post from activity_my or fragment_my? Jul 04 03:43:02 canvs2321-: I do not know what the answer is to that... I have always used fragments, never this issue. Jul 04 03:43:39 any examples out there on how to do this? Jul 04 03:44:06 well is your spinner in your activity or your fragment? Jul 04 03:44:20 cause you are trying to call it from your activity Jul 04 03:44:28 the spinner is in the fragment Jul 04 03:44:34 there's your problem Jul 04 03:44:43 you need to get the spinner in your fragment Jul 04 03:44:49 where you load fragment_my Jul 04 03:44:50 .xml Jul 04 03:45:28 lol i thought it was in the xml used in setContentView :| Jul 04 03:45:32 same Jul 04 03:45:44 * g00s hits IrishGringo with a large trout Jul 04 03:45:47 til i saw the fragment, and no @id/container in that xml with spinner Jul 04 03:46:57 IrishGringo: you are able to do that error because R.id.spinner02 is a valid resource identifier, but it isn't part of activity_my where you are in your activity. So the code will compile but Runtime error Jul 04 03:47:19 i'm googling it now Jul 04 03:47:48 just do it in your PlaceholderFragment in your onCreateView after you inflate your fragment view Jul 04 03:48:37 Hi, I'm using Android Studio (0.8.0) to go through Google's Android development tutorials. I'm stuck on this error from the IDE "Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1" Jul 04 03:48:54 Ontolog i guess i'd update to 0.8.1 first off Jul 04 03:49:10 and make sure you're using gradle plugin 0.12.1 Jul 04 03:49:11 g00s: i'm using the beta not edge Jul 04 03:49:33 ok besides all that just looking at the error could you decipher that? Jul 04 03:49:33 Ontolog: I was strugling with that today. Jul 04 03:49:41 IrishGringo: oh what did you do? Jul 04 03:49:48 notiing so far Jul 04 03:49:57 apparently my issue si something else Jul 04 03:50:04 yeah that pisses me off too; i wish they would stick to semver Jul 04 03:50:10 it's funny at one point i did get the hello world app to launch, not sure how i screwed things up Jul 04 03:56:35 IrishGringo: oh i think i fixed it, change your compile lines in build.gradle to compile 'com.android.support:appcompat-v7:20.+' and compile 'com.android.support:support-v4:20.+' Jul 04 03:58:40 Ontolog: I'd like to think that issue would be part of AS Jul 04 03:58:49 but I will give it a try Jul 04 03:59:41 still no release notes for support lib 20.0.0 :/ Jul 04 04:00:04 do i really have to grab the sources and diff this myself Jul 04 04:01:18 lol Jul 04 04:01:26 ok when i create a new object of my broadcastreciever public class NetworkChangeReceiver extends BroadcastReceiver it imidiatly calls the onreceieve function why the hell is that Jul 04 04:02:19 and when i try to register it … it doesnt work Jul 04 04:02:28 but if i do everything via the manifest it works fine Jul 04 04:12:29 fucking works i the manifest with intent-filters but not programatically Jul 04 04:12:31 WTF Jul 04 04:22:33 yep when manually registeing network change it fires every few seconds Jul 04 04:23:50 canvs2321-: well, I semi took your advice and did the same project but not using fragments. but I am still confused on how to do this with a frag Jul 04 04:46:39 IrishGringo: you could of kept your code, you were just calling the spinner in your activity, when you should be doing it in your fragment Jul 04 05:21:42 g00s are you there i have a very specific question now that i know a littl ebit about whats going on with the code .. its about threadsafe classe’s Jul 04 05:21:55 ok Jul 04 05:23:30 one moment being as detailed as possible about eveything Jul 04 05:23:42 ;) Jul 04 05:25:02 one sec let me try 1 more thing Jul 04 05:28:44 basically when im inside the intentservice and i try to register/unregister a a reciever with broadcast (and even with package manager enabling disabling the receiver thats in the androidmanifest) when i register it i decided to do it in a singleton (tryed to make it thread safe) and i set private static member so that i can check if it was previously disabled. but when i get broadcast back from the system Jul 04 05:28:45 "connectivy_change it fires of my intent" and the same function over again and i think somehow its getting run multiple times...(only when i tell the reciever to fire up the intentservice again) itll just loop through a few times i know this cause im doing Log.v() inside the reciever and its def firing multiple times. its like Package Manager or the register reciever fires multiple times? Jul 04 05:28:48 i hope this makes sense Jul 04 05:28:59 i wish u could just VNC into my computer and i could show ya Jul 04 05:31:49 i didn't understand that - especially the ending. without code i don't understand Jul 04 05:33:07 hello friends :P Jul 04 05:34:06 basically this first 4-5 times in a row if the receiver calls the service to sttart and the service is what enabled the reciver in the first place Jul 04 05:34:06 07-04 01:32:56.680 31332-31332/com.itcuties.android.apps.itcwebviewexample V/inherei﹕ xx:android.net.conn.CONNECTIVITY_CHANGE Jul 04 05:35:33 sounds like you have a cycle in your event / action code thats causing some kind infinite loop Jul 04 05:35:44 maybe use a state machine instead Jul 04 05:44:47 its a thread issue the object isnt updating fast enough before being called again and hitting the same code or something… Jul 04 05:45:13 basically if i stop the reciever inside the reciever using my singleton it works and only enable the reciever if it detects were offline then were in the clear Jul 04 05:45:17 it only hires once like it should Jul 04 05:46:57 fires* Jul 04 05:48:17 where is the .config hidden on the samsung galaxy 4? cat /proc/config.gz tmp-mksh: cat: /proc/config.gz: No such file or directory? Jul 04 05:52:31 anyone have advice on managing a switch to Android Studio (from Eclipse) with a library project maintained with git? Jul 04 05:52:44 can I expect to have a nice little "moved to android studio" commit or is that wishful thinking? Jul 04 05:53:57 vorsorken hm … i haven't migrated out of eclipse, but i used it before AS. the directory structure (if you use the newer gradle based one) is a bit different so you'll git mv a bunch of stuff probably. you'll also add gradle files, gradle wrapper possibly Jul 04 05:58:14 so I could basically manually modify the structure of the project and import it into AS rather than trying to use some sort of Eclipse project import? Jul 04 05:59:26 vorsorken probably; you can see some templates in gradle-samples-0.11.zip here http://tools.android.com/tech-docs/new-build-system Jul 04 06:00:08 cool thanks Jul 04 06:00:29 I haven't actually used AS yet and this has been one of the major reasons Jul 04 06:00:49 vorsorken you may also just go to AS and create a blank library project; its directory structure is a little different than those in the samples though Jul 04 06:00:57 (for study) Jul 04 06:01:29 i used a template from the samples, and import just fine. AS manages Jul 04 06:06:38 hi all Jul 04 06:07:13 I am able to see the table created and its contents using sqlite browser but how can I see it in adb Jul 04 06:08:07 I am going into /data/data/package name/ and those created table I am not able to enter Jul 04 06:13:15 LayoutTransition: is there a way to let the CHANGE_APPEARING and APPEARING animation run at the same time? now it's serial first CHANGE_APPEARING then APPEARING, i'd like to let the new element slide in from the right in a LinearLayout Jul 04 06:14:30 niru: does adb have root access? Jul 04 06:14:42 canvs2321-, I use su Jul 04 06:14:55 what do you mean you are not able to enter? Jul 04 06:15:15 canvs2321-, If I give select * from Jul 04 06:15:21 It says table does not exist Jul 04 06:15:24 in sqlite> Jul 04 06:15:37 whereas I am able to see the table in sqlite browser Jul 04 06:15:41 so no permission issues, just can't find table? Jul 04 06:15:47 canvs2321-, yes Jul 04 06:16:22 can you pastebin your exact commands, and errors Jul 04 06:16:56 and maybe either the creation of the table and/or a screenshot of the browser showing it Jul 04 06:17:09 canvs2321-, yes Jul 04 06:19:17 http://pastebin.com/jrNh9NTf Jul 04 06:19:29 have a look at that canvs2321- Jul 04 06:20:34 niru: is comments really a table? it looks like a database not a table (select works on tables) Jul 04 06:20:58 rayo, yes its a table and database is comments.db Jul 04 06:21:01 comments seems to be the name of your db, wouldn't main be the table? i'm not sql savy, but that seems like an issue Jul 04 06:21:09 I think I did not go inside the db Jul 04 06:21:25 use comments; select ... doesnt help? Jul 04 06:21:45 i never used sqlite but usually you have to select the database first Jul 04 06:22:04 ^ Jul 04 06:22:04 canvs2321-, rayo I need to select the db first and then work on the table Jul 04 06:22:14 seems so Jul 04 06:23:42 but normally, sqlite does not have a database selection as you open one file which is the selected database. Jul 04 06:24:23 like "sqlite comments.db" and then do the select Jul 04 06:27:14 rayo, yes you are correct Jul 04 06:53:29 heres one for you guys .. alarmanager doesnt work in airplane mode Jul 04 06:53:59 really? Jul 04 06:54:31 yea for real Jul 04 06:55:16 ///c/uirt Jul 04 07:07:05 nvm im retarted Jul 04 07:22:09 Is there a way to suppress SearchView search suggestions? I've tried with dismissSuggestion() from the SearchView, no luck. Jul 04 07:26:04 hi, I'm trying to run android unit tests from android-studio, on an android library project, and it's complaining. What exactly do I need to do? Jul 04 07:27:33 Hi guys Jul 04 07:27:57 Hello friend Jul 04 07:29:19 I've linked my analytics to my app on the google play. So, from analytics I can see my app installs, but I'd like to see how people find my app on google play and how many people have seen my app on google play, even if they don't installed it. Is this possible? Any idea? :/ Jul 04 07:29:33 sorry for my broken english u_u Jul 04 07:38:43 Sepho: Ive never used analytics personally Jul 04 07:38:54 The only thing Ive actually used the play services for is admob Jul 04 07:41:24 Sepho, I think you need to check the analytics thread - your app itself won't see a thing, it's a google play store analytics page you should be looking for I think Jul 04 07:44:08 just a small help Jul 04 07:44:23 I tried the osmandroid tutorial Jul 04 07:44:27 to get a map Jul 04 07:44:44 I have used all the required libraries asked in the site Jul 04 07:44:50 but I am getting error as import org.osmdroid.views.MapView Jul 04 07:45:20 I have imported the libraries for slf4j and osmdroid java doc etc Jul 04 07:45:28 can someone help in Jul 04 07:45:51 http://www.haakseth.com/?p=30 Jul 04 07:47:56 Hi with FTPListParseEngine.getNext is possible filter the file for to obtain for example a list of file with extension .jpg? Jul 04 07:50:33 I want to draw part of a circle like in this image: http://developer.lge.com/MOBILE_HELP/topic/lge.mobilesdk.LGQCircle.api/html/Developing/Resources/Images/0300000A.png How do I do that in android without photoshop? Jul 04 07:51:52 yoavst: SurfaceView or Canvas Jul 04 07:52:27 Is there a simple way with drawable Jul 04 07:53:13 dont think so Jul 04 07:53:30 :/ Jul 04 07:53:48 danijoo: you can help me Jul 04 07:53:50 I guess you want it dynamic? Being able to set different strings for "Bliss" etc? Jul 04 07:54:12 maybe Alfreda Jul 04 07:56:08 danijoo: i want read a file txt from a ftp server Jul 04 07:56:16 i'm able to connect to my ftp server Jul 04 07:56:29 ftp.photogiuseppe.altervista.org/photo Jul 04 07:56:36 and i want open Nomi.txt for readLine Jul 04 07:56:59 Does anyone know if google play revenue counts cancelled orders? Jul 04 07:57:35 BigBawb: yep. You see cancelled, successful and pending orders in a list Jul 04 07:57:50 ft=file.getName(); f.retrieveFile(url_ftp+"\\photo\\"+ft, fos); Jul 04 07:57:57 and after how open this file? Jul 04 07:58:45 https://www.google.de/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=java%20read%20file%20content Jul 04 07:59:14 danijoo: http://stackoverflow.com/questions/2834758/java-read-file-from-ftp-but-dont-download-it-whole Jul 04 07:59:32 have you done that? Jul 04 07:59:48 So I should expect a portion of the revenue claimed in the google play revenue statistics Jul 04 07:59:58 as some of those orders were cancelled Jul 04 08:00:00 danijoo: i try Jul 04 08:00:03 is correct? Jul 04 08:00:08 try it. Jul 04 08:00:12 then you see Jul 04 08:00:46 BigBawb: Oh thats what you mean. I think they are substracted by google as soon as they are cancelled Jul 04 08:01:09 :P thank you friend Jul 04 08:01:18 yw Jul 04 08:14:26 which ui lib does android-studio use? i have some trouble, non of the text in the ui gets displayed. Jul 04 08:15:02 i have problem with my code: http://pastebin.com/krk4BVZW, why dont work if condition? Jul 04 08:15:55 is it the ,? Jul 04 08:16:04 nvm Jul 04 08:16:41 Alfreda: you cant use == to compare strings. Use equals() Jul 04 08:16:52 ah Jul 04 08:17:02 i tinked that was like C++ Jul 04 08:17:25 in java == is only for primitives, for objects you have to use equals because == works on reference level Jul 04 08:18:01 no operator overloading Jul 04 08:19:23 danijoo: file.getName().substring(file.getName().length()-3,file.getName().length()).equals("jpg") ? Jul 04 08:19:35 danijoo, any help on my doubt Jul 04 08:19:43 that may work Alfreda Jul 04 08:20:11 whats your prob niru? Jul 04 08:20:41 danijoo, I was trying to get the map on my emulator. I followed the osmdroid way Jul 04 08:21:02 As per the steps I imported all the library jars Jul 04 08:21:58 but I am getting error as E/AndroidRuntime(24655): java.lang.NoClassDefFoundError: org.osmdroid.views.MapView Jul 04 08:22:10 no experience with maps or this library. sorry :/ Jul 04 08:22:13 http://www.haakseth.com/?p=30 Jul 04 08:22:31 dont they have a gradle repo? Jul 04 08:33:51 Hey. Jul 04 08:41:58 £ Jul 04 08:42:30 danijoo: i have another problem with my code: http://pastebin.com/hUzNRHCv Jul 04 08:42:30 Oops. Jul 04 08:42:39 i dont view nothing in nomi Jul 04 08:43:46 That's some wacky tabbing you have there. Jul 04 08:43:51 Hey, I'm implementing a ViewPager adapting a FragmentPagerAdapter. Works fine but it doesn't show the tabs. Some ideas? Jul 04 08:44:19 I cant help debugging code that isnt shown complete Jul 04 08:44:38 gdrc: ViewPager does not auto-show tabs Jul 04 08:44:58 Its just responsible for the view where the fragments are in. You must create your tabs on your own Jul 04 08:45:29 :-( Jul 04 08:45:57 Its not that hard though Jul 04 08:46:29 you could also use JakeWhartons epic library for that :) Jul 04 08:47:41 i have another problem with my code: http://pastebin.com/hUzNRHCv, i view correctly filename in ft (FTPCLIENT object) but after in nomi (List nomi = new ArrayList();) i dont view nothing Jul 04 08:47:42 I think I will use PagerTitleStrip :) thanks Jul 04 08:49:11 Alfreda: use a debugger Jul 04 08:49:17 i'm already do Jul 04 08:49:21 and nomi is empty Jul 04 08:49:28 and check if reader.readLine() actually outputs any file content Jul 04 08:50:13 nomi.add(reader.readLine()); is a boolean Jul 04 08:51:13 how read from reader.readLine()?? Jul 04 08:51:44 thats not true. readLine() returns a String, not a boolean Jul 04 08:58:26 danijoo, any idea who will be working on maps or any channel for opensource maps discussion Jul 04 08:58:45 nope sorry Jul 04 08:58:58 danijoo, ok no problem thanks :) Jul 04 08:59:33 danijoo: did you use viewpagerindicator on gradle? I think it wont work becouse apklib Jul 04 09:02:12 gdrc: the official wont work :) but someone created a gradle repo Jul 04 09:03:22 dependency {compile 'com.viewpagerindicator:library:2.4.1@aar'} Jul 04 09:03:43 but you have to add this maven repo first: maven { url "http://dl.bintray.com/populov/maven" } Jul 04 09:04:02 to your external build.gradle, not the module one. this is important Jul 04 09:06:54 can anyone help me with google play services Jul 04 09:06:57 I am using eclipse Jul 04 09:07:06 I've spend the past 2 hours trying to get this working Jul 04 09:08:20 I am trying to use this method Jul 04 09:08:21 GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(this) Jul 04 09:08:21 .addApi(Drive.API) Jul 04 09:08:21 .addScope(Drive.SCOPE_FILE) Jul 04 09:08:21 .build(); Jul 04 09:08:39 but I can't seem to get GoogleApiClient to show up Jul 04 09:08:45 as in be able to import it Jul 04 09:09:12 Hi http://pastebin.com/YFRQYKnG <-- i have error when my app execute: reader = new BufferedReader(new InputStreamReader(stream, "UTF-8")); Jul 04 09:09:17 crash app Jul 04 09:09:56 some tips? Jul 04 09:11:18 danijoo: compile 'org.quanqi:android-view-pager-indicator:0.9.0' works without issues Jul 04 09:11:39 <--my logcat Jul 04 09:11:41 http://pastebin.com/7DKxWmY7 Jul 04 09:13:37 danijoo: ? Jul 04 09:13:39 dazpetty: ? Jul 04 09:14:03 dont be impatient if you want help. Jul 04 09:14:20 hey Jul 04 09:14:22 You have a nullpointer when init the reader Jul 04 09:14:38 so stream may be null ? Dunno. Jul 04 09:15:37 no Jul 04 09:15:41 stream not null Jul 04 09:15:44 it read from a file Jul 04 09:15:46 with 3 line Jul 04 09:16:48 with debug stream is null Jul 04 09:16:52 but is impossible! Jul 04 09:18:01 I should make some method .O_o() Jul 04 09:20:22 i made 3 button sample app. why its 7MB ? Jul 04 09:20:38 many big games in play store are 6MB Jul 04 09:20:59 Alfreda: check the value of ft after line 31 Jul 04 09:21:01 Did you use three 3MB images for your buttons? Jul 04 09:21:06 if its set to what you want it to be Jul 04 09:21:22 no image Jul 04 09:21:30 grey buttons Jul 04 09:21:50 nobody uses eclipse in play store ? Jul 04 09:22:18 GZ^Zff: you've done something strange Jul 04 09:23:25 why so many .jar files ? Jul 04 09:23:33 its using j2me ? Jul 04 09:23:38 Estel: Dont feed! Jul 04 09:23:58 danijoo: Oh yeah, I forgot from yesterday >_> Jul 04 09:24:05 ^^' Jul 04 09:24:16 .apk is main executable like .exe ? Jul 04 09:28:01 i want to make nice ap p Jul 04 09:28:13 can i see ur screen ? Jul 04 09:29:52 where is real android programming channel ? Jul 04 09:30:25 GZ^Zff: You dismissed yourself long ago.. Jul 04 09:30:53 ? Jul 04 09:33:11 danijoo: ft is correct Jul 04 09:33:14 Nome.txt Jul 04 09:34:09 i must put complete url? Jul 04 09:34:26 Oh lol. Jul 04 09:34:27 yeah Jul 04 09:34:30 sure you must Jul 04 09:34:45 how should InputStream know where your txt lies if you dont Jul 04 09:35:01 im making dictionary Jul 04 09:35:12 danijoo: ok Jul 04 09:35:18 where to put the dqlite db file ? Jul 04 09:35:23 in assets or resourcecs Jul 04 09:35:23 but i dont think this will work Jul 04 09:35:27 or anywhre Jul 04 09:35:31 danijoo: InputStream stream = f.retrieveFileStream(url_ftp + "\\photo\\"+ft); Jul 04 09:35:44 Alfreda: Doesnt your ftp require password and stuff? Jul 04 09:35:55 yes i have already set Jul 04 09:36:12 f.connect(url_ftp); f.login(username,password ); Jul 04 09:36:14 in precedently Jul 04 09:36:19 mh i should just shut up. to be honest I have no experience with FTPClient so i cant really help you. Jul 04 09:36:35 but this is a file problem Jul 04 09:36:43 now i have stream still NULL :( Jul 04 09:37:18 No its an FTPClient problem because ftpClient.retrieveInoputStream seems to not do what you want (as strream is null). But I dont know where the problem with this is Jul 04 09:38:16 public InputStream retrieveFileStream(String remote) Jul 04 09:38:26 Returns: An InputStream from which the remote file can be read. If the data connection cannot be opened (e.g., the file does not exist), null is returned (in which case you may check the reply code to determine the exact reason for failure). Jul 04 09:38:50 in your case null is returned, so have you checked the reply code? Jul 04 09:39:35 danijoo: how i must insert complete url? Jul 04 09:39:45 ftp://ftp.photogiuseppe.altervista.org/photo/Nomi.txt Jul 04 09:39:49 Im not sure if you need full url Jul 04 09:39:59 maybe name is sufficent as you are using an ftpclient method. Jul 04 09:40:06 danijoo: String path=url_ftp + "/photo/"+ft; Jul 04 09:40:06 check the returncodee Jul 04 09:40:10 is correct? Jul 04 09:40:16 check the returncode Jul 04 09:40:26 it will tell you whats wrong Jul 04 09:40:30 of this? Jul 04 09:40:35 which? Jul 04 09:41:00 read what i've posted from the documentation of FTPClient Jul 04 09:42:08 danijoo: connect to FTP is correct because i already take Image in a dir Jul 04 09:42:40 after now i want add Jul 04 09:42:43 read a file Jul 04 09:42:47 from a server Jul 04 09:43:57 it tells you to check the reply code if the retrieving of a file fails. Jul 04 09:44:10 so do it. Jul 04 09:44:17 which instruction Jul 04 09:44:18 ? Jul 04 09:44:24 the one i posted Jul 04 09:44:46 from documentation of Apache FTPClient Jul 04 09:44:51 InputStream stream = f.retrieveFileStream(ft);?? Jul 04 09:44:59 this? Jul 04 09:45:35 the instrctions for f.retrieveFileStreams says you should check FTPClients reply code if its fails (=is Null) Jul 04 09:48:59 danijoo: no Jul 04 09:49:02 is impossible Jul 04 09:49:10 why i view image on this ftp server Jul 04 09:49:16 ftp connection is ok! Jul 04 09:49:27 ok. If you dint want help, i wont help. Jul 04 09:51:24 danijoo: you are idiot? Jul 04 09:51:52 ah, this idiot again Jul 04 09:51:59 yes Leeds q.q Jul 04 09:53:07 and he always tricks me into trying to help.. Jul 04 09:53:39 Alfreda No need to be abusive. danijoo has offered advice, if he is confused then you havent described your issue well enough Jul 04 09:55:24 one last try: Everytime you do an action with FTPClient, ftp will return a reply code like "file not found", "failed to open file because of reason XYZ". If you do recieveInputStream and it returns null, there is obviously something wrong Jul 04 09:55:38 so check the reply code of your FTPClient to see what is wrong Jul 04 09:56:45 danijoo: excuse me danjoo Jul 04 09:56:57 I told you to do so like 3 times and all you respond is "no my file is there!" (which isnt a garant that it is able to be opened) and then insult me. Jul 04 09:57:22 danijoo: how i view this code? Jul 04 09:57:36 what code? Jul 04 09:57:44 reply code Jul 04 09:57:56 read the documentation of FTPClient Jul 04 09:58:12 it tells you how. And it has examples Jul 04 09:59:13 where is document? Jul 04 10:00:17 on the page where you downloaded your ftp client Jul 04 10:00:56 danijoo: ???? Jul 04 10:01:47 dont you downloaded some jar that provides you with FTP classes? Dont know if its build into android.. Jul 04 10:02:28 Can there be a problem with registering on click listeners when changing visiblity Jul 04 10:03:13 danijoo save your breath. Alfreda has posted on SO Jul 04 10:03:16 danijoo: no Jul 04 10:03:34 Alfreda: I guess its apache commons FTP Client Jul 04 10:03:44 you should find a documentation when googleing for it Jul 04 10:03:56 EdGeorge: ok :) Jul 04 10:04:07 danijoo: ok Jul 04 10:10:31 danijoo: i dont find documentation Jul 04 10:10:33 Alfreda you create a reader and close it immediately... Jul 04 10:11:11 guys, when device is locked Can I continue to send some info via 3G every 3/5 minutes? Jul 04 10:11:34 Alfreda you dont actually read from the reader! Jul 04 10:12:12 hello Jul 04 10:12:19 EdGeorge: REply code is 230 Jul 04 10:12:19 EdGeorge: If I remember right, he is getting a NullPointer on line 34 (which is now commented out) Jul 04 10:12:54 He wants to receive the content of the file he gets over ftp with the FTPClient Jul 04 10:13:44 Alfreda - USER_LOGGED_IN is the code returned Jul 04 10:15:15 EdGeorge: ? Jul 04 10:15:43 what is USER_LOGGED_IN? Jul 04 10:16:07 Alfreda The code returned to you Jul 04 10:16:12 can i update win7 eclipse adt " adt-bundle-windows-x86_64-20140321.zip " using trash in adt-bundle-linux-x86_64-20140624.zip ? Jul 04 10:16:15 Alfreda The 230 Jul 04 10:16:18 eh Jul 04 10:16:20 230 yes Jul 04 10:16:21 and so? Jul 04 10:16:24 downloaded adt-bundle-linux-x86_64-20140624.zip by mistake Jul 04 10:16:52 linux trash Jul 04 10:16:54 EdGeorge So what? the code just states you have logged in correctly, meaning your problem is elsewhere Jul 04 10:18:11 also got the 100MB windows7 ADT-23.0.0.zip Jul 04 10:18:16 EdGeorge: eh Jul 04 10:18:19 but its not updating adt-bundle-windows-x86_64-20140321.zip Jul 04 10:18:26 you can help me? Jul 04 10:18:30 Reply code is 230! and when i run this: InputStream stream = f.retrieveFileStream(/*url_ftp + "/photo/"+ft*/ft); i view null and i have crash app! when i run next instruction reader = new BufferedReader(new InputStreamReader(stream, "UTF-8")); Jul 04 10:18:33 i can help u Jul 04 10:19:12 GZ^Zff: http://stackoverflow.com/questions/24571571/read-a-file-from-a-ftp-server-but-inputstream-is-always-null?noredirect=1#comment38061139_24571571 Jul 04 10:20:34 that java Jul 04 10:20:51 what photo u get in android adt 2D layout ? Jul 04 10:20:53 eclipse adt Jul 04 10:21:24 the last version Jul 04 10:22:38 * danijoo leans back and grabs some popcorn. Jul 04 10:22:55 adt is garbage Jul 04 10:23:15 i get platinum studio Jul 04 10:23:24 GZ^Zff: not important this Jul 04 10:23:27 for my problem Jul 04 10:25:16 EdGeorge: you can help me? Jul 04 10:25:58 go update adt Jul 04 10:26:13 get the 4 july version Jul 04 10:26:27 Alfreda I have tried. Jul 04 10:27:51 EdGeorge: you dont know? Jul 04 10:28:44 :P Jul 04 10:30:13 I have a fun question, I read a lot of stuff on the internet that you should live in constant fear of getting your dev account banned from google play. Is it really that easy to get banned? Jul 04 10:30:58 EdGeorge: Alfreda you create a reader and close it immediately. <--say you but stream=null and when i run reader = new BufferedReader(new InputStreamReader(stream, "UTF-8")); i have crash app! Jul 04 10:31:08 i close reader after Jul 04 10:31:15 you undstand? Jul 04 10:31:45 infact i have add while( (line = reader.readLine()) != null ){ nomi.add( line ); } after reader=new.... and i have crash also! Jul 04 10:41:47 * EdGeorge watched Alfreda post his FTP details online Jul 04 10:42:31 You might want to remove that comment Alfreda Jul 04 10:43:08 what? Jul 04 10:44:06 Alfreda you just posted your FTP details on SO! 0_o Jul 04 10:44:35 in your post Jul 04 10:44:37 on stack overflow Jul 04 10:44:43 the comment has your details friend Jul 04 10:45:03 lol Jul 04 10:45:12 but i dont resolve nothing! Jul 04 10:50:12 EdGeorge: you know why stream is null always? Jul 04 10:53:40 after InputStream stream = f.retrieveFileStream(/*url_ftp + "/photo/"+ft*/ft); Reply code is 550 Jul 04 10:54:31 +ft*/ft ??? Jul 04 10:54:57 yes Jul 04 10:55:12 what does it mean? (I'm not a java pro) Jul 04 10:55:21 is commented Jul 04 10:55:22 Alfreda 530 means file not found or no access Jul 04 10:55:28 impossible Jul 04 10:55:32 hence why it is null Jul 04 10:55:35 is in directory/photo Jul 04 10:55:44 Alfreda well clearly not... Jul 04 10:55:55 and how to resolve? Jul 04 10:56:12 oh,didn't see the beginning /* Jul 04 10:56:16 what's ft? Jul 04 10:56:40 helicopter88: InputStream stream = f.retrieveFileStream(/*url_ftp + "/photo/"+ft*/ft); Jul 04 10:56:42 helicopter88 refer to Alfreda's post in SO: http://stackoverflow.com/questions/24571571/read-a-file-from-a-ftp-server-but-inputstream-is-always-null?noredirect=1#comment38061139_24571571 Jul 04 10:57:30 EdGeorge: i must insert "/photo/"+ft ? Jul 04 10:58:03 Alfreda yes I believe so Jul 04 10:58:09 probably yes Jul 04 11:00:14 Alfreda no offence, but reading the Docs or tutorials would have likely have answered this for you a while ago. Jul 04 11:00:57 Alfreda and I am pretty sure this should be on ##java as this isn't Android specific Jul 04 11:02:14 EdGeorge: i've resolved :D Jul 04 11:03:15 thanks to all Jul 04 11:03:16 :D Jul 04 11:06:56 EdGeorge, or anybody here who can help me with getting a map on my emulator? Jul 04 11:07:29 I tried for sometime now but I am not able to get a openstreet map on my emulator Jul 04 11:07:38 http://www.haakseth.com/?p=30 Jul 04 11:09:15 The error is here http://pastebin.com/f8Be7WrG Jul 04 11:09:44 I have imported all the necessary libraries mentioned in the site Jul 04 11:13:33 geez Jul 04 11:13:38 thats a pretty obscure name Jul 04 11:14:37 niru have you put the jar files in the libs folder? Jul 04 11:16:02 EdGeorge, I did right click-> Build Path->Add to build path the jars present in the project directory and those directly moved to Referenced Library folder Jul 04 11:16:21 niru 3rd party .jar files go in a folder named libs below the project folder, else you get Class not found runtime errors. Jul 04 11:16:25 My libs folder only contains android-support-v4.jar Jul 04 11:16:47 niru place the jars in with android-support Jul 04 11:18:59 Now I placed them in libs folder Jul 04 11:19:06 let me try running it Jul 04 11:19:55 EdGeorge, I think the emulator is doing something now :) Jul 04 11:19:59 No errors yet Jul 04 11:20:17 EdGeorge, its saying sdcard state:mounted Jul 04 11:20:43 but no display yet Jul 04 11:22:38 EdGeorge, does it take a long time to load the map first time? Jul 04 11:27:33 has anyone here got experiance with google game services? Jul 04 11:27:37 I'm trying to get it to work Jul 04 11:27:42 http://pastebin.com/0EwSnd6H Jul 04 11:32:51 which class/service can I use to raise/lower the ringtone level? Jul 04 11:40:46 Hello, I got a problem with getting a local HTML file into the webview, the relevant code snippet is this: http://pastebin.com/rem0T3Yr The Html file works fine hosting it on a server, running it as pure html file and opening in a browser, and the web-browser in eclipse can open it. I vertified that the path is correct, because I was able to show the file when it was just

Can you see me?

So I am wondering how do I show a local html file with javascript, is there anything else I must do before it works ? Jul 04 11:41:35 Hey, I have a eclipse project is is possible to compile it without eclipse? I have the android SDK and NDK on the machine Jul 04 11:41:39 mihalybak, doesnt AudioManager do that? Jul 04 11:45:06 niru: I can only find adjustVolume there and no way to get the current level Jul 04 11:53:29 y getting gradle1.12_all if 2.0 is new ?? Jul 04 11:53:39 what idiot gradle stuck there ?? Jul 04 11:53:52 hwo skipp gradle trash ?? Jul 04 11:54:18 y no % progress Jul 04 11:54:24 n y progress moving backwrds Jul 04 11:54:33 idiot gradle uploadin my PC to internet? Jul 04 12:02:42 How to separate the last char after \t from a string ? Jul 04 12:04:45 \t = spacebar+spacebar+spacebar+spacebar+spacebar+spacebar ? Jul 04 12:10:32 no, \t = tab Jul 04 12:12:17 hwo to use adnroid studio ? Jul 04 12:12:31 who is gradle idiot ? Jul 04 12:12:36 GZ^Zff: no Jul 04 12:12:42 cant make new projct without gradle trash ? Jul 04 12:12:54 Alfreda, I don't see what the problem is? Find tab, get next char? Jul 04 12:13:00 i have a string how: 001 HelloWorld Jul 04 12:13:15 also, to find the char after a \t in a string you could use regex with a pattern like (?<=\t). Jul 04 12:13:27 Mavrik: dont exist a function for to have only Helloworld? Jul 04 12:13:38 c++ is better Jul 04 12:13:54 Alfreda, what function? what are you talking about_ Jul 04 12:14:09 who said java android r better ? Jul 04 12:14:11 and who gives a flying fuck if C++ is better, do you want help or not? or are you trolling? Jul 04 12:14:17 no no Jul 04 12:14:19 :) Jul 04 12:14:20 What? In what world is c++ "better" in terms of ease of handling strings? Jul 04 12:14:28 for me sure Jul 04 12:14:38 eclipse is assembly lang and studio is machine level Jul 04 12:14:41 GZ^Zff: gradle rules. Jul 04 12:14:46 Mavrik: i must use which function? Jul 04 12:14:47 Alfreda, you can easily also do string.split('\t') Jul 04 12:14:47 ?? Jul 04 12:14:53 that'll split your string on tab boundaries Jul 04 12:14:54 idiot gradle rules my pc ?? Jul 04 12:15:02 i kill that idiot from task manager Jul 04 12:15:03 Mavrik: some c++ Jul 04 12:15:09 same name! Jul 04 12:15:14 Thorbear, shh. Jul 04 12:15:28 cant use android studio without 100GB gradle download forever ? Jul 04 12:15:29 developers of root apps: please check (and star) this issue regarding Android L: https://code.google.com/p/android-developer-preview/issues/detail?id=531 Jul 04 12:15:51 Mavrik: What did I say wrong? :( Jul 04 12:16:22 EPG, I doubt Android team will look twice at anything root related Jul 04 12:16:43 especially if it messes with the security systme Jul 04 12:17:22 Mavrik, tbh, I doubt this too. But I think it's also at least a bit in their interest (e.g., wrt to TiBu and other top-selling root apps on Google Play) Jul 04 12:17:28 download what to make new project ? gradle-2.0-bin.zip (binaries only) OR gradle-2.0-src.zip (sources only) ? Jul 04 12:17:31 both ? Jul 04 12:18:00 and y idiot studio stuck at 1.12 when 2.0 is latest ? Jul 04 12:18:10 EPG, hmm, even though that does look like a bug in package manager Jul 04 12:18:17 or at least undesired behaviour Jul 04 12:19:17 * Now talking in ##androidstudio Jul 04 12:19:43 good - stay there Jul 04 12:22:55 Hello, I got a problem with getting a local HTML file into the webview, the relevant code snippet is this: http://pastebin.com/rem0T3Yr The Html file works fine hosting it on a server, running it as pure html file and opening in a browser, and the web-browser in eclipse can open it. I vertified that the path is correct, because I was able to show the file when it was just

Can you see me?

So I am wondering how do I show a local html file with javascript, is there anything else I must do before it works ? Jul 04 12:24:03 copy-pasting stuff usually isn't a good etiquiette. Jul 04 12:24:13 also, WebView has javascript disabled by default. Jul 04 12:24:38 its enabled as you can see in the snippet Jul 04 12:24:53 yes goto ##pastebin Jul 04 12:25:16 huehue142: I fail to see any description of the problem, what exactly goes wrong when trying to load the html file? Jul 04 12:25:25 the webview is empty Jul 04 12:25:31 it is literally nothing in it Jul 04 12:26:20 completly empty, however just testing a simple html file works, and the file I placed in assets work in a regular browser no problem, so I wonder if I am missing some parameters to the webview Jul 04 12:28:48 hi all, anyone have any expereince writing a socket server for android and allowing inbound connections from cellular network connections? Jul 04 12:29:08 hack gsm tower ? Jul 04 12:29:18 + hosted on cellular network connection. ex, if I had the ip of my phone, could I serve up static web pages? Jul 04 12:32:09 anyone uses IntelliJ here? i just installed it on my PC desktop... for some reason the fonts are a bit different compare to the same version i'm using on my mac book for some reason Jul 04 12:32:14 on the mac, the fonts are thicker or something... Jul 04 12:32:19 or maybe it's 'cuz my desktop's resolution is higher so the text are thinner/smaller :\ Jul 04 12:32:25 anyone have any idea? Jul 04 12:33:24 Hi folks, short question: Have installed Ubuntu 14.04 Desktop…Have installed Android SDK Tools for Linux, node.js etc…But now when I try to execute „android“, the following error occurs: „Exception in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]“ … Is it inevitable to install Eclipse SWT? Jul 04 12:34:28 i want to ask something Jul 04 12:34:52 i have one activity which handles 5 fragments Jul 04 12:35:08 i have a hashmap in order to avoid fragment recreation Jul 04 12:35:46 anyone have experience writing dht trackers w/ android? Jul 04 12:36:26 despite the fact that i don't create a new fragment (see it on debug) i see onCreate and onCreateView messages Jul 04 12:36:34 why this happens? Jul 04 12:36:44 how can i avoid this? Jul 04 12:45:18 ThKo, no, but it seems you have a java-related issue Jul 04 12:46:11 Mavrik: It’s crazy…Now I’ve installed eclipse with apt-get install eclipse and now android: command not found....... Jul 04 12:46:25 hi in this code on http://developer.android.com/guide/topics/ui/layout/gridview.html gridview.setOnItemClickListener(new OnItemClickListener() { Jul 04 12:46:25 public void onItemClick(AdapterView parent, View v, int position, long id) { Jul 04 12:46:25 Toast.makeText(HelloGridView.this, "" + position, Toast.LENGTH_SHORT).show(); Jul 04 12:46:25 } Jul 04 12:46:25 }); Jul 04 12:46:56 what mean in setOnItemClickListener(new OnItemClickListener() { eccc... Jul 04 12:47:09 why there is a function in a argument??? Jul 04 12:47:50 i dont undstand this code Jul 04 12:47:56 i'm learning... Jul 04 12:50:15 ThKo, that's because eclipse has nothing to do with it -_- Jul 04 12:50:27 Alfreda, google "java anonymous classes" Jul 04 12:50:42 Mavrik: But I don’t understand that executing before returns an error and exetuting now returns „command not found" Jul 04 12:52:22 In my .profile file is following implemented: export ANDROID_SDK_HOME="/usr/local/android-sdk-linux" … export PATH="$PATH:$ANDROID_SDK_HOME/tools" … export PATH="$PATH:$ANDROID_SDK_HOME/platform-tools" Jul 04 12:52:27 without „…“ ;D Jul 04 12:54:04 ThKo: ls /usr/local/android-sdk-linux/platform-tools Jul 04 12:54:57 sigv: Strange…Theres no folder named platform-tools, only add-ons, platforms, tools Jul 04 12:55:12 * sigv smiles Jul 04 12:55:18 ThKo: there's your issue. Jul 04 12:55:22 :D Jul 04 12:55:26 is there anyway to make the webview use chrome ? Jul 04 12:55:41 ThKo: probably simpler just to grab the eclipse+sdk bundle. Jul 04 12:55:48 huehue142: pardon? Jul 04 12:55:49 hey guys, i have a few pages implemented with PagerAdapter and wonder how i can make it possible that the pages are only within a certain space of my app and not take the whole screen? any hints? Jul 04 12:56:11 huehue142: I think it already uses the chromeengine Jul 04 12:56:18 sigv: sudo apt-get install android-tools-adb android-tools-fastboot this command? Sorry I’m new in using this :-) Jul 04 12:56:39 I can open my page using chrome perfectly, but not in a webview in the app Jul 04 12:56:39 :S Jul 04 12:56:50 danijoo: well afaik chrome uses chromium and that uses webkit. Jul 04 12:56:55 "The WebView shipped with Android 4.4 (KitKat) is based on the same code as Chrome for Android version 30. " Jul 04 12:57:03 huehue142: what exactly is the error/problem? Jul 04 12:57:14 huehue142: like, how does it "not open"? Jul 04 12:57:23 The application gives no error, however the webview is completly blank Jul 04 12:57:33 I mean, if there’s a apt-get command for installing Android SDK AND everything what I need for building apk from command line, I would have it :) :D Jul 04 12:57:36 does other sites work? Jul 04 12:57:40 yes Jul 04 12:57:46 anybody successfully install luna? Jul 04 12:57:46 ThKo: that should do it. Jul 04 12:57:53 jamesson: eos luna? Jul 04 12:57:56 but not the locally stored file once I copy inn the full version Jul 04 12:58:13 displaying a simple html file worked flawlessy but when doing the whole page (which chromes loads perfectly) it cannot Jul 04 12:58:20 I have enabled both DOM and js Jul 04 12:58:58 sigv: Installed with the command above, but no folder platform-toosl Jul 04 12:59:15 ThKo: that won't give you platform-tools. that will install the two binaries. Jul 04 12:59:23 ThKo: adb and fastboot. Jul 04 12:59:25 sigv: eclipse Jul 04 12:59:48 jamesson: oh, nevermind. don't really use eclipse myself so i'm out of the loop regarding their release names. :) Jul 04 12:59:53 sigv: ah ok, and last question: How to get platform-tools? I thought these are in the package I’ve downloaded from google Jul 04 13:00:12 ThKo: they are in the sdk bundles. wonder what you downloaded. Jul 04 13:00:40 sigv: I can tell you..Downloaded http://dl.google.com/android/android-sdk_r23-linux.tgz Jul 04 13:00:41 This Jul 04 13:00:47 ThKo: but if you are starting out, adb + fastboot should be enough for you anyway. :) Jul 04 13:01:42 ThKo: http://developer.android.com/sdk/index.html#download Jul 04 13:01:44 sigv: Thanks, at the moment I’m a little bit overwhelmed. Jul 04 13:02:00 sigv: Yep, have downloaded SDK tools only Jul 04 13:02:10 sigv: But you think I’ve to download ADT Bundle? Jul 04 13:02:40 ThKo: it's helpful. if you have plain eclipse, you pretty much will need to manually add the adt plugin anyway. Jul 04 13:03:25 huehue142: anyway, if the same code works for other sites, then i would blame the site that is not working. what are the differences? Jul 04 13:04:04 sigv: Ok, also deleting android-sdk-tools and downloading adt bundle and install this? Jul 04 13:04:32 Hello, when i start a intent with "intent.setAction(Intent.ACTION_GET_CONTENT);" i get in the result the path "/documents/image%3A9112 . but i need a filename with extension. how can i get this? Jul 04 13:04:35 ThKo: i would suggest you to just delete what you have downloaded, downloading the full adt bundle and unpacking that, so yeah. Jul 04 13:04:49 sigv: Thanks, I’ll try it ;) Jul 04 13:07:40 sigv: Other question: apt-get install openjdk-7-jre openjdk-7-jdk is ok for developing? Jul 04 13:08:17 ThKo: i hear oracle's stuff is preferred due to speed and whatnot, but it should work fine. Jul 04 13:08:28 Ok for testing it’s ok then Jul 04 13:08:37 ThKo: if stuff builds, it's all fine. xD Jul 04 13:08:46 sigv: Totally aggree :D :D :D Jul 04 13:09:14 Soooo, downloaded ADT bundle, untar and then let’s have a look :D Jul 04 13:09:34 ./adt/eclipse/eclipse for the eclipse binary. Jul 04 13:09:39 ThKo: ^ Jul 04 13:09:47 Ok Jul 04 13:10:43 good morning Jul 04 13:11:03 its anyone free I want to ask Jul 04 13:11:15 sigv: Sorry I’m really annoying and stupid…Have downloaded adt, unzip (all via SSH), What’s the best folder for it? usr/local/? Jul 04 13:11:21 how to get the context of contentprovider Jul 04 13:11:42 ThKo: doesn't really matter as far as i am concerned. Jul 04 13:12:01 ThKo: store it in ~ if you want. Jul 04 13:12:07 Ok Jul 04 13:12:10 ThKo: just add the PATHs... Jul 04 13:12:19 Into ~/.profile, right? Jul 04 13:12:42 ThKo: ~/.bashrc, but yeah, why not. Jul 04 13:13:01 scalex000: http://developer.android.com/reference/android/content/ContentProvider.html Jul 04 13:13:26 i create the extends class Jul 04 13:13:52 let me paste the code I dont understand Jul 04 13:14:12 * sigv twiddles thumbs while he waits for a hastebin Jul 04 13:14:42 anyone else experience gradle imports taking....for ever Jul 04 13:15:07 Ok, have moved to ~/adt/ … In /adt/ now I’ve got folder „eclipse“ and „adt" Jul 04 13:15:34 And now I’ve to put the pathes to platform-tools and tools into ./profile? Jul 04 13:15:36 ThKo: i would have assumed you would have /eclipse and /sdk but yeah... Jul 04 13:15:36 >2014 Jul 04 13:15:39 >using Eclipse Jul 04 13:15:41 pick one Jul 04 13:16:02 kakazza: one can do both. it shouldn't be a thing to start an argument about. Jul 04 13:16:07 sdk i mean, yes ;) Sorry, confused Jul 04 13:16:27 sigv: Then again, he seems like he's a beginner, so imo he should start with Android Studio right away. Jul 04 13:16:28 http://pastebin.com/7n4799Mu Jul 04 13:16:44 I put # in the part I dont understand Jul 04 13:17:07 ThKo: you probably want to have /eclipse in PATH for the eclipse binary and /sdk/platform-tools and others there for the SDK binaries Jul 04 13:17:15 well, my problem is to start the service outside the contentprovider Jul 04 13:17:25 kakazza: hmm Jul 04 13:17:30 I dont know hot to get the context Jul 04 13:17:34 ThKo: have a look at http://developer.android.com/sdk/installing/studio.html Jul 04 13:18:09 ThKo: android studio's considered to be in "beta", but it's pretty nice and stable. might want to have a look at that instead. Jul 04 13:18:47 I've been using AS in production since 0.4.x, never looked back and I consider it very stable. Using 0.8.1 right now :) Jul 04 13:18:58 scalex000: there's a .getContext() on the context provider... Jul 04 13:18:59 sigv: Yeah ok, my aim is to create apk by command line with Cordova (bachelor project for me)…So actually I don’t need a GUI. Jul 04 13:19:17 ThKo: i still suggest a GUI. Jul 04 13:19:20 * sigv shrugs Jul 04 13:19:33 sigv, this is the original code and work fine Jul 04 13:19:48 sigv: Ok Jul 04 13:20:01 scalex000: there's no context provider mentions there... Jul 04 13:20:06 but, I want to call from main activity I was trying Jul 04 13:20:17 I not copy the package complete Jul 04 13:20:30 this is the onCreate i override Jul 04 13:21:05 scalex000: i suppose you mean the class. and if this is a class for your activity, then i still don't see how you are tying in a provider. Jul 04 13:21:34 yes I create a class Jul 04 13:21:41 *created Jul 04 13:21:48 hold on Jul 04 13:21:49 scalex000: i would suggest cleaning up your indents and hastebin-ing the whole class file. Jul 04 13:22:05 ThKo: Just be aware that you'll probably receive no Cordova support in here, only Android app dev. Jul 04 13:22:25 kakazza: Yep I know. Thanks :-) I’ve got some troubles with Android SDK at the moment :) Jul 04 13:22:41 sigv: Now I’ve got in ~/.profile: export ANDROID_SDK_HOME="~/adt/sdk" export PATH="$PATH:$ANDROID_SDK_HOME/tools" export PATH="$PATH:$ANDROID_SDK_HOME/platform-tools" … This is only for SDK, which file do I’ve to include for eclipse? Jul 04 13:22:55 okey Jul 04 13:22:59 sigv, http://pastebin.com/xT8WLwzw Jul 04 13:23:03 ThKo: the eclipse directory. Jul 04 13:23:07 this is the contentprovider class Jul 04 13:23:09 ThKo: ~/adt/eclipse Jul 04 13:23:38 scalex000: so, what's the issue exactly? Jul 04 13:24:17 scalex000: don't feel like building this. :/ Jul 04 13:24:44 you will see at onCreate I start the service in onCreate, but I want to start from menu click, I just follow some example but I need to get the context and intent of symmetricservice but I dont Jul 04 13:24:50 scalex000: also, what is up with the indents? you need to clean those up for code readability. Jul 04 13:24:55 I add the provider in manifest Jul 04 13:25:14 go let me give you the line Jul 04 13:25:42 scalex000: are you using eclipse? Jul 04 13:25:47 yes Jul 04 13:25:51 sigv, yes Jul 04 13:26:06 scalex000: ctrl + shift + f. Jul 04 13:26:10 scalex000: run that. Jul 04 13:26:23 scalex000: and hastebin that code. Jul 04 13:27:14 sigv, http://hastebin.com/wazuramugi.java Jul 04 13:27:33 scalex000: better. thanks. Jul 04 13:27:52 sigv: export ECLIPSE_HOME="~/adt/eclipse" export PATH="$PATH:$ECLIPSE_HOME" .. done Jul 04 13:27:58 sigv, go to this line165 to 186 Jul 04 13:27:59 ThKo: nice. nice. Jul 04 13:28:26 But now I don’t understand :D :D :D Running the command „android“ on command line (ssh) returns „Exception in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]“ Jul 04 13:28:45 scalex000: could you please read the "returns" information on http://developer.android.com/reference/android/content/ContentProvider.html#onCreate() Jul 04 13:28:46 sigv, I only want to start using button or click on menu Jul 04 13:29:05 "true if the provider was successfully loaded, false otherwise" Jul 04 13:29:22 sigv, I only have 2 weeks on this Jul 04 13:29:34 scalex000: hehe Jul 04 13:29:51 I only devep on Delphi Jul 04 13:29:54 scalex000: don't know what your end goal is, but it seems like you are in over your head Jul 04 13:30:09 sigv, lol Jul 04 13:30:34 ThKo: try "android -h" Jul 04 13:31:28 Leeds: Yep, but android sdk also returns this error :| Jul 04 13:31:43 sigv, the example I was testing they create to embed the service with the application Jul 04 13:31:55 ThKo: I just unset DISPLAY... "android" gives that error, "android -h" gives a list of command-line options Jul 04 13:32:28 sigv, if you see i comment the code to start the service. Jul 04 13:32:45 Leeds: Ah I see, android list gives me a list of devices. Thank Jul 04 13:33:08 scalex000: your comment on line 185 doesn't start no service. Jul 04 13:33:22 I not finish the code Jul 04 13:33:59 scalex000: then why are you coming here if you are aware the code is unfinished? i don't think i understand what you are seeking help with... :/ Jul 04 13:34:12 sigv, hold Jul 04 13:36:01 sigv, this is the original code Jul 04 13:36:03 http://hastebin.com/iraqahapez.java Jul 04 13:36:08 sigv, http://hastebin.com/iraqahapez.java Jul 04 13:37:15 scalex000: you showed me that already. what exactly is the issue you are having? Jul 04 13:38:19 how can i get the real path of an Image form the file chooser (i got this: content://com.android.providers.media.documents/document/image%3A9736 but need something like /sdcard/DCIM/image194924.jpg) Jul 04 13:39:10 sigv, its not a issue, its how to access the context(get context) of provider which class I need to use Jul 04 13:40:01 sigv, thank you for you advice I need add some code to know when load sucessfully or not I only set false Jul 04 13:41:26 what is Toast? Jul 04 13:41:43 in this code: gridview.setOnItemClickListener(new OnItemClickListener() { Jul 04 13:41:44 public void onItemClick(AdapterView parent, View v, int position, long id) { Jul 04 13:41:44 Toast.makeText(HelloGridView.this, "" + position, Toast.LENGTH_SHORT).show(); Jul 04 13:41:44 } Jul 04 13:41:44 }); Jul 04 13:42:02 lol Jul 04 13:42:23 Alfreda: Read the documentation Jul 04 13:42:25 Alfreda: http://lmgtfy.com/?q=android+toast Jul 04 13:42:36 if i ask here Jul 04 13:42:44 You'll receive this answer. Jul 04 13:42:45 is because i dont undstand well the documentation Jul 04 13:42:53 What is it that you don't understand? Jul 04 13:43:41 A toast provides simple feedback about an operation in a small popup Jul 04 13:43:46 is a popup message? Jul 04 13:44:12 You read that, good. Jul 04 13:44:20 Now look at the screenshot below that text. Jul 04 13:44:28 Alfreda: did you look at the screenshot? Jul 04 13:44:38 yes Jul 04 13:44:38 "Message saved as draft." is the Toast. Jul 04 13:45:14 is the message in a popup? Jul 04 13:45:21 It's in a toast. Jul 04 13:45:33 Yes, a small popup we call Toast. Jul 04 13:46:05 and why in code of grid view Jul 04 13:46:07 there is? Jul 04 13:46:15 sigv, thank you for your help Jul 04 13:46:27 i want simply that when i click on an image on gridView do something Jul 04 13:47:06 Alfreda: how should we know why you show a toast in a click listener? Jul 04 13:47:22 appel1: http://developer.android.com/guide/topics/ui/layout/gridview.html <--point 4 Jul 04 13:47:25 HelloGridView.this is the context. Since you are in an anonymous class and want to access "this" of the containing class (HelloGridView), you can't use "this" but have to use "HelloGridView.this". Jul 04 13:48:09 You just pass a context. If your class is called AlfredasClass, you have to use AlfredasClass.this Jul 04 13:48:17 Alfreda: ok? Jul 04 13:48:23 mmm no :D Jul 04 13:48:29 https://stackoverflow.com/questions/1084112/access-this-from-java-anonymous-class Jul 04 13:48:48 Alfreda: Why it shows a toast there is because it is a sample that shows you how to show a toast when a thumbnail in a grid is selected. Jul 04 13:49:08 ahh ok Jul 04 13:49:13 i undstand Jul 04 13:49:21 i can also remove this code no? Jul 04 13:49:31 Alfreda: you can do whatever you want in your code. Jul 04 13:49:37 ok ok Jul 04 13:50:59 but setOnItemClickListener dont exist i have error Jul 04 13:52:02 Alfreda: if you remove the call to setOnItemClickListener? what error? Jul 04 13:52:12 no Jul 04 13:52:19 i copy and paste tutorial code Jul 04 13:52:30 gridview.setOnItemClickListener(new OnItemClickListener() { Jul 04 13:52:30 public void onItemClick(AdapterView parent, View v, int position, long id) { Jul 04 13:52:30 //appare un popup Jul 04 13:52:30 Toast.makeText(HelloGridView.this, "" + position, Toast.LENGTH_SHORT).show(); Jul 04 13:52:30 Jul 04 13:52:30 } Jul 04 13:52:30 }); Jul 04 13:52:45 on setOnItemClickListener i have red line Jul 04 13:52:58 The method setOnItemClickListener(AdapterView.OnItemClickListener) in the type AdapterView is not applicable for the arguments (new OnItemClickListener(){}) Jul 04 13:53:41 Great :D Jul 04 13:53:51 Please use pastebin when pasting code Jul 04 13:54:05 The Android tutorials assume you have a somewhat firm grasp of Java. Jul 04 13:54:52 Alfreda you clearly haven't used Java before. I suggest you look into that before attempting app development. It isn't something you can do if you have not touched on Java Jul 04 13:55:08 EdGeorge: i know C++ Jul 04 13:55:23 Alfreda Java != C++ Jul 04 13:56:18 Alfreda: Very well, what is sizeof('a')? Jul 04 13:56:18 C++>>Java Jul 04 13:56:29 Alfreda: have you imported the classes you use like GridView, AdapterView and View? Jul 04 13:56:35 appel1: yes Jul 04 13:56:46 i have MainActivity.java and GridView.java Jul 04 13:57:30 Alfreda: with import I mean statements like import android.view.View Jul 04 13:57:51 appel1: yes Jul 04 13:58:01 Alfreda: GridView is an Android class, you should not call your own classes the same. Also, care to answer that sizeof() question for me? Jul 04 13:58:12 kakazza: GridViewAdapter.java Jul 04 13:58:14 Alfreda If you have no experience of Java - you aren't going to know what you are doing! Jul 04 13:58:25 kakazza: what you want? Jul 04 13:58:41 Alfreda: sizeof('a') evaluates to what? Jul 04 13:58:48 kakazza: i think 8 bit Jul 04 13:58:52 char Jul 04 13:59:09 why? Jul 04 13:59:27 Not bad, you actually know some basics. Since it's sizeof(int) in C but sizeof(char) in C++. Jul 04 13:59:39 o.o what has sizeof to do with Java? Jul 04 14:00:01 helicopter88: Just a quick check. Jul 04 14:00:16 kakazza: what you want from me ? Jul 04 14:00:23 int 8byte Jul 04 14:00:30 char 8 bit=1bbyte Jul 04 14:00:39 Alfreda: this is the bit where you accuse kakazza of being an idiot Jul 04 14:00:53 I'm just checking, because you seem to have a very hard time grasping concepts of Java, which is why we recommend reading a Java book alongside your App development (preferably before) Jul 04 14:00:54 kakazza i program from 5 years old in C/c++ on Linux Embedded and Microcontroller Jul 04 14:01:18 kakazza: i know Jul 04 14:01:21 i'm studing Jul 04 14:01:25 Leeds: orly? Where exactly? Jul 04 14:01:36 but if you dont want answer not speak pls Jul 04 14:01:42 You're not studying, you're asking us to solve it. Jul 04 14:02:01 no... i'm not write nothing on Eclipse Jul 04 14:02:12 i'm only studing and write some code just for test Jul 04 14:02:15 kakazza: it's a habit of his - he's done it to a few people Jul 04 14:02:18 Alfreda: you could just use an IDE like Android Studio that will tell you what classes you haven't imported and suggest other fixes. :) Jul 04 14:02:50 Alfreda: no Jul 04 14:03:09 then.. i'm doing a little example Jul 04 14:03:20 whith a gridview Jul 04 14:03:27 with many image Jul 04 14:03:40 now i want click on item and do something Jul 04 14:04:03 Are the best errors or the worst errors the ones that can be solved by a Clean? D: Jul 04 14:04:09 if you can't get the sample to work then you really need to learn some basic java first. Jul 04 14:04:11 i've created mygridAdapter.java like tutorial Jul 04 14:04:58 and in MainActivity.java Jul 04 14:05:46 http://codepaste.net/3rewjv Jul 04 14:05:59 hi Jul 04 14:06:23 where i must add the code gridview.setOnItemClickListener .... Jul 04 14:06:25 ? Jul 04 14:06:30 do you know what do they use in flipboard app to achieve the show-on-scroll effect? Jul 04 14:06:39 do they use stub for this? Jul 04 14:06:57 Alfreda: You do realize that you just posted username and password of your ftp server? Assuming these aren't dummy data. Jul 04 14:07:17 Delete the paste, if so. Jul 04 14:07:29 kakazza: password was incorrect Jul 04 14:07:31 :| Jul 04 14:07:37 and after i delete it Jul 04 14:07:43 but what you want Jul 04 14:07:49 answer or shut up me Jul 04 14:07:51 pls Jul 04 14:08:10 Oh, I wish I knew how to shut you up. Jul 04 14:08:33 kakazza you can...using the IRC ignore Jul 04 14:08:42 i am hovering over it as we speak... Jul 04 14:08:43 hahaha Jul 04 14:09:26 Alfreda: new AdapterView.OnItemClickListener() Jul 04 14:09:36 Oh man. Second time today Alfreda has posted their FTP credentials online Jul 04 14:09:52 EdGeorge: and so? Jul 04 14:10:00 is a free server with 3 image Jul 04 14:10:03 just for test Jul 04 14:10:37 Well when your app is full of NSFW pictures...dont blame us Jul 04 14:10:46 EdGeorge: i dont have an app Jul 04 14:10:51 is only an example Jul 04 14:10:52 Alternatively use "import android.widget.AdapterView.OnItemClickListener;" Jul 04 14:11:00 Not yet, because we havent written it for you! Jul 04 14:11:10 LOL Jul 04 14:11:21 EdGeorge: you want view me Jul 04 14:11:22 ? Jul 04 14:11:27 After you've resolved this, read the error message you got before again and try to understand how it got resolved. Jul 04 14:11:34 kakazza: thanks Jul 04 14:13:08 You're welcome. Jul 04 14:13:24 kakazza: thanks Jul 04 14:14:54 so is it loading on scroll in flipboard app or content is just hidden & shown? Jul 04 14:14:56 Hrnnghh, "TextView cannot be cast to ImageButton" ... but it's not a textview :'( D: D: Jul 04 14:15:19 I mean how can we manage content having a lot of items? Jul 04 14:15:44 we dont have to load all items at once? do we load each page on scroll like we do on web pages? Jul 04 14:16:08 so http://developer.android.com/guide/topics/ui/layout/gridview.html has incorrect code Jul 04 14:16:52 It doesn't, it just assumed you know how to import classes in Jva. Jul 04 14:17:37 * capella I only do what the tutorials tell me :P Jul 04 14:17:41 They say at the beginning, that these tutorials won't show you how to code in Java but assume you already know how to. As you can see, they omit all import statements. Jul 04 14:17:52 * capella and the voices ... Jul 04 14:17:53 ok Jul 04 14:18:40 In Toast.makeText(HelloGridView.this, "" + position, Toast.LENGTH_SHORT).show(); i can use directly only this? Jul 04 14:18:47 sigv, are you there? Jul 04 14:19:43 scalex000: you get the context of a content provider via the getContext method. and about the true/false, it's like this - if the startup succeeds, you should return true. Jul 04 14:20:01 scalex000: and yeah, i was away for a bit. Jul 04 14:22:46 sigv, I will leave this code Jul 04 14:29:01 sigv: Thanks for your help! :-) Android SDK returns indeed SWT Error, but Cordova is runnig „Project successfully created.“ :-) Thanks again! Jul 04 14:29:38 ThKo: I hope some day you start using the sdk to develop Android apps Jul 04 14:29:38 * sigv shrugs Jul 04 14:30:06 ThKo: as long as what you needed is fixed, it's all cool, i suppose. Jul 04 14:30:54 Leeds: Yeah, normally I would do it…But for my bachelorthesis I’ve to use Cordova…My aim is to develop a webservice where I can create mobile applications (apk, ipa) out of the browser. Jul 04 14:31:20 double-ouch Jul 04 14:31:25 :D Jul 04 14:32:29 Whether it is a good idea or not remains to be seen, but important is that I get my bachelor ;) Jul 04 14:35:27 fair enough... I build an accidentally racist neural network for mine Jul 04 14:45:18 Hi, why android:textAlignment="center" dont work in my layout? i view always text to Left Jul 04 14:48:15 @Alfreda check if the element (and the parent) is wide enough Jul 04 14:48:20 sigv, omg i just test this but I can't stop the service lol http://hastebin.com/wulahokate.coffee Jul 04 14:49:06 * sigv giggles Jul 04 14:49:06 ipsumj: http://pastebin.com/GRZVVBXv Jul 04 14:49:10 scalex000: error? Jul 04 14:50:02 sigv, not error, I click to stop service and i check logcat and destroy but create another service lol Jul 04 14:50:13 i view alignemnt to left Jul 04 14:50:28 scalex000: so, is the ID set correctly in the resource file? Jul 04 14:51:02 Alfreda: try android:layout_width="match_parent" Jul 04 14:51:17 sigv, its good Jul 04 14:51:45 ipsumj: dont work Jul 04 14:51:49 alwayse to left Jul 04 14:53:40 Why the heck does Android Studio format inner enum definitions to the bottom of the class Jul 04 14:53:51 this belongs to the top, madness Jul 04 14:54:25 platzhirsch: you can change that in settings Jul 04 14:54:39 p_l: I was hoping that, but the fact that this is the default Jul 04 14:55:10 Alfreda: use android:gravity="center" instant of android:textAlignment="center" Jul 04 14:55:48 ok Jul 04 14:57:25 scalex000: how is the intent made? anything that could be wrong there maybe? Jul 04 14:58:03 scalex000: http://developer.android.com/reference/android/content/Context.html#stopService%28android.content.Intent%29 Jul 04 14:58:29 ipsumj: thanks it work Jul 04 14:58:41 another question Jul 04 14:58:58 look this image Jul 04 14:59:02 is my app Jul 04 14:59:09 bye Jul 04 14:59:28 sigv, http://hastebin.com/oderarikoz.avrasm Jul 04 14:59:39 how to add a border in my image? Jul 04 15:01:48 Alfreda Dude, PLEASE read the docs Jul 04 15:02:27 scalex000: try making it a constant. Jul 04 15:02:41 So far 99.9% of your app has been written by others! How do you expect to learn Android through doing that? Jul 04 15:02:55 scalex000: or at least store it as a variable in the activity. Jul 04 15:02:59 sigv, public static Intent intent; Jul 04 15:03:12 scalex000: okay, how is it initialized? Jul 04 15:03:20 scalex000: like, where? Jul 04 15:03:28 sigv, contentProvider Jul 04 15:03:49 sigv,I make public to start from main activity Jul 04 15:07:21 scalex000: but, where in the contentProvider? Jul 04 15:08:31 sigv, onCreate Jul 04 15:08:54 scalex000: how the fudge can you use the value for the startActivity call then? Jul 04 15:09:08 scalex000: unless you have it initialized earlier. Jul 04 15:09:32 scalex000: since as far as i understand, onCreate happens after startService Jul 04 15:11:33 the onCreate method run first before start the main actitivy Jul 04 15:11:54 so from start menu I click to start the service Jul 04 15:13:15 In my xml i have image and under description text: http://pastebin.com/GRZVVBXv, but how adjust the position of the text to above? Jul 04 15:15:59 any gradle users out there? Jul 04 15:16:21 well gradle eclipse to be more specific Jul 04 15:19:14 jumpstracks: you can help me? Jul 04 15:20:57 sigv, did you see my answer Jul 04 15:21:23 place the Text element of the XML above the image view Jul 04 15:22:36 EdGeorge: how? Jul 04 15:22:43 scalex000: back. Jul 04 15:23:08 when I run the "check environment" cli tool (in titanium) it says Android platform tools version 20 is unsupported. anyone else run into this? Jul 04 15:23:09 scalex000: can you throw in logging calls in the service's onStart and onDestroy Jul 04 15:23:22 is there a way to specifically set the platform tools version to use in titanium? Jul 04 15:23:35 Hi. I'm getting a "Could not find method" error which I'm not sure how to resolve. The method which cannot be found is com.lambdaworks.crypto.SCrypt.scrypt. com.lambdaworks with the "scrypt" artifactId is declared in a maven pom file in a library that is included by my android application, so I'd expect it to work. Jul 04 15:23:39 Alfreda seriously? I just told you how. Copy the TextView element and place it above the ImageView in the XML Jul 04 15:24:11 yes but how place text above imageView? Jul 04 15:24:20 yes, in the log appear start and destroy but I don't why start again Jul 04 15:25:01 next thing that annoys me Jul 04 15:25:19 Alfreda In your layout file, move the xml element TextView so it is above ImageView Jul 04 15:25:27 I always find myself writing textView.setText(fetchMeSomeInt()) hence, running into the wrong method, because I just want to provide a string value Jul 04 15:25:39 EdGeorge: i cant move Jul 04 15:25:40 sigv, yes in the log i can see when service start and when service is destroying when I click stop Jul 04 15:25:41 it Jul 04 15:25:58 scalex000: but if the onStart is called then... Jul 04 15:26:20 sigv, but after a few seconds I can see trying to connect to the server Jul 04 15:26:28 Heya. Anyone knows how to remove focus from search action in the action bar? Once i press back to return from search it's always focused. I tried this.getFocus().clearFocus() on the activity's onStart() but it didn't work Jul 04 15:26:33 scalex000: look, i don't have the project and i am multitasking a bunch. i would just suggest you to experiment and check out the docs. Jul 04 15:26:45 sigv, in need to close the application Jul 04 15:26:50 EdGeorge: what you mean for move the xml element Textview? Jul 04 15:27:03 Alfreda I literally cannot explain it any clearer. Jul 04 15:27:29 my xml file is this: http://pastebin.com/GRZVVBXv, Jul 04 15:27:41 EdGeorge: (paperclip fellow appears) seems like you are having a problem. would you like help with that? Jul 04 15:28:41 EdGeorge: you say write before TexView block and after GridView block? Jul 04 15:29:20 Alfreda there: http://pastebin.com/45pAdN41 Can't believe I have had to show you hot to do it. Jul 04 15:29:34 what is life?! ;_; Jul 04 15:29:47 ok i doing Jul 04 15:29:51 but is same problem! Jul 04 15:30:00 :D Jul 04 15:30:33 this Image and Text are in a grid with 6 image&text Jul 04 15:31:11 but i view great distance from two rows Jul 04 15:31:16 look my image Jul 04 15:31:27 sigv ha! Even Clippy would have given up by now Jul 04 15:32:24 EdGeorge: You could try to: (*) Give up now; (*) Give up now; (*) Give up in ten minutes. Jul 04 15:32:54 * sigv wanders off Jul 04 15:33:20 EdGeorge: http://postimg.org/image/4816geger/ Jul 04 15:33:26 look photo Jul 04 15:33:42 i want reduce distance between rows Jul 04 15:33:55 Alfreda, pretty pictures :) Jul 04 15:33:59 sigv I have no problem helping people if I can, but not when the question is something as simple as moving an xml element Jul 04 15:34:00 Lol Jul 04 15:34:36 EdGeorge: i dont undstand what you mean with moving above,, sorry for my english :( Jul 04 15:34:56 i think that you have undstand my problem Jul 04 15:35:38 No, dont apologise for your english Alfreda. I understand perfectly, what is frustrating is that you aren't researching your questions before asking Jul 04 15:35:54 Hi guys i'm using the ViewHolder/ListView/CustomAdapter pattern to list json entities that a webservice sends me, but each viewholder contains a lots of element, and are starting to become slow. Is there a way to make them lighter, or to optimize the rendering ? Jul 04 15:36:09 EdGeorge: but do you can suggest me an idea? Jul 04 15:37:48 Alfreda Sure, check out the Java tutorials: http://docs.oracle.com/javase/tutorial/java/index.html and after you have a clearer understanding of Java follow the Android tutorials :) http://developer.android.com/training/index.html Jul 04 15:38:06 EdGeorge: but this is not a problem Java i thinks Jul 04 15:38:16 Writing an Android app isn't something you can just 'do'. Jul 04 15:38:38 But this is a graphical problem Jul 04 15:39:08 Alfreda what do you mean? Jul 04 15:39:28 is a simply graphical problem Jul 04 15:39:48 Alfreda I still am not followoing you Jul 04 15:39:57 Java is JAva Jul 04 15:40:02 this is an other problem! Jul 04 15:40:19 i have set android:verticalSpacing="5dp" > but dont work Jul 04 15:40:37 for GridView Jul 04 15:40:40 Alfreda No it isn't! You are writing an app using Java... Jul 04 15:40:52 no this is xml code Jul 04 15:40:57 no Java Jul 04 15:41:46 Alfreda yes but every other problem you have asked today has been Java related Jul 04 15:42:04 yes but now noe Jul 04 15:42:17 infact for Java problem i before search on google Jul 04 15:43:14 EdGeorge: :) Jul 04 15:43:25 but here i dont know how to resolve Jul 04 15:43:33 and i dont know where i must search! Jul 04 15:44:57 Alfreda try http://developer.android.com/guide/topics/ui/declaring-layout.html Jul 04 15:45:38 EdGeorge: i have already read this Jul 04 15:46:48 and nothing Jul 04 15:47:37 Implementing a follow/unfollow buton, how do I capture the both modis they can be in? Switch between follow/unfollow? State List drawable? Jul 04 15:49:45 Alfreda I don't want to just _give_ you the code. If you truly want to learn, you should read it properly. The answer is on that page Jul 04 15:50:03 no.. Jul 04 15:50:06 where? Jul 04 15:58:54 In my xml i have image and under description text: http://pastebin.com/GRZVVBXv, but how adjust the position of the text to above? and this is my app in running: http://postimg.org/image/4816geger/ Jul 04 15:59:16 i want move text Jul 04 15:59:45 There is a lot of distance between the lines Jul 04 16:00:08 i want reduce distance between the lines but with android:verticalSpacing="1dp" dont work Jul 04 16:00:14 why? Jul 04 16:17:02 on the actionbar I want all items to be hidden when the searchview expands. can I do that in xml or I have to do it programmatically? thanks Jul 04 16:17:33 I mean without overflow Jul 04 16:21:10 hey i am getting an error durin running an process... the problem is that i have no idea what the error is trying to tell me :D it throws an IoException with the following message: http://prntscr.com/3zcur4 Jul 04 16:21:41 ps hi Leeds :P Jul 04 16:21:44 M4GNV5: check your filesystem Jul 04 16:21:57 how? Jul 04 16:22:06 or what do u mean? Jul 04 16:22:10 is it mounted noexec? Jul 04 16:22:48 i dont know ^^ its running on android 4.3 installed 30 mins ago in virtualbox... Jul 04 16:23:21 what is default? because it should someday run on every device... Jul 04 16:36:06 default is that you can't run binaries on the SD card - internal, external, physical, virtual Jul 04 16:38:04 ohhh kay... so http://developer.android.com/reference/java/lang/Process.html is basically useless Jul 04 16:39:01 so no, basically not useless at all Jul 04 16:40:51 hmmmmm whatever... Jul 04 16:41:35 one more question ^^ why does androiddeveloper say that you shouldnt use the android ndk to build apps? Jul 04 16:41:44 i dont see the reason there ;) Jul 04 16:42:09 because 'native' Android apps, running in the managed framework, communicating with other apps, etc. etc. are written in Java with the SDK Jul 04 16:42:58 the NDK is for specific cases - things which want to ignore the platform and do their own UI, things which put performance above manageability - games, media apps, things like that Jul 04 16:43:51 ahhh okay thx :) so now i run out of ideas for my project ^^ Jul 04 16:45:31 ps "native" android apps can also be written in other languages that make use of the sdk ;) :P Jul 04 16:45:52 yeah, if you're a weirdo Jul 04 16:46:03 well, some people have succesfully used Scala Jul 04 16:46:12 or .NET :P Jul 04 16:46:22 M4GNV5: that ones is actually done through NDK Jul 04 16:46:54 uhhhm as far as i know not... Jul 04 16:47:10 M4GNV5: it uses NDK, but remember that JNI works both ways, so NDK code can call Java Jul 04 16:47:29 and their compiler generates apropriate wrapper classes etc. Jul 04 16:48:07 p_l: no dot42 and xamarin.android convert the li to android deployable code... Jul 04 16:48:19 that is as far as i know also done with your java code... Jul 04 16:49:05 M4GNV5: last time I checked, xamarin stuff involved .NET code running in a copy of Mono runtime implemented as NDK library with an advanced bridge implemented between .NET and Java sides Jul 04 16:49:29 p_I: https://www.dot42.com/features.aspx the problems with them is only that they arent free to use Jul 04 16:50:11 hmm. Maybe for dot42 that's the case Jul 04 16:51:37 Xamarin.Android uses just-in-time compilation for sophisticated runtime optimization of your app’s performance. Your app is a native Android APK—not cross-compiled, not interpreted, and not a web page posing as an Android app. http://xamarin.com/platform#android Jul 04 16:52:13 M4GNV5: marketer's copy and reality are two different things, and nothing in that sentence actually disallows using NDK ;) Jul 04 16:52:28 yeah thats right :D Jul 04 16:52:31 mind you, I'm not saying that such NDK bridge is *bad* Jul 04 16:52:57 hmmmm kay :D because that was actually what i was trying to do ;) Jul 04 16:53:03 hell, I actually want something like that for mocl or lw (lw even more, just ffs release that... and with lower price than €1200) Jul 04 16:54:17 mocl? lw? google doesnt actually helps with these :D Jul 04 16:54:34 yeah xamarin.android has the same problem with 300$ / year... Jul 04 16:55:12 I might be expanding this Jul 04 16:55:16 but Jul 04 16:55:18 http://mohammadag.xceleo.org/public/Android/MissingAndroidLDocs/ Jul 04 16:55:40 it's not actual documentation, but more of a guide so you don't have to decompile to find out the methods Jul 04 16:55:48 ? :D Jul 04 16:55:53 M4GNV5: mocl is https://wukix.com/, lw = LispWorks, they have one app in marketplace showcasing a full CL engine compiled for armeabi-v7 on android Jul 04 16:57:15 p_l: page doesnt load... well i wanted to bring .NET to android by running a mono bundle via a "native" android app but it seems that this idea wont work ^^ Jul 04 16:57:29 ahhh you got a , there :D Jul 04 17:01:16 Android L is really agressive with killing apps :/ Jul 04 17:01:41 Afzal: dev preview :P Jul 04 17:02:20 p_l cant just chalk every fault to dev preview :p Jul 04 17:02:45 I know it's a dev preview but stuff like that makes it hard to test things Jul 04 17:10:53 Hi all! I’ve got a Samsung Galax SIII (GI-I9300) running 4.3, and am using WifiManager to try to connect to a router via enableNetwork(). But - when it joins the network, it automatically pops up a web browser asking for login info. Is there a way to prevent that from happening? Jul 04 17:15:14 i'm trying to use Log, but instead of android.utils.Log android studio imports sun.rmi.runtime.Log and refuses to see android.utils.Log. in another file everything works fine. what should i do to make the studio see Log? Jul 04 17:19:18 sqrrl it's android.util.Log Jul 04 17:20:04 yeah, a typo, i meant util Jul 04 17:21:14 when i hover over Log, it says "cannot resolve symbol 'Log'" Jul 04 17:23:17 window 1 Jul 04 17:24:59 the file in question might be not an application but a module, if that makes sense.. Jul 04 17:26:58 sqrrl are you on AS? Jul 04 17:27:10 yes Jul 04 17:27:39 well thanks p_l for the discussion i will add this to my "internet arguments won" list :P and bye ;) Jul 04 17:28:38 sqrrl does the module have apply plugin 'com.android.application' in the gradle file Jul 04 17:28:39 ? Jul 04 17:29:14 Where does the user see custom app permissions a app requires? Jul 04 17:40:11 Afzal: no, it doesn't Jul 04 17:42:24 I need some help in understanding a the piece of code here - http://developer.android.com/guide/topics/ui/actionbar.html#Tabs - How does the ArtistFragment and AlbumFragment classes get created automatically ? Jul 04 17:43:27 shmoon FYI; apparently AB tabs is deprecated in L Jul 04 17:43:45 all navigation modes (spinner too) Jul 04 17:45:10 g00s: oh crap really ? i recently got started with android development and what I learnt is already deprecated ? :S Jul 04 17:45:28 What replaces tabs then ? Jul 04 17:45:32 any links/pointers? Jul 04 17:45:41 well, i'm sure it will keep working for a while. not really sure. just read about it in a blog Jul 04 17:45:52 seems AB is becoming more generic Jul 04 17:46:02 so you can put it other places beside the top of the window Jul 04 17:46:27 maybe this is some other trickery - but in iosched 2014, when i open a dialog, those have action bar - esque type things Jul 04 17:46:36 i'm guessing ToolBar Jul 04 17:48:06 shmoon http://commonsware.com/blog/2014/06/28/and-now-your-l-api-change-wtfs.html Jul 04 17:48:45 when is L releasing? Jul 04 17:49:06 nobody knows; before holidays ? :) Jul 04 17:49:16 so yeah, maybe not worry about it for now Jul 04 17:50:22 yeah let me just use it to build out my app and later we'll sit together to replace it :P Jul 04 17:50:32 so any idea how those classes get generated? Jul 04 17:50:51 Q4 probably Jul 04 17:50:57 I'm waiting for the 64bit nexus Jul 04 17:52:35 g00s: who wrote that article Jul 04 17:55:53 Napalm Mark Murphy Jul 04 17:55:56 doh Jul 04 17:55:58 commonsware Jul 04 17:56:10 i totally missed that in the url Jul 04 17:59:25 g00s: any diea? Jul 04 17:59:29 idea* Jul 04 18:23:30 fun. I have 3rd party application installed from market on android wear emulator Jul 04 18:43:56 I find I can't be bothered to wear any watch other than my nice watches... Jul 04 18:44:46 maybe I'll pick up a wear when I get around to sending my watch in for a 10 year service Jul 04 18:45:14 since I kinda fucked up and got salt water in it... Jul 04 18:45:24 would a lightweight linux distro be better for coding android than windows? Jul 04 18:46:06 im finding my PC is getting bogged down with android studio and firefox open Jul 04 18:46:50 get a better pc Jul 04 18:47:08 rymate1234 yeah mine too. i only have 4G memory Jul 04 18:47:24 pfn, I'd much rather a better PC Jul 04 18:47:34 4GB ddr2 ram isnt exactly nice to have Jul 04 18:48:02 I want to upgrade to 32gb from the 16 I have now... Jul 04 18:48:17 wot Jul 04 18:48:22 what are you running o.o Jul 04 18:49:36 uh... Android Studio is deathly slow Jul 04 18:49:43 use eclipse Jul 04 18:49:54 eclipse is deathly terrible Jul 04 18:49:55 I've never heard that Jul 04 18:50:00 >inb4 gradle Jul 04 18:50:06 Eclipse is terribly slow Jul 04 18:50:06 AS's user interface lags like hell Jul 04 18:50:15 while eclipse is reasonable Jul 04 18:50:23 what potato are you running on Jul 04 18:50:34 mine appears to run okay without firefox open Jul 04 18:50:39 a one-year-old middle-to-high-end laptop which runs modern games Jul 04 18:50:57 I've played battlefield 3 on this with medium-ish settings without lag Jul 04 18:51:22 i have a 6 year old middle-to-high-end desktop with a gt 630 and a amd phenom 9550 Jul 04 18:51:25 so yes, an IDE's user interface should not cause my system to lag. Jul 04 18:51:29 eclipse might be slower than intellij, but i think what boxmein is referring to is 'pressing compile' and you see results in 2-3 seconds Jul 04 18:51:42 nah what I'm referring to is user interface lag Jul 04 18:52:05 my pc can run battlefield 3 at 20 fps Jul 04 18:52:06 took me around over a minute for AS to even start up, not to mention picking a project, loading and waiting for those blocking background tasks to finish Jul 04 18:52:11 and android studio doesnt lag Jul 04 18:52:22 at least it doesnt take a minute to start Jul 04 18:52:35 it only lags when i have firefox open as well Jul 04 18:54:57 you could edit with your favorite editor and set up a command line build Jul 04 18:55:15 Firefox and utorrent and vlc Jul 04 18:55:23 what if my favourite editor is intellij Jul 04 18:55:24 :p Jul 04 18:55:27 boxmein use lynx instead of FF ! Jul 04 18:55:32 oops rymate1234 Jul 04 18:55:38 and don't touch Chrome :P Jul 04 18:55:41 oh god Jul 04 18:55:50 chrome needs tonnes of ram Jul 04 18:55:53 wget and brain-rendering-engine for the win Jul 04 18:55:57 main reason i use firefox in face Jul 04 18:55:59 fact Jul 04 18:56:16 am i the only one who gets myself into Chrome-hell; too many tabs to do any more work (all resources gone) but I don't know what I want to bookmark :P Jul 04 18:56:20 ooh I don't apparently have firefox after the format Jul 04 18:56:24 I prefer w3m to lynx Jul 04 18:56:48 g00s: I love chrome, even if it's cool to hate it Jul 04 18:56:56 g00s: chrome's dev tools are awesome. Jul 04 18:57:08 rymate1234 FF + ABP is a problem though, ABP seems to consume a huge amount of memory Jul 04 18:57:13 boxmein: yes, but it's memory usage (and generally resource usage) is atrocious Jul 04 18:57:22 g00s: ABP is a problem everywhere Jul 04 18:57:30 biggest part of chrome memory usage Jul 04 18:57:36 there are some other ones like bluehell Jul 04 18:57:45 http://puu.sh/9WPE8/fc692cc5fb.png ? Jul 04 18:57:49 g00s, i'll try remove it Jul 04 18:58:05 p_l: APB uses like 220+ MB if it gets triggered Jul 04 18:58:13 wat Jul 04 18:58:14 WAT Jul 04 18:58:35 boxmein: I think I got it over 300MB Jul 04 18:58:46 http://puu.sh/9WPJh/2df4d52bce.png Jul 04 18:58:51 and i have tonnes of tabs Jul 04 18:58:51 command line builds are the best Jul 04 18:58:54 p_l: it wildly depends Jul 04 18:58:56 no wonder i lack ram Jul 04 18:59:04 right now it's at low point, with two extension processes one around 90MB and the other at 60MB Jul 04 19:01:04 https://github.com/pfn/android-sdk-plugin/blob/1.3.x/README.md Jul 04 19:01:09 :) Jul 04 19:01:20 1.3.0 coming soon Jul 04 19:02:16 nick9998 Jul 04 19:02:17 ? Jul 04 19:02:42 Sadly, I've ditched Firefox for Chrome Jul 04 19:02:53 Firefox is just much too slow Jul 04 19:03:10 single ui thread for the entirety of the browser sucks Jul 04 19:03:16 sadly i ditched chrome for firefox Jul 04 19:03:21 i need my ramz Jul 04 19:04:12 Wish I could manage command line builds :D Jul 04 19:04:25 hello Jul 04 19:04:34 can i chat programming Jul 04 19:04:35 Except I have a love-hate relationship with Eclipse's code intel system Jul 04 19:04:40 GZ^Zff: no! of course not! Jul 04 19:04:48 GZ^Zff: how dare you! Jul 04 19:04:55 pm ? Jul 04 19:05:02 boxmein, why can't you Jul 04 19:05:40 pfn: Eclipse doesn't want me to generate an actually working build script I could upload to [source sharing website], and clicking new project is oh so satisfying Jul 04 19:05:52 Well, I don't know how to Jul 04 19:05:56 pfn great stuff! Jul 04 19:06:01 then don't use eclipse Jul 04 19:06:14 yeah but code intel! Jul 04 19:06:39 eclipse needs only intel pc Jul 04 19:06:41 ? Jul 04 19:06:42 nice Jul 04 19:06:59 i got no amd Jul 04 19:07:30 im making database dictionary program Jul 04 19:07:33 I'm gonna study doing Scala from pfn's apps sometime soon :P Jul 04 19:07:45 i found whole program Jul 04 19:07:46 http://www.java2s.com/Code/Android/Database/SearchableDictionary.htm Jul 04 19:07:54 anybody know how to run . Jul 04 19:08:18 put it all in MainActivity.java then what ? Jul 04 19:08:33 where to put .db file after copying the words Jul 04 19:08:58 // //res\raw\definitions.txt abbey - n. a monastery ruled by an abbot abide - v. dwell; inhabit or live in abound - v. be abundant or plentiful; Jul 04 19:09:02 shmooz, my plugin works for all java apps as well Jul 04 19:09:27 how to play that file ? http://www.java2s.com/Code/Android/Database/SearchableDictionary.htm Jul 04 19:09:37 database dictionary Jul 04 19:09:40 well, it doesn't do ndk and aidl in aar yet, but soon Jul 04 19:10:03 created new blank activity android project in eclipse adt Jul 04 19:10:13 yeah I just read that Jul 04 19:10:56 your qicr app code looks very clean to me Jul 04 19:11:16 definitions.txt is database ? Jul 04 19:11:25 dont need to rename to definitions.db ? Jul 04 19:11:36 it needs lots of refactoring, the service binding sucks Jul 04 19:11:37 text is a database file ? Jul 04 19:12:19 well, short then Jul 04 19:12:27 hello Jul 04 19:12:37 how to run that ? http://www.java2s.com/Code/Android/Database/SearchableDictionary.htm Jul 04 19:13:04 that is real working database program or just text display dumb words ? Jul 04 19:13:23 how to convert definitions.txt to real .db file ? Jul 04 19:14:45 hello Jul 04 19:14:55 database file is like that " SQLite format 3   @ |    -â! Jul 04 19:14:55 ? ? Jul 04 19:14:55 Jul 04 19:14:55 k''?table " Jul 04 19:15:21 why that site says definitions.txt text is database ? Jul 04 19:15:37 that is real database sample project ? Jul 04 19:16:49 shmooz, but yeah, the general architecture of qicr is pretty sound Jul 04 19:16:55 can someone tell me why the fragment's content won't show up in the view here http://pastie.org/9355602 ? Jul 04 19:17:08 Fragments are really tricky in my head still, dunno what am I doing wrong Jul 04 19:17:37 i can Jul 04 19:18:51 GZ^zff where you got db from? Jul 04 19:19:11 BookDB Jul 04 19:19:27 its dictionary sample Jul 04 19:19:53 link? Jul 04 19:19:53 starts like that in notepad " SQLite format 3   @ | Jul 04 19:19:57 and extension .db Jul 04 19:20:06 but sample project is simple text file Jul 04 19:20:13 not real db project Jul 04 19:20:13 what do u want to do Jul 04 19:20:13 ? Jul 04 19:20:19 view the database content? Jul 04 19:20:25 run that http://www.java2s.com/Code/Android/Database/SearchableDictionary.htm Jul 04 19:20:32 no Jul 04 19:20:39 put 2 text fields Jul 04 19:20:45 type on left and meaning on right Jul 04 19:20:51 from dictionary.db Jul 04 19:20:55 not dictionary.txt Jul 04 19:21:10 ok .txt too will work Jul 04 19:21:44 nothing Jul 04 19:21:51 u got any sample dictionary project ? Jul 04 19:21:57 no sorry Jul 04 19:22:07 how many more working sample android projects u have ? Jul 04 19:22:25 i dont have any projects Jul 04 19:22:35 im new to android dev Jul 04 19:22:41 nice Jul 04 19:23:01 wouldnt it be better to use dictionary db though? Jul 04 19:23:19 text is better Jul 04 19:23:30 but all do db and its high level Jul 04 19:23:41 so want to run that in android Jul 04 19:24:02 not just display flood plain text file there Jul 04 19:24:02 how come u dont like db :p Jul 04 19:24:41 u like it ? then read and tell whats that without db-explorer/viewer - " SQLite format 3   @ | Jul 04 19:25:01 db is not even compressed like .zip Jul 04 19:25:28 and no use encrypting like that since all viewers can see text inside Jul 04 19:25:45 were do i download the db? Jul 04 19:25:53 everywhere Jul 04 19:26:17 u dont know ? Jul 04 19:26:41 no no the sample dictionary one Jul 04 19:27:14 you can use sqlite browser to view the database Jul 04 19:27:40 http://prntscr.com/3zf4h2 Jul 04 19:28:45 i know Jul 04 19:28:55 got the 10MB viewer yesterday Jul 04 19:29:08 SqliteBrowser3 Jul 04 19:30:57 princeton Jul 04 19:33:41 Did the guy who was posting his FTP creds up on here leave? Or is he still around Jul 04 19:35:57 Alfreda No such nick/channel Jul 04 19:35:58 Alfreda End of /WHOIS list. Jul 04 19:35:58 - Jul 04 19:36:02 When I try to clearAnimation on an imageview Jul 04 19:36:04 I get a weird error Jul 04 19:36:31 all get Jul 04 19:38:09 when implementing a navigation drop down in the actionbar, is there some way to register a listener with callbacks on when you open/dismiss/select the dropdown? Jul 04 19:38:40 beyond what onNavigationItemSelected provides Jul 04 19:44:50 u all charge $20 per hour for chat ?> Jul 04 19:44:56 android chat Jul 04 19:45:15 uh, I saw the FTP leak, yay Jul 04 19:45:17 how they earn money with 90% apps games free in playstore market ? Jul 04 19:45:37 charge for chat would be lovely Jul 04 19:45:40 but that's not gonna happen :P Jul 04 19:46:23 I'd be in a speck of trouble if you charged for chat. Jul 04 19:46:56 to be completely fair, even sounds good Jul 04 19:47:02 I lost hundred of working hours helping Jul 04 19:47:05 nobody pays that :P Jul 04 19:47:13 ajoul takes $20 per hour Jul 04 19:47:13 I charge you by the number of characters you type! Jul 04 19:48:16 Maybe charge per answer? Jul 04 19:48:19 keep talking Jul 04 19:48:32 i charge u everytime i call ur nick Jul 04 19:48:56 at the end of the day, nobody pays for stuff that can get free (help) Jul 04 19:49:18 helloworld costs $20392 Jul 04 19:49:23 and 50 days Jul 04 19:49:24 I can help today, but ask tomorrow so... Jul 04 19:49:43 and 100GB eclipse avd sdk anroidstudio trash update Jul 04 19:50:19 Yeah, and if there was a price I'd probably be afk somewhere else. Jul 04 19:50:35 there are services to pay for help anyway Jul 04 19:50:42 charge google scam $50000 for helloworld app Jul 04 19:50:45 but then the help gets more complicated Jul 04 19:51:23 make my dictionary project for 0.02 bitcoin ? Jul 04 19:51:41 offline Jul 04 19:52:43 no sample ADK file works except helloworld Jul 04 19:52:55 ' unfortunatel trash has stopped working ' Jul 04 19:53:06 same error in real phone avd Jul 04 19:54:06 "Pay .2 Bitcoims to restore functionality. Jul 04 19:54:15 " Jul 04 19:56:23 0.02 = 5 month cpu mining Jul 04 19:56:27 50 watts Jul 04 19:56:28 My mobile typing skills are still pretty crap. Jul 04 19:56:55 u made ur own keyboard program in eclipse ? Jul 04 19:57:48 Is that on an asic, a gpu, pr a cpu? Jul 04 19:58:33 I didn't make my own, no. Jul 04 19:59:08 core i5 2330M Jul 04 20:00:00 u cant make ur own android keyboard to tpye properly and want 0.2 btc per hour ? Jul 04 20:00:32 for teaching android Jul 04 20:00:33 ? Jul 04 20:00:38 ok Jul 04 20:01:13 Even if I made my own I'd still be bad. Jul 04 20:02:59 And honestly, I'd be more apt to learn than teach. Probably not for .2 BTC, though. Jul 04 20:05:02 Hey, anybody here use Scala? Jul 04 20:05:23 that will work without MainActivity.java file > ? http://www.java2s.com/Code/Android/Database/SearchableDictionary.htm Jul 04 20:06:59 anything works without main ? Jul 04 20:07:31 will it work without main/ Jul 04 20:07:47 ok i delete main Jul 04 20:07:56 auxchar pfn does Jul 04 20:08:10 anyway useless avd will just show 'unfortunately trash is not working Jul 04 20:08:18 cant even run helloworld Jul 04 20:08:24 phone did once Jul 04 20:08:27 but nomore Jul 04 20:08:33 Pfn? Jul 04 20:12:09 microusb with otg support can control radio toy car ? Jul 04 20:12:24 I wanted to ask how recommended it is. Jul 04 20:12:52 it is not recommended Jul 04 20:13:14 re commend it Jul 04 20:13:37 distributed under the License is distributed on an "AS IS" BASIS, Jul 04 20:13:37 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Jul 04 20:15:01 Isn't thay true for jusy about all open source? Jul 04 20:15:18 S/y/t/ Jul 04 20:15:29 Caveat Emptor. Jul 04 20:16:53 Does anyone know how/if you can find out what app/uid created a file on media/shared storage or external storage? Jul 04 20:18:47 surf2b1: If it's not in the path, I think it's impossible after the process died. Jul 04 20:19:29 flan3002: That's what I thought too but I just installed Clean Master and it does this. Jul 04 20:19:31 https://play.google.com/store/apps/details?id=com.cleanmaster.mguard&hl=en Jul 04 20:20:15 surf2b1: Well, what does it do? Jul 04 20:20:37 Junk Files > Advanced Cleaning lists the largest files on your sdcard and says "From " Jul 04 20:21:01 ok so if i have any platforms other than android-9 in /opt/android-ndk/platforms none of my ndk builds work. if i delete everythinge except android-9 my builds work Jul 04 20:21:09 10000000 files on ur phone junk ? Jul 04 20:21:12 what am i doing wrong? Jul 04 20:21:28 what does ndk do ? Jul 04 20:21:33 not sdk adk ? Jul 04 20:21:35 native development kid Jul 04 20:21:45 what is that Jul 04 20:21:49 write android code in C and assembler Jul 04 20:21:53 native = android 1.5 ? Jul 04 20:22:00 or 1.0 - .14 Jul 04 20:22:03 usually libraries to be linked in to your java apps Jul 04 20:22:12 surf2b1: It might simply look into / Jul 04 20:22:15 no native here means non java code Jul 04 20:22:20 Wait... Jul 04 20:22:44 surf2b1: It might simply look into /sdcard/Android/path.to.app/files and list these by size. Jul 04 20:22:51 so why is that android channel question answer ? Jul 04 20:23:05 and its in eclipse too ndk Jul 04 20:23:08 ok whatever Jul 04 20:23:27 i try to run android devleleoopent project samples not working Jul 04 20:24:05 then dig garden Jul 04 20:25:07 example: Example: it knows /sdcard/romtoolbox/downloads is from the app "ROM Toolbox Pro". It knows several others that are not in /sdcard/Android too Jul 04 20:25:30 * flan3002 not example Jul 04 20:27:03 i have hidden virus folder in phone android 4.3 Jul 04 20:27:06 delete it and it returns Jul 04 20:27:29 nothing running in process except 5 main Jul 04 20:28:15 auxchar, just do it Jul 04 20:28:36 * pfn & Jul 04 20:28:37 Thanks. Jul 04 20:28:55 surf2b1: Interesting, indeed. It might use something similar to http://www.cyberciti.biz/tips/linux-audit-files-to-see-who-made-changes-to-a-file.html , but that's just guessing vaguely... :/ Jul 04 20:29:23 hey guys Does anybody know how we can extract frames from a video in android device, process them and play it in real time ?? Jul 04 20:30:50 basically what i want to do is to play the video frame by frame after processing each frame in real time Jul 04 20:31:05 does anybody have any pointers to that ? Jul 04 20:40:56 ? Jul 04 20:41:05 hello Jul 04 20:42:42 MainActivity.java is ? New-> Class or New-> Package or New-> Java Project or New-> Example or .?? Jul 04 20:44:22 what is MainActivity.java ? Jul 04 20:46:48 flan3002: aha! Turned on airplane mode and cleared data on the app and now it doesn't know many of the file locations. So it must be storing common app locations/directories on a server. Jul 04 20:47:28 surf2b1: Okay, that's reasonable. :) Jul 04 20:55:18 software app program can output otg-hdmi ? Jul 04 20:55:34 phone supports only otg-usb/flash Jul 04 20:55:42 not hdmi Jul 04 20:55:53 hdmi is software driver or hardware Jul 04 20:58:15 run that useless diticionary ?? http://www.java2s.com/Code/Android/Database/SearchableDictionary.htm Jul 04 21:05:34 I cannot follow that dudes train of thought Jul 04 21:09:12 Are you supposed to have one content provider or multiple ones? Jul 04 21:09:47 In case of multiple content types Jul 04 21:13:57 i got dictionary sample project Jul 04 21:14:00 22 error Jul 04 21:14:06 how to run ? Jul 04 21:14:51 how to select all and quick fix ? Jul 04 21:15:41 quick fix removed 2 Jul 04 21:15:46 20 more Jul 04 21:15:57 how to run this Jul 04 21:16:07 http://www.java2s.com/Code/Android/Database/SearchableDictionary.htm Jul 04 21:16:10 ?> Jul 04 21:16:16 made 11 files Jul 04 21:16:57 removed MainActivity.java Jul 04 21:17:04 added DictionaryDatabase.java Jul 04 21:17:15 and added other 4 java Jul 04 21:17:24 and all .xml in res folder folders Jul 04 21:17:26 oic ... it's a stream of consciousness thing ... talking to itself it is Jul 04 21:18:11 how to run that ? http://www.java2s.com/Code/Android/Database/SearchableDictionary.htm Jul 04 21:18:30 or its all wrong and errortrash ? Jul 04 21:22:17 https://www.sendspace.com/file/m5gf8p Jul 04 21:22:22 made it that Jul 04 21:22:42 renamed dicitonoantydatabase to ewefe Jul 04 21:22:55 20 error Jul 04 21:25:41 com.example.android.searchabledict to Jul 04 21:26:00 com.example.ewefe Jul 04 21:31:51 ________________________________ Jul 04 21:39:20 how to get contents of the entire external directory Jul 04 21:39:21 getExternalStorageDirectory Jul 04 21:39:31 new File( android.os.Environment.getExternalStorageDirectory(), null) Jul 04 21:39:32 recursion Jul 04 21:39:45 Ok but how to get the parent Jul 04 21:39:52 like the "root" folder Jul 04 21:41:05 canvs2321: ? Jul 04 21:42:19 what's wrong with getExternalStorageDirectory? Jul 04 21:43:47 hee Jul 04 22:11:26 Hi, I'm trying to build the treasure hunt demo but i get a crash saying it cannot find the main activity. http://pastebin.com/pUazCqn0 Jul 04 22:11:44 note 3. i havent touched the manifest or any other file yet. any ideas? Jul 04 22:18:27 Has anyone had a problem using native Google Cloud Print (on 4.4)? When printing a document, the content doesn’t fill the whole page, even when set to Letter. Jul 04 22:28:16 http://linux.slashdot.org/story/14/07/04/1455200/qualcomm-takes-down-100-github-repositories-with-dmca-notice <--- lol Jul 04 22:31:00 isnt this exactly the same that was done to cm's HTC Sensation repo 2y ago? Jul 04 22:31:47 maybe Jul 04 22:32:24 my favourite is how I was assured about how Qualcomm was nicer to open source developers et al some time recently, so this has extra irony Jul 04 22:33:16 I really dont understand this anyways. They should be glad that ppl do great stuff with their hardware so they sell more. Jul 04 22:37:24 apparently they hired some IP thugs Jul 04 22:37:37 probably not going to have that contract with qualcomm anymore :> Jul 04 22:38:14 especially since there's apparently at least one file that makes ground for perjury... Jul 04 22:49:53 anyone knows how does whatsapp shows the avatar instead of the app icon? Jul 04 22:50:00 setIcon sets it really small Jul 04 22:52:02 capella stream of bot consciousness :) Jul 04 22:52:28 yah - I strongly suspect, as it never answered back to my snarkiness Jul 04 23:52:28 sup. Jul 04 23:52:52 hey Jul 05 01:13:45 where can I get a stock .config for a galaxy s4 sgh-i337? AT&T gobbled it up and I need at least an onld one. Jul 05 01:31:31 Any Ideas why my project crashing once I change the device language to RTL ? Logcat >> http://pastebin.com/LXX5KnHv Jul 05 01:32:44 I couldn't find whats the problem :s Jul 05 01:44:00 Please anyone can help me ? Jul 05 01:50:14 I'm impressed that my galaxy s3 got kitkat, at the same time, I'm depressed that the Galaxy Nexus got stuck on 4.2 Jul 05 02:50:39 so quiet :) Jul 05 02:57:55 http://anandtech.com/show/8231/a-closer-look-at-android-runtime-art-in-android-l **** ENDING LOGGING AT Sat Jul 05 02:59:59 2014