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

2:00 PM
Waaa im so confused :S how does this help me retrive the image that has just been took?
 
unless you like sticking hot iron ingots in your eyes
 
Ive got the app take the picture then goes to the next screen using
but then i need to use
intent.putExtra("ImageReference", Refernace to image just took);
 
1 message moved to bin
nom noms
No code in there please.
 
Sorry
 
If you really want to show us some code post it in on pastebin.com and link us to your pastie.
 
2:03 PM
does a class have to be a BroadcastReceiver to receive a custom intent?
 
Ok so the full code pastebin.com/Cfx7MVng
 
Depends on the implementation. If you use an explicit Intent, no. An implicit intent will be picked up by all classes that can handle it.
 
Line 71 is where the image referance needs to go so when the new screen opens it shows that image from the refernace is that correct?
 
Well I should rather say Android will show you a list of all Activities that can handle that Intent.
 
Hi guys
I have some doubt.
can anyone help ?
 
2:07 PM
@Matt it would be whatever you put into uriSavedImage value ... or if you have a Uri you can use intent.setData ... you need to read up on the Activity class for this to make sense
 
@Matt You are implementing in the wrong place. Obviously you have to set the URI for the image in the onPictureTaken callback.
 
Why android increase native heap on every orientation change..?
 
Ok i get what you guys mean kind of.....is it possible for you to just point me in the right direction with a bit off code
 
When the picture is there and you have the URI, put it in the Intent and start the new Activity, not just when you click the Button.
 
i find it a lot easier to read code and make sense of it
 
2:09 PM
Yea I also find it a lot easier when someone else writes the code for me. ;)
 
Learning to read the docs is much more valuable when there isn't any sample code ... but there are plenty of examples ... look at marakana
 
I dont wnat you to write the whole code i want to learn it just need a starting point where should i be setting the URI
and where should i be calling for the next Activity after the picture has been took
 
@Hardik4560 If you have a question please post it on Stack Overflow first and just post the link in here.
Like that.
 
Thought i had it right in the button
 
0
Q: Why native heap memory increases constantly?

Hardik4560I have made a demo activity. i.e a simple activity with a layout and a textview. I have used Log.e(kFileString, "Native Heap Allocated Size = " + Debug.getNativeHeapAllocatedSize()); Log.e(kFileString, "Native Heap Free Size = " + De...

 
2:11 PM
 
@oc i have posted the question ..yup that';s the link.
 
I know that you did, I'm trying to tell you that it doesn't make any sense to explain the question again if you have posted it already.
 
oh ok.
 
@Merlin i understand the Activites and Intents
Could i not some how get the latest picture that has been took into a var and then call that in the new Activity?
 
@OctavianDamiean any link that can help me ?
 
2:16 PM
@Merlin His problem is that he didn't know where he should set the URI of the image and start the next Activity. He started it right in the click listener instead of the callback method of the camera class.
 
@Merlin i dont get what this is for getIntent().getStringExtra();
 
@Hardik4560 It just means that you are probably leaking something in your activity. However you are not supposed to debug it like that. There is DDMS for that. If offers you a Heap inspector.
@Matt Well to get a string extra out of the intent.
 
@OctavianDamiean could you explain a bit more pleasee
 
I'm in a dilemma. I want a SSD for my desktop and a CuBox. What should I get?
 
gonnorhea
 
2:23 PM
@OctavianDamiean Actually i have created the simplest app possible in android. So i guess we don't have any leaking chances..And about the heap i want to track the native heap not the VM heap that is shown in DDMS perspective
 
@Matt This is a basic Java collections principle. It is just a container from which you retrieve something based on the key.
@Merlin I'll go with one of the other two options. :P
 
OK, Getting back to Matt's problem ... can't he just create a field and copy the imageUri to that so it always keeps a copy of the last picture filepath taken
 
Well I don't know what exactly he needs. As far as I understood he wants to display the picture that was taken in a new Activity.
 
@Matt TBH I need more time to figure out what you need and therefore it's probably best to leave this to the Stack Overflow population ... if you still don't have an answer I may be able to help later but my balls are getting chewed by my boss ATM.
 
Well ive got the app so far you open up the camera take the picture which then saves the picture into a new folder created on the SD Card. I want it so when the image has been took it opens a new Activity with the image on screen which has just been took
Code is here
Ok no problem @Merlin thanks anyway
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...

 
2:31 PM
Then I got you right. Do what I suggested and you'll be fine.
 
Lol I wish i was as good as you but ive not got a clue where to start with it
 
Ah ok, I do this another way ... I open the camera activity with startActivityForResult then in the onPictureTaken callback I would save the image and call setData and setResult() to return to the previous screen. Then I overload onActivityResult to handle the value coming back and display the image afterwards ... so many ways to skin this cat
 
@Hardik4560 Just to let you know. Once the GC ran I'm back at the same Heap size I started off.
@Matt What Merlin just said is the cleanest way to do it.
 
Thanks @OctavianDamiean but you are taking about VM heap size and i want info about Native Heap.
 
No, I'm talking about native Heap size right now. I have copied your Log lines to my sample application.
 
2:40 PM
@Merlin Iv'e not got a clue how to implement that ha thanks anyway im guessing you have'nt got time to write a bit with some comments?
 
Well almost the same Heap size.
 
@OctavianDamiean Thanks dude. It helped
 
not really ... but I use this technique a lot ... I try to dump activities as soon as I can rather than having them floating about. You could look at the code here better than nothing
 
OK question has been updated its very nearly there just need to referance the image correctly in AndroidCamera i think
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...

At the moment
intent.putExtra("filepath", new String(Environment.getExternalStorageDirectory()+"/image.jpg"));
Need the image.jpg to be the latest image that was just took with the camera
 
I see how to fix this now
 
2:49 PM
@WarrenFaith Hello there! Nice to have you in here.
 
@O
@OctavianDamiean thanks for inviting :D
 
I could have sworn you are American and was shocked when I checked our your profile and read you are from Berlin!
 
@Merlin is it possible you could share with me you insight on the fix lol :)
 
Sorry, didnt mean to shock you :D
 
2:52 PM
Btw, is my English that bad that I must be an american? :P
 
@Matt ... it's not very clear but that is the quickest way to modify your code to work
 
Oh no, I don't know what I though you'd be.
 
Are you a professional android programmer or "just" a spare time one?
 
A professional Android developer but unemployed right now.
What about you?
I mean I know that you are a student.
 
If you want to move to berlin... my firm is looking for new devs :)
I am at my master right now (2nd semester) and working 20h a week at www.sinnerschrader-mobile.com
 
2:59 PM
Nice!
Master in what?
 
media informatics
 
Oh right. :D
Was on your profile. :P
 
I work for Glitch's Magical Apps Pty Ltd
 
I work for neebal techs.
a novice for android
 
3:02 PM
I work for my own pleasure right now.
 
pleasure is always a good choice
:D
 
@BoeDev Welcome to the room.
 
ok, I got to go now, cya later!
 
Laters. :)
 
@WarrenFaith Since how long are you a developer.
bye @OctavianDamiean
 
3:04 PM
An android dev since 2009, programmer since 2003
so, gotta go, cya
 
@WarrenFaith hmm..Ok cya bye
 
@OctavianDamiean got ya! :D
 
3:08 PM
<- Martin .... so now I am gone...
 
Nice to meet you guys.bye
 
Laters Hardik.
 
Ya sure Cya..!
 
Ever get the feeling Eclipse is fscking with you?
 
Yes.
Everyday.
Gotta run. Laters everyone.
 
yeah Tim Minchin is win
 
3:41 PM
So close now guys just need to get the image showing on the next screen
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...

 
Evening everyone!
How is it?
 
3:56 PM
Hey everyone
 
Hi
 
Hows it going?
 
4:18 PM
mornin
 
no-one happens to know much about intents in SL4A?
 
whats that acronym stand for
 
@ProfSmiles hello again!, no sorry
 
Scripting Layer 4 Android
you can write in Python and stuff :O
hello @Peter :P
I got my update out :D
 
I love how Louis CK made a million dollars for his last comedy gig, because he had the brains to record it himself, and then sell it on his site without DRM for $5.
No middlemen publisher tards = massive profits.
 
4:34 PM
morning, guess I left myself logged in... oops
 
Welcome @sake
 
hi
thx :)
 
good grief, how bad can my typing get of a day!!!
 
@ProfSmiles What do you want to know?
 
intents?
 
What about them?
 
I've registered a for a custom intent in my app
(I'm away from my PC so we'll just say it's profsmiles.INTENT)
how, in SL4A, do I call that?
 
5:23 PM
Yea, lets say it is.
It might as well be octavians.INTENT.
 
SL4A?
 
Scripting Layer 4 Android (Python :P)
 
yeah that looks good
from what I can see, it would be
 
You've just asked yourself the wrong question.
You can't do much with an Intent other than interact with some component.
 
5:26 PM
startActivity("profsmiles.INTENT",null,null,extras,null,null,null)
well really I just need to send some data to it
 
Oh it might be startActivityIntent.
Right that looks better.
 
I do need extras
 
Well the extras are in the Intent the makeIntent method created for you.
 
ah
true
god dammit, Python Null's are capitalise, aren't they >:|
not even...
 
5:52 PM
Gotta return my X60 battery to the shop I got it from. Need one that actually works. :P
 
6:03 PM
night everyone
 
Have a good one
 
:o
A Graeme is here!
 
How are you guys getting on with SL4A?
 
6:21 PM
Hey @OctavianDamiean I am not really able to be at my comp right now, can you handle the access requests?
 
@Pyrodante Don't worry. You don't have to handle them instantly. ;)
I'll have a guide for the room owners soon.
A guide and a blacklist.
@Merlin Well I haven't touched a thing other than the documentation to help ProfSmile. :)
 
So I interpreted that as: "Its your shift do it when you get around to it" :P
 
Nah, it is really nothing we need to worry about.
 
I accepted a couple of very safe looking users this morning, but just ignored the rest ... they looked dodgy
 
@Merlins a mod now too? They just give that crap to anyone don't they? :D
 
6:29 PM
:P
 
I generally take a look at the profile when someone requests access and accept him if I can tell that he'd be a good fit in a blink. Every user profile that doesn't convince me instantly lands in the queue.
When I get some time I review the users in the queue.
 
yup that's what I thought ... I see what you mean about that screen though ... even with 8gb and a hex-core processor it struggled
 
Indeed.
It is because the chat system was never intended to be (ab)used like that.
 
need to hide existing users and only see pending requests, but have ability to put them in sin-bin
 
It is an abuse that the SE team tolerates though.
If you can write such a userscript then you'd be my hero but as far as I know it is a bit complicated.
 
6:33 PM
we can write scripts for Stack Overflow????
 
Look, for example this guy.
I've reviewed his profile right now and I'd add him to the write access list.
@Merlin You can write user scripts for everything but there is already a plethora of SE scripts yes.
 
hmmm, scripting for unicorns :)
 
Hey what the hell was that?
AWESOME!!
Dude that is so awesome!
This is where you find all the user scripts.
 
wah??? how the hell did you ...?
 
What?
Just write the url of a site in here. Awesome isn't it?
:D
I just love the SE team.
 
6:40 PM
Have you seen stacks for android
 
Yup.
I don't like the dashboard icons though.
 
sweet
 
ok, so everything is REST api using json ... same as my app ... so we can easily create an Android chat moderator app
OAuth may be a little tricky but we can figure it out
 
Not that easily. There is no API for the chat as far as I know.
If there'd be then I'd already have a Python application helping me handle that.
OAuth is not a problem.
I've already implemented OAuth once for another project.
 
call shenanigans
 
6:43 PM
Facebook is not a Stack Exchange site.
Linus Torvalds is just hilarious.
 
oh its stack only
 
Anybody tried DroidStack
 
Yes.
We've even had the developer of DroidStack in here once or twice.
 
How would you rate it out of 5?
 
It is not bad but I don't like mobile interfaces to Stack Overflow.
I don't even like the mobile theme.
@Merlin If you are looking for something to do. The StackWrap4J Java wrapper could use some love.
That means updating it to the new API version would be something interesting to do.
Same goes for Py-StackExchange.
 
7:01 PM
I'm still meddling with API lvl 8 ... needs me some icecream
... oh goodness me ... how deep does the rabbit-hole go ... now I've installed greasemonkey
another one for the amazon list
 
did you write that
a lot of o'reilly authors are on SO ive noticed
oh wait you didnt lol nvm
does package name really matter? i generally do com.android.*appname*
 
7:25 PM
It should really be your own namespace. So if your worked for spotify it would be com.spotify
or for a personal address me.JMRboosties.projectsname
The idea is that there should not be a collision between 2 names ... by using android you are being rather naughty
 
oh
good to know,
 
if you have a personal URL then reverse it and replace www with the project name
 
my website is tagverse.us
should go with us.tagverse.tag
 
kk, so make it us.tagverse.myproject
this becomes even more important when you have use contentproviders
 
I used to be an Android developer, then I took an arrow to the knee
6
 
7:29 PM
Have you been reading William Tell again?
 
I somehow suspected that would be starred...
 
most of what you say gets starred ... you have a habit of deploying gold
 
copy paste fail
 

Android

Sometimes we even talk about Android. Please read the rules (r...
 
there you go @merlin
Its a good habit to maintain
 
7:33 PM
Now I get it ... never played Skyrim
 
its quite good
 
Still need to play Uncharted 3 before I do anything else
 
Also for math nerds (we have those here right?): youtube.com/watch?feature=player_embedded&v=ahXIMUkSXX0
 
where do you guys store login tokens?
like if a user is required to be logged in to use the app, where do you store the info for if the user is logged in?
ive used shared prefs but i dunno if thats the best option
 
I use SharedPref I know there are other options, but it works for me (except the one damn device that looses that information, he just needs to log in each time)
his fault for having a crappy phone :D
 
7:40 PM
hooray for slug-cats!!!
@JMRboosties there is no best option, but if you wanted to add some obscurity you could assign a GUID (or UUID if your prefer) to each user account in a table of users in your database and store that UUID in your database or sharepreferences ... alternatively you could have a boolean flag column (bit) if possible and then flag who was the last user in your database to log in ... I'd probably go with the UUID
 
cool, will do
 
Slug-cats are a real animal
 
Anyone who use Maven that I can ask simple question?
 
not me ... don;t know what it does ... try posting on Stack Overflow but search thoroughly first
 
nobody else?
 
 
2 hours later…
10:02 PM
Oh hey @WarrenFaith.
Mhmm. The StackWrap4J library seems to violate the rule of Demeter.
query.setBody(false).setPage(1).setPageSize(20).setIds(2598);
That doesn't look right.
Alright. The question is. Do I update the StackWrap4J library to the new SE API version or do I just write my own version?
At the moment I tend to the latter.
 
10:35 PM
what is the chat room Android for Life... seems counterproductive to have two
 
We have at least six and we had over ten at times.
It is an unwanted and unplanned co-product of the Android incident.
 
Android incident...
And people wonder why Android platform is so fragmented :D
 
Well it is mostly a cultural and language barrier problem.
Before the Android incident there was just no way to have a proper conversation in here though.
 
10:53 PM
what was the android incident if I may ask?
hey @merlin I emailed vi hart with that pic, she liked it
 
It began on the day when I said stop to the help vampires in this room and locked it down because of raging trolls that were not satisfied with me crashing their party.
The entire incident spanned at least three months and is still pretty hot under the surface.
It is also the reason why we have this unique user access philosophy.
Just for your information. I'm no fan of this user access philosophy what so ever but it is the only way to maintain the quality standard we have in here.
 
so the other channels are the "rebels"?
 
maintenance?
 
Well I'd just call them the others. I think the term rebels is fairly subjective.
For them I'm probably the rebel.
The point is that many of them are help vampires or just don't have the necessary English skills to participate in a high-level development discussion which is actually the purpose of this channel.
 
Well, for the most part, all I want to do is make 1's and 0's do things, and help others do the same
 
11:08 PM
Which is a good thing! That is what we have Stack Overflow for. :)
Here is the definition of Help Vampires just in case you are wondering what that means.
21
Q: The Help Vampire problem

Barry KellyWhat is SO's long-term solution for the Help Vampire problem? Quote from article follows: Identifying Help Vampires can be tricky, because they look like any ordinary person (or internet user, whichever is lesser). But by closely observing an individual's behavior using this handy checklist,...

So when I review a profile I mainly keep an eye on help vampire signs.
 
What I am trying to say is drama is an unfortunate byproduct, but one that I have no interest in being part of lol!
 
Neither do I but someone must byte the sour apple.
The drama is all over by now. We are just here to make sure it stays like that.
That and to be un productive.
 
in other news the commenters on Meta are quite harsh and borderline mean
 
A particular comment?
 
-1 - Poorly formed question. If you can't take the time to summarize I can't take the time to click and read. I'll just assume you are wrong and downvote.
Assuming you are wrong because you don't want to read it is kinda... bad imo
If you don't want to educate yourself, don't join in the conversation
 
11:18 PM
Oh right, that one. Yea, there are some pretty strange people on the internet.
Time to get some sleep. It is Friday already.
Good night.
 
Good night
 

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