**** BEGIN LOGGING AT Sun Oct 21 02:59:58 2012 Oct 21 03:39:45 I want to create a more graphically stimulating custom dialog popup that contains 3 activities. ATM, my best attempt was to watch the view for onTouch down, then up and decide if the user tried to swipe in a left or right motion. It works, but it's bland. Oct 21 03:54:30 hello everyone Oct 21 03:54:52 anymore here have any idea what has happened to the wcxxperia forum website? Its been down for several days now with no notice of whats going on Oct 21 03:55:29 just wondering if wildchild is ok, his roms are great on the htc vivid Oct 21 04:02:52 I was trying to install android sdk on win 7, and i already installed jdk7u9 but it says i dont have jdk -- anyone who has installed it recently can help please? Oct 21 04:05:58 I'm using a webview inside my app. When I click on a login button inside that webview (inside a html post form) it leaves the webview and opens the browser. Why? How can I stop that and open the link on the webview itself? Oct 21 04:09:07 Nevermind (: Oct 21 05:34:14 i am working on a mp3 player, i am using an Handler to update the seekBar. i have 2 questions: 1) should a open a different thread to change the time 2) why the Runnable has to call the Handler.postDelayed() function? Oct 21 05:34:27 i am calling posDelayed 2 times Oct 21 05:38:30 hi all Oct 21 05:38:46 does anyone here know if it is possible to consume pdfs in your own application Oct 21 05:38:49 and not farm it off Oct 21 05:38:53 or use intent Oct 21 05:39:19 sure, if you want to embed a pdf library Oct 21 05:39:29 is there anything I can use Oct 21 05:39:36 off the bad I have not found much Oct 21 05:39:52 except for maybe trying to port itextsharp Oct 21 05:39:56 to androiud Oct 21 05:40:06 s/androiud/android Oct 21 05:40:32 Hey guys, I am currently trying to set my pc up for some android development, but I stumbled on a problem with the ADT Plugin on eclipse, I am unable to add the repository gaven on the android website, http and https do not work. Oct 21 05:40:59 lots of Java pdf libraries out there Oct 21 05:41:15 http://www.qoppa.com/solutions/javapdf.html for example Oct 21 05:41:21 yes but getting them to run on android Oct 21 05:41:35 that company appears to support Android Oct 21 05:45:30 not to mention there is an NDK and tons of relevant C libs Oct 21 05:46:28 tdignan: ? Oct 21 05:46:34 wilornel: there is a very good chance you did something wrong when setting up eclipse... Just start over Oct 21 05:46:45 make sure you get eclipse classic Oct 21 05:46:53 wilornel: use intellij community Oct 21 05:46:56 its pretty good Oct 21 05:46:59 make sure you use the sun jdk Oct 21 05:47:04 er, oracle. Oct 21 05:48:46 why is android lacking in pdf capability, and ios not? Oct 21 05:50:44 what is it lacking? Oct 21 05:52:35 its lacking his comprehension Oct 21 05:54:22 sampullman: well in IOS it was easy for me to read pdfs in my own application Oct 21 05:54:26 lots more libraries Oct 21 05:59:34 i see. have you checked out apv or droidreader? Oct 21 06:02:11 Still banned in #android because one user hates my tablet -_- Oct 21 06:02:22 The person know's who they are. Oct 21 06:04:37 MuPDF might help, liquid-silence. I haven't used it, but it sounds like it might be along the lines of what you're looking for. Oct 21 06:05:21 I wish i could get unbanned in #android Oct 21 06:05:47 In theory, would it be possible to port Dalvik to Chrome OS Oct 21 06:08:49 anyone here.. i have a coding question Oct 21 06:11:30 ask away Oct 21 06:12:01 isCheckBoxPreference when ever i try to use it in a file Oct 21 06:12:24 it always says symbol cant be found Oct 21 06:12:47 I just cant find what i need to import for it Oct 21 06:25:57 eagle1967: did you check the android documentation? Oct 21 06:26:30 i tried jsut couldnt find what i was looking for. Oct 21 06:26:57 just figured someone might know off hand and want to help Oct 21 06:27:39 gah im feeling so uncreative Oct 21 06:29:18 take a small amount of the recreational drug of your choice Oct 21 06:31:38 yeah probably not a bad idea Oct 21 06:31:52 I dunno.. I've got a couple prototypes Ive been working on the last couple months..maybe one a week Oct 21 06:31:59 and none are giving me that feeling ya know Oct 21 06:32:21 Then I'll start finally working on something and have a million awesome concepts :P Oct 21 06:32:21 the magic goes away after 50-100 hours, eh? Oct 21 06:32:28 it's not that its just Oct 21 06:32:28 I wish the ic view collections as list didn't like so much like a page Oct 21 06:32:38 Once its put together in a playable state Oct 21 06:32:50 Exano you need a partner Oct 21 06:32:50 lasserix: i have this open at (almost) all times: http://androiddrawableexplorer.appspot.com/ Oct 21 06:33:00 That's probably true :P Oct 21 06:33:16 I had a business partner at one time but he didn't code, it was rough Oct 21 06:33:21 all I could do was throw ideas back and forth Oct 21 06:33:36 im in a similar situation, but I'm able to motivate by switching projects whenever i get a block on one Oct 21 06:34:19 Yeah that helps, I've got a livewallpaper that I made and I feature creep it when I am out of motiviation Oct 21 06:34:20 sampullman: oh yeah I know, it's just i have a content viewing mode as list or as page and since I'm using the dev pack to base my icons, like view collections as a list looks like a page with a bunch of text not necessarily list elements Oct 21 06:34:49 *looks like the page icon i built from the clipboard ;p Oct 21 06:34:59 lasserix: yeah, i know what you mean. it should be a gridview or something Oct 21 06:35:39 all of my other published works are utility apps, and I'm getting into game design and development hardcore now. It's fun but I am just throwing shit at the wind until I come up with somethin thats fun to play :P Oct 21 06:36:29 i've been incrementally learning game dev Oct 21 06:36:58 started with a 2d puzzle game, moved to a simple 3d puzzle, etc Oct 21 06:37:09 yeah :) Its enjoyable to see it all come to life Oct 21 06:37:14 somehow it feels so much more alive Oct 21 06:37:31 I was so elated when I figured out texture fonts, hah Oct 21 06:37:34 making tools is good and all, but it feels so static Oct 21 06:37:46 my problem now is getitng that hook Oct 21 06:38:02 I can throw out breakout clones and mario/kirby clones all day long Oct 21 06:38:17 but finding a fun innovative mechanic that isn't shit is hard :P Oct 21 06:39:22 I made a couple weeks ago something that was like Armada Oct 21 06:39:40 it came out pretty neat but its just too boring after a while Oct 21 06:39:42 i think a good 3d catapult game would be cool Oct 21 06:39:45 this sucks: https://play.google.com/store/apps/details?id=com.integer3d.SkyCatapult Oct 21 06:39:56 I totally agree! Oct 21 06:40:04 I had a similar concept I made actually using tanks Oct 21 06:40:19 I am always pissed at artillary esque games because the targets don't move, you don't "die" Oct 21 06:40:20 oh problem solved, just took view collection as list and filled in the full line to make it look like a line and a bullet point Oct 21 06:40:26 you just run out of bullets or miss a fuck ton Oct 21 06:40:37 so in this one I had an infantry line running at you Oct 21 06:40:44 you had to blow em up before they got to you or you'd lose the level Oct 21 06:41:01 defend the castle-esque? Oct 21 06:41:14 yup Oct 21 06:41:49 problem is i feel like phone games are still in arcade baby stage, but since a phone is so powerful there should be more than a simple arcarde style game Oct 21 06:41:59 it felt cool because it was a neat mixture of lining up your shots and all the elements that make a tank/catapult game fun with the frantic feeling of enemies coming at ya Oct 21 06:42:34 I agree lasserix, but you start to limit yourself :( Even just going into 3d limits you right now in terms of an audience, it feels like. Unless your a big player with a big marketing budget Oct 21 06:43:04 I saw a couple games that were those old LCD games that they used to make Oct 21 06:43:14 those are kinda neat if you can innovate it a little bit Oct 21 06:43:30 i think my next game will essentially be a port of this http://shellshocklive.com/ Oct 21 06:43:48 yeah i just have a friend who hates most app games because he feels like they're essentially kindergarden grade level Oct 21 06:43:56 yeah I could see thta Oct 21 06:44:07 I kinda feel like we're trapped between arcade and flash Oct 21 06:44:07 lol Oct 21 06:44:17 in terms of what comes out on the markets Oct 21 06:44:29 personally, i don't really enjoy any mobile games, heh Oct 21 06:44:42 I wish I could do better multiplayer Oct 21 06:44:49 I'm so scared every time I start to code things with networking Oct 21 06:44:50 that's what I mean, they aren't really stimulating Oct 21 06:44:53 I'm always worried about security and stuff Oct 21 06:45:12 multiplayer security isn't too bad when you get the hang of it Oct 21 06:45:16 Sampullman : Ever played any of Kairosofts games? Like Game Dev Story or Astro Story? Oct 21 06:45:25 And I guess its just a matter of doing it Oct 21 06:45:27 nah, i havent Oct 21 06:45:38 Check it out, you may like it. I feel the same way but for some reason Oct 21 06:45:44 those games hook me like crack Oct 21 06:45:45 if you're smart about it you don't have to encrypt much Oct 21 06:46:11 let me find his thing on google Oct 21 06:46:22 https://play.google.com/store/apps/details?id=net.kairosoft.android.gamedev3en&feature=search_result#?t=W251bGwsMSwxLDEsIm5ldC5rYWlyb3NvZnQuYW5kcm9pZC5nYW1lZGV2M2VuIl0. Oct 21 06:46:29 ah, tiny sims type games Oct 21 06:46:38 ehh yeah sort of Oct 21 06:46:47 theyre really good at layering meta game Oct 21 06:47:14 for how much kairosoft makes their website sucks Oct 21 06:47:23 everything is layered on top of everything, done so well you dont realize your playing a menu based game Oct 21 06:48:02 ill check it out Oct 21 06:48:24 word :) Oct 21 06:48:31 for the most part though Oct 21 06:48:42 I have a big problem because if you had come to me with a game like fruit ninja or angry birds Oct 21 06:48:45 before it had been released Oct 21 06:49:03 I woulda said "meh its good but its not groundbreaking..its not innovating..its just a typical flash-esque game" Oct 21 06:49:27 and for some reason those are the games that people want. OR maybe theyre the games with the deep pockets that can get marketted easily Oct 21 06:49:27 execution and marketing Oct 21 06:49:29 ughh adt pluggin should have a thing where you give it one image and it'll auto generate x/h/m dpi Oct 21 06:49:54 lasserix: if you use vector images it makes that pretty trivial Oct 21 06:50:09 inkscape, adobe whatever, etc Oct 21 06:50:09 yeah gotta do that Oct 21 06:50:15 I wonder if I could make a vector based tile map... Oct 21 06:50:43 yeah I know but why not just have one file you import and it auto resolves the dpi for you Oct 21 07:00:22 I'm linking a library project and i can use the classes just fine while writing the code, but when i execute the project i end up with a "Could not find class..." error, any thoughts? Oct 21 07:01:24 Bear10: are you sure you mean library project and not 'jar'? Oct 21 07:01:59 tdignan, yeah i link the project, you know when you goto the build properties, select the project, and that project is marked a "is library" Oct 21 07:02:22 even if i try simply compiling the jar and sticiking it in the libs folder, i end up with the same issue Oct 21 07:02:43 Bear10: several things can cause that, what exactly was the error and what were you trying to do? Oct 21 07:03:38 sampullman, it's exactly that ""Could not find class 'org.andengine.extension.tmx.TMXLoader', referenced from method ...." Oct 21 07:04:20 try deleting the gen folders, doing a clean, and rebuilding Oct 21 07:04:44 then, try importing the class in the context you were using it Oct 21 07:05:27 i can import it in the code no problem, its runtime where the issue is Oct 21 07:05:39 let me try one second Oct 21 07:05:39 try the first thing i said Oct 21 07:06:48 same error Oct 21 07:06:59 is it an activity? Oct 21 07:07:10 yep Oct 21 07:07:25 add it to your manifest in the non-library project Oct 21 07:07:47 or whichever you haven't added it to Oct 21 07:08:05 it is in my project already Oct 21 07:08:27 and you're trying to access it in the library? Oct 21 07:08:51 sampullman, no i'm trying to access the class in the library Oct 21 07:09:04 in my Activity i run a "new TMXLoader()" Oct 21 07:09:08 and it says the class isn't found Oct 21 07:09:22 so TMXLoader *isn't* an activity Oct 21 07:09:28 is it an import problem? Oct 21 07:09:39 Bear10: where is TMXLoader coming from? Oct 21 07:09:40 he said it wasn't, but that's what it sounds like Oct 21 07:09:40 Exano, nope the import is fine otherwise i wouldn't be able to run/compile Oct 21 07:09:44 tdignan, a library Oct 21 07:09:46 a jar? Oct 21 07:09:50 no Oct 21 07:09:51 a project Oct 21 07:09:54 inside a library project? Oct 21 07:10:00 it's not a jar inside a lib project, is it? Oct 21 07:10:12 tdignan, that it is Oct 21 07:10:18 ohh Oct 21 07:10:20 click the library project, build path Oct 21 07:10:22 export the jar Oct 21 07:10:25 that info would have helped Oct 21 07:10:32 add the jar to your project Oct 21 07:10:38 no! Oct 21 07:10:42 you just export it Oct 21 07:10:50 don't add it twice Oct 21 07:10:56 oh, im coming from a non-eclipse perspective Oct 21 07:11:02 my bad Oct 21 07:11:05 np Oct 21 07:11:15 ok let me see Oct 21 07:11:23 i don't even know if you need to do anything special with ant for this Oct 21 07:11:30 I don't think you do Oct 21 07:11:38 i goto my library -> properties -> build path, and then how do i export Oct 21 07:11:46 hold on, i'll look Oct 21 07:13:29 Bear10: you will see the jar under 'Order and Export' Oct 21 07:13:36 click the checkbox on the left of it, then build clean Oct 21 07:13:43 yeah dont see that Oct 21 07:13:47 eh.? Oct 21 07:13:53 are you looking t the library project? Oct 21 07:13:57 yep Oct 21 07:14:13 what 'jar' are you referring to... is it the jar that the library project compiles down to, or a dependency of the library project? Oct 21 07:14:54 its 3 projects, Project A (my project) links to 2 library projects (B and C), B also links to C. Oct 21 07:14:56 if the latter, then it should be here. if the former, then you have confused me and what I have told you is not relevant to your problem. Oct 21 07:15:09 ok, don't double link it Oct 21 07:15:12 A has a problem instantiating the class from library project B Oct 21 07:15:21 just do A->B->C Oct 21 07:15:34 don't do A->B A->C B->C Oct 21 07:15:54 ok lets try Oct 21 07:16:32 tdignan, if i do as you suggest, i get import errors Oct 21 07:16:40 wait nevermind i may have jumped the gun Oct 21 07:17:00 yeah still the same error Oct 21 07:17:16 "Could not find class 'org.andengine.extension.tmx.TMXLoader',..." Oct 21 07:18:42 You're missing the TiledMapExtension I bet. Oct 21 07:18:47 http://stackoverflow.com/questions/11042808/cant-launch-tmxtiledmapexample Oct 21 07:18:57 Hi guys, is there a way to export a Core Data DB into SQLite? Oct 21 07:19:18 tdignan, nope thats the library project B that i mentioned Oct 21 07:21:34 it's why i find this so weird Oct 21 07:21:40 everyone seems to resolve it by linking that, yet mine isnt working Oct 21 07:24:40 maybe one more clean? Oct 21 07:25:07 might want to read project.properties and set the libraries manually Oct 21 07:25:11 try building with ant and what not Oct 21 07:25:37 ah this is andengine Oct 21 07:25:44 its the newest version, right? Oct 21 07:26:19 http://stackoverflow.com/questions/12995729/convert-from-core-data-to-sqlite Oct 21 07:27:27 Exano, yeah Oct 21 07:40:50 wait Oct 21 07:40:53 I literally Oct 21 07:40:57 just found his problem Oct 21 07:41:03 oh good Oct 21 07:41:27 he didnt link things Oct 21 07:59:44 trying to find a good symbol / icon for communicating idea of count (as in frequency) and came across... http://www.flickr.com/photos/32419677@N03/3964667427/ Oct 21 08:26:58 lasserix, here http://trainingscenter.moeller.net/otc-service/scale-image/147x0//en/functions/easySoft/easy-800/frequency-counter/galleryItems/03/image/frequency_counter.jpg Oct 21 08:42:42 Sculptor thanks I'm trying to mimic dev pack icons Oct 21 08:43:28 right now it's a three bulleted list in bottom right part, with a > top left part (otherwise abc or shuffle icon, for other sorting modes) Oct 21 08:44:26 tdignan, hey got the solution Oct 21 08:44:31 ridiculous if you ask me but got it Oct 21 08:58:18 When one starts an activty, is the previous one finished or just suspended? Oct 21 08:58:32 Heilage, it is paused Oct 21 08:58:39 and may potentially get destroyed Oct 21 08:58:44 Hmm. Oct 21 08:58:55 I'm struggling with sending an Integer[] between two activities. Oct 21 08:59:03 I can send it one way, but the other seems to not work. Oct 21 08:59:15 As in, I can send it from the first to the second activity, but not back again. Oct 21 09:00:10 the correct way to send it is as in extra in the intent Oct 21 09:00:44 That's what I'm doing from the first to the second Oct 21 09:00:51 I do putExtra() on the intent Oct 21 09:01:21 second -> first is similary, you do putExtra, then setResult(int, intent), then catch it in onActivityResult Oct 21 09:01:25 *similar Oct 21 09:01:28 So in this second activity, you can change some settings and either save the changes or cancel them. Oct 21 09:01:39 no Oct 21 09:01:55 Yes, but onActivityResult I get some weird syntax errors Oct 21 09:02:02 ok, so that's your issue Oct 21 09:02:10 Heilage, this graph is self explanatory http://developer.android.com/images/activity_lifecycle.png Oct 21 09:04:29 sampullman: Yes. For some reason, I can't use arguments on it Oct 21 09:05:14 intent.getExtras().getThing("key") Oct 21 09:05:41 did you do startActivityForResult() to start the activity? Oct 21 09:05:47 Yes. Oct 21 09:06:00 It crashes though, hang on Oct 21 09:06:00 wait Oct 21 09:06:11 wtf does "can't use arguments on it mean" ? Oct 21 09:06:58 On the onActivityResult line, I get syntax error on the arguments, it says ";" expected or something Oct 21 09:07:06 uh Oct 21 09:07:21 that's a syntax error, not an intent/activity/whatever problem Oct 21 09:08:01 Yes, that's what I said. I get syntax errors on it. Oct 21 09:08:58 how do you expect anyone to help you with a vaguely described syntax error? Oct 21 09:09:14 I was about to describe it, but I'm going to try something first Oct 21 09:09:16 you missed a paren/bracket/semi colon somewhere Oct 21 09:10:25 Where in relation to the startActivityForResult(); is the onActivityResult() to be placed? Oct 21 09:10:39 in that activity Oct 21 09:11:30 So, just somewhere in the first activity that launches the second one, right? If I understood you correctly? Oct 21 09:11:48 just override it like anything else Oct 21 09:11:59 onCreate, onPause, etc Oct 21 09:12:52 Okay. Thanks. Now I just gotta figure out why I can't start the activity in the first place :) Oct 21 09:36:16 What's the condition to see if the done button was pressed on the soft keyboard? Oct 21 09:37:43 nm was confusing the constant Oct 21 09:53:41 can anyone point to a stock app which uses the fancy listview loading animations? Oct 21 10:09:10 When finishing an actiity with a result, what arguments should I make the Intent with? Oct 21 10:18:36 The action bar is confusing me :( Oct 21 10:31:17 hy all Oct 21 10:32:48 what is the name of the list or something what consist of a lot of values, but it is normally in one line, and has an arrow. If you click on that, the list can be seen, and you can go to the end of the list to select an item Oct 21 10:32:59 after selecting it will be one line long again Oct 21 10:41:47 What's the corresponding onSaveInstanceState when it is reloaded for a fragment? Oct 21 10:43:15 Hey guys, I am facing a weird problem ( not on development state ) and thought that you may know here. I am currently on Jelly Bean with Galaxy S I9000 and every time I am switching from silent mode to normal Oct 21 10:43:40 my normal incoming calls voice is dropped down to 10-20%, so actually I can never hear my phone when someone is calling me Oct 21 10:47:02 emovskan you have to ask questions like that in #android Oct 21 10:47:54 ah ok thx, I will try there then Oct 21 10:49:00 somebody? Oct 21 10:49:04 my question is above Oct 21 10:51:15 gregtom6: I think they call that a collapsible list Oct 21 10:51:26 Heilage: thx Oct 21 10:53:13 expandable list Oct 21 10:58:21 hi Oct 21 10:58:43 I have an error (red cross) on my gen/R.java in Eclipse, how to solve it ? Oct 21 11:01:02 how to know more about this error ? Oct 21 11:01:35 it seems to be linked to drawable Oct 21 11:26:21 Is there a way to emulate other (phone) screen sizes on the Nexus 7 for development? Oct 21 11:32:49 I am putting an intarray of size 3000 inside a bundle for saving/restoring state, but it is causing the app to pause for an uncomfortable amount of time during orientation change, anyone got any pointers how to speed it up? Oct 21 12:02:59 An authority in a content provider is just one an identifier right? Is there something special about it? Oct 21 12:18:15 DarkXPh no I believe it is arbitrary Oct 21 12:19:31 Typically, it's the name of the ContentProvider subclass. Oct 21 12:25:34 hm, I'm using ABS' SherlockDialogFragment Oct 21 12:25:53 everything works fine, except for the fact that the dialog doesn't show an actionbar on gingerbread Oct 21 12:26:00 while it does on HC+ Oct 21 12:28:37 Dialogs don't have an actionbar Oct 21 12:28:48 Fragment don't either.. And ABS doesn't change how DialogFragment looks Oct 21 12:29:27 so why include a SherlockDialogFragment at all? Oct 21 12:29:33 if it doesn't add anything Oct 21 12:29:38 For the options menu callbacks Oct 21 12:29:44 ah. Oct 21 12:29:53 DialogFragment doesn't have to be used as a dialog, you can add it to a layout like a regular fragment Oct 21 12:30:25 so, why does it show a title actionbar on ICS? Oct 21 12:30:39 or at least a dialog title thing Oct 21 12:30:44 dunno if it's an actionbar Oct 21 12:30:52 Dialogs show a title bar Oct 21 12:31:04 They do on I'm not sure how Dialog behaves across platform versions Oct 21 12:33:48 ah ok, I am setting a title in onCreateView, which won't show on if I do it in onCreate getDialog() is still null Oct 21 12:34:12 and it'll NPE Oct 21 12:35:11 ah, I think I've got it Oct 21 12:38:55 the Theme.Sherlock.Light.Dialog is suppressing the title Oct 21 12:39:08 on Your phone has to be rooted to install custom fonts correct? Oct 21 12:39:51 which makes sense, I guess, considering I'm setting it on the fragment instead of the dialog Oct 21 12:47:30 Just fyi, the sherlock dialog themes are likely to be removed in an upcoming update Oct 21 12:48:59 yeah, I removed the setStyle() call and everything works fine now Oct 21 12:49:00 thanks Oct 21 12:51:10 in eclipse, how do i change the icon and name of the project that shows up on the android applications list? Oct 21 12:52:00 codepython777: AndroidManifest.xml, application tag, android:icon and android:label Oct 21 12:52:08 not 100% sure about the second Oct 21 12:52:22 MDijkstra: thanks Oct 21 12:52:57 MDijkstra: android:label="@string/title_activity_main" -- change this i guess? Oct 21 12:53:27 yeah, make a new string resource in res/values/strings.xml Oct 21 12:53:44 and substitute it for 'title_activity_main' Oct 21 12:58:12 MDijkstra: name change successful Oct 21 13:04:55 gregtom6: maybe you mean ExpandableList ? Oct 21 13:05:08 otherwise Spinner Oct 21 13:05:11 yes Oct 21 13:05:19 osxorgate: I solved that Oct 21 13:05:22 ok Oct 21 13:05:45 Anyone got any good tutorials on understanding the MAT tool? Oct 21 13:16:04 Why does this nexus 7 stall/take longer to do an orientation change on an activity with a listview than this old froyo phone? Oct 21 13:30:24 So... I wrote an android app, with a.debug key and.installed it on a.friends.phone, and now.it.won't uninstall, why would that happen? Oct 21 13:33:00 When you go to uninstall it from the app manager, it's greyed out and you cannot click uninstall. Oct 21 13:34:19 No ideas? Oct 21 13:58:02 hi Oct 21 14:01:40 android 4.0, i want startup app at boot completed. I create Receiver, but it works only when user launch app firttime, if user instal the app and reboot don't work Oct 21 14:02:37 I'm developing an app that has two activities: a list activity and a file rendering activity. they are normally started in this order. however, the rendering activity can also be launched from Android's Downloads app using intent-filtering. in the second scnario I want to destroy the activity when the user presses back/home, but not in the first scenario. how does one distinguish them? Oct 21 14:03:23 pepigno75: Yes, that's how it works. Nothing you can do about that Oct 21 14:04:04 Hi, SimonVT app start at boot only if user open first time Oct 21 14:04:34 i want launch app at boot without user open fitst time Oct 21 14:04:39 is it possibile? Oct 21 14:04:48 I covered that with the "Nothing you can do about that" part Oct 21 14:06:41 SimonVT: i don't understand can i launch my app at boot ? yes or no? Oct 21 14:07:04 i write this code http://pastebin.com/vieGt19Y Oct 21 14:07:44 Yes Oct 21 14:07:51 The user has to launch your app once Oct 21 14:07:54 pepigno75: you can register a broadcastreceiver and do any stuff you want in it android.intent.action.BOOT_COMPLETED Oct 21 14:07:55 Then you'll get the broadcast Oct 21 14:08:32 but taking up the screen..is well creepy, It shouldn't be allowed and I think thankfully its not Oct 21 14:08:46 brickhead: it works only i open app, if i install app and reboot app don't start Oct 21 14:08:57 And yeah, don't launch an activity at boot Oct 21 14:08:59 That's just wrong Oct 21 14:09:01 pepigno75: are you sure, It works for me Oct 21 14:09:49 brickhead: brickhead Oct 21 14:09:54 just check your mainfest if its correct Oct 21 14:10:00 i try 3-4 times Oct 21 14:10:28 Could someone help me with programmatically adding views to an ArrayAdapter xml layout? This is what I have atm: http://pastebin.com/aM4x5k9K Oct 21 14:10:35 uninstall app, i install app and reboot, don't work. I instal app , open app and reboot and now works Oct 21 14:11:06 pepigno75: :) Oct 21 14:11:16 well did you added permission for it Oct 21 14:11:23 The user has to launch your app once Oct 21 14:11:27 Then you'll get the broadcast Oct 21 14:12:42 SimonVT: really? I thought very one who registers gets it regardless of user intervention Oct 21 14:13:38 SimonVT: it's strange, because custom rom have app that launch at boot, without user open first time Oct 21 14:14:17 Yes, really Oct 21 14:14:27 All system broadcasts use this flag: https://developer.android.com/reference/android/content/Intent.html#FLAG_EXCLUDE_STOPPED_PACKAGES Oct 21 14:14:56 A stopped package is one the user hasn't started yet Oct 21 14:15:06 As in, launched an activity Oct 21 14:16:26 hmm..that's news Oct 21 14:16:38 SimonVT: so.. user has open first time app, if not, BroadCastReceiver don't call at boo Oct 21 14:16:50 it was added in 3.1 Oct 21 14:20:28 SimonVT: sorry.. you confirm that app can't start boot if user don't open app? Oct 21 14:21:14 SimonVT: according to http://stackoverflow.com/questions/11273770/broadcastreceiver-isnt-working Oct 21 14:21:23 its different from activities stopped state Oct 21 14:21:59 so if my app was alive before reboot then I might get it.. no? Oct 21 14:22:08 does any1 experiencing issues with uploading api to google play? Oct 21 14:22:21 Yes, it is Oct 21 14:22:26 apk file Oct 21 14:22:35 Your app has to be launched _once_ Oct 21 14:22:42 Then you'll get system broadcasts Oct 21 14:22:53 Until the user stops it Oct 21 14:23:12 yeah that's ok Oct 21 14:25:34 Has anyone been to AnDevCon SFO before? Oct 21 14:26:58 I'm curious if they serve free beer Oct 21 14:28:11 this is a really slow Sunday Oct 21 14:28:59 SimonVT: i have possibility to put my app in System/app Oct 21 14:29:39 i'm developing for android custom rom for special hardware Oct 21 14:30:42 pepigno75: I think you'll probably get more help on that in #android-root Oct 21 14:31:36 brickhead: thanks Oct 21 14:40:08 Could someone help me with programmatically adding views to an ArrayAdapter xml layout? I couldn't find anything specific to it on the web. Is it not possible? This is what I have at the moment: http://pastebin.com/aM4x5k9K Oct 21 14:52:21 Sezerza what's the problem? Oct 21 15:11:14 hi Oct 21 15:11:30 im pretty much new to android but Oct 21 15:12:07 why is the top menu behind the stuff below, i want the stuff below being pushed down: Oct 21 15:12:08 http://pastebin.com/7UtscCht Oct 21 15:14:40 (xml) Oct 21 15:20:17 Hi all, does anyone know were FaceLock.apk keeps its Eigenface(s)? Oct 21 15:20:25 Bullettime: android:layout_width="fill_parent" android:layout_height="fill_parent" Oct 21 15:20:42 in your first nested relativelayout (which is totally useless, btw) Oct 21 15:20:48 layout_height should be wrap_content Oct 21 15:21:37 secondly your topview controlbutton relativelayout should be a linearlayout Oct 21 15:23:10 so, I was told by Sasmung support that the USSD factory wipe bug doesn't affect Galaxy Gio. So I tested it. At inital page load, the dialer comes up with the code, but the code doesn't run. BUT, after closing the dialer and refreshing the page, the code is run without prompt. Oct 21 15:23:50 I'm using 2.3.3 and would like to know if the above works for 2.3.6 too Oct 21 15:24:49 would like to also know if it affects devices that Samsung claims it has fixed. Note the refresh thing that is not part of the original bug Oct 21 15:28:45 its still behind the rest of the content lasserix Oct 21 15:33:57 hy all! I have created a method about bluetooth connection, but if I click on the "connect" button, it will wait for 1 sec, and it will be suddenly blue after that and connecting, jumping to the next activity. Oct 21 15:34:57 I can't create a progressbar, because it appears only after the connection. How should I do to be appear before connecting? Oct 21 15:35:05 not after Oct 21 15:36:08 I created setonclicklistener on the button, and in the first line there's the progbar.setVisibility(View.VISIBLE); but it appears only after connecting Oct 21 15:37:13 Hi Android dev, I have a basic question regarding android and maven. I notice there is an maven-android-plugin, is this the correct path or should i be using m2eclipse? Oct 21 15:39:22 hmm nevermine, it appears you use both! Oct 21 15:48:59 boink Oct 21 16:11:14 olá Oct 21 16:32:22 anyone know ho to stop the logcat jumping about in eclipse when scrolling through? Oct 21 16:34:43 IIRC, There is an icon there that locks the scrolling Oct 21 16:35:10 ahh i see you are right Oct 21 16:35:12 "scroll lock" Oct 21 16:35:24 thats winded me up so many times Oct 21 16:35:54 Come to think of it, isn't that what the scroll lock button on your keyboard is for? Oct 21 16:36:06 when trying to view a pdf-file from the Download manager in a pdf viewer I'm working on I used to get an Intent with the path as data, starting in JellyBean I see content://downloads/all_downloads/1. how do I translate this into a path to open? Oct 21 16:36:10 The eclipse people will get a brownie point if it does what it says on the tin Oct 21 16:48:31 Is there an official way to request an invite to the Octover 29 event? Oct 21 16:50:52 When I create an intent filter to launch an app from the browser, will it work by just pressing 'debug' on Eclipse and trying to access the url from the browser? Oct 21 17:00:54 Inside the getView of my custom list adapter, I tried setting setting a button inside the list item to INVISIBLE when a condition is true. But when I scroll down and get back, some of them are back visible again. How can I fix this issue? Oct 21 17:03:04 You have to set visibility on every call to getView Oct 21 17:17:40 Hello guys. I'm trying to make a link on the browser launch my app. I've tried everything and it won't work. This is my last attempt: http://pastebin.com/SsfNfmHQ does this have anything to do with the fact I'm not installing the app, just pressing 'debug' on eclipse? But I have already tried to install the app with adb and it said 'already installed'... Oct 21 17:18:11 On this last attempt, I'm typing 'fqm://test' on the browser to test it, but it won't bring the app. Oct 21 17:36:33 hi. i need to continously check if i'm near a certain location by latitude and longitude. how can i compare my current position and that latitude and longitude? Oct 21 17:39:17 hy all! I have created a method about bluetooth connection, but if I click on the "connect" button, it will wait for 1 sec, and it will be suddenly blue after that and connecting, jumping to the next activity. I can't create a progressbar, because it appears only after the connection. How should I do to be appear before connecting, not after? I created setonclicklistener on the button, and in the first line there's the progbar.se Oct 21 17:39:25 it still appears only after connecting Oct 21 17:39:48 (hope you can see all of the 4 lines Oct 21 17:39:50 ) Oct 21 17:43:42 it seems that when using png images with transparent background for Button, the transparent part of the background is not clickable, am I right ? if yes, how to fix it ? Oct 21 17:45:32 LucaS05: basic geometry? Oct 21 17:45:47 Is there a preferred library/project for implementing sliding side nav? I see a bunch of different ones out there Oct 21 17:55:42 i've found this http://bit.ly/RU7tOg ;) Oct 21 17:55:51 thanks anyway! Oct 21 18:02:35 Hey guys Oct 21 18:06:16 Is there anyone who needs some coding help for their open source project? Oct 21 18:07:15 Wake up Android! Oct 21 18:08:34 free help. tempting Oct 21 18:11:46 Sculptor: yes for me it is a way to get more motivated and eventually start my own projects and hopefully my own business in the future... Oct 21 18:11:56 I wanna break free from the chains of employment =) Oct 21 18:12:04 i hear ya Oct 21 18:12:14 why don't you start your own project, then Oct 21 18:12:49 Is it possible to start another activity "on top" of the main activity? Like a small window, with a few fields in there. I've seen it done in some android apps. Oct 21 18:13:47 Like so https://lh3.ggpht.com/nwBwLll9h3q5hQ_wN_UAS-9yCVmUB-I55hTO9H3LcaU3JnwAzcy2XyHMisbZ6ttG-yVc Oct 21 18:13:53 Sculptor: it's hard to come up with good ideas... I'd like to start-off by piggy backing on a project which is already rolling forward Oct 21 18:14:20 diki: isn't that just a custom alertdialog? Oct 21 18:14:27 luyang, find existing free apps, and make better ones - or combine more apps into one Oct 21 18:14:41 luyang:Is it? Oct 21 18:14:51 diki: might be Oct 21 18:15:11 I think it is Oct 21 18:16:19 If I do make an alert dialog to look like that, will it be possible to interact with it inside more than just inputting some data and closing the dialog? Oct 21 18:16:36 Like say, starting a thread, displaying data on-demand. Oct 21 18:16:49 it should Oct 21 18:17:10 I'm no expert in it but it probably just contains a view which will respond to events like any view Oct 21 18:31:45 Sculptor: I don't have enough motivation to do what you suggested... Oct 21 18:31:52 But thanks for your suggestion Oct 21 18:32:06 no problem Oct 21 18:32:36 I have seen apps like the c-geo app for gps treasure hunting Oct 21 18:32:42 Hi everyone, please can oyu help me ? I tried to insert st. in sqlite databse table with command - insert and nullpointerexception occured, but I don´t know why, 'cause values I tried to insert were not null...what could be a problem ? Oct 21 18:32:45 and I've seen open sudoku etc Oct 21 18:33:09 do you have a stack trace? Oct 21 18:34:22 open sudoku Oct 21 18:34:24 hmm Oct 21 18:35:04 luyang, make an app that'll teach user to play sudoku Oct 21 18:36:07 Sculptor: but then I have to come up with the design and stuff... I prefer doing "back-end'ish" Oct 21 18:36:19 Sculptor: I've thought about making a card game app or chess game Oct 21 18:36:35 sudoku requires basic design Oct 21 18:36:37 but would require too much time and don't think I could earn much on it Oct 21 18:36:51 one 9x9 grid, and 10-12 buttons Oct 21 18:36:54 I get stuck on action bar etc Oct 21 18:39:29 i need to get the users location ASAP upon them starting up the app, and then stop requesting updates so as to save power. the way i've done it is to get 20 updates from the gps provider and take their average. however, it's not that accurate. is there a better way to do it? are later readings usually more accurate than earlier ones? Oct 21 18:47:38 please can someone help me ? I tried to insert something in sqlite databse table with command - insert and nullpointerexception occured, but I don´t know why, 'cause values I tried to insert were not null...what could be a problem ? Oct 21 18:51:36 DOSP: look at the stack trace of the null pointer exception. the top most like will tell you what class it is happening in Oct 21 18:51:48 is that class in your code, or is it a system class? Oct 21 18:55:01 is that class in your code, or is it a system class? Oct 21 18:55:10 sorry Oct 21 18:55:23 class in my code ..it´s class where insert method is being called Oct 21 19:00:52 DOSP: then you are dereferencing a null value in your code Oct 21 19:01:24 these are extremely easy to track down. just attach a debugger, break at that line, and if anything is null Oct 21 19:01:41 or log the values, etc. Oct 21 19:09:33 okey, i try to debug, but i have another problem, please, iam using android virtual device and a real phone debugging, but sudenlly, when i try to run the project, the A.v.d wont start, and if you try it again it says "android virutal device is alrready running" and even reboot wont help, and it happened sudenlly maybe two days ago and from then it says the same , can you help me ? Oct 21 19:12:02 DOSP: no idea. sorry Oct 21 19:12:30 hey guys, so after googling and reading around its seems passing data to newly started activies is cumbersome. How can I set or pass the instance of my activity to another activity Oct 21 19:13:16 the GUI designer is such crap! UGH! Oct 21 19:13:37 I keep realizing that the best way to write it is just pure XML and nothing else Oct 21 19:15:24 does making my activity serializable work ? Oct 21 19:15:37 so that it can pass itself to another activity Oct 21 19:18:10 Hey all my app contains a phone button with number when i press it dial the number is ther away the system goes only in the dialer without dialing the number? Oct 21 19:19:49 dennistlg: seriously, learn to google. the keywords 'android dialer intent' produce the result http://developer.android.com/reference/android/content/Intent.html wherein you will find an example of what you seek. Oct 21 19:23:25 maraz have searched but not found that. Oct 21 19:23:27 thanks Oct 21 19:23:34 How can I call a method in the activity that created a sub activity ? Oct 21 19:23:51 Trying to let the user select an option which returns to the main activty and does something Oct 21 19:23:55 Hello guys. I'm trying to make a link on the browser launch my app. I've tried everything and it won't work (nothing hapepns when I type fqm://test on the browser). This is my last attempt: http://pastebin.com/SsfNfmHQ does this have anything to do with the fact I'm not installing the app, just pressing 'debug' on eclipse? But I have already tried to install the app with adb and it said 'already installed'... Oct 21 19:24:12 wondering if that's not really possible and I should create a different view or something and keep it all in the same activity ? Oct 21 19:24:46 there is something called onActivityResult, and startActivityForResult Oct 21 19:25:45 Part is that for me ? Oct 21 19:25:55 yes, it may help you :) Oct 21 19:26:07 hmm thanks, let me look those up Oct 21 19:26:23 Nobody? :/ Oct 21 19:28:55 Part: that's baller.... exactly what i need Oct 21 19:29:36 SrPx: I'm not sure what you said, debug should install and run the app (on whatever device you configured) while connecting it via ddms for debugging purpose Oct 21 19:30:14 SrPx: once you run/debug it, it'll be installed on the target device Oct 21 19:35:49 hi Oct 21 19:43:24 anyone here ever use SlidingMenu by jfeinstein10 ? Oct 21 19:43:42 Can't figure out how to get the menu to slide in, all set up - no errors Oct 21 19:53:12 hy all! I have created a method about bluetooth connection, but if I click on the "connect" button, it will wait for 1 sec, and it will be suddenly blue after that and connecting, jumping to the next activity. Oct 21 19:53:22 I can't create a progressbar, because it appears only after the connection. How should I do to be appear before connecting, not after? Oct 21 19:53:29 I created setonclicklistener on the button, and in the first line there's the progbar.setVisibility(View.VISIBLE); but it still appears only after connecting Oct 21 19:57:53 Your progressbar wont be drawn until after the method where you set it visible returns Oct 21 20:07:00 SimonVT: but it needs to be drawn Oct 21 20:07:38 API 13+ my onStart() is getting called twice. Before I go crazy debugging this, does anyone have any ideas as to why this happens starting with API 13? Oct 21 20:07:39 what should I do? Oct 21 20:07:57 Don't block the ui thread Oct 21 20:08:03 Then it'll be drawn pretty much instantly Oct 21 20:08:19 do i block the ui thread? Oct 21 20:08:44 should I set the visibility in another thread? Oct 21 20:09:42 You should do stuff that takes a long time in another thread Oct 21 20:10:10 okay Oct 21 20:15:59 there should be an automatic way to grab a reference in code to all of (or select) the elements from an XML file Oct 21 20:16:18 do the "EditText et = (EditText) findViewById ()" for me Oct 21 20:16:59 assign multiple xml elements to the same variable? Oct 21 20:17:50 just like Eclipse can generate setters and getters? it can create different variables with (ok maybe there will be a problem with choosing the names here) different names and assign them to the corresponding XML elements that I selected Oct 21 20:18:34 i think being able to choose your own variable names is half the point of it Oct 21 20:18:43 hmm Oct 21 20:18:58 yea..I guess, besides this creating a form thing won't happen more than twice in an app Oct 21 20:19:02 otherwise...fuck that app. Oct 21 20:24:23 hi alll Oct 21 20:25:17 I have eclipse juno and i'm trying to install the ADT plugin but it's not appearing anywhere it should do (create project, preferences, etc) Oct 21 20:25:37 it is showing as installed though and as such, it wont let me reinstall it Oct 21 20:25:47 (on windows 8) Oct 21 20:25:57 any idea how i give it a kick? Oct 21 20:26:25 it has worked before a reinstall and the same versions (installed a few days previously) work fine on a win7 machine Oct 21 20:33:13 why would you use windows 8? Oct 21 20:38:57 Nobody? Oct 21 20:41:40 pragma-: why not? Oct 21 20:42:26 it's an OS, I find it on par with Windows 7, I;m not too keen ont he full screen start menu and don;t use many interface formally known as metro apps, but other than that, it's pretty much the same as win7 Oct 21 20:42:38 SrPx: nobody what? Oct 21 20:43:32 Knows why setting intent for the browser to launch my app is not working ... I explained it here a few minutes ago... there's this link on stack overflow too: http://stackoverflow.com/questions/13001740/android-intent-not-working-to-make-app-launcheable-from-browser I guess I am doing something wrong. Oct 21 20:43:38 Anoia: /! Oct 21 20:43:44 Wops sorry Oct 21 20:44:30 Sorry, lost my connection, did anyone answer my question about heaps? Oct 21 20:45:12 SrPx: does it handle links any differently to typing? Oct 21 20:45:38 and does createing an intent with the required URL load it correctly? Oct 21 20:45:57 Anoia: I have tried clicking an test but it did not work too. Oct 21 20:46:15 Anoia: an intent with the required URL? Oct 21 20:46:46 yes, the URL you want your application to handle Oct 21 20:46:54 bypassing the browser for now Oct 21 20:47:34 Anoia: pardon again, what? You want me to activate the intent without using the browser? Oct 21 20:47:56 as a test, yes Oct 21 20:48:12 you have 2 parts to the problem Oct 21 20:48:27 1) getting yoru activity to activate on the url/scheme Oct 21 20:48:35 2) getting the browser to activate it Oct 21 20:49:02 as you don;t know whihc is the problem, but you think it's registered correctly, just try one bit at a time Oct 21 20:50:37 once you get the intent itself working fine, you can then make sure the browser launches it Oct 21 20:51:56 Damn, I am not sure if I've bloated my code or if I needed to bloat it for JNI and Java to work together without problems. Oct 21 20:52:06 question, I have an android project that builds fine in eclipse, but when I have the exact same code on a different platform, and build it with `ant debug` it fails to locate strings Oct 21 20:52:07 hmm Oct 21 20:53:42 Anoia: but how do I make my activity activate an url? What does that mean? You mean like Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("the_scheme_there")); ? Oct 21 21:00:15 SrPx: pretty much Oct 21 21:03:16 Anoia: using Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("fqm://test")); startActivity(browserIntent); Oct 21 21:03:23 Anoia: it says 'source not found' on Eclipse Oct 21 21:08:14 I use this which works in app, but doesn'e seem to from the browser: Oct 21 21:08:17 http://pastebin.com/YMAD5JaW Oct 21 21:09:09 it does not work there in the browser? Oct 21 21:09:34 Anoia: this goes just inside the Activity tag? HERE Oct 21 21:10:13 yes Oct 21 21:10:19 and yes Oct 21 21:10:39 Worked from the app, yes! Oct 21 21:12:13 what were you missing to cause it not to launch from int he app? Oct 21 21:12:22 does the browser launch it now? Oct 21 21:12:58 presumably it needs an extra flag to allow the browser to call arbitrary URIs Oct 21 21:17:16 Anoia: finally testing your paste, with click, it did work. It makes no sense because it is the same as many of my attempts. But it worked. Allelujah Oct 21 21:17:27 Anoia: oh and I had to add another flag Oct 21 21:17:33 thank you very very very much Oct 21 21:17:50 sorted? Oct 21 21:17:54 what extra flag? Oct 21 21:18:16 (and don;t forget to post the answer onSO :) Oct 21 21:20:21 JakeWharton can you help me? I am not able to create the project in eclipse actionbarsherlock. Oct 21 21:20:47 Anoia: I could but I have no idea why that worked. I had to add (but your paste already worked from inside the app without that) Oct 21 21:48:57 could anyone name something like a game engine other than libgdx? Oct 21 21:49:18 something that doesnt suffer from the same ill as ilbgdx, no documentation Oct 21 21:50:42 libgdx has decent documentation for an open source engine Oct 21 21:50:47 there's also andengine Oct 21 21:55:09 I know I can't manipulate the UI from task threads, but is it okay to generate, say, a new LinearLayout in a task thread as long as I don't add it to anything actually visible in the UI? Oct 21 21:58:59 lfaraone: yeah, just don't attach it to a window Oct 21 21:59:10 and don't touch it from another thread once it's been attached Oct 21 22:00:10 Hoping for some developers opinion on this, There's a mobile banking app called barclays pingit, lets you send money from your bank account to another persons phone number. At current they block rooted devices "as there could be other applications running on the devices to capture the five digit security passcode that is used to access the Pingit." Is this a correct statement? I would have thought that rooted and non rooted phones are just as vulnera Oct 21 22:00:39 nah, rooted would definitely be more vulnerable Oct 21 22:00:47 sampullman: how so? Oct 21 22:00:48 non rooted isn't 100% safe though, of course Oct 21 22:01:18 a rooted phone can toy around with lower level stuff much more easily Oct 21 22:01:35 more access almost always == less security Oct 21 22:01:36 true, I suppose Oct 21 22:01:52 this means I can't badger them into reviewing their policies, :( Oct 21 22:03:24 I do find it amusing that they are worried about rooted phones, and not worried about storing your bank data on the phone unencrypted xD Oct 21 22:04:48 i would hope it's not unencrypted Oct 21 22:05:30 sampullman: it is unencrypted, just slightly obsfucated. Oct 21 22:05:53 well, that's shitty Oct 21 22:05:58 yup Oct 21 22:06:07 I think that's the real reason they don't want rooted users, so people don't notice and kick up a stink Oct 21 22:16:06 is there a danger of people decompiling our apks? to steal the source Oct 21 22:16:25 or is it so difficult that no one would probably bother Oct 21 22:16:39 yes. Oct 21 22:16:40 no. Oct 21 22:20:02 ok Oct 21 22:20:59 sampullman: annoyingly, when I generate the LinearLayout in the task thread, the entire process took 10x longer. Oct 21 22:21:35 i dunno what you're trying to do, but i normally wouldn't do that in a thread Oct 21 22:22:20 basically, I'm parsing a bunch of JSONObjects into normal Java objects, and then in the UI thread I was going from those to LinearLayouts which I added to a parent LinearLayout I have as a scrollable. Oct 21 22:23:20 Moving the JSON parsing out of the UI thread reduced the number of frames skipped by 40% with no apparent slowdown to the entire process. Oct 21 22:24:02 But when I moved the LinearLayout generation to the same task thread, iterating over each JSON object started taking about a second per object. Oct 21 22:26:01 im not sure why that would be. try profiling it, or just do the json in the thread and update when the thread completes Oct 21 22:53:53 Is this the correct channel to ask questions in regards to developing Android Applications? Oct 21 22:57:48 KatLight, see topic Oct 21 22:58:12 Ok, just wanted to make sure it is application development Oct 21 22:58:59 I am having a strange problem with Toast, that I must be overlooking something obvious Oct 21 23:02:16 I have imported android.widget.Toast; and the toast command is Toast.makeText(this, "This is a test.", Toast.LENGTH_LONG).show(); Oct 21 23:02:31 But I am getting the following error messages: Multiple markers at this line Oct 21 23:02:31 - Syntax error on tokens, FormalParameterList expected Oct 21 23:02:32 instead Oct 21 23:02:32 - Syntax error on token "(", invalid VariableDeclaratorId Oct 21 23:02:32 - Syntax error on token(s), misplaced construct(s) Oct 21 23:02:32 - Syntax error on token ")", delete this token Oct 21 23:05:32 your editor is all effed up Oct 21 23:05:42 hard to say what the issue is, exactly Oct 21 23:05:42 I am using eclipse Oct 21 23:06:22 can you post the code at http://pastebin.com/ ? Oct 21 23:06:35 at least a few lines above the toast call Oct 21 23:07:27 http://pastebin.com/upAaSsPp Oct 21 23:08:11 oh dear Oct 21 23:08:27 *gulps* yes? Oct 21 23:08:36 you need to start here: http://developer.android.com/training/basics/firstapp/index.html Oct 21 23:09:31 I have already written a few apps (just finished a class on it) but I never had problems with toast till now Oct 21 23:09:54 what kind of issues? Oct 21 23:10:00 ok, well you're forgetting some important things Oct 21 23:10:17 first of all, you probably want that code to be in onCreate(...) Oct 21 23:10:33 ahh, you're Toast is being made with the context of a ListActivity... Oct 21 23:10:37 you can't just type arbitrary code in a class definition and expect it to run Oct 21 23:10:41 *hits head* I forgot I accidently deleted oncreate Oct 21 23:10:54 Toast.makeText(this.getApplication(), "This is a test.", Toast.LENGTH_LONG).show(); Oct 21 23:10:57 that should work Oct 21 23:11:12 uh Oct 21 23:11:13 no Oct 21 23:11:23 hmm? Oct 21 23:11:42 i started writing out my project, the tutorial i was using as a guide was too confusing, deleted and decided to start over Oct 21 23:12:40 I knew I was doing something obviously wrong Oct 21 23:12:50 just put that code in onCreate, it should be fine Oct 21 23:13:11 yes, it seems to be working now, or atleast I am not getting that error anymore Oct 21 23:16:00 Thats what I get for being lazy and did deleting all the code to start over Oct 21 23:27:08 instead of this.getApplication, try getApplicationContext(); Oct 21 23:27:27 oh, he's gone Oct 21 23:27:34 or she Oct 21 23:31:21 you can show a toast with a listactivity context afaik Oct 21 23:32:02 Apologies for a dumb question -- what's the widget that implements the combination of a viewpager and a tab-widget on the home-screen in the default android ics emulator? Ie, it lets me page through lists of apps like a view-pager, but it also pages into the widget section. In addition, tapping on the widget text on the top directly segues into the widget section. Oct 21 23:32:37 It looks like navigation tabs in an actionbar , but how does the paging work? Oct 21 23:35:07 copy the example out of abs examples and use that Oct 21 23:35:49 sorry, what are the "abs examples"? Oct 21 23:35:54 https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/fragments/src/com/actionbarsherlock/sample/fragments/FragmentTabsPager.java Oct 21 23:36:08 great, thanks for the pointer. Oct 21 23:36:08 if you don't want to use abs just remove the 'Sherlock' stuff. Oct 21 23:36:17 but i recommend using abs. Oct 21 23:44:12 Oh, I see -- so the *Sherlock sample is the same as the v4.support example, and it provides the feature of combining ViewPaging with tabs Oct 21 23:44:38 What would be a reason to use the abs library versus just the support library? Oct 21 23:47:10 it works, no hassle Oct 21 23:47:57 Is there a triange Shape Drawable ? Oct 21 23:49:07 triangle* Oct 21 23:49:30 sampullman: ok. The reason I ask is that I'm already using the v4.support library at the moment; and it seems to be working for the bits that I'm using [well, viewpager in fact.] Is the support for the TabHost and other classes not as good as the viewpager support then? Oct 21 23:58:17 this fragmenttabspager code looks pretty hacky ;) Oct 22 00:01:17 Am I readig this right? The code assumes that one viewpager is used to flip through the pages; and each page also corresponds to one tab Oct 22 00:02:37 kbs: your complaint begs the question: where is your better solution Oct 22 00:02:50 actually, I think sampullman said he had one the other day but I could be mistaken Oct 22 00:03:34 tdignan: just observations. Clearly I'm clueless about available solutions :-) Oct 22 00:03:57 well if you make something better let me know, i like repositories Oct 22 00:04:01 im working on a project with a fragmentpageradapter, yeah Oct 22 00:04:27 for tabs, i mean Oct 22 00:04:54 since the beginning of android, tabs have plagued developers. a seemingly simple task Oct 22 00:05:55 Well. fwiw, I'm currently in the situation where I have two different viewpagers [rather similar to how the widgets and app pages work on the home-screen] and have a few custom views where I could potentially handle the headers myself Oct 22 00:06:41 what I'd like to do is to 'merge' it just like the homescreen does; though I'm rather wondering if I'm stepping into tar pits by going down using the TabsHost + compatability (+ sherlock ) aproach Oct 22 00:07:14 abs integration into an app that already works on 3.0+ is *seamless* Oct 22 00:07:18 it's just a few names you need to change. Oct 22 00:07:48 the hardest part used to be getting abs to import into eclipse, but eclipse adt can handle it these days. Oct 22 00:08:19 right. I'm more worried about the code changes that go down the path of what the FragmentTabsPager approach does. I can already see I'll need to write some more code to 1) merge my two view pagers, and 2) map it correctly into the tabs Oct 22 00:09:13 well please update us later. tabbed viewpager has been a topic here recently. Oct 22 00:09:41 tdignan and sampullman -- thanks for the pointers, appreciated :-) Oct 22 00:12:15 i can past my adapter sometime if you'd like Oct 22 00:12:26 it's really quite simple Oct 22 00:12:32 sampullman: that would be great Oct 22 00:13:39 here's the adapter: http://pastebin.com/bL9g7R9Y Oct 22 00:14:11 i use a slight modification to the standard ViewPager that lets me disable swiping (probably not relevant to your project) Oct 22 00:15:00 sampullman: am I correct in assuming that the view-pager maps a single page to a unique tab? Oct 22 00:15:12 ie, 1-1 map between page and tab? Oct 22 00:16:15 yes Oct 22 00:16:51 gotcha. Thanks for the code sample, nice :-) Oct 22 00:19:51 Out of curiosity, has someone already implemented a 'union' pageradapter? Oct 22 00:20:18 ie, takes two pager adapters, and creates a new one that is the first adapter prepended to the second [in terms of behaviour] Oct 22 00:20:39 maybe, but that should be simple Oct 22 00:25:37 onCreate, I want to clone an existing layout by ID, then wipe the parent view, and build new child elements based on said template. There seems to be some issues with Java passing handle information rather than just cloning it? Suggestion? Oct 22 00:27:15 Essentially, I have a LinearLayout containing a TextView, and a ProgressBar. This needs to be duplicatable unlimited amount of times in a horizontal scroll view Oct 22 00:29:06 http://pastie.org/5095785 Oct 22 00:30:28 Komak57: without reading the pastie, use layoutinflater to generate layout trees from XML files Oct 22 00:30:43 errors: http://codepad.org/dAIw7Aoa Oct 22 00:31:40 an inflater? hmmm, know of any source snippets off the top of your head? Oct 22 00:44:50 sweet, works much better now ^.^ Oct 22 00:49:53 Does simple_list_item_activated_1 only work for ListActivity, or can it work for a plain ListView as well? Oct 22 00:53:57 it's just a resource Oct 22 00:54:45 It's... not doing what it's supposed to, for me. Trying to work out why items don't get a visual highlight upon selection and wondering what could be messing with it. Oct 22 00:55:27 it's an image, it doesn't "do" anything Oct 22 00:55:35 something else does the doing Oct 22 00:56:15 any way to invalidate an editview to prevent manual input? Oct 22 00:56:36 sampullman: yes, it "does" the highlighting. Oct 22 00:56:58 Komak57: if you override the class, and return false for isEditor() or something Oct 22 00:57:02 sampullman: it's not "doing" it. The items are being selected and unselected properly. There just is no visual changes as that thing is responsible for. Oct 22 00:57:04 i forget the exact method name Oct 22 00:57:35 but then it's basically a textvuew Oct 22 00:57:37 *view Oct 22 00:57:38 I'm looking for the VB equivelant of TextBox.enabled = false; Oct 22 00:57:48 just use a textview Oct 22 00:58:15 ._. but I like the visuals of the editbox a little better? Oct 22 00:58:25 then do what i said Oct 22 01:00:00 well, I was fiddling around while asking the question. Apparently i disable clickable and focusable ._. bit easier than soft coding Oct 22 01:01:01 this is literally all you have to do: http://pastebin.com/EWWB1RuF Oct 22 01:02:55 or http://pastebin.com/K7eZvaCv Oct 22 01:04:03 even less code: use a textview and assign the background to the current theme's edittext background Oct 22 01:10:39 I just had an idea for an ADT feature. Might be tricky though. Oct 22 01:10:58 Look for writes to View fields, either in the local method, or in onCreate, and when hovering the field show the resource id of the View in the tooltip. Oct 22 01:11:34 Depends on Eclipse's AST whether it can do that Oct 22 01:12:44 My application uses 9 megabytes of RAM. I just now read that android has some heap memory limit of 24 or 16 or lower megabytes. Does this mean I am rather close to the threshold? Oct 22 01:13:43 diki: yes, but it's not really a problem unless you exceed it. Also there's largeheap for 3.0+ Oct 22 01:13:59 Interesting, this is a first. Oct 22 01:14:26 And my application is even simpler than I imagine, yet using 9 megabytes of ram... Oct 22 01:15:06 it is not a problem unless you risk exceeding the limit. I imagine the limit will get higher as time goes on, because phones with 2 GB will soon appear, and so on. Oct 22 01:15:36 if all applications are limited to 32 MB, you could literally run like 50 apps concurrently. It makes no sense, there must be an expectation that applications will get larger heaps as the hardware becomes more capable. Oct 22 01:15:44 Yeah, but my application is still in Alpha, I imagine I will add more features in the future, likely increasing the RAM usage.. Oct 22 01:15:54 this blows Oct 22 01:16:16 worry about it when you do exceed it, if you exceed it. Oct 22 01:16:32 most commonly people just have large bitmaps in memory and that's a problem. Oct 22 01:17:01 I have no images whatsoever. Oct 22 01:19:02 I will try to Analyze the cause of the memory hogger and try to reduce it. Oct 22 01:19:14 But knowing my application, I doubt I can do anything. Oct 22 01:20:04 no bitmaps? must be tons of data, or a memory leak Oct 22 01:20:12 then do not do anything. The memory usage is managed by the system and in general as you approach the limit garbage collection will trigger and free memory. Oct 22 01:20:45 that works for most applications that do not actually hold only live objects that are unfreeable. Oct 22 01:20:51 sampullman:I believe it is probably mostly the JNI library Oct 22 01:21:08 well, that's unfortunate Oct 22 01:21:14 My JNI library includes statically linked OpenSSL 1.0.1c and the shared library of libpcre Oct 22 01:21:40 dunno what libpcre is, but openssl shouldn't be hogging Oct 22 01:21:52 perl compatible regex library. But it should be pretty small. Oct 22 01:22:02 The size of pcre is 280kb. Oct 22 01:22:19 but.. Oct 22 01:23:22 But libssl.a is 3 megabytes, and libcrypto.a is over 9 megabytes, but the final apk is only 1.2MB and when installed < 4MB. Oct 22 01:23:39 none of that has anything to do with the ram used Oct 22 01:23:49 well it depends on how it is accounted Oct 22 01:23:59 shared libraries have to be paged in for their functions to be callable Oct 22 01:24:14 it's not anonymous memory, but it's resident memory. It can be discarded as necessary, though, which makes it muddy Oct 22 01:24:45 i see Oct 22 01:25:15 I think android probably limits anonymous memory, not resident memory Oct 22 01:26:09 for normal application, most of the resident memory is shared with all other bits of the running system anyway, and none will be freed when that process is killed because others still use it Oct 22 01:26:36 there is some engineering gone into dalvik to allow memory sharing to work Oct 22 01:26:41 I am looking for memory analyzers however the one I found is an Eclipse plugin. I do not use Eclipse, but a plain text editor and the console. Oct 22 01:26:55 is there some standalone tool I can use? Oct 22 01:27:24 I guess the tool is ddms Oct 22 01:27:51 i use traceview Oct 22 01:28:02 and the debugging stuff in the api Oct 22 01:28:22 oh. Well, I haven't really touched this side of android. Oct 22 01:29:16 There are many memory tools (search for 'memory profiling android'). Many expect the ddms dump, many use eclipse. You may have to get over it and fire up eclipse. Oct 22 01:29:52 oh yeah, i use the standalone version of MAT Oct 22 01:29:58 that's a good tool Oct 22 01:30:31 weird part is, when I start the emulator with Max heap size of 1MB per application, my application starts normally(no crashing, force closing or anything like that). Oct 22 01:30:49 diki: native code doesn't count against the Dalvik heap size Oct 22 01:31:16 Yes, I read that a moment ago. Oct 22 01:38:14 ehh, I'm forgetting the terminology here. But does anyone have a simple order of operations math calculator script? Trying to build it from scratch based on memory, but it's not serving me that well. Just need numbers, add, subract, multiply and divide. Oct 22 01:38:55 script? o_O Oct 22 01:39:01 i just wrote a calculator, but it's in some java port of yacc Oct 22 01:39:38 do you know bison/yacc syntax? Oct 22 01:39:46 there's a specific term for it. Same process as designing a run-time programming language. A script would be inputted into it? Oct 22 01:39:57 I would rather not import the BeanShell lib for this. Oct 22 01:40:14 Komak57: i'd imagine you are looking for a parser generator... Oct 22 01:40:24 a compiler compiler, hehe Oct 22 01:40:53 parser is one of the terms for what im looking for XD Oct 22 01:41:41 sampullman: yacc is for people too lazy to write their own r-d :P Oct 22 01:41:50 lol, yeah Oct 22 01:42:08 Komak57: parser generator / lexeical analyzer (aka lexer) generator? Oct 22 01:42:10 erh Oct 22 01:42:12 lexical Oct 22 01:42:20 the version i wrote wasn't meant for low memory apps, so i had to hand optimize the whole thing Oct 22 01:42:25 Kamaze: often the two are combined Oct 22 01:42:26 shoulda just done it from scrath Oct 22 01:42:29 *scratch Oct 22 01:47:19 I'm not sure XD I don't care, so long as I find one I can put in my project that wont take up any significant space. Oct 22 01:47:49 all depends what you're parsing and how you have to represent it Oct 22 01:48:09 parsing a giant json-like object into a treemap? Bad times ahead. Oct 22 01:48:17 [0-9][+,-,*,/] Oct 22 01:48:34 so... java regex? Oct 22 01:48:35 I don't even expect decimals XD Oct 22 01:48:38 oh, you can just write that from scratch. should be < 2k for the code Oct 22 01:49:02 regex can't quite handle that Oct 22 01:49:15 -nods- that's what i was expecting. There was a snippet I found when I was first learning this for a Minecraft addon project. Oct 22 01:49:24 regex would be far slower than necessary Oct 22 01:49:35 it's a simple treemap Oct 22 01:49:40 well, sorta Oct 22 01:49:53 but I can't figure out that term, so I can't find the page Oct 22 01:50:12 pretty sure it was 3 words, one being Parser? Oct 22 01:50:53 just write a simple shift reduce parser Oct 22 01:50:53 http://en.wikipedia.org/wiki/LR_parser Oct 22 01:51:36 i find handling precedence stuff myself annoying, so i use yacc Oct 22 01:52:17 no need to reinvent the wheel Oct 22 01:52:22 but i use bison generally Oct 22 01:52:35 so i guess someone thought there was a need Oct 22 01:53:43 antlr variants are nice, too Oct 22 01:53:45 again, there was a page I had found at some point a while back that had EXACTLY what i need Oct 22 01:54:34 http://www.gnu.org/software/bison/manual/bison.html#Infix-Calc Oct 22 01:56:33 http://www.ehow.com/how_5783678_develop-simple-calculator-java.html Oct 22 01:56:43 that's the closest thing I found to what I was looking for Oct 22 01:56:58 ehow is not a good place to get code Oct 22 01:57:35 sampullman's link will make you an industrial strength infix calculator, but the code will be generated in C afaik. Oct 22 01:57:48 there's a version of bison for java Oct 22 01:57:52 oh, awesome Oct 22 01:58:01 thanks for showing me this :) Oct 22 01:58:01 *several versions Oct 22 01:58:06 they all kinda suck, though Oct 22 01:58:14 eh, it's better than nothing. Oct 22 01:58:19 objects gettings created all over the place Oct 22 01:58:44 Komak57: at first glance, that calculator isn't going to follow order of operations Oct 22 01:59:05 I'm surprised you bothered to read it. The text was making my eyes bleed. Oct 22 01:59:43 a lazy git like me would just split a line of text by spaces and then look for repeated reduction steps possible... :-/ Oct 22 02:00:16 like if there's * then reduce that, and same for /, and when no more those then move to the operators with lower precedence Oct 22 02:00:31 if the result of this crap isn't a single number, complain with the original expression attached Oct 22 02:00:40 and that, people, is a shift-reduce parser Oct 22 02:01:01 sort of Oct 22 02:01:06 sort of being key Oct 22 02:01:24 I'm incredibly lazy but this would sort of work, and more importantly could probably be expanded to a real program Oct 22 02:01:48 just by doing more careful token splitting than split by space, but for initial version that is fine Oct 22 02:02:12 and if grouping is to be allowed, then groups that contain no other groups must be reduced first. A tree approach would probably be best Oct 22 02:03:24 at that point, writing a true shift-reduce parser (w/ a lexer) would be less complicated Oct 22 02:03:39 perhaps. Oct 22 02:05:08 http://www2.cs.tum.edu/projects/cup/ looks promising Oct 22 02:07:45 I often wish that parser generators wouldn't generate code though Oct 22 02:08:22 what should they generate? Oct 22 02:08:26 sandwiches? Oct 22 02:08:32 just read the grammar, then you can start parsing and it generates events you'd map. It's a bit more work to use, and probably more annoying to use, but avoids those code generation steps I hate Oct 22 02:09:22 how can it generate events w/o generating code? Oct 22 02:10:13 My app stops after creating a fileSteram. Log.v("MainActivity","a"); fileStream = new FileOutputStream(Environment.getExternalStorageDirectory() + "/" + fileName); Log.v("MainActivity","b"); //this will only print 'a'. I'm not sure if there is an error, I don't understand well the consoles on Eclipse. Is there an error? What is it? Oct 22 02:10:40 look at the logcat output Oct 22 02:10:48 http://imgur.com/jacoj Oct 22 02:11:01 SrPx: then, see, what you need to do is stop coding right now and learn how to use the basic tools provided Oct 22 02:11:15 Leeds: how? Oct 22 02:11:25 sampullman: simple, parser.load(grammar); parser.setInputStream(stream); while (parser.nextEvent()) { ... } Oct 22 02:11:27 reading the fscking manual Oct 22 02:11:33 that would be a good start Oct 22 02:11:43 Leeds: What fucking manual? Oct 22 02:12:05 I didn't say fucking manual, I said fscking manual Oct 22 02:12:17 http://developer.android.com/tools/index.html Oct 22 02:12:27 alankila: i see what you mean, but there's a reason that sort of thing doesn't exist Oct 22 02:12:27 I am reading a lot while I go, I'm not sure what you want. I have to learn about java, eclipse and android at the same time Oct 22 02:12:39 no, you can learn about them one by one Oct 22 02:12:47 like a regular person Oct 22 02:13:23 This is supposed to be a manual? Oct 22 02:14:44 I am asking 3-4 questions a day, is this really too much? Oct 22 02:15:26 not when you make it clear that you're not asking basic questions which are covered in the docs Oct 22 02:15:48 or when you have worked out how to ask a question in such a way that people don't need to ask you for lots more information in order to help you Oct 22 02:16:14 few tweaks and the calculator no that page works :P Oct 22 02:16:17 I don't understand how to use that doc.. Oct 22 02:17:06 Hey, can anyone clue me in as to why onTouch is not called when I have one pointer down, then press a second one down? Oct 22 02:17:18 Where does it says the solution to my problem? I've read the entire page on the FileOutputStream but it just doesn't say anything helpful about this problem Oct 22 02:17:33 Komak57: which page?, the e-how? Oct 22 02:17:35 I'm just printing a log message with the location of the MotionEvent, and they're only printed for the first finger that has gone down Oct 22 02:17:47 SrPx: it tells you where to get log info, which anyone will need before they can help you Oct 22 02:17:53 SrPx, did you add permissions? Oct 22 02:18:02 Also, I have multitouch enabled in my manifest Oct 22 02:18:03 http://developer.android.com/reference/java/io/FileOutputStream.html this, it does not inform much ? Oct 22 02:18:10 oh wops, I thought sampullman 's message was to me Oct 22 02:18:17 SrPx: pastebin from your logcat Oct 22 02:18:40 sampullman, yeah :P had to modify the string split() line to work without spaces and such, but it works fine now! Oct 22 02:19:11 Komak57: i can almost guarantee that the "code" on that page doesn't take operator precedence into account Oct 22 02:19:30 Leeds: I know about LogCat, but I don't understand. There's no error message. Except a single line on 'error' tab, but doesn't seem related. 10-22 00:08:09.694: E/dalvikvm(25175): could not disable core file generation for pid 25175, errno=1 (pasting here because it is short) Oct 22 02:19:36 Leeds: Do you want the entire 'verbose' tab? Oct 22 02:21:11 You know what, I think I'm an idiot... onTouch *is* getting called, I just need to determine which pointer to handle Oct 22 02:21:17 Didn't realize it worked that way :( Oct 22 02:21:20 Leeds: http://pastebin.com/npLmXNtB this is the verbose tab of LogCat, http://pastebin.com/wG3yyVfV , line 129 is the problematic line Oct 22 02:22:00 Komak57: I think I did. I've set this: Oct 22 02:22:23 doppio: yeah, you need to handle MotionEvent.ACTION_POINTER_DOWN, using (action & MotionEvent.ACTION_MASK) in a switch statement Oct 22 02:23:28 SrPx: and you've commented out all your exception catchers? Oct 22 02:24:21 Leeds: it's not done yet. It did message a class that doesn't exist (that was a class that showed some buttons on the coder's app - I'm using only the DownloaderThread) Oct 22 02:24:47 but how can you tell at the moment if there's an exception being raised? your code will just fall off the end, silently Oct 22 02:25:40 Leeds: oh that's true, let me see it! Oct 22 02:27:04 Looks like android.content.res.Resources is the culprit. Occupies over 60 percent of my heap. Oct 22 02:27:27 I suppose these resources are my buttons,fields etc? Oct 22 02:27:34 Leeds: indeed it went to catch(FileNotFoundException e), let me see what that means. Thanks Oct 22 02:27:56 Hrmmm... I need to change the values of 2 child elements in a view created from a LayoutInflator. I have the parent LinearLayout handler, but getting the child elements via ID errors and crashes. Suggestion? LinearLayout contains 1 TextView and 1 ProgressBar Oct 22 02:28:38 Leeds: it means the file cannot be openned for writting. hmm. Komak57, do you know if it's possibly a permission issue? Oct 22 02:28:49 Komak57: some magic error/crash which doesn't give any log information or stacktrace? Oct 22 02:29:01 There's nothing about permissions on the page of FileOutputStream Oct 22 02:29:02 http://imgur.com/jacoj Oct 22 02:29:03 http://imgur.com/jacoj Oct 22 02:29:04 http://imgur.com/jacoj Oct 22 02:29:09 well sure it does. Says an error with the String Resource. Oct 22 02:29:21 But I assumed that since there are 1-infinite copies of it Oct 22 02:29:48 oh, good, "an error with the String Resource" - that'll make it easy to debug your code remotely Oct 22 02:30:02 wow, 10:30 on Monday morning and I'm already getting sick of this... Oct 22 02:30:30 ._. the "error" is that I can't find a resource via ID from a view that is one of many duplicates (meaning duplicate ID's as well) Oct 22 02:30:44 I need another way of grabbing the child elements Oct 22 02:31:36 you probably need to fix your code Oct 22 02:31:37 a view's children should all have unique id's Oct 22 02:32:53 ._. Oct 22 02:33:19 I'm inflating a view from an XML and mass-producing it by the user's request? Oct 22 02:33:49 View.setId() Oct 22 02:33:56 give them unique ids Oct 22 02:34:10 oh? and how do you suppose I grab the View in the first place? Oct 22 02:34:15 ? Oct 22 02:34:15 or keep the parent view reference and call view.findViewById on it Oct 22 02:34:18 you just infalted it Oct 22 02:34:21 *inflated Oct 22 02:34:45 Komak57: is there a reason why you still haven't shown us the actual error? Oct 22 02:34:45 is there no way to grab a view handle other than ID? Oct 22 02:34:55 View.getChild() Oct 22 02:35:03 read the docs, yo Oct 22 02:35:43 Leeds, because the error was pretty direct? I just need an alternative way of grabbing a view handle of a child element within a view. sampullman seems to have it Oct 22 02:35:53 as opposed to the nice useless vague "error with the String Resource" Oct 22 02:36:23 yeah sorry Oct 22 02:36:24 I'm with leeds Oct 22 02:36:27 you're horrible at this Komak57 Oct 22 02:36:35 "Hey guys something bad happened, fix it please" Oct 22 02:36:40 "What exactly happend?" Oct 22 02:36:44 "Something bad. Can you fix it or what?" Oct 22 02:36:49 * lov glares Oct 22 02:37:39 there's a reason why there's a link in the topic which says "Stacktrace or GTFO!" - and a reason why I minorly flooded the channel with that link Oct 22 02:37:41 diki: create a "Hello world" app and take a look at how many resources your Resources takes up there. Oct 22 02:37:53 diki: I'm willing to be that the number is about the same, and that there isn't a lot you can do Oct 22 02:37:54 lov, you're terrible at giving assistance to any problems in general... Oct 22 02:38:01 in general, yes. Oct 22 02:38:03 In particular, no. Oct 22 02:38:04 "don't do this" Oct 22 02:38:07 "don't do that" Oct 22 02:38:09 I'm pretty darn good at doing things in particular Oct 22 02:38:19 it really helps when I know what I'm helping out with though Oct 22 02:38:21 if you must say so yourself :P Oct 22 02:39:15 lov: I think what we have here is a classic case of someone who doesn't know what the problem is, but is sure they know how to fix it Oct 22 02:39:28 lov:I am sleepy, thinking of going to bed. But whatever this class is doing, it's not done by me. Oct 22 02:39:29 The point is, as much of a detestible nerd RMS is, http://www.catb.org/esr/faqs/smart-questions.html is pretty much always correct. Oct 22 02:39:40 diki: it likely isn't, and there likely isn't a lot you can do, sorry :) Oct 22 02:39:45 diki: I actually spent a good day doing exactly this Oct 22 02:39:53 lov: ESR Oct 22 02:39:55 lov: did you just get ESR and RMS mixed up??? Oct 22 02:39:56 "The hell is that 4MB bitmap in my Resources class?" Oct 22 02:39:58 alankila: gah Oct 22 02:40:01 yes ._. Oct 22 02:40:08 in all fairness they're both horrible neckbeards Oct 22 02:40:16 RMS is the shit! getouttahere Oct 22 02:40:27 haha Oct 22 02:40:31 lov:I'll compile a sample hello world app tomorrow, but I do think it would have lower memory usage. Oct 22 02:40:37 but they are horrible in different ways Oct 22 02:40:38 nah, ESR isn't bearded Oct 22 02:40:43 sorry, my emacs instance temporarily took control there Oct 22 02:40:43 diki: I'm willing to be that the delta is way, way smaller than you think :) Oct 22 02:40:50 anyway... Oct 22 02:43:25 Anyway, to go back a bit Oct 22 02:43:35 SrPx: did you figure out the problem? Oct 22 02:45:02 lov: thanks, I got rid of the "filenotfound" problem (I guess), now I'm getting a "permission denied" problem. But I think this is because my android is mounted to my computer and this disables the SD card. Now I'm finding out a way to install it without having to mount Oct 22 02:45:26 just unmount the sd card..? Oct 22 02:45:50 But when I open the app it says 'waiting for debugger to attach' Oct 22 02:46:01 Don't worry I'll figure this out Oct 22 02:46:02 Hey, so I was given a project, and told to give it a signing key. Typically when I do this, I do this at the BEGINNING of the development of an app. not in the middle. How would I go about instating it? Also, this is my first project that's in Javascript Oct 22 02:46:14 (I work in eclipse) Oct 22 02:46:25 javascript??? Oct 22 02:46:57 Moleboy: Android apps aren't written in Javascript... Oct 22 02:47:03 I'm well aware Oct 22 02:47:08 It was done using "phonegap Oct 22 02:47:09 " Oct 22 02:47:37 he needs to first learn the difference between java and javascript Oct 22 02:47:40 then it's not really an Android app... Oct 22 02:47:45 i think the signing process shouldnt be any different in the middle Oct 22 02:47:45 I know the difference. Oct 22 02:47:51 I'm very familiar with the difference. Oct 22 02:47:55 hmm Oct 22 02:47:57 interesting. Oct 22 02:48:13 presumably phonegap has some method for signing Oct 22 02:48:34 hmmmmmm...I see, I see. Then I'm gonna look into phonegap instead of eclipse for how to do this Oct 22 02:48:35 ty ^^ Oct 22 02:49:05 http://pastie.org/5096206 Oct 22 02:50:29 Komak: first of all, you need to convert the setText argument to a string Oct 22 02:50:46 erm, changing from (this.LP) to (""+this.LP) works, thanks Oct 22 02:51:09 also, getView() is 0 indexed, just in case you missed that Oct 22 02:52:14 o.O not sure I get what your insinuating? Oct 22 02:52:17 Komak57: no, it's all because you are having trouble finding the view with the ID! you told us that Oct 22 02:52:29 Leeds, it was >_> Oct 22 02:53:07 if you say so Oct 22 02:53:13 hi Oct 22 02:53:21 SrPx: The default behavior for a lot of phones is to demount the SD card and allow the computer to write to it directly. Oct 22 02:53:36 SrPx: you can probably go into your phone settings, under storage will be an option for what to do for the sd card when the phone is connected. Oct 22 02:54:09 how should I deal with android image size ? is there a way to resize automatically images for xhdpi hdpi mdpi ldpi from original images ? Oct 22 02:54:22 yes. Oct 22 02:54:25 do nothing :> Oct 22 02:54:40 by default your images will be upscaled/downscaled automatically if you don't have the right density images Oct 22 02:54:45 or manually produce appropriately sized images Oct 22 02:55:07 of course, the downsampling/upsampling usually won't be as nice as something your artist produces himself Oct 22 02:56:01 lov: I usually put all my images in res/drawable/ Oct 22 02:56:16 maxagaz: they're all going to be considered -mdpi then Oct 22 02:56:22 this is for compatibility/legacy reasons Oct 22 02:56:33 lov: great idea but I just checked, there's no option to change this behavior Oct 22 02:56:43 SrPx: there almost certainly is. Oct 22 02:56:53 lov: so, I should put it all in xhdpi, then it will automatically be resized, right ? Oct 22 02:56:55 lov: are you sure? config > sd and storage > nothing there Oct 22 02:57:11 maxagaz: no, you misunderstand. Oct 22 02:57:18 maxagaz: right now, your resources are being considered mdpi. Oct 22 02:57:29 This means that if you use an xhdpi device, your images will be automatically upscaled at runtime Oct 22 02:57:36 SrPx: what phone? Oct 22 02:57:42 Leeds: motorola milestone 2 Oct 22 02:57:45 just putting copies of your images into xhdpi means that they will NOT be upscaled, and those exact images will be used. Oct 22 02:57:50 (unless this is what you want to do) Oct 22 02:58:23 lov: can I set res/drawable to be associated to xhdpi by default ? Oct 22 02:58:26 no. Oct 22 02:58:43 if your images really are xhdpi images, place them in res/drawable-xhdpi Oct 22 02:58:52 lov: so, my first question still stands... Oct 22 02:58:52 they'll be downscaled at runtime to whatever the density is Oct 22 02:59:59 lov: is there some scripts or tools to resize my images for hdpi and mdp ? **** ENDING LOGGING AT Mon Oct 22 03:00:00 2012