**** BEGIN LOGGING AT Sat May 26 02:59:58 2012 May 26 03:00:48 Has anyone else encountered/overcome runtime errors caused by : java.lang.UnsatisfiedLinkError: Couldn't load opencv: findLibrary returned null ? May 26 03:04:49 where OpenCV is compiled in the jni for both targets armeabi and armeabi-v7a May 26 03:12:35 JakeWharton: ICS ForceOverflow hack is interesting. following your advice, I'm going to use it :p May 26 03:13:19 my advice was not to use it May 26 03:13:27 yes I know =) May 26 03:23:59 branching and merging is easy. you branch, make some changes, then merge it back in, if someone else has made changes in the meantime then you have to fetch and merge in their changes first May 26 03:24:22 and just simply never use --ammend or change history May 26 03:25:10 Does php have a max number allowed? Like java's name number is 2.4b or something close to that May 26 03:25:59 *amend May 26 03:26:00 there's a channel for that May 26 03:26:08 though I have ammend aliased to amend :) May 26 03:26:27 * pragma- tsks. May 26 03:26:45 git should have default aliases for co, ci, st, etc May 26 03:26:59 http://toiletcademy.com/ May 26 03:27:09 Pragma: Write a wrapper script then May 26 03:27:42 sonicrules1234: why? May 26 03:27:53 So you can get what you want? May 26 03:27:55 sonicrules1234: git has built-in aliasing support. you merely have to add them once. May 26 03:28:00 Oh May 26 03:28:01 oops wrong channel May 26 03:28:03 Didn't realize that May 26 03:28:15 they're just not added by default May 26 03:28:29 would be too common-sense, i think May 26 03:28:30 g00s: http://yanpritzker.com/git-book/ May 26 03:28:36 read that, not some stupid traditional book May 26 03:28:38 must force user to tinker with git and learn about --alias May 26 03:28:41 also make repos and experiment May 26 03:28:43 learn by doing May 26 03:28:59 there's useful aliases at the bottom May 26 03:29:32 JakeWharton: when I use create project from existing source to import abs, it only works if I first copy the library directory of abs to the workspace May 26 03:29:36 is that expected May 26 03:29:49 otherwise the result is an empty src and libs dir. May 26 03:29:56 and missing AndroidManifest.xml May 26 03:42:28 suppose you have an app that allows the back stack to grow to 4 or 5 items or more. is it appropriate to give the users an exit button to get out of the app more conveniently? May 26 03:42:38 or is the 'home' button built-in adequate? May 26 03:43:03 b1n0ry: can you think of any apps that come installed on android devices that do this? May 26 03:43:27 i can't think of any installed off the top of my head that allow the back stack to grow beyond 2 or 3. May 26 03:43:48 http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238 May 26 03:47:08 good read, readme. i disagree with one of his assertions, but overall the message is adequate. thanks! May 26 03:47:41 * pragma- prefers progit to that obscure yanpriztker book after reading a few chapters of the latter. May 26 03:48:52 Is it possible/reasonable to have an AsyncTask for downloading a file in its own class file? May 26 03:48:59 then again, the latter covers some other things too May 26 03:49:08 but I don't like some of the command choices May 26 03:49:37 cr5315, "AsyncTask must be subclassed to be used." <-- docs May 26 03:49:46 thanks b1n0ry May 26 03:50:03 subclassing does not prevent you from using a separate file. May 26 03:50:18 the answer is yes, you can put it in its own file. May 26 03:50:34 how do you subclass from a separate file? May 26 03:50:40 * readme facepalm May 26 03:50:57 sorry, i'm not a java guru May 26 03:51:03 s/guru/novice/ May 26 03:51:07 read a java book ffs May 26 03:51:21 bah, i don't have time for reading ;) May 26 03:51:54 when you use 'extends' May 26 03:51:59 you are 'subclassing' May 26 03:52:02 and to your point, true. i'm not really a java novice, either. May 26 03:52:10 the faster to admit the faster to move on May 26 03:52:53 that's true. you could build all of the async task functionality into a class that extends the appropriate super class and then extend -that- class to your activity. May 26 03:53:11 i understand the pieces, i'm just not experienced enough yet to understand how they all fit together. May 26 03:53:12 and the appropriate super class would be:? May 26 03:53:21 AsyncTask May 26 03:53:44 you're just confused because typically they are used as inner classes so they can access the outer class' scope. May 26 03:53:44 public class className extends AsyncTask May 26 03:54:17 s/public/private May 26 03:54:19 yes, that's why i'm confused. May 26 03:54:33 its no different than any other class May 26 03:54:34 that's the only way i've seen them used May 26 03:56:15 rtfm or gtfo May 26 03:56:32 pardon my ignorance. i'm still less than 2 weeks experienced with both java and android. May 26 03:56:34 i'm just new. May 26 03:56:50 you need to rtfm a java book then May 26 03:57:06 that doesn't make grammatical sense May 26 03:57:20 google it for grammatical sense May 26 03:57:24 stfw while icup and tits or gtfo. May 26 03:57:29 haha May 26 03:57:30 maybe you need to rtfm an english book ;) May 26 03:57:48 lol May 26 04:04:57 hey guys i am very new to android dev and i am working on a app that will require communication with a server. i have extensive knowledge with creating php apis and I was wondering if a SOAP api would be a good fit for an android app or if there is a better solution then SOAP? May 26 04:07:06 digitalfiz, soap is fine. i just use json, seems to work ok as well. May 26 04:08:17 i'm new to android as well, but i know that i've worked with java-based apps that use soap apis heavily - not developed them personally, but it proves the capability is there. May 26 04:10:09 and now... i need a mtn dew May 26 04:24:26 hi May 26 04:28:16 I'm basically in square one for android dev, and I'm messing around with a button, an ImageView, and trying to get a camera shot onto that ImageView. I've got some problems with the camera, when I start the Intent, in the emulator it opens the android camera app rather than just taking a shot (http://pastebin.com/0Pdp8xqi) May 26 04:28:22 Am I using the wrong Intent? May 26 04:39:46 nope, that's what the intent does May 26 04:40:02 you can't take a picture on many phones without a surface, too. so you might as well just use the intent. May 26 04:42:15 oh May 26 04:42:16 so with the intent May 26 04:42:36 (if it didnt crash by the time it gets there), it'd let the user take a picture like normally, and then return to my app? May 26 04:43:33 i'd wager that is how it works, yeah May 26 04:48:35 Is there any way to load data from a cursor to a listview that is not deprecated and does *not* use a ContentProvider? May 26 04:48:53 CursorLoader seems to use ContentProvider. SimpleCursorAdapter is deprecated. May 26 04:48:57 Custom adapter? May 26 04:53:42 never realized that harold ramis, who plays the doctor in groundhog day, also produced groundhog day. May 26 04:58:49 Why does the loaders dev guide use SimpleCursorAdapter if it's deprecated? May 26 05:17:26 ? May 26 05:17:46 frescoraja: http://stackoverflow.com/questions/10763740/what-is-the-proper-way-to-load-data-from-a-cursor-into-a-listview-without-a-cont May 26 05:18:12 HUH? May 26 05:18:22 frescoraja: don't waste my time May 26 05:18:51 I'm not May 26 05:18:56 Does anyone have any idea why my transformer prime can't be detected in eclipse? May 26 05:19:12 What have you tried May 26 05:19:15 Works on my PC, but my laptop pretends like it doesn't exist as an ADB interface May 26 05:19:21 installing drivers May 26 05:19:26 packages of software for it, etc. May 26 05:19:56 Adb devices yields what? May 26 05:20:02 emulator only May 26 05:21:13 It only sees emulator ? May 26 05:21:22 in eclipse, yes May 26 05:22:10 Hmm what mode is the prime in? May 26 05:22:14 frescoraja: I know how to accomplish the task. My question is about the optimal design. May 26 05:22:19 mode? May 26 05:22:39 Is it in recovery mode out regular boot? May 26 05:22:51 regular boot im assuming.. May 26 05:23:37 Try booting into recovery mode and see what happens May 26 05:24:07 Muramasa: i don't see why booting into recovery mode would be useful May 26 05:24:16 frescoraja: please stop doling out bad advice. May 26 05:24:50 I can't imagine its an issue with the device May 26 05:24:58 if it works with the PC May 26 05:25:00 is usb debugging enabled? May 26 05:25:03 yes May 26 05:25:08 what OS? May 26 05:25:33 Vista Business is hte laptop, 7 is the PC May 26 05:25:40 did you install the adb drivers for your device? May 26 05:25:53 on windows, you need to install a special driver that the manufacturer usually provides. May 26 05:26:47 also have to make sure that the version of android on the device is between the min and the target sdk versions of the app... ran into that before where it doesn't show up in debugger. May 26 05:27:08 yeah I did May 26 05:27:13 actually had that particular issue myself May 26 05:27:25 does it appear in adb devices? May 26 05:27:33 its the same project from the SVN server, that shouldn't be an issue right? May 26 05:27:38 how do I check readme? May 26 05:27:43 run $ adb devices May 26 05:27:58 $? May 26 05:28:07 c:\> May 26 05:28:11 oh sorry: C:\DOS\RUN> adb devices May 26 05:28:14 readme, uses linux May 26 05:28:19 :) May 26 05:29:09 so just go to run-> cmd and type adb devices? May 26 05:29:16 it will need to be in your path May 26 05:29:21 something you should have done when you installed the sdk May 26 05:29:36 i think it does it by default. i didn't set up path and it just works. May 26 05:29:46 oh, good May 26 05:29:50 part of the install process May 26 05:29:59 no devices May 26 05:30:28 readme: that's because ADT/Eclipse is broken May 26 05:30:32 i think your driver is probalbly not super installed well May 26 05:30:38 the project is set up using the standard format May 26 05:30:47 JakeWharton: do you happen to know if there is an answer to my silly question May 26 05:31:10 what is the replacement for CursorAdapter if I don't want to use a ContentProvider May 26 05:31:56 * readme shouldnt' have drank before attempting implement abs and use Loaders for the first time May 26 05:32:27 CursorLoader? May 26 05:32:30 i don't know May 26 05:32:36 i don't use cursors anywhere May 26 05:32:41 ahhh May 26 05:32:54 so, what do you use to get your data from sqlite then? May 26 05:35:56 oh well, sorry to tax your reserves May 26 05:36:08 don't use sqlite May 26 05:36:57 we persist JSON files to disk May 26 05:37:19 since you're just looking them up with a primary key you instantly know what file you want since they're named with the key and you get all of the data related to the key with one read May 26 05:37:31 it's like a document database without the overhead of keeping crap in memory May 26 05:38:06 ...that's exactly what i modified my app to do after your advice of not modifying the array list outside of the main thread May 26 05:38:21 i'll take a 200ms hit to deserialize the JSON to a POJO but it's a hell of a lot better than dealing with a relational database (let alone freaking sqlite) May 26 05:38:24 interesting approach for sure May 26 05:38:52 i name files with a key according to the activity/key and dump the json right into it. then have a function on the main thread that parses that json into whatever i need. if the file exists, i don't bother to query it again from the network. May 26 05:39:07 b1n0ry: you should still be doing that on a background thread May 26 05:39:19 200ms is a lot of frames at 30 or 60fps! May 26 05:39:25 my last app used 3 views, an outer join, and made pretty good use of group by and like clauses May 26 05:39:34 if I rewrote that in a non-relational style, it would have taken longer May 26 05:39:43 oh, i'm not writing games or anything that cares about a few fps May 26 05:39:59 for this app i'm going to use sqlite, but I like the json idea.. I will keep it in mind for other apps May 26 05:40:03 but, certainly i would have the max amount on the bg thread if i did May 26 05:40:04 b1n0ry: me neither, i'm thinking about scrolling lists, animations, and redraws May 26 05:40:14 ah, i'm not even using that May 26 05:40:17 do you have some sort of in-house model written for searching, sorting, and relating the JSON files? May 26 05:40:39 readme: you don't need one May 26 05:40:48 users/52.json May 26 05:40:48 since i'm really just learning (obviously) i'm starting with an extremely simple app. May 26 05:41:00 i know right away that I want info about a user and I know the user's ID May 26 05:41:04 what if I want to get all the users who have a name that matches Foo? May 26 05:41:11 then I have to write my own search May 26 05:41:24 what if I want all the users who have a Name Foo and I want to join that with their current account balance? May 26 05:41:27 none of our apps have that requirement May 26 05:41:36 all search is done server side May 26 05:41:51 there are no joins in a document structure May 26 05:41:55 if you have the user you already have their balance May 26 05:41:58 does square work offline anyway? May 26 05:42:21 I bought pizza today, the cash register was an ipad with square. May 26 05:42:23 no, neither app works offline May 26 05:42:29 ok makes sense May 26 05:43:26 so what do you call this solution? hipsterdb? May 26 05:43:30 i'm not saying relation can't be useful, I just find that 99% of the time the data you're modeling is already in document form and then you bastardize it into 10 tables just to write a bunch of JOINs to reassemble it into document form to display May 26 05:43:41 I call it optimizing for our requirements May 26 05:43:51 I kid May 26 05:43:57 I think it's good for what you're using it for May 26 05:44:00 from what you have shared May 26 05:45:39 since we're guaranteed to have a connection to the server and the data we keep locally is all related to a single thing we can keep it in document form May 26 05:47:08 document database is on my list of things to learn.. right now i'm trying to master sql in depth May 26 05:47:25 I know my basic sql, but would like to be a guru May 26 05:47:26 i love me some MongoDB when I'm doing server things May 26 05:47:39 Now I'm obsessed with graph databases May 26 05:47:44 can't wait to work with neo4j May 26 05:48:18 sql... now that's something i actually know May 26 05:48:41 you're in luck, android has a usable sqlite implementation! May 26 05:48:54 just don't use any content provider garbage. May 26 05:48:59 you will hate yourself. May 26 05:49:04 lol May 26 05:49:24 i think i hate myself for starting this app... learning android dev methods has become a new obsession May 26 05:49:32 The first time I wrote an app that used sqlite, I just pulled contentproviders out ot the tacklebox without thinking May 26 05:49:38 every time I wanted to add a column or table May 26 05:49:43 I had to edit like 5 files in 20 places May 26 05:49:56 as crappy as i am at it now, eventually i anticipate i'll get pretty good at it. May 26 05:50:06 i hope May 26 05:50:12 or i'll give up and still suck May 26 05:50:22 either way, my life will have been enriched by the experience May 26 05:50:29 JakeWharton: what would you use neo4j for? May 26 05:50:38 serious question, I have no ideas for it May 26 05:50:44 graph databases are a superset of relational databases May 26 05:50:56 graph databases go back to the 70s May 26 05:50:58 anything you can model with a relational database you can model with a graph database except with easier traversal May 26 05:51:03 and easier insights May 26 05:51:07 the 70s go back to the 60s May 26 05:51:07 and cooler visualizations May 26 05:51:12 nice May 26 05:51:17 I'll check this out then May 26 05:51:19 and not having to deal with SQL! May 26 05:52:03 nothing wrong with sql. though abstracting olap models via sql alone is a pita. May 26 05:52:11 embedding sql in java sucks May 26 05:52:31 embedding sql in language x sucks May 26 05:52:48 at least with stuff like iBatis, you put the queries in some file, like xml May 26 05:53:00 but still no o/r mapper May 26 05:53:55 I used to work on a project and we had the SQL queries flattened in text files with a substitution syntax for the parameters May 26 05:54:05 I kind of liked that solution. May 26 05:54:21 that's actually what i do with most apps that i have to embed sql. it's "poor man's preparation" May 26 05:55:03 I should do it for android. I've been using string concats... :) May 26 05:55:41 yuck. being that i'm not as familiar with java... is there something similar to sprintf (php) or printf (c) that can do substring replacement? May 26 05:56:57 i did my content provider like iosched May 26 05:57:10 i'm kinda regretting the whole content provider thing May 26 05:57:14 in a PHP app, i would have a file with constants like SQL_SELECT_NAMES, "SELECT id, name FROM names WHERE company=%s AND city=%s" May 26 05:57:35 then, you do sprintf(SQL_SELECT_NAMES, $myCompany, $myCity); (properly escaped, of course) May 26 05:58:01 not sure what the java counterpart would be May 26 05:58:06 b1n0ry: there are still placeholders in the sql stuff for android May 26 05:58:20 good to know, thanks! May 26 05:58:29 technically, you could put your queries in res/strings.xml or something May 26 05:58:37 at least one smarty did that May 26 05:58:49 that's actually not a bad idea May 26 05:59:19 could use a raw file, too... though you might risk exposure and then somebody being able to discover your database schema - for whatever that's worth. May 26 05:59:32 i'm not one for providing more information than necessary in an app/db environment. May 26 05:59:34 anyone can get your whole database, always May 26 05:59:42 good point May 26 05:59:42 if you're afraid of that you've got to use the encrypted one May 26 05:59:51 even then that's beatable May 26 05:59:58 there's an encrypted sqlite for android on github. May 26 06:00:41 http://developer.sonymobile.com/cws/devworld/technology/borrowaphone May 26 06:00:44 that's pretty cool May 26 06:00:58 makes me think I should buy a Sony phone :D May 26 06:00:59 g00s: i think I'll do just that, except I'm going to call my file 'queries.xml' May 26 06:01:02 i haven't been using sqlite, but thanks for the tip, if i use it! May 26 06:01:13 string resources need not live in a file called 'strings.xml' :) May 26 06:01:45 once you use content providers, everything becomes such a mess, i gave up May 26 06:01:55 you can name your resource files pretty much anything, right? May 26 06:02:05 provided they're well-formed May 26 06:02:18 hi, i want to write a gui app preferably in python (sl4a) ideally tkinter. anyone know if there is a way to do that? web search is inconclusive. May 26 06:02:55 android dev is in java, primarily May 26 06:03:02 don't know about python May 26 06:03:16 solrize: you can't use tk but you can make guis with python from sl4a. May 26 06:03:30 just check out the docs May 26 06:03:34 (sl4a docs) May 26 06:03:44 that actually sounds kind of slick May 26 06:04:18 http://code.google.com/p/android-scripting/wiki/UserGuide <-- this? May 26 06:04:40 i made no freakin' progress on my app tonight at all... chatting and watching netflix... dang May 26 06:05:39 i still don't understand what git log --all does, the --all part :/ May 26 06:05:53 its nice having a neighbor who lives below me that has been using git for a year May 26 06:06:08 he said, i'll figure it out in about a year :) May 26 06:07:11 no matter wha ti do to this driver it keeps pretending like my prime doesn't exist May 26 06:08:42 can i use android like a little linux box? i.e. ssh into it and get a shell, etc May 26 06:09:11 Thetr is a shell May 26 06:09:26 But why would you do thay May 26 06:09:40 just trying to figure out how to write this app May 26 06:09:48 I'm glad jni is so well-documented on Android May 26 06:09:50 Blech May 26 06:10:23 At least I finally figured out my problem... 2:09AM EDT May 26 06:10:57 JakeWharton: i figured out what the deal is. May 26 06:11:31 JakeWharton: it's fine to use CursorAdapter, as long as you use the constructor that allows you to pass 'int flags' -- that way you don't enable auto-requery which apparently is set by the deprecated constructor. May 26 06:11:37 g00s: obviously it displays logs of all branches, tags, etc, everything under refs/ May 26 06:12:09 there's also one with a bool autoRequery in CursorAdapter that is fine to use if set to false. May 26 06:12:38 ok, it looks like sl4a is 1) some wrappers for android API calls, that let external processes make RPC calls to the API through sockets and json; 2) CPython port that can communicate with those sockets. May 26 06:17:35 looks like the main way to do a gui is with html and javascript communicating with python :O May 26 06:18:22 maybe i should just write the app in java (it's actually an existing tkinter app that i was hoping to port with minimal changes, but it's not huge...) May 26 06:20:18 Id go for the platform specific toolcjain May 26 06:20:28 Hencr why i avoided monodroid May 26 06:31:45 "Adobe develops software for different platforms (such as Mac OS, Windows, Linux) and sells the software built for separate platforms as separate products. If you want to use the products on different platforms, it's necessary to purchase a license of the software for each platform you use." May 26 06:32:00 Adobe has to be the shittiest software company on the planet May 26 06:32:06 or close to it May 26 06:37:35 Hey! I was wondering if there is a way to, from code, start an activity with a given xml file as resource? May 26 06:39:05 Something like this: startActivity(new Intent(MainActivity.this, new Activity(resource)); May 26 06:43:50 I guess I can put the xml layout in as a key,value in the intent and then define a class that always loads the xml May 26 06:44:00 But I just think there might be a better solution May 26 06:49:37 Sebzter: ? May 26 06:49:43 mm May 26 06:49:53 Sebzter: Intent(Context, Class class) May 26 06:50:04 that's an instance you're passing there. May 26 06:50:20 Yeah, but in that case I also want to give it a xml for the layout May 26 06:50:24 the typical use is new Intent(this, MyActivity.class) May 26 06:50:33 use an extra May 26 06:50:54 Right now I have like four activitys that just load different xmls May 26 06:50:56 intent.putExtra(MyActivity.EXTRA_LAYOUT_ID, R.layout.foo); May 26 06:51:31 I thought there might be a built in for such a thing... :/ May 26 06:51:32 or an action, might be more appropriate, then you can do a series of if's on the action. May 26 06:51:57 passing an action is about as built-in as you'll get. May 26 06:52:14 an extra is a bit of a hack for this purpose but would allow you to pass the actual id May 26 06:52:25 But I still need to define an activity that loads the layout I provide with the intent May 26 06:52:38 you only need to define one, though. May 26 06:53:37 yes, startActivity(intent, Activity.class, layout_xml) would be nice May 26 06:53:47 But thanks, then I know what to do May 26 06:53:51 that's kind of a silly idea imo May 26 06:53:58 why? May 26 06:54:34 well for starters, most activities won't work if you just pass them arbitrary xml layouts. May 26 06:54:46 most of the time, your activity is dependent upon your layout's structure. May 26 06:55:12 Yes, not I just want to show whatever is in the xml though May 26 06:55:17 *now May 26 06:55:31 and that's what intent.setAction() is for or putExtra() May 26 06:56:10 alright, you are probably correct :) May 26 06:57:42 so is it better to do like that or to have a very short Activity class per layout I have? That means mire classes May 26 06:57:48 *more May 26 06:59:54 it depends what the purpose is May 26 07:00:23 Ill think I just go with the extra classes for now, there are just two anyways.. :) May 26 07:00:42 Thought there were 3 May 26 07:16:57 * pragma- officially drops support for anything older than 2.1 May 26 07:17:08 * pragma- minSdk to 7 May 26 07:18:04 guys ... I need some help with Intents and startActivityForResult -.- May 26 07:18:50 I seriously have no ideea how the hell it's supoosed to work and on googledev page I can't find a proper example or something May 26 07:19:52 what I am trying to do is somehow ... connect 2 activities ..... I want to get a RESULT_OK from the 2rd activity and set an IF statement that if the result is OK to change the image of an ImageButton May 26 07:20:25 I don't know why it has to be so complicated to change a damn image on a button if something is right ! :| May 26 07:21:12 the internet is so boring. same websites every day. May 26 07:21:23 luci1093: setResult(RESULT_OK); finish(); May 26 07:21:43 if (REQUEST_CODE_ACTIVITY1) { if (result == RESULT_OK) { change button } } May 26 07:21:59 better yet, use if (REQUEST_CODE_ACTIVITY && result == RESULT_OK) May 26 07:22:17 uh, you'll need an == for the first part too May 26 07:23:13 there are 2 separate classes .... will that work without an intent ? May 26 07:23:32 I don't know ... I asked yesterday about this and someone told me to use the StartActivityForResult May 26 07:26:15 yeah, that's part of the solution. May 26 07:26:27 well I pretty much got lost ... May 26 07:26:48 you should have just googled "android get result from activity" May 26 07:27:04 http://saigeethamn.blogspot.com/2009/08/android-developer-tutorial-for_31.html May 26 07:27:09 that looks like a fine explanation. May 26 07:27:59 I'll check it , just 1 sec May 26 07:28:55 btw , I got a question May 26 07:29:43 startActivityForResult can be used instead of the normal StartActivity ? May 26 07:30:17 y May 26 07:30:34 like for example I have an intent in the 1st class for a button , to make it go to the second class ... should I replace that with startActivityForResult? May 26 07:30:54 i think you should read the blog article and try May 26 07:31:00 ok May 26 07:44:10 Howdy all. May 26 07:45:53 howdies :) May 26 07:46:26 I'm developing an app that has a ListView inside a LinearLayout. There are enough rows in the ListView to make the user have to scroll to see the bottom of the list. May 26 07:47:19 readme , yay it worked , thankyou :D May 26 07:47:46 and I've understanded how it works too lol :D May 26 07:47:49 When I do scroll, I'm getting some weird graphical artifacts. For example, if I scroll to the bottom and hold it, that blue indicator telling me to stop scrolling will stay. I'm on os version 4.0.4 May 26 07:48:31 Also, if I scroll the listview slowly, the lines indicating the separate rows will start to blur momentarily as well May 26 07:48:40 any suggestions on how to fix this? May 26 07:49:26 Rockfang: are you on the emulator or actual hardware? May 26 07:49:33 using my phone May 26 07:50:08 sounds like a bug with your phone, not your app =/ does it happen in other apps with listviews? May 26 07:50:48 i haven't written any other apps with listviews, and i'm not sure if the ones i downloaded use listviews. May 26 07:51:01 settings uses a huge listview May 26 07:51:08 oh May 26 07:51:27 well not huge, but big enough May 26 07:51:30 the settings screen is fine when i scroll May 26 07:52:08 have you changed any of the colors in the listview? May 26 07:53:16 nope. one other thing that happens with my app is that sometimes some of the text will momentarily stay in its original spot when i scroll. May 26 07:54:04 that really doesn't sound like a problem with your app… =/ I'd expect that to be an issue wit the rom. got me man. May 26 07:55:28 ok. Thank you for responding. May 26 07:56:20 this just now occurred to me, but i'm going to reboot my phone and see if that fixes it. :) May 26 07:56:32 would be nice May 26 07:56:55 doubt it =/ May 26 07:58:14 gotta think positive ;) May 26 07:58:35 I prefer thinking logically =P May 26 07:58:41 ah. May 26 08:00:01 nope, that didn't fix it. May 26 08:01:14 I'm trying it in the emulator to see if anything odd happens May 26 08:03:19 works fine there May 26 08:20:43 hi May 26 08:21:12 hi May 26 09:20:43 Is the person I was chatting with earlier still here? I forgot the name. :) May 26 09:24:19 Well, if anyone else saw my problem, sees this response, and has a similar problem, I just had to add android:cacheColorHint="#00000000" to my xml file that had the ListView in it. Works fine now. May 26 09:37:39 Has anyone worked with the S Pen SDK for the Galaxy Note? I just want to know if its possible to detect the pressure of the pen using the SDK. The SDK guide PDF says nothing about it May 26 09:41:39 doesn't the s-pen just send a charge to the capacitive screen, doing pretty much what a finger does? May 26 09:41:56 thus not pressure sensitive May 26 09:44:33 bankai_: The S pen is capable of 256 pressure levels as they said it in their site May 26 09:48:07 i have problem with passing data from one activity to other... is it possible to pass data to second activity(screen) but that i stay at first activity(screen) and then when i come to second activity that required data waits for me there...? thx May 26 09:54:19 MotionEvent.getPressure() apparently May 26 09:56:32 bankai_: Gee, thanks..!! May 26 09:56:54 hi all May 26 09:57:22 and i learnt something about the S Pen :P May 26 10:09:47 Hey guys im trying to test a bluetooth chat app and I only have one real android device.. can I test it in such a way that I can run a AVD and then this can communicate with the real device at the same time? Or should I create 2 AVDs that would be able to communicate with the device? I have bluetooth in my PC May 26 10:12:15 afaik you can't use bluetooth on avds May 26 10:12:27 you should just write something with bluez to test it from the PC May 26 10:30:30 bluez? May 26 10:43:38 morning folks May 26 10:44:13 is there something like a MessageBox() that is simple and direct to use on android? May 26 10:48:33 i have problem with passing data from one activity to other... is it possible to pass data to second activity(screen) but that i stay at first activity(screen) and then when i come to second activity that required data waits for me there...? thx May 26 10:53:08 morning, anyone have advice for me about ghost calls for PRL updates (tried #android with no luck), specifically a GN on verizon's network that auto dials for PRL updates May 26 10:53:46 what does a MessageBox do, display a message with a dismiss button? May 26 10:53:56 You should probably use an AlertDialog May 26 10:56:17 magellanic: what do you want, an app that automatically dials a number every so often? May 26 10:56:52 readme: a way to stop networks like verizon from causing the phone to auto dial for PRL updates May 26 10:57:14 no idea then. May 26 10:57:48 no problem, my issue is related to: http://www.galaxynexusforum.com/forum/galaxy-nexus-general-discussion/3061-ghost-dial-22899-prl-update.html May 26 10:58:28 ok readme, thanks :) May 26 10:58:56 the user experience is terrible, ghost dials freak people out, I can't believe networks use it as a means to do updates :p May 26 11:04:38 How do I trigger a redraw in a different class to the one I'm in? May 26 11:05:34 * magellanic continues to learn some java and android dev docs May 26 11:08:38 How do I get a handle for the class instance that instantiates this other class? Sort of a 'parent' class in a tree heirarchy of instantiation, but 'parent class' has a specific different meaning not to be confused with. May 26 11:10:19 Is the right term 'containing class'? May 26 11:10:41 Yes, I think that's the right one. May 26 11:12:08 So I want to go 'containingView.invalidate', but from a contained instance of another class. May 26 11:12:22 Can I do this with Context? May 26 11:17:53 Or can I get hold of the root of the tree? Ie. the activity instance. Then I could go 'activity.view.invalidate()' or something. May 26 11:20:23 Finding the containing class would be better. What's the instantiation equivalent of '../' in a filesystem? May 26 11:26:24 This sort of thing really makes me wonder whether OOP causes more trouble than it's worth. May 26 11:28:19 How do I get the instance that instantiated 'this'??? May 26 11:32:02 JamesJRH: pass it, there's no guarantee it is known. Unless you are an inner class May 26 11:32:10 in that case you type OuterClass.this to access that instance May 26 11:32:28 but it's entirely normal to do something like new Foo(this) so that the Foo can later call methods of that instance May 26 11:32:55 however, this is implicitly done on inner classes which can not exist without the instance of the outer class. The compiler generates a field and stores the "this" there. May 26 11:33:29 alankila: Ah, ok. May 26 11:35:26 the view tree is available via the activity also... it was probably something like getRootView() but I don't recall May 26 11:36:20 such a method would be nice.. I've been doing it by setting an id on the rootview and using findViewById. May 26 11:37:01 alankila: I see that Context is already passed though. What is it for? Does it contain the original instance anywhere? Is Context specific to the instance? May 26 11:37:37 (I'm new to this. The code I'm looking at is Open-source written by someone else.) May 26 11:39:10 hello everyone, i am using Tabhost to create a Tabbar but somehow it causes problems with my background images. when i start up the app with eclipse for the first time i have a background on my loading screen. when the Tabhost is shown and i close the app and then start it up again the background is gone. anyone have an idea why that could be? May 26 11:39:20 actity is a context, but it is not the only context there is May 26 11:39:41 activity, grr May 26 11:39:43 should soundpool use the audio managers isMusicActive () in such like MediaPlayers isPlaying() May 26 11:43:06 alankila: Ahh, this Context could well be that 'root node' I was looking for. I may just be able to go context.viewname.invalidate(). May 26 11:43:36 no you can't, but something like it I guess May 26 11:44:24 JamesJRH: what are you trying to do? May 26 11:46:25 readme: I just want to trigger a redraw after doing something in a contained instance. May 26 11:46:58 ok, so invalidate is the correct way to go. why do you need to do this to the root view? May 26 11:47:15 why not just invalidate the view that needs to be redrawn? May 26 11:48:35 readme: There's only one view unless preferences or about is opened. May 26 11:48:54 This is the view that needs redrawing. May 26 11:49:19 But it's one level up from the bit of code I'm in right now. May 26 11:49:21 what kind of view is it? May 26 11:49:32 oh, you mean it's in the outer class? May 26 11:49:47 I saw alankila suggest earlier that you use OuterClass.this.mView.invalidate()? May 26 11:49:53 anyone know why my tabhost item background overwrites all other backgrounds? i am new to android anyone able to give me a hint? May 26 11:49:53 Why isn't that an option for you? May 26 11:50:25 btw in most cases, OuterClass.this is just explicit, and can be omitted May 26 11:50:36 that is, it's implicit. May 26 11:50:59 He says that's only an option for an inner class. I'm in a different file here. May 26 11:51:16 I'm just trying a few things. May 26 11:51:17 oh, I didn't know what/ May 26 11:51:52 link to the file you are in May 26 11:57:01 https://gitorious.org/isokeys/isokeys/blobs/master/IsoKeys/src/isokeys/Piano.java#line89 May 26 11:57:13 https://gitorious.org/isokeys/isokeys/blobs/master/IsoKeys/src/isokeys/HexKeyboard.java#line638 May 26 11:58:40 that piano class R.raw reflection code should be done in a static initializer May 26 11:58:51 does Piano at least get instantiated in a static block? May 26 11:59:12 it does not, I see... May 26 11:59:31 guys if i set the background for one LinearLayout will it overwrite all other backgrounds for LinearLayout too? sounds weird but looks like this is whats happening for me May 26 11:59:34 It's a little different now but the same problem. How do I access mBoard from there. May 26 11:59:39 my thoughts are that you shouldn't try to touch a view from inside the Piano class May 26 11:59:56 it seems like its purpose is to read a soundfont from R.raw using reflection May 26 12:00:37 I can't locate mBoard May 26 12:00:41 is it named something else? May 26 12:00:43 Oh and mBoard (HexKeyboard instance) gets instantiated here: https://gitorious.org/isokeys/isokeys/blobs/master/IsoKeys/src/isokeys/Play.java#line54 May 26 12:01:45 I see, so HexKeyboard is a View and you need to invalidate it. Where did you want to invalidate it from? May 26 12:02:42 From Piano, only while starting though. May 26 12:02:52 Should I go: mInstrument = new Piano(context, this); May 26 12:03:52 Would that be the right way to go, or is there another or proper way? May 26 12:03:59 I do not see why it would benefit you to do that, why do you want to do that? May 26 12:05:40 readme: That code is /very/ slow. It blocks the UI when loading audio. I've written some code to load it in parallel and the keys show blank until the note is loaded. May 26 12:06:28 Pretty awesome if I touch the screen (to trigger redraws) while loading. It's a pretty nice effect. May 26 12:06:33 :-) May 26 12:06:45 JamesJRH: yes, that code is indeed going to be slow. May 26 12:07:08 so you want the keys to appear to be drawn while it's loading? May 26 12:08:12 Now (if I touch while loading) the keys load from top to bottom creating a sort of semi-functional splash screen. :-D May 26 12:08:23 I would use an observer pattern May 26 12:08:29 when a note is added to mRootNotes May 26 12:08:36 you should notify your View May 26 12:08:39 and it can draw the key for that note May 26 12:08:44 and then start using it May 26 12:09:02 you're going to need a handler to do the draws in. May 26 12:09:27 Ok, how do I do all that? May 26 12:09:57 in your Instrument class I'd wrap mRootNotes.put in a delegate method, like putNote(...) May 26 12:10:22 define an interface called OnNewNoteListener or something May 26 12:10:26 BTW, there's quite a few changes round there since the last push. May 26 12:10:28 do that in the Instrument class May 26 12:10:46 it will have a method onNewNote(midiNoteNumber) May 26 12:10:56 you then implement that interface May 26 12:11:06 and set yourself up with a "new note listener" May 26 12:11:11 so that each time putNote is called May 26 12:11:15 it also calls your "new note listener" May 26 12:11:31 in there, you will push a runnable onto the UI thread that tells your view about the new midiNoteNumber May 26 12:11:48 and then you can draw the key, and even access that note from mRootNotes May 26 12:11:51 and play it May 26 12:11:56 while the thing is still loading. May 26 12:12:09 but my approach would be different. May 26 12:12:22 I'd optimize the routine and put it in a static block so that the whole keyboard just loads fast and on time. May 26 12:13:05 the way you get runnables on the UI thread is with a Handler, runOnUiThread(), or AsyncTask May 26 12:13:15 the latter of which you will not actually touch a runnable. May 26 12:14:46 ... May 26 12:14:55 copy paste it all and ask me later as you get to each step May 26 12:15:22 start by just defining an interface in the instrument class, public static OnNoteAddedListener { } May 26 12:16:08 basically just a method that gets called every time a note is added. May 26 12:16:42 Wait? Shouldn't that be in the HexKeyboard view? As that is what needs to invalidate. May 26 12:16:50 it will be May 26 12:16:56 the interface will live in the instrument May 26 12:17:03 the implementation will be in the HexKeyboardView May 26 12:17:33 the Instrument needs a way of providing a way for the view to get feedback from it May 26 12:17:43 make it less redundant than that sentence was May 26 12:17:48 I need to read up on listeners this sounds like 'the right way'. May 26 12:17:58 its used allover android May 26 12:18:01 just poke around May 26 12:19:16 party like a droid http://www.youtube.com/watch?v=hfvJOL1gpic May 26 12:19:19 *summer droid May 26 12:23:46 Is there a site that for most common devices will tell in which generalized size they are (normal, large, etc) and which dpi category (mdpi, hdpi, ...) etc. Yes I can compute it myself but this is error prone May 26 12:25:23 Is it necessary that activities must be in different .java files to call them via intents? May 26 12:34:38 Is a Galaxy Noote screen hdpi or xhdpi ? May 26 12:50:42 Hello, how do you generate a build.xml for an android project? May 26 12:54:09 is there any kind of broadcast for when the screen is unlocked? May 26 12:54:15 spuz: android update May 26 12:54:58 JamesJRH, where is the android tool kept? May 26 13:00:52 JamesJRH, never mind, found it May 26 13:06:04 guys , I got a problem May 26 13:08:11 I got a startAcrtivityForResult and an OnActivityResult - in here I'd like to have multiple cases but when I made more than 1 it doesn't let me ... :| May 26 13:09:01 in what way does it not let you, what's the error message you get? May 26 13:09:24 um , it won't let me make another Constant ... May 26 13:09:45 like for example May 26 13:10:19 startActivityForResult(i1, LOGO_OK); ..... in OnActivityResult it's Case LOGO_OK: May 26 13:10:46 but if I add another one like startActivityForResult(i1, LOGO_OK2); and then ... Case LOGO_OK2 it won't let me ... May 26 13:11:08 do LOGO_OK and LOGO_OK2 have different values? May 26 13:11:15 no May 26 13:11:30 it says duplicate case :| May 26 13:11:33 try giving them different values May 26 13:12:15 hm , it doesn't give the same error , let me check the app May 26 13:13:14 damn I feel newbie lol May 26 13:13:18 it works May 26 13:13:20 ty :D May 26 13:13:51 btw, got one more question .... how am I supposed to make the app remeber what I did before exiting .... May 26 13:14:16 like for example I guess a word and it changes the picture to something else ... May 26 13:14:46 if I exit the app, it will be like I never did it ... I mean it doesn't save what I did previously May 26 13:15:09 you'll need to use some sort of data storage May 26 13:15:13 http://developer.android.com/guide/topics/data/data-storage.html May 26 13:15:27 to remember the state and the restore that state when you start the app again May 26 13:15:32 NOOO May 26 13:15:38 ? May 26 13:15:40 I hate databases -.- May 26 13:15:50 and ye , I know they are very important May 26 13:15:58 off ... so I got a lot to work then eh ? :| May 26 13:16:21 depends how much stuff you need to store May 26 13:16:45 shared preferences may be sufficient if you just want to store key-value pairs May 26 13:17:04 well let's say I will have um i don;t know , 100 pic (probably less) ... May 26 13:17:19 I mean , I'm trying to do a game like the logo guessing one May 26 13:18:00 so after I guess a logo and the image changes to a one with a green tick ... I just need the app to remeber than when I close it and open it again ... May 26 13:19:29 anybody have gcc for Android? May 26 13:20:06 cross compiled and all? May 26 13:24:14 anyone? May 26 13:24:34 Noup May 26 13:24:57 too bad. :( May 26 13:36:59 is it easilly posibble to load indivisiual listview rows asynchronously? May 26 13:39:35 royale1223: This might be of help: http://plausible.org/andy/agcc May 26 13:40:14 got to love the Galaxy Note which breaks the assumption that large screen = tablet May 26 13:45:35 PowerInside, thanks, but I have no idea how to use it.. May 26 13:46:36 royale1223: Me too.. I stumbled across it when I was looking for gcc on android myself May 26 13:47:15 royale1223: I suspect its a perl script meaning we just have to place this in some /system/bin and then run it or something.. not sure exactly.. haven't had time to try it. May 26 13:48:07 i have problem with passing data from one activity to other... is it possible to pass data to second activity(screen) but that i stay at first activity(screen) and then when i come to second activity that required data waits for me there...? thx May 26 13:53:40 Good morning all May 26 13:55:46 Is there any device with a large screen and hdpi density ? May 26 13:56:42 bubbleguuum, i have a ZTE, i *think* it is hdpi but i'm not sure... let me check (i don't use it much) May 26 13:57:42 b1n0ry: what exact model it is ? May 26 13:57:48 optik May 26 13:58:03 model v55 May 26 13:58:10 btw most large screens are mdpi. Galaxy Note is xhdpi May 26 13:59:04 yeah, the only good review this one got is for resolution. it's a 1280 x 800 7" May 26 14:01:23 yes and 216dpi which from my calculations make it a normal screen device May 26 14:02:06 hhmm no wrong calculation May 26 14:04:34 getResources().getDisplayMetrics().density returns 1.33 May 26 14:05:37 213dpi May 26 14:06:34 it is indeed a large device May 26 14:08:50 according to http://developer.android.com/resources/dashboard/screens.html, large/hdpi and large/xhdpi do not exist May 26 14:09:50 must be true. i wondered, on this device, becuase none of the DisplayMetrics density constants ever resolve May 26 14:10:06 I'm surprised at that 1.33 value May 26 14:10:24 yeah, i was too May 26 14:10:27 and the 213 density as it is not standard May 26 14:10:44 i think it's relatively rare for a screen this small to have a resolution this high May 26 14:11:25 it's the only real nice thing about it. i sometimes use it to watch netflix in bed but that's about it. May 26 14:11:28 testing apps sometimes May 26 14:12:07 hhmm it is DisplayMetrics.DENSITY_TV = 213. A non standard value defined since API 13 May 26 14:12:21 never checked that one, let me see May 26 14:12:34 so the manufacturer must have hacked the value to report DisplayMetrics.DENSITY_TV May 26 14:13:14 05-26 10:13:02.366: I/BooksListActivity(23098): TV May 26 14:13:19 so you have a frankestein device May 26 14:13:21 from LogCat, so yep... that's it May 26 14:13:53 it works, that's the important part May 26 14:14:08 ZTE Optik V55 is a mini TV ;) May 26 14:14:41 yes but some app layout might be buggy (if they are, it will be even buggier on the Galaxy Note though) May 26 14:15:00 guys , I got a question: Can I for example set the image of an ImageButton trough an SQL database ? .... I mean if I got to set 100 buttons with images , to set a database and to make it easyer... ? May 26 14:16:16 luci1093, use a binary field in the db (not sure what it's type is in sqllite) and you can store the bitmap as a record. make sure to give it some sort of an id and name so you can find it :) May 26 14:17:25 b1n0ry: I'm trying to do an app like this one https://play.google.com/store/apps/details?id=net.jroen.LogoQuiz&feature=search_result#?t=W251bGwsMSwxLDEsIm5ldC5qcm9lbi5Mb2dvUXVpeiJd can I use DB to make it easier ? May 26 14:18:01 i'm probably not the best to ask. i know databases and what can be stored in them. i'm very new to android dev, though May 26 14:18:04 I already made the app in another way (tho I didn't manage to make it save the settings after I exit the app) but I need to make a class for every different image May 26 14:18:26 but from the looks of things, i'd say yes. you could do that. May 26 14:19:02 I know exactly how I should do it , but I don't know how to put it in code xDDDD May 26 14:19:37 i know you can store bitmaps in a database, you can treat that data as raw, raw data can be used for resources, and a resource can be used to populate an imageview May 26 14:19:51 so there's your chain. the actual technicals of how to do all of that, i'm not sure of May 26 14:20:11 and i don't want to lead you down the wrong path. May 26 14:20:27 so i'll leave any technicals up to someone with more experience May 26 14:22:08 luci1093: start by making your app work with an array, once you have learned that, try harder things May 26 14:22:25 make a static array of resource ids, put your logos in res/drawable May 26 14:22:40 make a 10 question quiz. once that works, modify it May 26 14:23:07 I saw your code yesterday and it is important to take small steps towards a goal, else you'll just never reach it. May 26 14:23:25 alright, i have to get ready to do a show. have a good one, guys! May 26 14:24:35 I just got a problem with that code yesterday .... I realised I don't really know how to make it save the "progress" after I exit the app and that it takes ages if I am to add like 100 images .... (also I need 1 class for each img that way) May 26 14:25:06 so I was thinking of making trough a database May 26 14:25:11 what's progress, like 1 image? May 26 14:25:18 that is, the image number? May 26 14:25:19 the score? May 26 14:25:28 a database would be good for that, sure. May 26 14:25:58 I added like 5 pics to see how much I need to work for that, and after that I've noticed they don't save when I exit the app May 26 14:26:34 after you guess a logo , a green thick appears over the image ... and it didn't get saved when I exit ... May 26 14:26:37 when you say you "add a pic" May 26 14:26:40 what do you mean? May 26 14:27:10 well yesterday I had only 1 ImageButton ... I just added 4 more ... May 26 14:27:16 that's what I was saying May 26 14:27:48 so is it "Which is the McDonalds logo" then you must press one of 4 images? May 26 14:28:11 no , it's something like this app https://play.google.com/store/apps/details?id=net.jroen.LogoQuiz&feature=search_result#?t=W251bGwsMSwxLDEsIm5ldC5qcm9lbi5Mb2dvUXVpeiJd May 26 14:28:39 when you click the ImgButton , it shows you the big image and you got an edit text where you write the name of the logo , or whatever May 26 14:29:04 that's a gridview May 26 14:29:10 and if you guess it , I made it to change the picture to one with a green thick May 26 14:29:18 read the "hello, listview" tutorial and work through the example May 26 14:29:23 then modify it to show images May 26 14:29:27 then change it to GridView May 26 14:29:34 then you've got the second screenshot done. May 26 14:29:54 the images in a gridview are clickable ? May 26 14:30:15 *views* are clickable May 26 14:31:51 lol ... how did I not see the gridview ? -.- May 26 14:32:19 and I can set it with an array , right ? or that's the only way ? xD May 26 14:33:23 readme: I think I'm getting there. Only which thread is the overriden function called from? I was expecting it to be the UI thread but it seems to be the worker thread which throws a CalledFromWrongThreadException. I was expecting listeners to be a signal/handle type of thing, but from what I see, I don't think they work like that. May 26 14:35:51 luci1093: read "hello listview" May 26 14:36:05 readme: can I for example use the db instead of Array to fill that gridview ? or should I use the db to just save the "progress"? May 26 14:36:06 its the same way as gridview May 26 14:36:13 ytes May 26 14:36:14 yes* May 26 14:36:19 but lets start with an array. May 26 14:37:08 JamesJRH: use a Handler on the UI thread. May 26 14:37:16 call the handler from inside your callback May 26 14:38:37 readme: I'm just trying view.post like in the Processes and Threads article... May 26 14:39:11 \o/ May 26 14:39:18 Awesome! May 26 14:42:35 view.post should work fine. May 26 14:42:52 Yep! May 26 14:43:03 that uses a Handler May 26 14:43:08 hey readme May 26 14:43:09 Ok. May 26 14:43:26 just pointing out technicalities May 26 14:43:26 I wondered if it did. May 26 14:43:34 because we are having a technical discussion and all. May 26 14:43:42 hello Napalm May 26 14:44:18 hows things? May 26 14:45:39 readme: Right, even though I've set the other thread to priority 1, it still lags up the interface noticeably. What's up here? May 26 14:46:02 The UI is responsive (no ANR), but very laggy. May 26 14:48:00 readme: I see on android dev page that list view is a bit different compared to the grid view ...... yet the listview looks more easier to setup , can I set the gridview like the listview or just make it similar to the example here ? http://developer.android.com/resources/tutorials/views/hello-gridview.html May 26 14:48:08 JamesJRH: priority? May 26 14:48:42 the listview operates practically identically May 26 14:48:45 but just read that one May 26 14:48:47 it's more relevant May 26 14:49:19 hi May 26 14:49:27 JamesJRH: maybe you're adding the notes too fast? May 26 14:49:27 For the worker thread. May 26 14:49:30 loader.setPriority(1); May 26 14:49:31 try using postDelayed May 26 14:49:37 does anyone know of a good way to draw charts? charts like those in aCurrency? May 26 14:49:49 readme: One after another. May 26 14:49:58 you don't want the worker to have priority, although i've never used that method myself so I'm unsure of how it works May 26 14:50:24 1 = lowest priority. May 26 14:50:26 you want the UI thread to have priority, if you actually had a way to choose, which if there is one i'm unaware of it May 26 14:50:32 oh, i see. May 26 14:50:53 instead of posting them, use postDelayed with an incremental backoff time or something May 26 14:51:07 each one should be posted a few milliseconds after the last May 26 14:51:15 that way you won't jam up the uithread with lots of posts May 26 14:51:58 that's just a guess.. if you remove the 'post' part, does the UI free up? May 26 14:53:47 readme: Do threads run in parallel, or do they keep swapping focus? I have a dual-core phone, so I don't see how 2 threads could at all be laggy. May 26 14:58:36 readme: I can't be overloading the UI thread with posts. There are 27 sounds to load, so that's 27 invalidate posts over about 10 seconds. May 26 14:59:56 JamesJRH: I don't know how the internals of threads work in dalvik May 26 15:00:39 if you think you're getting too intense with the other thread.. slow it down a bit.. put a sleep in so it's not crunching away so hard. May 26 15:01:00 that routine could be optimized a lot May 26 15:01:10 you can profile it with traceview May 26 15:03:42 Is this where 'thread safety' comes into play? Could it be that SoundPool.load is not 'thread safe'? May 26 15:04:15 oh geez May 26 15:04:36 I didn't pay attention to that part of the deal :) May 26 15:06:13 you should definitely read the source of soundpool and even replace it with something better if necessary. May 26 15:06:52 http://developer.android.com/reference/android/media/SoundPool.OnLoadCompleteListener.html May 26 15:06:58 Does android provide a way to control charging i.e. programtically stop / start it? May 26 15:07:01 that should at least take care of race conditions between play & load May 26 15:11:19 readme: I definitely wouldn't mind replacing it with something that can handle more than 5 seconds of audio, some of the notes are 20 seconds long. May 26 15:14:44 there are definitely better choices May 26 15:14:54 http://broadcast.oreilly.com/2011/06/fmod-for-android.html May 26 15:16:21 readme: I'm not playing any sound that hasn't finished loading, because SoundPool.load returns a value which is used for playing the sound. May 26 15:16:32 wrongo May 26 15:16:38 there is an onLoadComplete listener for a reason. May 26 15:16:46 ? May 26 15:16:56 just because it returns an id doesn't mean the sound is loaded when load returns May 26 15:17:06 Oh. May 26 15:17:10 Crap. May 26 15:17:14 are any of these build-apps-with-javascript any good? May 26 15:17:27 That means... May 26 15:17:54 j`ey: not if you want to make a good app. May 26 15:18:06 readme: hah May 26 15:18:16 if you want to make some crappy app for an internet marketing company May 26 15:18:20 it might be a good solution May 26 15:18:26 Im just too lazy to update my app May 26 15:18:40 so if I could reuse my current javascript site, would be easier :P May 26 15:18:47 you can May 26 15:18:53 just, don't expect it to feel like native android May 26 15:19:17 hm May 26 15:19:22 I peeked at one of these apps that basically had a scrolling listview in javascript May 26 15:19:33 it was the slowest thing ever, it basically froze on my device May 26 15:19:37 my device is a dual core. May 26 15:19:48 thats kinda lame May 26 15:19:53 i think this app was written poorly though. May 26 15:20:36 basically I think your worst case performance is pretty bad, that's all May 26 15:20:50 my app isnt performance intensive May 26 15:21:15 the app I am talking about was just a stupid app someone asked me to fix that listed ice cream store locations. May 26 15:21:31 :) May 26 15:21:35 oh.. May 26 15:21:46 also, I need access to screen touches etc May 26 15:23:29 readme: um, I'm looking for quite some time and I don't see what I did wrong http://pastesite.com/37092 May 26 15:23:36 j`ey: try it and see, I guess. May 26 15:23:37 readme: Does that mean that SoundPool.load returns straight-away? I was pretty sure this was taking half a second to return. May 26 15:23:44 I get force close error when I try to run :| May 26 15:24:06 luci1093: get the stacktrace from logcat May 26 15:24:06 readme: it cant hurt ;) May 26 15:24:45 j`ey: Have you heard of Phonegap? May 26 15:24:53 yes, but I don't know how good it is May 26 15:24:56 http://pastesite.com/37093 May 26 15:25:10 j`ey: Well Adobe like it. May 26 15:25:35 JamesJRH: not sure if that is a good thing or not :P May 26 15:25:42 j`ey: They recently bought it up. May 26 15:25:46 j`ey: I know. May 26 15:25:53 luci1093: your activity is not declared in your AndroidManifest.xml May 26 15:25:55 Me niether. May 26 15:26:02 neither* May 26 15:26:10 hm, seems like with PhoneGap, I can do some in javascript, some in Java May 26 15:26:11 I did declare it ... let me check again May 26 15:26:49 look http://pastesite.com/37094 May 26 15:26:54 did I do something wrong ? lol May 26 15:27:32 JamesJRH: the actual load is implemented in native code and the load complete listener is called back through JNI May 26 15:27:38 I am not going to dig any further May 26 15:27:44 don't expect it to be synchonous May 26 15:27:51 the load complete listener must exist for a reason, lets just assume May 26 15:27:54 j`ey: Apparently Adobe buying it gives it 'mainstream' credability. But I wonder whether they'll keep it Open. May 26 15:28:40 :S May 26 15:29:42 readme: I wonder if I can use that listener instead of mine... May 26 15:30:39 JamesJRH: yeah, I was thinking that might be a good idea too May 26 15:30:41 sorry to mislead May 26 15:31:19 although I find the first time you play a sound with soundpool.. on more than one device i've tried May 26 15:31:22 it doesn't play! May 26 15:31:25 so watch out for that May 26 15:33:30 omg , everything is right yet I still get error T.T May 26 15:33:40 I tried to restart eclipe too but nothing May 26 15:37:41 android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.imgquiz.www.GRIDMENU } ... what is this supposed to mean ? May 26 15:40:35 best way to pass data from current activity(screen) to second activity(screen) but that i stay in current activity(screen) and then when i come to second activity that required data waits for me there...? thx May 26 15:40:51 luci1093: how do you create your Intent object May 26 15:41:40 hey, I found the bookmark feature in eclipse, is there no way to set that up with a quick key? For example in Delphi I could do Ctrl+Shift+number (0-9) to set and then Ctrl+number (0-9) to go to bookmark...I used these all the time, just wondering if I can do this in eclipse...or can you link me to a resource for IDE quick keys or IDE tips etc. May 26 15:42:12 wongk-home: Intent i = new Intent("com.imgquiz.www.GRIDMENU"); startActivity(i); May 26 15:42:27 GeeksOnHugs: you can change all shortcuts in eclipse May 26 15:43:01 luci1093: that is (part) of your problem May 26 15:43:39 ... well it's 1st time I have problem with it like this ... May 26 15:43:48 intents that start activites in your own process are created like this: new Intent(Source.this, Destination.class) May 26 15:44:21 Context, Class May 26 15:45:12 and that way do I still need to declare it in manifest ? (i'm just asking) May 26 15:45:17 the intent filter in your manifest for that activity is unnecessary May 26 15:45:28 the activity must be there, yes May 26 15:46:11 ok , it didn't give error but it seems I've messed something because my GridView doesn't show the images T.T May 26 15:46:26 that is a bug in your activity May 26 15:48:04 wongk-home it has no quick key now, can I still add a quick key? how do I do that? I'll see if I can find it May 26 15:48:37 Is there a way to get tab index (TabHost) without using for by all tabs comparing all tabSpec by name? May 26 15:49:16 GeeksOnHugs: Window > Preferences > General > Keys May 26 15:49:22 ty :) May 26 15:49:23 if you're on windows May 26 15:49:29 yes, I am thank you May 26 15:49:37 I'm gonig to switch to ubuntu at some point, but windows for now May 26 15:52:15 "i'm going to be cool someday, just not now" May 26 15:52:25 wongk-home yes, I can do that...thank you...this is soooo helpful May 26 15:54:33 ubuntu is the windows of linux May 26 15:54:45 i guess it's a step in the right direction ;) May 26 15:55:41 wongk-home well, I was leaning towards it because it is apparently what Google uses? At least they say they tested the SDK on that distro...I currently use OpenSUSE May 26 15:56:23 wongk-home: except it only has the good parts of windows.. user friendliness etc.. May 26 15:56:39 it's barely comparable, tbh May 26 15:56:42 wongk-home in setting the keys I assigned "Add Bookmark" of course, but then there are two options to show them and I can't tell the difference...do you know the difference between "Show in Bookmark" and "Show view Bookmark" May 26 15:56:47 I use ubuntu for a mailserver, it's solid as hell May 26 15:57:12 readme: it is certainly more mac'ish than windows'ish May 26 15:57:12 my desktop is linux mint, though. I don't like ubuntu's default desktop offerings. May 26 15:57:30 i'm not a fan of gnome3 May 26 15:57:38 GeeksOnHugs: no May 26 15:57:56 unity makes me want to vomit May 26 15:58:01 that's all im saying May 26 15:58:04 i use mate, I've got what I consider to be a GNU/linux experience going on here. May 26 15:58:10 solid* May 26 15:58:18 Gnome2 was always the best choice... May 26 15:58:20 now it's mate. May 26 15:58:26 let me say this, I need to be able to RDP in, I actually do my work on my Motorola Xoom...currently RDP into my old windows box, I'm gonna get one of those tiny linux boxes and I need good solid RDP or VNC hosting? I dunno if one distro is better than another for that purpose? May 26 15:58:35 dwm is the best window manager May 26 15:58:36 i've always been a KDE guy May 26 15:58:55 well we have choices May 26 15:59:09 i prefer dwm too May 26 15:59:12 which would be the easiest to set up as an RDP or VNC server? May 26 15:59:26 and then of course run eclipse and all that May 26 15:59:36 actually motodev studio (eclipse based) May 26 15:59:56 anything that has X windows and ssh can do remote GUI May 26 16:00:10 vnc is garbage May 26 16:00:36 so ubuntu is fine for that? May 26 16:00:44 every linux distro is May 26 16:00:47 what is the name of the technology I look into if not VNC? May 26 16:00:56 do they have RDP? May 26 16:01:01 no May 26 16:01:02 Cause I bought an android RDP client May 26 16:01:24 so I know of RDP clients and VNC clients, what else is there? May 26 16:02:07 X11 forwarding over SSH, preferrably with putty and xming May 26 16:03:07 do you know if there are android clients for that? May 26 16:03:29 i wonder how hard it would be to write one if not May 26 16:03:30 android doesn't use X windows May 26 16:03:47 at least, i'd be really surprised if it did :P May 26 16:03:56 ok...so then do I have any other options? May 26 16:04:17 vnc :P May 26 16:04:24 I've set up VNC to my OpenSUSE before May 26 16:04:34 yep...that'll do me at least :P May 26 16:05:03 http://sourceforge.net/projects/xrdp/ May 26 16:05:09 Well... Ok. Forget about getting tabByName. How to get previous selected tab? May 26 16:05:13 <3 google May 26 16:07:44 wait...what's that? An RDP server I can run on linux? May 26 16:09:21 let me ask you this, cause I might set this up soon...which GUI do I select? I know there is gnome and kde? which one if I want to use that May 26 16:10:09 yep and someone built a package for debian/ubuntu May 26 16:10:22 people are raving about it May 26 16:11:12 OMG, that's very sweet...you can have a terminal server May 26 16:12:15 I was thinking of setting up a service for developers...basically a dev workstation "in the cloud"...have you seen the "OnLive Desktop" app? That idea but for devs May 26 16:13:04 one major problem May 26 16:13:05 cause the web based IDEs aren't quite there and you need a great client to run them nicely...but an RDP cloud based dev workstation might be cool May 26 16:13:15 i don't want to have my projects in your cloud May 26 16:13:32 well that goes for any git service and any of these web based ones May 26 16:13:59 I totally understand that though, I'd be nervous about it too, but I guess you have to build up trust over time May 26 16:16:34 my biggest technical questioni would be how secure could you make each terminal connection? May 26 16:18:48 why are you asking me May 26 16:27:12 vim over ssh makes a pretty good cloud based ide. May 26 16:30:32 vim is a text editor, not an ide ;) May 26 16:32:09 Ravenheart lol was just wondering outloud, readme you are right, check out Terminal IDE in the appstore, jug6ernaut, vim is totally customizable and Terminal IDE is set up for Android Java development May 26 16:32:55 I tried to do it, I dug the hard core command line thing, but it's too hard core for me right now...I'm soft and gooey (get it, gui? hehe) May 26 16:32:59 just because its customizable doesnt make it an ide May 26 16:33:35 well it depends on what your definition of an IDE is...but you can develop, run, debug in vim May 26 16:33:57 VS <3 May 26 16:34:14 Visual Stuido? :( May 26 16:34:29 * Jug6ernaut also <3's VS May 26 16:34:48 i work mostly with C# May 26 16:34:59 i can't abide visual studio :P Delphi is still the most productive IDE eva IMO :P May 26 16:35:52 why'd it change 3 owners May 26 16:36:42 Borland had no clue how to market it, but Delphi was and still is amazingly productive...in my last business I was mostly on my own in the beginning with competitors that had teams of developers May 26 16:36:50 force multiplyer May 26 16:37:02 best way to pass data from current activity(screen) to second activity(screen) but that i stay in current activity(screen) and then when i come to second activity that required data waits for me there...? thx May 26 16:37:03 have you tried DevExpress? :) May 26 16:37:21 I used some components put out under that name? May 26 16:37:28 is that what you are referring to? May 26 16:37:36 yep May 26 16:37:54 for sure, they were the shit back in the day May 26 16:37:55 we can crack out new features in no time thx to them May 26 16:38:15 mostly its the database work that slows us down May 26 16:38:16 they make C# components? May 26 16:38:30 You know who the architect of C# is? May 26 16:38:34 thats their core May 26 16:38:38 yes i know May 26 16:38:44 yep ;) May 26 16:38:47 which proves in a way which language is superior :P May 26 16:39:30 I think C# is great...I wasn't sure about .NET for a while May 26 16:39:33 devexpress make delphi controls as well btw May 26 16:40:03 yah, that's what I used of course...I've got 17 years experience with delphi....java is my first new language this century :P May 26 16:40:05 yea, whats good about it is they are developing the language May 26 16:40:40 i only started programming this century :( May 26 16:41:06 started with a bunch of game making tools as a kid May 26 16:41:11 ended up with C# May 26 16:41:16 am glad May 26 16:41:18 I was wondering about microsoft for a while there, but I think with Windows 8 tablets on ARM, they are going to get a niche...maybe even beat android in the tablet space...and .net is perfect for that May 26 16:41:33 although i would like to have some experience with pointers and lower level stuff May 26 16:41:53 i think they will totally fail with Win8 May 26 16:42:15 its the worst possible desktop windows in a long time May 26 16:42:16 yah, that's what I'm having to get used to with java...Ive never used garbage collection...I'm used to using pointers for all kinds of things, and neat tricks too May 26 16:43:03 well, no but with their history and then on the tablet...I think they are going to make it with tablets in the enterprise space...and I wish it weren't so so much, I'm 100% android May 26 16:43:08 the thing with C# and C/C++ is with C# you get these elitists "hacks" on a high level (specially the LINQ and parallel stuff) May 26 16:43:14 and with C/C++ you have the low-level hacks May 26 16:43:45 what was awesome about Delphi was...it was totally as easy to get into as VB, but you had full to the metal, near C++ power May 26 16:44:44 I dunno where Windows RT is going to leave Delphi...embarcadero is building a cross compiler in...so it'll compile win32, win64, mac and supposedly iOS...eventually linux and android too so they say May 26 16:45:25 i think they'll go bust before half of those platforms are even at alpha stages of building May 26 16:46:03 raven, did you know (cause I didn't till recently) that java is like .net in that it's actually language neutral? You can use various languages and compile to java machine code...so there might be a C# java compiler, but dunno for sure May 26 16:46:24 yea i knew May 26 16:47:00 I was thinking about using pascal, but I thought it'd be better to stay mainstream with it...it was a pain in the ass all these years with Delphi...I mean it was great, but getting help with stuff in the later years, or finding jobs, etc. May 26 16:47:34 there's this irrational hatered towards everything microsoft in my country May 26 16:47:44 where are you from? May 26 16:47:47 bulgaria May 26 16:48:09 as a result you can't find good C# programmers anywhere but the capital May 26 16:48:27 kk, yah I understand, well for one thing, allways the top dog is going to draw some hate...I've been a lukewarm microsoft fan...they've done bad things though for sure May 26 16:48:45 they've pooped on their developer community when it has suited them from time to time May 26 16:48:45 yea in hte 90s May 26 16:48:59 i don't get why they hate May 26 16:49:08 well, I agree, it's overboard May 26 16:49:15 nobody complained when they had to make websites for only 1 browser May 26 16:50:03 i haven't done a lot of work with java May 26 16:50:07 hi folks, I'm looking for a chart of the basic android classes. I've simply copied the code so far from tutorials, but want to understand the connections between the classes better. Is there something graphical that could help me? May 26 16:50:29 well what microsoft did with web browsers then what they did with java, pissed off a lot of people...then they come out with .net...they were uber competitive which I guess is business May 26 16:50:30 but with C# i've compiled the exact same piece of code for everything starting from micro controllers to web sites to services to desktop apps May 26 16:50:33 to my xbox May 26 16:50:53 hey Hackwar...I dunno, but I'd love to have one too May 26 16:51:01 Hackwar checkout the developer site May 26 16:51:02 ok :-/ May 26 16:51:07 lots of docs and such there May 26 16:51:12 yes, I'm on there May 26 16:51:15 and most of the stuff is layered May 26 16:51:16 Delphi used to have a giant poster with the object model May 26 16:51:20 namespace wise May 26 16:51:40 link me if you see something please...ima look May 26 16:52:00 Raven, you haven't done much java, so are you starting now? May 26 16:52:19 i did a demo project for our flagship product May 26 16:52:26 a tech demo/proof of concept May 26 16:52:44 cool, what do you right? May 26 16:52:46 write May 26 16:52:49 Hackwar: im not aware of any grphical May 26 16:52:57 mostly backend services May 26 16:53:12 but i do a lot of database designing as well May 26 16:53:24 and as of recently a bit more GUI stuff to go with the DB May 26 16:53:28 kk...I've been writing electronic medical records the last 8 or 9 years May 26 16:53:35 :) May 26 16:53:38 well what do you know May 26 16:53:40 I like writing backend stuff better May 26 16:53:44 thats the same field we're in May 26 16:54:08 well, my company kind of forced me out, but I wanted to go into android anyway...so nothing in particular I'm learning android...I'm working on my first simple app, a location based todo list May 26 16:54:11 you guys are competitors... fight! ;) May 26 16:54:18 haha May 26 16:54:32 i'm way out of his league! May 26 16:54:34 :) May 26 16:54:41 ok, let me start a little bit differently... I want to log some status to the eclipse console. Can I use Log.w() for that? May 26 16:54:49 GeeksOnHugs: someone else in here has that same app May 26 16:54:53 I'd been pushing my company to go mobile, but I never could get the board of directors on board May 26 16:55:11 it's cool, I mainly wanna learn not necessarily retire with it lol May 26 16:55:14 Hackwar: that logs to the android logs, which eclipse can display May 26 16:55:21 where? May 26 16:55:25 also adb logcat May 26 16:55:38 ok May 26 16:55:39 look for logcat May 26 16:55:51 also, it's really hard to grasp how huge the mobile market is and how much insanely huger its going to get May 26 16:55:52 GeeksOnHugs one of my last projects was connecting lab equipment to our system May 26 16:56:12 OK, cool...yah I hated that stuff lol May 26 16:56:29 do the words ASTM 1394 mean anything to you May 26 16:56:30 we did that too, talking to auto-refractors and pheropters...we were in optometric May 26 16:57:12 isn't 1394 the firewire standard? May 26 16:57:14 not off hand, what's that May 26 16:57:26 why do i remember that May 26 16:57:28 thats the ASTM oe wongk-home May 26 16:57:50 its a protocol for talking with lab equipment May 26 16:57:51 http://en.wikipedia.org/wiki/IEEE_1394 :P May 26 16:58:12 I've pondered writing a mobile/cloud based EHR system but that's a big order May 26 16:58:26 and these days you need serious cash to get certified May 26 16:59:00 there's lots of old people these days, medical is also big and growing ;) May 26 16:59:08 at least in the US May 26 16:59:13 yah medical is a good field May 26 16:59:31 my company sells to medical device makers May 26 16:59:51 amongst lots of other businesses May 26 16:59:53 but the market built in a protection racket with the certification rules May 26 17:00:39 so it's hard for small guys to get started now without good funding...my last company was bootstrapped, I wont try that again without funding May 26 17:01:03 what do you wrigte wongk? May 26 17:01:08 write May 26 17:01:17 the product> May 26 17:01:19 ? May 26 17:01:38 if you've got good RFID readers that work up to a range of 3 meters May 26 17:01:40 yah, what's the product you sell and/or what you code on mainly I was curious about May 26 17:01:43 with relatively cheap consumables May 26 17:01:44 http://www.seapine.com/testtrack.html May 26 17:01:48 C++ May 26 17:01:53 (we need to print them automatically from our system) May 26 17:01:56 MSG ME! May 26 17:02:00 YEAY!! \o/ my simple code is working! Android is cool. :-) May 26 17:02:38 ok nice...dev tools :) May 26 17:02:49 I worked on TOAD before which is an Oracle development tool May 26 17:02:58 heard of it May 26 17:03:13 what kinda C++? VC? May 26 17:03:21 Qt May 26 17:03:36 like the cross platform thingy? May 26 17:03:45 uhm, sure May 26 17:03:59 lol...the only Qt I know, is a cross platform library May 26 17:04:04 it is May 26 17:04:09 kk :) May 26 17:04:19 wait, isn't TOAD for MySQL as well? May 26 17:04:28 yep May 26 17:04:33 I was before MySQL though May 26 17:04:48 orcale owns mysql May 26 17:04:51 I was there when it was just for Oracle, and they were talking about making it for other DBs May 26 17:05:07 well they nearly cloned dbForge for MySQL May 26 17:05:14 TOAD originally stood for the Tool for Oracle Application Developers May 26 17:05:46 I worked with the guy who invented TOAD...he's in federal prison now for child mollesting :P May 26 17:05:46 i hate oracle May 26 17:06:07 well no wonder! he's been working with oracle May 26 17:06:11 im not aware of a lot of people that like oracle May 26 17:06:11 lol May 26 17:06:19 child molesters like it May 26 17:06:47 we had to drop mysql support because they changed the licensing of the client library May 26 17:06:47 its horrible on windows May 26 17:06:54 Oracle is for old school types May 26 17:07:05 wongk-home: what did they do to the licensing? May 26 17:07:09 GPL May 26 17:07:10 that want to pay tens of thousands of dollars for something they could get for free May 26 17:07:18 Hello, I want my app execute some network tasks in background. I am confused about what is the best option. It's better develop it as a service or as a thread? May 26 17:07:27 service May 26 17:07:28 service May 26 17:07:30 how do you get around Your version is: java version "1.6.0_24". May 26 17:07:30 The correct version is: Java SE 1.6. May 26 17:07:30 ? May 26 17:07:39 wongk-home: i thought they always were GPL May 26 17:07:43 oh! thank you May 26 17:07:47 a thread can get killed May 26 17:07:53 it was LGPL previously, i believe May 26 17:07:55 Borillion: are you using openjdk? May 26 17:07:59 You have activities, services, and a couple of other things I can't rememmber as the main app objects May 26 17:08:08 wongk-home: (one of the reasons i switched to postgres something like 5 years ago) May 26 17:08:09 content providers May 26 17:08:24 we use MySQL May 26 17:08:25 i distinctly remember the mysql licensing being way too complicated May 26 17:08:25 capa: you haven't provided enough information for a good answer May 26 17:08:38 I've been using Firebird, which is an open source industrial grade SQL database (based on Interbase) May 26 17:08:41 with the FOSS exceptions and so on May 26 17:08:54 wongk-home: http://benramsey.com/blog/2004/03/mysql-foss-exception/ May 26 17:09:11 wongk-home: note the year May 26 17:09:29 for my new development I'm gonna want to use these platforms as a service for the back end so that limits database options...mySQL is big...I allways thought of it as a toy database but it's taken over May 26 17:09:31 hrnt: im no expert on the matter, i just know it happened :P May 26 17:09:37 that's not my area May 26 17:09:56 GeeksOnHugs Percona MySQL and MariaDB are rock solid performers May 26 17:10:16 are those flavors of MySQL? May 26 17:10:21 yea May 26 17:10:25 they are binary compatible May 26 17:10:32 kk...I'll note that, thanks May 26 17:10:41 what is SQLLite based on? May 26 17:10:46 that comes on android May 26 17:10:51 sqlite May 26 17:10:52 based on? May 26 17:11:00 T-SQL :P May 26 17:11:07 I assumed it was based on some open database May 26 17:11:16 sqlite May 26 17:11:27 kk...never heard of it before android May 26 17:11:36 it's pretty big May 26 17:11:44 according to wikipedia it was originally based on gdbm May 26 17:11:52 but isn't anymore May 26 17:11:58 it's the preferred DB that does not require a server May 26 17:12:32 so Android can't really connect to a database server directly with old fasioned two tier, client server, right? You need to go through a web service, right? May 26 17:12:49 like there is no oracle or SQL server client that runs on android May 26 17:12:54 android has TCP May 26 17:13:01 not sure what else you need May 26 17:13:18 well, you need the database drivers May 26 17:13:28 sure, but that's possible May 26 17:13:29 i think you can May 26 17:13:36 i'm sure some exist already May 26 17:13:36 at least the monodroid implementation can May 26 17:13:37 or I guess write your own? Are they available? May 26 17:14:26 hi May 26 17:14:35 Yah, once I get comfy with client side, I gotta figure out how to make client/server apps with andorid...my understanding was that multi-tier is the preferred way May 26 17:14:53 so you write a server side program that talks to the database and your client talks to your server program May 26 17:15:02 i wouldn't want every mobile user to have direct access to my database May 26 17:15:17 is that ever not the preferred way? :P May 26 17:15:19 hence why you need a web service May 26 17:15:24 it is May 26 17:15:32 tis what we use in our flagship product May 26 17:15:35 guys i am trying to develop a system of microcontrollers connected in serial with a main controller which has to be a single board tablet with a specialised os. my question is is there such an os? May 26 17:15:38 well my EHR program was two tier May 26 17:15:43 but anything outside the hospital connects with a web service May 26 17:15:58 windows with firebird servers on linux, unix, windows, etc. servers May 26 17:16:15 aekition you can do that pretty easily with the .NET MF May 26 17:16:40 my software wasn't for hospitals but for physician practices May 26 17:16:40 dunno if you want a java solution May 26 17:16:48 mainly optometrists and opthamologists May 26 17:16:51 ours is interated May 26 17:16:58 integrated* May 26 17:17:10 ravenheart will that work with controlling and monitoring what is happening? such as what my sensors are gathering, control servos etc? May 26 17:17:13 automates nearly every part of a hospital's work May 26 17:17:14 we did multi-office with VPNs and database replication May 26 17:17:41 aekition its a very robust platform thats easy to develop for and debug May 26 17:17:48 the only down side is its not real time May 26 17:18:03 so if you need time critical operations you either look at a specific .NET MF provider May 26 17:18:09 or get some other hardware to handle that May 26 17:18:12 well not real time is more robust May 26 17:18:15 so will that install on a tablet pc? i want it to be minimalistic os May 26 17:18:21 j May 26 17:18:31 oh you want to isntall it on a tablet May 26 17:18:46 its only for micro controllers May 26 17:18:54 not tablet! just a single board pc say with a touch screen only May 26 17:18:54 much easier to controll low-level hardware May 26 17:19:05 right May 26 17:19:12 well checkout GHI Electronics May 26 17:19:23 i'll be back in a bit, but gotta get back into my code...did that dude ever find an android object model diagram? May 26 17:19:26 the sbc has to act as a contoller...eg. control, monitor and record May 26 17:19:28 they have some super products that would fulfil what you need May 26 17:20:02 yea NET MF has full libraries for pretty much everything you'd need in such a scenario May 26 17:20:53 im building an electric gokart and i want its brain to be an sbc and through that i want to have a couple of microcontrollers to do the sensoring and controlling of electronics May 26 17:21:13 wow May 26 17:21:38 again, if you won't be doing realtime stuff NET MF is a very good solution May 26 17:22:12 with GHIs boards you have the added bonus of being able to deploy native ARM elfs and use those for time critical stuff May 26 17:22:30 so in the end of the day i just want the driver to have one touch screen monitor to see his speed, temps, etc and control lets say windows, spoiler angle, etc.. May 26 17:23:28 Hello. I programmatically create a FrameLayout and add two views to it, and AdMob AdView and a canvas-based view. The problem is the AdView is empty during onCreate() so by the time the ad arrives, the canvas has the whole screen so the ad appears on top of it obscuring the contents... May 26 17:23:30 will you be making an ABS/Traction control system May 26 17:23:31 ravenheart i know what to do with the microcontrollers... they will be directly connected with my motor, brakes, accelerator etc... no worry with that May 26 17:24:01 tell you what May 26 17:24:05 go download NET MF May 26 17:24:09 its free and open source May 26 17:24:11 my controller sbc will not be doin any critical things May 26 17:24:18 and it comes with a fully featured emulator May 26 17:24:29 try it out and see if you'll like it May 26 17:24:40 So I was thinking of implementing AdListener so when an ad comes I can resize the canvas. My question is what is the best way to do that? (the resize I mean.) May 26 17:25:02 it will just be there to show the speed, wind direction, and have some on-screen buttons say to change the angle of the spoiler, lock the car, close windows, etc... May 26 17:26:12 so you are sure that is my only option? is there other option i might compare? May 26 17:26:21 thats the option i've used May 26 17:26:29 i'm sure there's plenty of other alternatives May 26 17:27:18 is there a tutorial i could follow? May 26 17:27:47 there's a couple of free ebooks/guides on tinyclr.com May 26 17:28:11 but even the kit you download from MS is quite feature rich May 26 17:28:32 how come i never heard of it before May 26 17:28:38 btw idk if its feasable, but have you also considered a raspberry pi May 26 17:28:49 i thought freertos was fine but i would have a problem with the gui May 26 17:28:59 well it was mostly closed source internal use @ MS May 26 17:29:36 if you remember those watches with traffic info and other stuff from MS May 26 17:29:41 wayyyy back in 2005 or something May 26 17:29:49 those ware the first devices that ran NET MF May 26 17:30:04 but will it blend? lol only jokin May 26 17:30:25 http://en.wikipedia.org/wiki/Smart_Personal_Objects_Technology May 26 17:31:22 but will it work a tablet pc? i want it to completely work on its own as an OS May 26 17:32:23 on a tablet pc no, not without you yourself porting it May 26 17:32:31 but you can hook up a display to the MC May 26 17:32:43 a touch enabled one May 26 17:32:54 and yes it does function on its own May 26 17:34:05 i dont know if this is what i want... then i understand it will be installed on a microcontroller? it will slow it down May 26 17:39:52 What's the key event of 'send' button in htc sensation? May 26 17:43:53 anybody got a heart icon for the menu entry of my app? May 26 17:44:58 in color May 26 17:45:01 :-) May 26 17:47:02 google to the rescue May 26 17:50:11 is there a book that you would recommend to learn app development? May 26 17:50:37 I mean one of these strange things made out of dead wood, without any links and all that stuff. ;-) May 26 17:51:50 Hackwar, how is your java? May 26 17:52:05 I'm a java beginner, but I know a bunch of other programming languages May 26 17:53:15 I think a java book would help a lot May 26 17:53:26 ravenheart do you know any other os for tablets which will solely act as a monitor and controller for mc's? sorry for not likin the .net mf May 26 17:53:32 I got a book for vanilla java development May 26 17:53:39 Somebody please tell me the key event of 'send' button in htc sensation? May 26 17:53:47 i haven't used any other May 26 17:54:00 but Windows CE seems to be a prime candidate May 26 17:54:11 recording sound from a phone microphone and converting the sound to a .flac file, is this hard? May 26 17:54:43 Mohsen_Hassani, it's the "call" key May 26 17:54:47 open source alternatives to windows ce? May 26 17:54:52 KEYCODE_CALL May 26 17:55:23 well you could give the AVR mc a look May 26 17:55:34 perhaps even an arduino tied to a touchscreen May 26 17:55:42 jeppy, The key code of call is '5', and '5' is not the send key button May 26 17:55:51 but forget fancy graphics with that May 26 17:56:10 hehehe fancy graphics was a must.. May 26 17:56:18 avr mc u said? May 26 17:57:24 Mohsen_Hassani, have it display it's keycode on when you press it May 26 17:57:53 yes AVR May 26 17:58:14 these are all MC with touchscreen capabilities May 26 17:58:22 thats the alternative to tablet May 26 17:58:23 i think my best option is either a linux rtos or freertos with me havin to use a gui development tool... then connect the mc's May 26 17:58:44 jeppy, I'm using adb to access the key codes. Is there any way to get the keys I press from adb console? May 26 17:59:11 Mohsen_Hassani, i'm not sure May 26 18:06:45 hackwar, when I started android programming i had programming experience but not much java experience too. I think the only book I bought was to help with multithreading in java and android. It is quite helpful. http://www.amazon.com/Java-Concurrency-Practice-Brian-Goetz/dp/0321349601/ref=pd_sim_b_2 May 26 18:07:18 other than that, I've only needed the docs, google, and stackoverflow May 26 18:14:10 200+ active installs. only 6 ratings. May 26 18:14:30 nearly a hundred apps isntalled May 26 18:14:34 barely rated 3 May 26 18:14:39 lazy is lazy! May 26 18:16:53 I need 'send' key code in my htc sensation, no code is working :( May 26 18:27:22 should I use a android.content.Loader to load data from a web service, or just stick with doing it in an AsyncTask? May 26 18:30:27 best way to pass data from current activity(screen) to second activity(screen) but that user stay in current activity(screen) and then when user come to second activity that required data waits there...? thx May 26 18:31:22 Angel07, override Application. Store what you like in there, then reference it in your next activity May 26 18:31:36 for example MainApplication extends Application May 26 18:32:01 in your activity cast getApplicationContext to your MainApplication May 26 18:32:17 contex = (MainApplication) getApplicationContext(); May 26 18:32:46 or if you are in a fragment: context = (MainApplication) getActivity().getApplicationContext() May 26 18:33:01 along that line should get you what you are looking for May 26 18:33:26 if you just need simple properties, pass them in an Intent extra May 26 18:34:15 That sounds like a horrible solution, and no different than just using a static variable May 26 18:34:42 sure, if the value never changes May 26 18:35:04 Eh, you can change static variables May 26 18:36:36 there is always more than one way to accomplish a task...just trying to help out May 26 18:38:35 anygood tabhost with header google isnt turning up much May 26 18:38:44 Requiring a context for what is essentially a static variable is just... Anyway, the data should be passed in the intent May 26 18:41:03 tutorials? May 26 18:41:44 that's fine, but if already in an activity and have access to a context, and passing to another activity which also has a context, what is wrong with saving extended Application to share between activities May 26 18:41:45 ? May 26 18:44:27 There's nothing wrong with doing it that way, instead of the other. There's just no reason for it May 26 18:45:49 Both solutions are equally crap tho May 26 18:47:14 SimonVT, I am trying to make a decision on loading web service data via AsyncTask or Loader(AsyncTaskLoader, possible). any thoughts? May 26 18:50:03 dmfrey SimonVT i just need to pass one integer... when user choose something from list it should store value in textView below that list in that activity and i did that but i too need to pass that "result" to other screen(activity) and thats my problem... i manage to do that but it redirects me to other activity and i dont want that... May 26 18:52:00 i want to stay on same activity and then later when user opens second screen to have that "result" there also... thx May 26 18:53:07 does anybody have a good tutorial of adding headers to tabhost ? May 26 18:53:28 Ive seen it done in apps like Austin Powers Soundboard by maxdroid May 26 18:53:30 dmfrey: Depends if you need the loader api.. AsyncTaskLoader just uses an asynctask May 26 18:53:57 Angel07: Pass the data in the intent when you open the second activity May 26 18:55:21 SimonVT, Loader API is supposed to 'monitor' the resource, but have been seeing conflicting information about that. i will probably just leave it as asynctask for now May 26 18:55:31 austin powers what? May 26 18:55:49 pragma- soundboard by maxdroid May 26 18:56:10 the headers with tabs i have my layout but its not tabbed its a mockup May 26 18:56:27 use a viewpager and viewpagerindicator May 26 18:58:20 ok May 26 18:58:46 SimonVT do you maybe have some links with example... i tried 4-5 different solutions and none of them worked... thx May 26 18:59:41 Angel07: What you want to do makes no sense. Do not pass data to an activity before you actually open it May 26 19:00:14 There IS no activity before you open it May 26 19:10:43 Angel07: Sorry, no private sessions May 26 19:12:23 SimonVT okay thx anyway... May 26 19:18:38 how can I set the onListItemClick event on a ListView element? I can't find it in the properties menu of eclipse May 26 19:21:04 .setOn... May 26 19:31:21 Guys, why android:ellipsize="marquee" doesnt work in such simple layout? http://hash.su/7409 May 26 20:30:04 wrapping up my play time today http://www.qubicle-constructor.com/forum/viewtopic.php?f=5&t=301 May 26 20:40:10 if I need a slider to adjust a parameter, can I just use a seekbar? May 26 20:53:51 I have a LinearLayout with orientation set to vertical holding many LinearLayouts with orientations set to horizontal. Is there a straight forward way to make them all spread veritcally out across the screen in a uniform way? May 26 20:55:33 yeh set weight May 26 20:55:44 what's "many" ? May 26 20:55:50 10 May 26 20:55:59 why not listview? May 26 20:56:07 I've never used one :) May 26 20:56:20 the screen will basically be a list of parameters each wtih a slider to adjust May 26 20:56:32 would a listview work ok for something like that? May 26 21:05:16 tnzr custom adapters with listviews r a good place May 26 21:06:46 anyone here support different versions of android using multiple apks, and have a good git branching strategy that helps with that ? for example, you maintain an app for froyo and a different one for ics May 26 21:07:03 canvs2321: thanks, I'll do some googling May 26 21:11:17 can i access R.id.* from anywhere within my activity? May 26 21:13:39 ddreamer0: think so, it's static May 26 21:15:10 cool May 26 21:15:17 I just used a TableLayout May 26 21:16:44 tnzr coulda stayed with linearlayout May 26 21:16:54 with weights May 26 21:16:57 leslie i'm populating my member vars with my holders constructor with TextView name =(TextView)v.findViewById(R.id.title); but they're still null after doing this May 26 21:17:31 ddreamer0: did you call setContentWhateverItsCalled before that code? May 26 21:17:34 I can't remember the method May 26 21:17:38 canvs2321: yeah I still don't really get it, like..one horizontal linear layout wiht a TextView and a slider would basically always have them touching each other May 26 21:18:00 but this TableView makes the left column as large as the widest TextView so that makes it nice and easy, all the sliders are the same size May 26 21:18:03 padding/margins etc May 26 21:18:12 leslie um...no didn'w know that function May 26 21:18:14 you'll get it :) May 26 21:18:20 setContentView or something May 26 21:18:20 yeah one of these days :) May 26 21:18:21 find what works for u May 26 21:18:25 is one better than the other in terms of speed? May 26 21:18:51 not sure, just find what works for ur situation, can always rewrite/optimize when more knowledge is present May 26 21:19:01 good point May 26 21:19:22 i'm used to linear layouts/relative layouts, i see the point of framelayout and tables but don't use often May 26 21:21:52 leslie im not sure this is my code, the conflicting line is 142, because the member fun () is trying to set the vars that are null: http://pastebin.com/jHdUYMtK May 26 21:22:51 leslie but i think the problem is that EventoHolders constructor isn't working well and leaves the member vars=null May 26 21:23:09 one sec, looking at the code May 26 21:23:24 i have no problem seting the TextViews etc from my adapter (line 122) May 26 21:24:36 but i want to do it correctly from the holder May 26 21:24:55 do you know what's null exactly? May 26 21:26:34 yes, EventoHolders internal vars (name,shedule,etc) May 26 21:28:13 stack trace? May 26 21:29:11 leslie stack trace complains of null pointer on line 142 when eventoHold.populateFrom tries to access those vars because they are null May 26 21:30:53 so you're saying the v.findViewById calls aren't working? May 26 21:31:21 yeah, i guess it's because R.id.* arent accessible May 26 21:32:32 but the R.id.* values are just integers. it sounds more like findViewById isn't finding a corresponding view in the view specified May 26 21:32:44 and is returning null May 26 21:33:44 Is there an anlog of ListView's android:overScrollMode for API 8? I want to disable that annoying orange border. May 26 21:34:10 *API 7 May 26 21:36:37 leslie might it be because of the context where EventoHolder is in? May 26 21:37:56 the context is just the activity though May 26 21:38:12 so I don't see how. but I'll admit I'm not great with Android dev yet May 26 21:39:15 i just tried to rise a toast from there ane it says "No enclosing instance of the type TockitActivity is accessible in scope" when i tried to set the context to TockitActivity.this or getCurrentActivity() May 26 21:42:41 http://www.youtube.com/watch?v=v_LM1sxvrlc May 26 21:46:53 xa0c: nope May 26 21:47:04 :( May 26 21:51:18 actually, xa0c, try android:fadingEdge="none" May 26 21:51:36 That is for fade :) May 26 21:51:53 what was it you were asking? May 26 21:52:09 http://developer.android.com/guide/appendix/api-levels.html needs to be updated for api level 16 May 26 21:52:53 When you trying to overscroll a listview it displays orange line at the top/bottom (depends on your's scrolling direction) May 26 21:53:14 ah, hm May 26 22:25:41 I have a ListView with custom items (fixed amount, 25). Sometimes (well, almost always) it's stumbles on scrolling. All items are loaded, so 'use lazy load' is not an option. What could it be? What should I check/google/read? May 26 22:30:46 is there not an onProgressChangeListener for horizontal ProgressBars? May 26 22:31:35 i should probably be using a seekbar May 26 22:31:54 although I'd like to turn off the thumb May 26 22:35:07 hm, is there a document which explains what exactly happens during a post-device rotation activity recreation? May 26 22:35:33 because my fragment's onCreateView is being called May 26 22:35:44 yet getActivity() returns null May 26 22:35:58 which shouldn't be happening according to the lifecycle diagram in the docs May 26 22:36:31 onCreateView gets called before onActivityCreated according to the diagram I have May 26 22:37:10 yes, but after onAttach May 26 22:37:20 after which getActivity() should return a value May 26 22:37:34 * leslie looks May 26 22:38:20 and this works when creating the activity for the first time May 26 22:38:35 but when rotating the device it crashes with a NullPointerException May 26 22:38:52 which is because I'm assuming it tries to be clever with the fragment recreation May 26 22:39:32 (this is the support lib, btw, not native fragments) May 26 22:41:08 I… have no idea May 26 22:41:28 I need a project to work on over summer May 26 22:41:55 ah, I've found it: it's explained in Fragment.setRetainInstance May 26 22:43:53 ah, I see May 26 22:48:11 what eclipse should i download for android apps? Eclipse Classic 3.7.2? May 26 22:48:35 or java May 26 23:15:20 I think Classic does not contain the Marketplace May 26 23:15:28 So you're better off with the Java version. May 26 23:23:03 Crap. It was because of DEBUG. (ListView lagging). Did rewrite almost all code. Grr... May 26 23:32:53 xa0c: ouch May 26 23:34:59 Do I need to install java on my system for android? I hate java because it will usually get you malware on the system when visiting infected links May 26 23:35:34 sunbeam: Well, what are you needing to do for android? May 26 23:36:20 Also, I don't think it's java's fault you are visiting infected links May 26 23:37:08 it could be cnn.com May 26 23:37:14 So many sites these days get infected May 26 23:37:41 I mean, cnn.com is a bit over the top, but enough alexa top 1000 sites got a malicious iframe May 26 23:38:08 Anyways, what do you need to do with android, are you wanting to make apps? May 26 23:38:13 yes May 26 23:38:23 Then you need to install java May 26 23:38:39 ok, would working in a virtualbox vm work? May 26 23:38:53 or is that not recommendable May 26 23:39:00 What OS are you using? May 26 23:39:17 Windows 7 now, but I could use XP, 7, Debian or any in myVM May 26 23:39:54 I'd say use debian if you are so worried about java malware May 26 23:41:19 ok May 26 23:42:35 sunbeam: just disable the plugin May 26 23:43:27 In Chrome/Chromium, Java is disabled by default. May 26 23:44:35 kakazza: By disabled do you mean not installed? May 26 23:45:13 Well, now that I'm thinking about it, java never works for me while in chromium May 26 23:45:22 No, Chrome usually tells you "This site is using a Java plugin, bla bla security. Do you want to disable it this time?" May 26 23:45:42 Ah May 26 23:45:45 There's usually a yellow infobar on top of the website. May 26 23:46:36 Hello. I'm developing a pixelart-style raster-based HTML5 browser game. This means that my game will be developed in a resolution that suits all the platforms I want to target, and will scale upwards by doubling the size (100%, 200%, 400%, 800% etc.) so as to suit the aspect ratio and not distort or blur my pixelart. For this reason, I'm trying to find a golden resolution that will allow my game t May 26 23:46:36 o use as much viewport space as possible on most widely used touch devices. May 26 23:47:07 Can someone please tell me the most widely used Android devices, so I can find out their resolutions and include them in my baseline resolution? May 26 23:47:15 I've been doing some googling and couldn't come up with anything good/recent. May 26 23:47:49 I don't think you want to increase size by doubling the size May 26 23:47:54 Even for pixel art May 26 23:48:00 Why wouldn't i? May 26 23:48:23 I'm trying to remember the word May 26 23:49:56 Ah! I remember May 26 23:50:00 Anti-aliasing May 26 23:50:25 Erm May 26 23:50:29 that's exactly what I'm trying to avoid May 26 23:50:34 which is why I'm doubling the resolution May 26 23:50:34 Yes May 26 23:50:44 rather than snapping the size of my canvas to the edges of the viewport May 26 23:50:51 and giving it a fluid size May 26 23:51:02 You said doubling the size May 26 23:51:24 yes May 26 23:51:32 size != resolution May 26 23:51:44 size == resolution May 26 23:51:47 if thats what im talking about :) May 26 23:52:20 leslie: ok May 26 23:52:45 I'm about to give up on Android though May 26 23:52:53 because I can't find any data on which are the primarily used android devices May 26 23:52:54 bolosaur: Resolution is how many pixels are in a certain area May 26 23:53:01 ugh I know May 26 23:53:06 I have no idea what you are even talking about May 26 23:53:09 you don't need that data. just make the app resizable May 26 23:53:21 leslie: I just gave an explanation as to why I need the resolutions. May 26 23:53:22 leslie: He's using html5 May 26 23:53:30 why does that matter? May 26 23:53:36 Read up. May 26 23:53:54 He's doing pixel art, so he can't really make it vector May 26 23:54:11 bolosaur: I say make high resolution pixel art, and scale down May 26 23:54:13 the best bet is to make highres images May 26 23:54:16 and scale down May 26 23:54:22 Younos: Late :p May 26 23:54:22 No, that will look blurred. May 26 23:54:28 bolosaur: Nope May 26 23:54:32 and it will be too big May 26 23:54:39 are you talking about pixel density? May 26 23:54:41 Scaling up will look blurred May 26 23:54:48 no, scaling up will look perfect May 26 23:54:56 because I'm doubling the size May 26 23:55:04 Not with anti-aliasing May 26 23:55:07 . May 26 23:55:11 IM NOT USING ANTI-ALIASING May 26 23:55:12 bolosaur: is it an issue of pixel density? May 26 23:55:18 FROM WHERE ARE YOU GETTING THESE IDEAS ARGH May 26 23:55:24 jesus May 26 23:55:41 bolosaur: May 26 23:55:49 pixel stuff is different May 26 23:55:58 is it possible to have an actionmode in an alertdialog? May 26 23:56:02 its about display density in dpi May 26 23:56:42 my android phone, a google nexus, has high dpi but small screen, a tablet might have big screen and only a bit more resolution May 26 23:56:48 What does DPI have to do with anything? May 26 23:57:00 * sonicrules1234 facepalms May 26 23:57:02 My game resizes to fit the browser viewport, but only by doubling itself May 26 23:57:09 when applicable May 26 23:57:15 hence, there is no anti-aliasing May 26 23:58:00 erm, if you're doing this in a browser view (or webview), why not simply show more pixels? May 26 23:58:06 ie, of the pixelart May 26 23:58:12 why scale it up or down at all? May 26 23:58:21 He's using raster images May 26 23:58:29 yes, so? May 26 23:58:40 because scaling without resizing would make the game look really weird May 26 23:58:46 and tiny May 26 23:59:00 and it wouldnt retain the intended camera views May 26 23:59:03 :p May 26 23:59:11 Ah, nevermind. May 26 23:59:13 It's not as simple as "showing more pixels" May 26 23:59:15 bolosaur: http://developer.android.com/guide/webapps/targeting.html May 26 23:59:15 I really appreciate you guys trying to help May 26 23:59:16 buut May 26 23:59:22 I'm skipping androids i think May 26 23:59:33 bolosaur: We help, you just don't listen :p May 26 23:59:51 If you want to help, tell me the most widely used Android devices May 27 00:00:00 or give me a list May 27 00:00:08 hm? I don't know what kind of game you are making, but it seems you can simply disable the resizing with a meta viewport tag and it'll show you as much as it can on a given screen May 27 00:00:08 rather than telling me to change an approach i have already confirmed is working May 27 00:00:10 There's no data on that. But there's data on densities. May 27 00:00:19 without making the pixels of the pixel art tiny or large May 27 00:00:21 http://developer.android.com/resources/dashboard/screens.html May 27 00:00:42 of course, if you want to show a given number of blocks that won't work May 27 00:00:52 is it ok, to install eclipse through a debian aptitude package? May 27 00:00:54 Why isn't there any data on android resolutions? May 27 00:01:08 sunbeam: Depends on the version May 27 00:01:11 (ie, you always want 50x50 'pixel art blocks' to show in the viewport) May 27 00:01:26 3.5.2 (squeeze) May 27 00:01:29 sunbeam: just download it, it's easier May 27 00:01:33 I don't understand what pixel density has to do with me asking for specific resolutions May 27 00:01:36 :/ May 27 00:01:41 sunbeam: I meant of eclipse May 27 00:01:47 3.5.2 May 27 00:01:48 PPI or DPI isn't going to help me May 27 00:01:53 it means nothing to me May 27 00:01:57 (not to sound rude) May 27 00:02:00 But yeah, bettter to just download it straight from the site in this case May 27 00:02:02 bolosaur: I wasn't talking about density at all, and it's largely irrelevant for a webview May 27 00:02:08 bolosaur: I'm guessing most people don't care what resolution people run, they just scale it, so noone has bothered to do any statistics.. May 27 00:02:09 bolosaur: the DPI, combined with the resolution, form the physical size of the screen May 27 00:02:31 leslie: Yes, but the DPI is uninteresting since I'm asking for resolutions May 27 00:02:39 Actually, I'm not even asking for resolutions May 27 00:02:45 I just need to know which android phones have the most android market shares May 27 00:02:48 and tablets May 27 00:02:58 then I can go look for myself May 27 00:03:10 bolosaur: Go look on a stock exchange site then? May 27 00:03:15 most recent phones I have looked at has 800x480 screen May 27 00:03:19 Ah May 27 00:03:28 no, that's pointless May 27 00:03:40 as 1 css pixel is one device independent pixel May 27 00:03:43 just like on iOS May 27 00:04:07 ie, if you say width: 200px on an iPhone 4 May 27 00:04:12 you'll get 400 on screen pixels May 27 00:04:16 same with android May 27 00:04:22 anyone have any experience with EnvironmentalReverb? May 27 00:04:31 Yes but I'm working with Canvas and JavaScript May 27 00:04:33 MDijkstra: Android has an API for handling that sort of thing May 27 00:04:36 so I'm literally resizing my application May 27 00:04:48 based on the resolution of the platforms browser May 27 00:05:17 if the res is 1000x500 and my game is 200x150 in 1:1, its going to resize to 400x300 May 27 00:05:27 ahhh, ok May 27 00:05:33 I kind of missed that :) May 27 00:05:35 if the res is 1000x1000, its going to resize to 800x600 May 27 00:05:50 my application is always going to DOUBLE its resolution May 27 00:06:09 regardless of the client device's dpi May 27 00:06:28 so what I'm looking for, since i have no experience with android, is information on which devices are the most popular May 27 00:06:37 so i can collect data on their browser viewports May 27 00:06:38 bolosaur: so what you want to know really, is the most common aspect ratio? May 27 00:06:41 and include them in my calculations May 27 00:06:54 if I have something that is global to the entire app (in this case an EnvironmentalReverb object adding reverb to the main audio channel), if I have an activity that controls its settings, do I need to parcel up the EnvironmentalReverb object for use in the settings screen? (sorry for the bad wording) May 27 00:07:00 No, I want to know what the exact resolutions are of the most widely used Android devices in the vanilla browser when all browser bars are enabled May 27 00:07:03 i.e. bookmark and tab bars May 27 00:07:09 because im calculating a golden ratio May 27 00:07:15 that information is unavailable May 27 00:07:15 or golden res size May 27 00:07:29 there is no info on which are the most popular android devices? May 27 00:07:38 the rest i can figure out on my own May 27 00:07:39 there might be somewhere May 27 00:07:52 So nobody at all knows which Android devices are the most popular? May 27 00:08:04 because thats all i need :) May 27 00:08:09 Google probably does, but doesn't share that information (afaik). May 27 00:08:11 haven't you asked that like 10 times now? May 27 00:08:15 why would you want to design for the most popular when you can design for all? May 27 00:08:29 Because I'm making a raster game with pixelart graphics May 27 00:08:31 the only data Google provides is screen size, screen DPI and platform version May 27 00:08:32 they are meant to be pixel perfect May 27 00:08:38 and so my games' screen will only double itself May 27 00:08:47 shouldn't you be designing for the api rather than the device? (in which case 2.3 is still the most widely used atm, afaik) May 27 00:08:59 tnzr: He's doing it in html5 May 27 00:09:05 oh May 27 00:09:11 ugh May 27 00:09:12 * tnzr backs out of the conversation May 27 00:09:13 this is leading nowhere May 27 00:09:14 look May 27 00:09:18 is there any android device May 27 00:09:21 that is considered the "main" one May 27 00:09:25 No May 27 00:09:29 not even 2? May 27 00:09:30 or 3? May 27 00:09:42 Not really May 27 00:09:45 ok May 27 00:10:00 Alright well, thanks a lot for at least trying to help. I appreciate it. May 27 00:10:04 Cheers guys (and gals). May 27 00:10:12 cheese May 27 00:10:24 the devices have a really high dpi, so I doubt there is any point in doing it pixel perfect May 27 00:11:07 developing for Android means giving up control over exactly where stuff goes, due to varying screen sizes May 27 00:11:10 that's not a bad thing May 27 00:11:21 goes where* May 27 00:25:06 snice man May 27 00:53:05 w00t May 27 00:57:03 can anyone tell me what i deleted to break my calendar app and my calendar widget May 27 00:57:19 I440r: No. May 27 00:57:28 my widget shows nothing. the ap shows the calendar byt when i try add an event it tells me "you have no calendars" May 27 01:07:55 Anyone here have any experience working with the ndk and ffmpeg ? May 27 01:24:52 are shared preferences passable between activities? May 27 01:25:14 the dev doc is ambiguous May 27 01:26:02 b1n0ry: I think there is a permission just for that purpose May 27 01:29:00 i'll look into it, thanks sonicrules1234 May 27 01:46:42 any one around my phones stuck in bootloader mode i can go in recovery tried flashing roms still stuck used rsd lit to flash vzr failed in pass mode May 27 01:53:04 http://clip2net.com/s/1XSB5 - i have an error (shown in screenshot). I have tried multiple google results and imports can anyone nudge me in the right direction (i am of course new to the android dev scene) May 27 01:56:58 sonicrules1234, apparently no permission necessary. just need to make sure to use the same prefs file name May 27 01:57:37 i'm not really using it for preferences perse but more for something like a 'cursor' of sorts May 27 02:03:30 anybody able to help me with my newbie question asked above? May 27 02:04:29 Reecieboy: Why are using setting those as final? May 27 02:08:05 following a beginners tutorial May 27 02:08:16 namely: http://www.codeproject.com/Articles/102065/Android-A-beginner-s-guide May 27 02:08:33 it has typos etc that i've fixed myself, just this problem I cannot figure out May 27 02:09:59 Reecieboy: add the method it's asking for May 27 02:10:21 see on the left, the little lightbulb? click it May 27 02:12:27 Ahh I get it, just missing the OnKey function. Thanks for indirect answer leslie May 27 02:12:43 np :) May 27 02:12:44 lightbulb just says that tv_Text isnt used in the code (saying its a waste) May 27 02:12:50 :):) May 27 02:12:57 nono, the other one May 27 02:13:01 the one next to the error May 27 02:13:20 (in the screenshot) May 27 02:13:24 oh, thanks :) May 27 02:32:35 hate when i can't clear/refresh eclipse logcat view May 27 02:35:33 b1n0ry: Me too. May 27 02:38:40 how do i fix this error E/AndroidRuntime(13535): java.lang.IllegalStateException: setCaptureSize() called in wrong state: 2 May 27 02:42:19 hmm leslie if you are still around, presumably on the emulator KEYCODE_DPAD_CENTER is the "Return/Enter" key, but when I press it, the EMU goes into full screen and tv_View.setText(et_Text.getText()) doesnt seem to work. May 27 02:42:37 no errors. May 27 02:42:56 nevermind May 27 02:43:00 the dpad is different May 27 02:43:07 yeah haha i figured it out lol. May 27 02:43:16 sorry :) May 27 02:43:22 it's also not available on most phones May 27 02:43:24 np :) May 27 02:43:29 gotta start somewhere May 27 02:43:57 so in your opinion, what would be the best suitable key for enter... a button? May 27 02:44:38 there's usually one on the virtual keyboard for that May 27 02:44:42 the return key May 27 02:44:51 agreed thank you. May 27 02:46:23 KEYCODE_ENTER funny enough, much appreciated. May 27 02:48:05 Could someone explain what this is trying to state? The x coordinate (0...width-1) of the pixel to return. (0...width-1) is the part I'm not sure about. May 27 02:48:58 say you have a width of 100 May 27 02:49:06 valid co-ordinates are 0 to 99 May 27 02:50:38 Taar779: it literally means from 0 to (width - 1) May 27 02:51:09 leslie, ok thank you. May 27 02:58:38 leslie, just another quick one, the purpose of me learning android development is to create a nice looking web portal to my companies website login, pretty much i just need a fancy background (which I've already made) and a slider with a few clickable options, very similar to what is shown here: http://www.creativelicencedigital.com/images/layout/stgeorge.jpg, now my main and only question May 27 02:58:38 i hope to bother you with, is; what layout should I be using to achieve a result as shown in the picture. May 27 02:59:50 so a web app? **** ENDING LOGGING AT Sun May 27 02:59:59 2012