« first day (432 days earlier)      last day (4508 days later) » 

SPK
11:02 AM
0
Q: Get the Email from Contacts using AutoComplete TextView?

SPKIn my application i've one AutoComplete TextView and EditText In this AutoComplete TextView provides all the contact names from Contacts. I want to get the primary email id which contact was selected in my AutoComplete Textview to the editText. How can i achieve this? Anyone guide me?

 
@Graeme it was updated to quickly fix something, but it's not really complete
 
can you have an animated gif as the src of an ImageView?
 
0
Q: Creating CustomViews as a modular & reusable component which can be used across projects

GraemeI'm currently in the process of creating quite a large scale Android application. As part of the application I've created a Custom View (one of many). The Custom View in question is quite wide ranging in terms of functionality and because of that there are an awful lot of layouts, resources &...

 
Where is @Glitch?
 
@OctavianDamiean hai
 
11:11 AM
Glitch! Dude, your app looks so sexy I've almost jizzed when I got the updated today!
 
I haven't changed the app in at least a month :P
Update more often!
 
But thanks :D
 
@ProfSmiles Yes you can use animated GIFs.
You can also use animated GFs but that is totally different topic.
 
@OctavianDamiean When I get Lux finished, I'll enter it into a beauty pageant.
 
11:13 AM
heh
Hello all by the way.
 
So did you update from the Market, or Dropbox?
 
Market.
 
ahh
 
I should give the Dropbox build a try as well.
 
Dropbox copy fixes some bugs
but not really finished
 
11:19 AM
Looks almost like mine. :D
 
heh
 
11:31 AM
Hi everyone
 
hai
 
I have a so file that is in the same folder as others but other so files load only one doesnt load
says UnsatisfiedLinkerror
 
Am I going mad or does the comment on my question make no sense in context...? stackoverflow.com/q/8602974/726954
 
It's a stupid answer
 
Doesn't make sense at all and it is plain wrong.
Hence me downvoting it.
 
11:36 AM
How do you downvote comments O_o
 
@OctavianDamiean (with the gifs) if I have loading.gif, is it just <ImageView ... android:src="loading"/> ?
 
What @Glitch said.
 
@ProfSmiles Nope. It is a bit more complicated.
 
There's a packet of chicken Twisties waiting for me downstairs...
 
And @Glitch, Looks interesting. Hopefully it will allow me to use View's rather than just activities from the "Library Project". Wonder if it builds with the library project included...
 
11:37 AM
@Glitch I've downvoted his answer.
 
@Glitch WANT
 
@OctavianDamiean the one he linked to?
 
Hello all
Anyone got time to look over a camera question?
 
It does make a little bit of sense on the Question it's an answer to. Just doesn't make sense as an answer to my question.
@Matt Link us to the question and you'll find out :)
 
0
Q: Android Camera With Surface View Potrait

MattI have a App which uses the camera to take a picture. The camera has to have a overlay over the camera preview as the user will have to take the picture in a circle in the center of the screen so i have used surface view and placed a png image over the camera. I am trying to get my surface view ...

 
11:40 AM
@Glitch Yes.
It is just not true that it is messier or induces performance problems.
@Graeme Glitch is right. That is what you want.
I was about to post that as an answer when I saw Glitch's message here in chat.
@Glitch You may want to post that as a nice answer to get some rep.
 
Well, one of you add it to my answer and I'll upvote it.
 
:O
 
Will accept if it works :)
 
@Glitch A bit more than that would be nice but yea. :P
Post some extra information, maybe quote a paragraph that describes that it is what he wants.
 
Does "Because Octavian said so" count?
 
11:44 AM
I've also flamed the guy there in a comment.
@Glitch Nope. :P
 
FIXT
 
LOL, nice flavour text @Glitch :)
 
It's chicken flavour, like these Twisties
 
so very jealous
 
2
A: Creating CustomViews as a modular & reusable component which can be used across projects

GlitchYou'll probably want to look at a Library Project. It lets you share code and resources between applications. From here: An Android library project is a development project that holds shared Android source code and resources. Other Android application projects can reference the library pr...

Awesome answer to upvote guys.
Of course not only the answer, the question is nice as well!
 
11:56 AM
Mwuaha, And another set of random comments by someone who has no idea: stackoverflow.com/a/8240216/726954
This one by someone who want's me to write my code for him.
 
Urgh ... code in comments ...
 
"OutOfMemoryError: bitmap size exceeds VM budget" Durr, I wonder what that could mean
 
@Merlin That is actually all covered in the article.
 
Got another yearling badge :O
Does that make today my SO birthday? :p
 
doesn't even have one -.-
 
12:00 PM
I have three
As you can see, I'm not very good at collecting rep :P
 
-1
A: Should I create child textviews statically or dynamically?

TofeeqAhmad1) Code cleanliness->>Doing anything more than basic layouts in code can get very messy, very fast. 2)Code re-use->> It’s extremely easy to inflate an XML layout into a specified view with one or two lines of code 3)code Performance->>Creating the objects necessary for an in-...

 
deleted my comment so as not to leave it open ended
 
Epic comment fest.
I have tinnitus for some reason. Really annoying.
 
me too :(
Mine have been ringing for days
 
What is that guy on about? This is starting to piss me off.
is already pissed off because of the damn tinnitus
 
12:16 PM
Yeah, I've answered the question too and voted Toffee down because he hasn't answered the question. I've also flagged his answer as "not an answer"
 
Honestly I didn't really understand the question at hand but I know that his answer is plain wrong, regardless of the context.
 
It was a subjective musing rather than an answer per se ... for that reason I didn't approve it
 
Oh crap I pressed the let's continue in chat link ...
 
hahahahahahahahahahahahahahahaahahahaaaaaaaaaaaaaaaaaaaaaaa
 
You're screwed
 
12:22 PM
fight to the death!!!
 
Oh, fancy. I was able to delete that auto-comment with the link. :)
I'm almost there. Almost at 10k.
 
wow
and here I am on 40 :3
 
Wow, you have that many hours in a day in Down Under?
I'll move to Australia.
Oh that wasn't meant to be a time?
 
polyphasic sleep ftw? :P
 
@OctavianDamiean Dear Noah, We ccould have sworn you said that the ark wasn't leaving until 5, Sincerly, The Unicorns
3
 
12:29 PM
40 :3 is kinda misleading.
 
ah, true, :3 is a face :P
 
Yea, figured it now. after I made an idiot out of myself of course
@Alin lol :D
 
@Alin XD
 
So yea, you are a new regular I guess? @ProfSmiles
Is Android a hobby for you?
If so you must be really messed up.
 
12:34 PM
Don't worry you'd fit right in.
 
Oh great, now I've spat mayonnaise on my screen.
Thanks @OctavianDamiean
 
I've answered a few questions before, got >20 rep, looked at a question about Android and this chatroom wa slinked :)
*linked
 
Honestly I'm not sure if that is a good thing. I mean having our room linked in the Android questions.
Rather dangerous.
 
@Graeme Ewwwwwwwwww
 
Well... I see no tuna around... things are quite quiet
 
12:37 PM
I was about to say that I love mayonnaise but then I thought about it and decided not to. On the other hand here I am doing it. :/
 
@OctavianDamiean yeah I just wanted an MLIA app, wrote one, and we're going from there :P
 
@ProfSmiles It always starts like this. Oh hey, I have a nice app idea. Let's create it., in the process of creating it you realize what a big mistake it actually was because of the great API and Java but for some reason you are stuck with it.
 
I wish Python powered apps were more powerful :(
 
After a while you get all grumpy and start loving Unicorns and stuff like that and hang out with like-minded guys that are just as crazy as you are.
Welcome to Android.
 
I'm not crazy, I just happen to enjoy self-inflicted pain.
 
12:40 PM
Of course none of us is crazy. That is what I tell the doctors every time!
 
We've all been tested (if only by a panel of our peers)
 
My brain: "You know what would be a good idea? Auto brightness app!"
_eight months later_
FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
 
@ProfSmiles I agree. I'd love to write apps in Python.
 
I happened to answer a question on this :D
 
dammit, I started coding in chat again....
 
12:42 PM
@ProfSmiles Have you looked at pyglet? Allows you to do some pretty nifty things
 
I have no interest in cross-platform support. I support Ubuntu solely.
 
I wrote my MLIA API in Python on my (Linux!) web server
 
@OctavianDamiean Is tetris still terrible on Ubuntu?
 
Oh yea I know about SL4A but I want a more native Python support.
 
12:44 PM
@OctavianDamiean exactly :/
 
@Glitch I don't know about Tetris, I play Frozen Bubbles. That is for the cool kids.
 
I must say though, the 24 hours I've been in this chatroom have been my most productive in terms of Android coding
 
I am in ubuntu!!! \o/
 
Yea, just hang out for a couple of more hours and your productivity will go straight to hell.
hugs @Merlin
Yea mate! Dat iz mah man!
 
12:47 PM
I've got a friend here writing me a wrapper for the ge.tt API >:D
 
Yet another Dropbox like service?
 
sorta
I prefer it
 
I like the domain though.
 
yeah :P
 
I prefer Ubuntu One.
Just because it is integrated into my system. :)
 
12:48 PM
Dropbox works on Ubuntu and Android so I'm sticking to that
 
So does Ubuntu One. :P
 
the whole point of ge.tt is super quick file sharing
 
I'm wary of U1
 
Dunno
 
12:49 PM
so if I want to give a friend a song, I can drag it into a browser then give him the link while it's still uploading
 
Sif Dropbox would be much more secure. :D
 
but yeah, it's not that secure ;)
 
I meant Merlin.
With those cloud things you never know what happens to your files but the technology is too awesome not to use it.
 
I find that things like dropbox are more ubiquitous whereas U1 is confined, so I have XP at work and Android on my phone I need something that allows me to share my docs across all platforms ... same goes for Spotify, I can use it anywhere
 
o_O
 
12:51 PM
I put lots of sensitive files in the cloud
 
Dropbox for Android is crap
 
@ProfSmiles the beta version is good
 
@Merlin There is U1 for Windows. :)
 
ge.tt is like the pastebin of files: share and forget. But I'd never use it for secure transfers
 
Yeah but it tries to do everything ... I usually want it to do one thing well rather than everything mediocre
 
12:52 PM
if you encrypt it, who cares
 
(S)FTP FTW!!!
 
It does exactly what Dorpbox does. :P
 
I thought it was a music store also
 
You can buy the music store option as well but you don't have to.
By default it is only file sharing like Dropbox.
On a free 5GB plan.
Plus the website design is just sexy.
 
Interesting ... and indeed rather arousing
 
12:55 PM
@OctavianDamiean it must be good
 
PLUS, we can just grab the Ubuntu One for Android project and add functionality to it if something is missing. Like contacts sync.
I know, I said sync. ducks away
 
what do you think about this website concept for me?
I had a friend do it
well that's awkward
 
Very 404-ish
 
Yup.
I don't like that design.
200 would be way better than 404.
 
U1 only has US pricing .. that annoys me ... where is the EU site (or UK better) grumphh!
 
1:01 PM
Meh c'mon!
Just use Google to convert between Dollars and Pounds.
 
use xe.com
 
well considering that the guy who started ubuntu lives between UK and France
 
better
 
@ProfSmiles Doesn't look that bad but the font is terrible to read.
 
1:02 PM
fair enough :P
 
@ProfSmiles I like it ... but try Bank Gothic font ... same feel but more readable
 
That font works for the category title, like Home or Latest Posts but not for everything on the page. :D
 
I'd buy that for a dollar! as oct says titles are fine
 
Does that site really say Ponies are gay?
 
@Merlin what, the website? :P
@OctavianDamiean yep :S he's an odd one this designer
 
1:05 PM
I was referring to what oct said about the titles being ok but the content font should change
... it's a reference to the 80's movie Robocop
 
Not that I'd have any kind of problem with homosexual people, not at all but still ponies are not gay.
 
@Merlin and that is proof of my age
 
loves Robocop
 
has never seen Robocop :S
 
But only part one and two.
@ProfSmiles How old are you?
 
1:09 PM
16
ProfSmiles has been kicked from the room
 
Nothing wrong with being 16.
 
in my experience people in the internet hate you if you're, well, young
 
Can anyone look at my question?
 
even though places like 4chan are made up of 12 year olds
@Matt Array for Wheelpicker?
 
@Matt Post a link to your question.
 
1:13 PM
0
Q: Android Intent to open new screen with picture

MattI have a app which at the moment takes a image using the camera, at the moment once the image is took it saves to a folder on the SD Card and then the same screen stays on so another picture can be took. I am wanting it so when the image has been took and saved a new screen opens with the pictur...

 
don't know much about intents, sorry
 
It may not be an Intent
If you have a look at the question you may know another way :)
 
Intent intent = myIntent = new Intent(getBaseContext(), Punch.class); - welp that doesn't look good at all.
 
well I imagine you would use an intent to look for apps that can open an image
eg. the Gallery
 
I don't understand the problem.
Just ... like ... just open it?
 
1:18 PM
@OctavianDamiean Thats what i thought
Can you see another way?
Shouldnt that just be
Intent intent = new Intent(getBaseContext(), Punch.class);
 
In the callback that gets called once the picture got taken start the new activity with the URI of the image set in it the intent, extract the URI in the other activity and display it there.
@Matt Yes.
 
@O
@OctavianDamiean i kind of understand you but not got a clue how to implement that ;) could you help out?
 
Hi, I always, when i try open new activity, i use this code
 
Well you have pretty much everything set up already from the looks of it. Just extract that URI in the other activity and display it. I don't know what the problem is.
 
Intent i = new Intent(YourActuallClass.this, DestinationClass.class);
startActivity(i);
its always working for me
show your androidmanifest.xml in your question please
 
1:23 PM
@DawidSajdak Is that an answer to someone or a question?
I'm kinda confused.
 
answer ;)
 
@Matt I'd try it with setImageURI().
 
@Dawid you should use getBaseContext() or getApplicationContext() instead of using this pointers
 
@OctavianDamiean the only problem i have is getting it to display that image that has been took on the next screen
 
@Matt the proper way to open something like an image is to use an intent filter and set the action and the data on the intent
 
1:26 PM
^-- that
Because the user may want to open it with another application.
 
I said proper again ... I meant recommended
 
once you've intent.putExtra("key", "data"); and started an activity, how (in the new activity) do you receive the Extras? (I know getExtras, but what.getExtras() ?)
 
The image cannot be open in another application, well not from the app they take the image which then Should take them to the next screen with the image dislayed and from there they can click 1.retake, 2.delete or 3.Use
 
Dear Santa,

Can I haz a CuBox pl0x?

Yours sincerely,
Octavian Damiean
 
1:30 PM
Alright. I'm done writing my letter.
 
@Matt why not just use the built-in camera intent? Saves a whole lotta coding
 
Do you think he is going to get me what I want?
 
Dear Santa,

Stop eating my cookies, you dick.

Love,
Glitch
 
roflmao
 
@Merlin why ?
 
1:32 PM
I know who is not going to get a damn thing this year. :D
 
@OctavianDamiean Hey, it's for his own good.
 
@Merlin it has a custom surface view over the camera
 
kk my bad
 
1:34 PM
no problem
still trying to figure out how to get the image refernace
0
Q: Android Intent to open new screen with picture

MattI have a app which at the moment takes a image using the camera, at the moment once the image is took it saves to a folder on the SD Card and then the same screen stays on so another picture can be took. I am wanting it so when the image has been took and saved a new screen opens with the pictur...

intent.putExtra("ImageReference", Refernace to image just took);
 
You just use getIntent().getStringExtra(...some arges here) as per my comment
 
Yup. I don't really understand why people put stuff in a Bundle and then put the Bundle in the Intent.
 
thanks @Merlin
 
Im not sure how to do that coudl you possibbly expand?
 
Bundles are useful for passing objects between activities ... I've done this for strange reasons where I didn't have a guaranteed uri to pass back from a contentprovider
 
1:46 PM
@Matt d.android.com is full of examples. You can find them here.
 
Ok Matt, so when you launch your intent, you pass a reference string value using putExtra
then in your new activity call getIntent() to get the intent that launched your activity
 
Wait why is it any better than putting the stuff directly into the Intent? I don't see any benefit.
 
@OctavianDamiean because you may want to pas it between multiple activities and calling put and get extras multiple times is a pain ... oh wait a sec ... that's parcelble
 
Ah I got you.
 
@Merlin i appricate your help but is it possible for you to show me a bit of code i find it easier to learn still getting my head around android
 
1:49 PM
Uh?
Parcelable is something else.
 
Bundles allow you to save intents don't they ... I forget
 
It is an object that you can pass into a Intent.
From the Bundle reference page.
> A mapping from String values to various Parcelable types.
Awesome description.
Non-ambiguous at all.
 
Ah yes ... it's like a dictionary but same idea ... you can keep it contained and pass between different activities and add more things into the bundle
 
Oh now that makes sense actually!
 
So think of parcel as an data_class and bundle is Dictionary<data_class>
 
1:52 PM
Is it possible for you Android Guru's to help me out im completley losing my marbles here :)
 
patience padawan
 
I cant think of how to get the image referance and pass it into the Intent
:)
 
Well an Intent is pretty much the same thing in that respect.
 
16
Q: How do I pass data between activities in Android?

UMARI have a scenario where after logging in through a login page, there will be sign out button on each activity. On clicking signout, I will be passing the session id of the signed in user to signout. Can anyone guide me on how to keep session id available to all activities?? Alternatively, are t...

Look at answer further down that explains how to retrieve the values
 
user914425 answer?
 
1:56 PM
The other thing you can use in an intent is the setData() function which allows you to pass a Uri ... this is very useful in content providers
 
user914425's answer is wrong.
He doesn't put a Bundle into the Intent but retrieves a Bundle in the other Activity. That'll be fun to implement. :D
 
wait so I just coded Bundle extras = getIntent().getExtras();
bad? :P
 
The most hilarious thing is that it has seven upvotes!
 
getExtras returns a bundle ... so it's correct, but I usually use the helper function ... intent.getStringExtra("varaible_name")
 
yes, use the helper
 

« first day (432 days earlier)      last day (4508 days later) »