« first day (465 days earlier)      last day (4484 days later) » 

5:00 PM
or, you know, you could do the logical thing and click outside it?
 
morning
 
morning
 
1:00am != morning
 
Morning @Pyrodante
 
5:01 PM
when I do have implemented onCreateOptionsMenu, what can block the menu from poping out? and "onPrepareOptionsMenu" is not an option
 
later all
 
@ProfSmiles it is not the first logical step I would do
 
@WarrenFaith you recommend the GN, yeah?
 
I am happy with it, yes
 
I keep trying to do it on Google+ when I view a photo and it doesn't work! >:|
 
5:02 PM
it is the latest vanilla android device, so get it :D
 
lol comment about projector phones " have a love hate with these things, as cool as they are, if they catch on like cameras did and every phone has a projector... Well then projecting "Fat Ass" on a large women's behind will become commonplace. Not saying that would not be mildly entertaining, but still. When you give anybody the power to project whatever they want anywhere they want, people are going to abuse that"
 
drools over the possibilities
 
ya, i really want to project "fat ass" on a big person now
sounds like fun
 
hm... could also be used for romantic situations...
 
o the possibilities are endless
 
5:04 PM
projecting a heart for your gf on a wall next to her and stuff like that
 
ya and think about an app that could determine wall color and display your image automatically with that color so it looks like just a heart
 
that'd probably need the camera on the same side as the projector
 
this is the reason i always liked programming for mobile platform over desktop platforms, so many more cool devices to play with
 
which isn't that logical for presentations
 
no i dont think the camera is on the same side
the projectors comes out the top, i doubt the camera will be there
plus they said you can direct the camera output to the projector
 
5:07 PM
do you agree on my comment? stackoverflow.com/a/8990895/180538
 
if you're rooted, isn't there a way to grant and revoke certain permissions for apps?
 
what are the benefits from rooting your phone (besides root permissions)
 
@ProfSmiles here's something for cyanogen mod senk9.wordpress.com/2011/06/19/…
 
like i hacked my omnia because windows 6.5 didnt have gps support
so i needed to in order to get gps
 
more powerful apps
control
 
5:18 PM
but i dont see anything being hindered by the lack of permissions
 
customised notification sound <.<
 
overclocking
 
ya that stuff is cool
can you choose no sound for email with it?
 
@yoshi you can have that easily without root :D
 
pls tell me how couldn't find it anywhere.
 
5:19 PM
not through Gmail >.>
 
i hate that, and the fact that somewhere through the ages ring+vibrate got lost
now its always 1 of the 2
 
@yoshi market.android.com/… from a google dev
 
ringtone != notification!
 
Rings Extended allows you to use everything as a ring tone or notification sound...
 
sry
 
5:21 PM
it is not only ringtones
 
well it's not showing up in my description :( anyway I can't believe you need an app for that. Furthermore: I don't see any special permissions - crazy <.<
 
@yoshi what do you mean by "description"?
 
I wish they'd release HTC's Common Controls for other devices
 
"Please login"
 
5:26 PM
well the app description. ctrl+f is not finding the word notification for me :)
 
tabs down the bottom
 
just install it and go to you sound settings, than click to change a sound and you will see that you can now select much more
 
I believe you but lemme get home first :)
 
and it doesn't need any permission
 
yeah it looks sweet but first: work over stop(); // hammertime!
 
5:31 PM
my Transformer smells so goood!
anyone know where I can see the Android source / examples online?
/ has anyone developed a browser plugin?
 
@ProfSmiles you can search on Grepcode.com for android: grepcode.com/search/?query=android
 
thanks :)
 
how much space does a 120x120 image take?
 
@JMRboosties in memory?
 
yea
i have one @ 29 kb but im not sure if its universal
 
5:40 PM
depends on your bitmap options
 
depends on compression, complexity, etc
 
ARGB_8888 has 8 bits * 4 per pixel
 
@WarrenFaith i mean HD storage not ram
 
oh, than pyrodante is right
 
I can't claim victory, I was wrong by my interpretation of the question...
 
5:41 PM
im trying to figure out if i should lazy load images from the web or store them on the phone
they will be used semi-often, and there will be many
i could always do a check and delete them from the sd card if necessary
unused ones i mean
 
provided by the apk has the very big advantage that you don't need to manage them by yourself
and the most apps are now >5mb which means as long as you support app2sd you should be going with the apk I think
 
@WarrenFaith they arent a static set of images
 
but it depends on "will be many", too
 
its like user images, like facebook for instance
thats loaded from online right?
 
don't know :)
 
5:45 PM
yes, another reason it's so slow >.>
 
who is still using fb?
 
it wouldnt be on the scale of facebook. i think i want to store them on the phone
gah i dont know
im just gonna put it on hold for now
 
@WarrenFaith every single person I know
why can not even my Transformer handle this site well?
 
ugh i dont know what im gonna do here
ah actually this could work
 
<-- not using facebook
 
5:54 PM
techncally I don't know you ;)
 
who are you again? :D
 
:P
I've hanged my G+ nickname to ProfSmiles now
given that it's a very techy network
 
I often like to read the starred posts in context with each other and try to figure out what wild things you talk about when I am gone. Last night was a gripping tail about a middle aged woman who likes donuts and made Merlin cynical.
oh an that gay is idiot repeliant
somehow there is that too
 
in the onListItemClick method, does the View refer to the entire layout?
 
6:02 PM
to the row that was clicked on
 
so to the *Layout that forms the row
 
so lets say i was building a list of songs
and each item in the list has a play button inside of it
could i control whether or not the play button is a play or pause symbol?
 
yes
 
ok, here is the kicker: if they pressed another song's play button could i make the other one change symbol?
 
store the old song in a global variable?
 
i have a universal media player so the song itself isnt a problem
its the symbol on the play button
 
yeah store the old view in a global variable
 
good call
 
you should store the last play button in a variable
 
6:06 PM
yea
design poll: rather have a play button on each item in the list, or a play button at the bottom of the list (that doesnt scroll with the list obviously) that controls all playing or not playing
im thinking latter, which makes this whole line of questioning moot
what do you guys think?
 
yeah because then you can have next/previous etc, so first one
anchored controls
 
yea
well thanks for the tips on the other way guys, even though i wont use it
 
:P
one of the few things I know something about :)
" I am in the army and my sergeant said to me, "I didn't see you at camouflage training this morning!"

To which I replied, "Oh, thank you very much, sir!" "
 
you would never call your sergeant Sir... that is totally obscene... at least in the US army...
 
lolwut? Why?
 
6:14 PM
how would you declare an anchored view at the bottom of a listview that should take up the entire page
right now the anchored view at the bottom isnt showing up
 
is there a z-index in Android?
 
in a layout?
 
should be
 
@JMRboosties you should have a RL, than add your anchor view and last the ListView with layout_above="anchorview"
 
5
Q: Placing/Overlapping(z-index) a view above another view in android

satI have a linear layout which consists of imageview and textview , one below another in a linear layout. <linearLayout android:orientation="horizontal" ... > <ImageView android:id="@+id/thumbnail" android:layout_weight="0.8" android:layout_width="0dip" android:...

 
6:16 PM
@WarrenFaith good call
 
the z-index is realized by the order of definition/adding in xml/java
FrameLayout shows the last added always on top but it reacts on width/height in a different way than a RL
@JMRboosties please tell me if it is working (not sure)
 
Welcome @androiddeveloper , what a creative name -.-
 
the frame layout is working fine, i just threw a layout gravity element to put it on the bottom
 
thanks Pyrodante :D couldn't come up with anything better
i have this problem with sending text messages on SOME phones, i have been trying to find solution to this for months
i tried official IRC channel, mailing lists, thought i might hop in here and try my luck :)
 
@JMRboosties but your Listview should now be overlayed with the anchor view, so you probably can't the last entry fully, right?
 
6:28 PM
@androiddeveloper do you have a question about it on SO?
 
@WarrenFaith yea, but when you scroll up it will show
its how i want it right now, i believe
 
yes i do, i was just about to post a link here: stackoverflow.com/questions/8852625/…
 
are you sure its users that are trying to send it when there is no connectivity and your not telling them it failed to send?
 
@JMRboosties but if you scrolled on the bottom, you will have problems with the last entry, trust me :D
 
ugh now im not sure. see the point is that you can click on one of these songs to be referenced later. i need to find a way to design it such that
they can either click a button to preview a song, or another button to select it
 
6:31 PM
have a check box
 
yeah
 
like gmail
 
then an OK button at the bottom?
that could work
 
I am heading home...
 
maybe put the media controls on top instead
 
6:32 PM
cya
 
have a good one
 
@Pyrodante - yes, i am communicating with a user of my app that claims his phone is active and can send text (the normal way) without any problems
 
just make sure you keep the ischecked as a paralleled array of booleans... trust me
have you found any common link, carrier location device etc?
 
cya
 
@Pyrodante - i am even sending him custom .apk of my app to test different stuff and nothing gets send, i am talking about 2 lines of code here
 
6:34 PM
is the delivered PI being fired?
IE does it say its delivering it?
 
whats a paralleled array exactly? shame
 
@Pyrodante nothing, happens of different phones in different countries, works on the same models elsewhere
 
a parallel array is an array of the same size where the indexes match up
so if you have 20 things in a list, you need an array of 20 booleans
 
delivered PI is never being fired, but sent PI is with RESULT_OK
 
so then array(selectedIndex) is the boolean for that entry
is a device that is not sending doing in consistently (100% of the time)?
 
6:36 PM
yes 100% using my app
 
whats the % of your user base?
 
@Pyrodante got it
 
@JMRboosties the reason why is you cant call the checkbox directly, check boxes that are not on the screen do not exist
 
im guessing it's around 20-30% from my stats
 
also on the getview of that entry you need it to check the boolean array to see if it needs to be checked or not
oh thats a problem...
 
6:39 PM
yea this is becoming a real hassle lol
isnt there a specific kind of list with radio buttons
 
its not that bad
here is a hint pastebin.com/dkvd3gF9
 
i need it to be selectSingle mode
 
oh
hmmm
lets break this down you have a list, what do you want to do with it exactly?
 
i want a media control layout on top
a list below with radio buttons in each view
when you click on the list item the radio button activates and all others deactivate
and upon clicking a listview a 3rd view pops up below with the OK button
or Upload or whatever the text is, but basically confirming selection and moving on
so once you select a song you can preview it on top, then click OK on the bottom when youre ready to progress to the next activity
 
is that the only behavior of the listview
oh so preview
 
6:43 PM
the preview is easy enough
onlistclick just have a position int as a global set to that position
 
why don't you have a click pull it up into the preview area, and have a button up there to share it
 
then the managing cursor creates a media player for that song
you mean one anchored layout
with both media controls and Ok button?
 
I mean have the preview area also have a share button :P
so one flow of use
 
yea
 
should be a smoother UX design
 
6:45 PM
good idea! then i could just deactivate the OK button when no song is selected
 
or a share button in the action bar... or a down arrow that opens up more actions including share etc
 
action bar?
 
more and more android is moving to action bars, especially with menu buttons going away
have you looked at that new developers guide?
 
yea i was reading it the other night, pretty cool
i dont know if it would work in this application
this activity im working on is kind of like a dialog more than a full activity
with this project my idea is to kind of design each page's functionality first
with some basic design concepts behind it but nothing concrete in terms of uxui
 
right
but either way
it should all flow one into the other action
 
6:50 PM
absolutely
i like the idea of using a top bar for navigation
with tabs, i mean
 
sure
 
so what do you think @Pyrodante? :)
 
I think that's an interesting problem... but there doesn't seem to be enough to pin down a cause
it would be super good to get a log cat of the event occuring
 
i have a user that was willing to install a custom APK from me few times to test it out
thus i know about the sent PI returning RESULT_OK, and delivered PI never fired
so i can give him another APK to gather some more info but i just dont know what else at this point
 
7:09 PM
hmmm are you sure your using the correct SMSManager?
 
im using android.telephony.SmsManager
like i said, my app works in 70-80% cases
i estimate
but there are just some phones that are refusing to send sms messages
 
im gonna try a bastardized version of this list just to see if it works
id really like a singlechoice radio button setup but i dont really get what im doing there =(
 
I have no idea
well you can do it, it wouldn't be too hard, just take some creativity
 
yea i mean its doable for sure
i just dont feel like learning right now lol
id have to have a boolean array that sends a string to the cursor adapter based on cursor location... wait wtf how would that work
id need to work with the cursor inside the adapter and make the parallel array public
i dont care for that lol
 
if its single selection dont use a parralel array
use an int that is "selectedIndex"
 
7:25 PM
i dont think thatd work for radio buttons, would it?
because android recycles items in the listview every time you see a new item its being populated on the fly
 
right, thats why I say keep track of the selected one seperate from that
 
so the list adapter needs some way to know what row is checked
 
then you can check which one SHOULD be checked by checking index vs the value stored in the int
 
ah yea
youre right, since its single choice its only one position that matters
 
so select the 4th entrys radio selectedIndex = 3;
 
7:26 PM
indeed
cursor adapters take their inputs as strings though
 
so Integer.toString(selectedIndex)
 
so i will need to do new Integer(selectedIndex).toString() and then convert back in order to pull it off
 
right
 
haha same time same content post
sounds reasonable, lets do it.
 
@Pyrodante - can you recommend anyhing that i should be looking for, like i said i have a user that is willing to install custom APK to help me out
 
7:35 PM
half the time these stupid content uris dont work
 
well my first guess is different devices may not understand how to parse the number... but look for any handled exceptions in the log cat I would say
 
but what if the number is correct
and it the case of this user i know it is
 
Then I would say the data is being stolen by gnomes
 
:D
so you are saying that this is a weird case and it shouldn't be happening
is there a way for me to get his catlog without him installing the sdk and usb cable?
 
well I am no sms expert but I see no documentation suggesting otherwise, and no other posts about this happening... so all I can say is there is a problem, but I have no way of deducing what it is... therefor: gnomes
what you really need to do is install it on everyone you know an try to recreate it locally, if you cant... then either a) you need more friends or b) the problem is rarer then you thought or c) the issue may be region specific or cell data type specific and you don't have that type in your region etc
or d) gnomes
 
user457812
7:44 PM
I'm kind of afraid to put on my sock now
 
@nil you can't use the main thread without context like that
 
user457812
Context: I smashed my foot into the ground, blood is under a quarter of my big toe's toenail - it'll probably die and fall off, it still hurts a bit if I touch it, and I worry that I might accidentally rip it off or something.
 
oh yeah thats shitty
 
user457812
I don't really mind it falling off, long as I don't get an infection it doesn't really do anything, but the mild pain bugs me, and I don't want to rip it off accidentally because you're supposed to let it come off on its own.
 
I did that once ... it takes ages to grow out enough to fall of ... it's really satisfying when it falls off but you have to go without shoes for a couple days until the top hardens enough otherwise it's alittle sensitive
 
user457812
7:54 PM
Or just wrap the toe while it's growing out
 
user457812
Can't wrap it tightly though
 
IIRC I popped the blood after the pressure got too much (but only a couple days after the event)
 
user457812
If there's too much pressure, I'm going to have a doctor pierce the toenail
 
You need to let the blood do it's bit for a couple days.
 
user457812
You can do it by superheating a paperclip (a doctor my mom works with did that), but I'm not too intent on stabbing myself
 
7:55 PM
is scared of doctors
 
user457812
I like doctors, I just hate dentists
 
is more scared of the sickly children in the waiting room
 
you mean disease factories
 
user457812
Also known as vomit bombs.
 
half the time they don't even need to be there ... just paranoid moms
 
8:03 PM
i hate uris
hate them
 
@JMRboosties how can you hate them? They are benign little things
 
nothing in android is benign
 
admittedly uri geller is a bit of a dick
 
@Pyrodante thanks @Pyrodante :)
 
wish I could help you more
pesky gnomes
 
8:09 PM
'sup gnomes? XD
 
@Merlin file/content uris just kill me
 
wa'sup my gnomies
 
i understand, i knew it's not gonna be that easy
 
and of course many things handle them differently based on uri type
 
everything handles them the same way ... that's why they're called uniform resource identifiers ... what they do after they've been parsed is another matter
 
8:14 PM
@Merlin doing things like getting file paths never seems to work
so annoying
and half the time they lead to null mediaplayers and i cant understand why
when other times they work fine
for instance: this uri content://media/external/audio/media/2478 fails to create a media player
 
permissions, permissions, purrmishuns (last one is for lolcats)
 
when i know it exists and i ddint delete it
 
have you tried creating a uri from path?
 
i have a list of 3 songs. when you click an item in the list it should create a media player for that song.
the first item in the list is non responsive. the 2nd throws an exception. the third works, and after and ONLY after clicking the third will the first work again
im going insane
 
beyond the obvious missing file extension you have there
 
8:18 PM
theyre all uris
 
... try stepping through with breakpoints and look at the values you are getting back you may find it's a silly error
 
heres the code: pastebin.com/i8ce7zN1
i do more obiously but thats the info i get
 
not sure what to make of that other than ... why aren't you passing the Uri direct to the mediaplayer?
MediaStore.Audio.Media.DATA is likely to be binary data
@JMRboosties learn how to use breakpoints and watch variables ... you cannot program by guessing stuff
 
Log often Log everything
 
8:36 PM
im logging like crazy
how do you use breakpoints with android/eclipse?
for fucks sake man i hate this
 
you set the breakpoints and then run in debug
 
why the hell will this listitem not respond at ALL?
this listitem wont do anything unless i click the third item in the list first. how does that make any fing sense
 
8:52 PM
It duzntt ... that meenz yoov invariably dun sumthing stoopid
 
i wish i could figure out what...
 
is practicing lolcat
right-click the left-most column in the text editor and select add breakpoint ... then run a debug session
 
yea im gonna try that
 
rubbish acting, great paradigm
 
when you declare an int
and dont give it a value
does it default to 0
yes
i'll just be in this corner crying because im so dumb
 
8:59 PM
 
sometimes I wonder if @merlin just sits there with thousands of cat images ready to use one for something mentioned in this chat
 
well one issue is resolved, but i still have the problem of these content uris that dont work
 
9:23 PM
hey I can turn off types of lint warnings... suddenly my app is perfect :P
 
9:39 PM
yea for some reason this content uri isnt giving me a file
 
user image
2
this is sooo wrong in sooo many ways
 
so wrong in so many ways it gets a star!!!
has=haz, virgins = furjinz
 
0
A: Need to transfer Elements from the web to an arraylist

WarrenFaithMake a class Player containing variables for name, points etc. Than create an object per player and add this to an ArrayList<Player>.

I knew it...
thx Merlin :)
 
10:01 PM
Warren is a bit mean o.O
 
i have the strangest thing ever going on
i think my program is dyslexic
 
did you get a divide by nero error, I hate those, they burn
 
no, this is what happened: i had a content uri that was always returning a null media player
like nothing on the system would recognize it. i couldnt understand how i got it in the first place.
so.... i tried getting the content uri again for the same exact file
original uri that gave errors: content://media/external/audio/media/2478
new uri which works: content://media/external/audio/media/2487
 
sounds like a difference between 0 indexed and 1 indexed...
 
i simply do intent.getData(); in onActivityResult from a chooser to get the uri
 
10:15 PM
and you don't control the chooser?
 
no
im gonna post a question about it right now
 
hey
 
 
1 hour later…
11:27 PM
0
Q: Android: Dyslexic content uris. The same file returns two separate content uri IDs with swapped digits

JMRboostiesUsing a chooser: Intent intent = new Intent(); intent.setType("audio/mp3"); intent.setAction(Intent.ACTION_GET_CONTENT); intent.addCategory(Intent.CATEGORY_OPENABLE); startActivityForResult(Intent.createChooser(intent, context.getResources().getString(R.string.select)), GET_URI); I get an audi...

 
11:41 PM
tears
is there anything like INSERT INTO ON DUPLICATE KEY UPDATE in sqlite
 
11:57 PM
im all alone
 
im sorry what?
 

« first day (465 days earlier)      last day (4484 days later) »