« first day (1104 days earlier)      last day (3845 days later) » 
00:00 - 19:0019:00 - 00:00

12:00 AM
or how can I change the background of all the Tabs?
 
drawables
 
setCustomView(View view) maybe?
 
user457812
I just use the ActionBar in the regular API.
 
user457812
Never bothered with it as a support API.
 
set the Tabhost to different drawables? I am confused on what you want to do
 
12:02 AM
I am not using a TabHost
I thought it was redundant to use TabHost if you are extending ActionBarActivity, is that the case?
 
well I have a Viewpager/swipe and then on a different activity I use TabHost...regardless I would start where you create your application and choose the navigation ViewPager Tab
if you haven't done that already
 
12:28 AM
I tried that but I am trying to achieve something like the Twitter app scrolling
If you select swipe when you create the project, it will swipe, but it is not tabbed
 
Scrollable Tabs + Swipe?
 
I tried Scrollable Tabs + Swipe but you see Tabs as you scroll, you do not see them all the time. Is there a way to make all tabs be still as you scroll?
 
you know what else might help...run the API Demos
I think there one in there
 
Yeah that is what I was doing
 
maybe try horizontal ScrollView for the tabs
?
like in TabHost
 
12:42 AM
do you know what is the difference between using TabHost and just adding tabs via the ActionBar?
 
TabHost is depreciated
Actionbar isn't
that is all I know
 
ohh....
 
 
1 hour later…
1:59 AM
-3
Q: i want to split string

user2746864how can i split an string like "int x,y" and print it like this ????? int is keyword x is identifier , is a comma y is identifier String phrase = stat.getText().toString(); String[] words = phrase.split(" "); for (String word: words) { { if (word.matches("int") || word.matche...

The most efficient language parser ever
 
 
2 hours later…
4:17 AM
@mist I've been to lisbon as a kid I'll go there soon again
Why do you ask?
by the way the city I live in is modelled after lisbon
 
user457812
@AndroidDev Figured out what penultimate means yet?
 
4:55 AM
morning
Nil, why you are running behind AndroidDev? forgive him :P
 
Morning Lalit
 
very good morning lucky!
 
wow! nice...what is so great about it?
 
about what?
 
your morning :P
 
4:58 AM
hehe, its great that I am in office ;)
 
what are you working on these days?
 
I am working on this device
 
user457812
"Android POS."
 
user457812
It says that, I am not just insulting Android. IT SAYS THAT.
 
that is awesome actually
 
user457812
5:02 AM
I'd just use Square, really.
 
Dude that is a small cash register
that is really cool
 
user457812
Uh, well, no, it's not a cash register
 
Its very tough to run your app in this kind of low configured device :P
 
user457812
A cash register would hold cash >_>
 
it prints receipts
 
5:04 AM
that device includes printer and RFID!
 
user457812
What it is is a card reader with a printer.
 
bars would love that
 
yeah exactly it prints receipts!
 
dont listen to nil...that thing is awesome
 
user457812
I didn't say it was bad.
 
5:04 AM
how much are they?
 
user457812
I just said it wasn't a cash register.
 
Well, nil is not my boss so obviously I won't listen him :D
because I need to develop for this device!
 
user457812
brb revoking lalit's write access because I'm not his supreme authority
 
hahaa
 
Nil, its always your wish :P
brb guys going for meeting!
 
5:06 AM
come back I want to hear more
 
user457812
I'd just buy a lock box
 
user457812
Like, regular little tin box and just throw money in it.
 
exactly
 
user457812
Later I would toss said money into a small inflatable pool and bathe in it.
 
it would obviously count the cash as well
 
user457812
5:08 AM
That's what I like about Square, actually. It handles both cash and cards, can connect to printers, etc.
 
user457812
It's pretty neat.
 
how much do they charge?
 
user457812
For?
 
for the service?
 
user457812
squareup.com/pricing ← You can read it there.
 
user457812
5:12 AM
Oddly enough, the reader doesn't work on Nexus 7s because there's something odd about the hardware
 
5:37 AM
Morning! :)
 
morning!
 
5:53 AM
I am back!
 
nice!
that thing is pretty cool
what aspect are you working on?
 
I am working on the print functionality for that device
receipt will include barcode image, details about articles!
 
wow...I am curious about porting in that respect
so you are writing native code? sorry I don't know all the correct terms
 
actually I was worried when I got the device in my hands as it doesn't have a wifi support :P
actually they provide an API for calling the print functionality using NDK-JNI
 
your company?
 
6:09 AM
nopes the company who is manufacturer of the device ;)
 
oh
okay, that is pretty cool
 
finally I managed to connect the device using ethernet :D
and started working on it!
 
so you get a bunch different parts you have to jam together?
via Android?
 
No, actually now I have the device and I was having my app ready for 10 inch tablet but now they wanted my app to execute in this 7 inch tablet!
previous I was using 10 inch tablet + seperate printer connected to tablet for printing!
now we have both tablet + printer in one!
 
so you write the app that a business would use and your company buys the device from someone else
?
 
6:18 AM
yes we would buy devices in bulk if we get success in executing our app in this tablet!
 
cool...so your app needs to be able to be used for all different businesses obviously...so there is a setup screen for the customer?
 
I've never released any app in the PlayStore
Tomorrow is the big day.
 
yeah 10 inch tablet is working in pilot version as a Kiosk!
 
First time ever my TL gave this task to me. I am exited/nervous/hint-less!
 
nice! how did you setup the kiosk? how to do you block settings/etc
good luck Vera
 
6:22 AM
thats their work lucky, my app is working in Germany!
 
0_0 whatever you said Lucky, was all French to me.
What is all that crap?
I said I am hint-less!
what is kiosk? Oh no :(
 
I guess Mall Kiosk defines what I mean for Kiosk
 
that has to be pretty hard Lalit though
the JNI/NDK
 
yes but I just need to do some minor changes and build the jni code!
 
6:44 AM
Morning :)
 
Anders!
What is going on today in Denmark?
 
Sun barely burning through the clouds, but it's good :)
 
I forget you are very temperature sensitive haha
 
HuH ?
You try and live in my clima and not complain about weather
 
Why don't you tell something interesting about Denmark that I don't know
it can be that bad there?
 
7:17 AM
Sorry I fail to understand what you want me to say?
 
user457812
He's asking you to say something positive about Denmark.
 
user457812
Here's something positive about Denmark: it pissed off a "pickup artist" → dissentmagazine.org/article/cockblocked-by-redistribution
 
Denmark has the worlds most happy citizens ;)
 
7:37 AM
lame
I just wanted an interesting fact about Denmark
it could be anything
 
Give me an interesting fact about texas
 
Texas was the only Independent Republic that joined the United States
so we were a our own country after we defeated Santa Anna in the Battle of Gaudalupe (I think)
 
Wow really? amazing....

Well depends on what we define as interesting I guess...

Anyways history wise. Bluetooth is named by an old danish viking king
 
So there was the United States (New York, Virginia, etc) and Texas
 
in Danish his name is Harald Blåtand (Harald Bluetooth)
 
7:42 AM
all the other states were formed by land acquired via the US goverment etc
how did they come up with that?
 
Sorry, I'm busy atm mate :)
Bluetooth is a wireless technology standard for exchanging data over short distances (using short-wavelength radio transmissions in the ISM band from 2400–2480 MHz) from fixed and mobile devices, creating personal area networks (PANs) with high levels of security. Created by telecom vendor Ericsson in 1994, it was originally conceived as a wireless alternative to RS-232 data cables. It can connect several devices, overcoming problems of synchronization. Bluetooth is managed by the Bluetooth Special Interest Group, which has more than 19,000 member companies in the areas of telecom...
 
 
1 hour later…
9:01 AM
hello!
 
o/
 
9:17 AM
hey there
 
10:06 AM
@AndroidDev rejected after checking for 2 seconds because of: too generic user name... come on! Be creative... "AndroidDev" is the worst possible username for an android dev... and of course you are in a dozen chat rooms. No need to be here...
 
10:17 AM
This is a common unuseful answer as you didn't even checked the code. Do you want to get reputation with that? Good luck as you have lost 2 reputation now... — WarrenFaith 12 secs ago
@JeevaJsb rejected. You haven't had a single android question/answer. You have 12 questions and just one answer... also extremely low reputation...
@BhavikMulia you are a joomla dev without any association with android visible. Rejected.
 
HI !
 
I'll spend almost the entire day in different meetings. KILL ME
 
o/
 
OcuS You have started slacking a lot on those gifs havn't you ?
 
10:32 AM
Yes, I have... :/ Ain't got no more time for that really...
 
http://chat.stackoverflow.com/transcript/message/12534596#12534596
Awesome, to bad it is soo slow
 
(And also, I moved from desk at work, too many people can see my screen now, it's harder to crawl the web for gifs ^^
 
Orgh, that's soo sad!
 
Uh... that's bad. xD
 
but it's kinda good because I spend less time on facebook/twitter/etc too so I work a little better than before :)
 
10:39 AM
Not better, but more productive. Therefore you can do more breaks. xD
 
yes more productive
 
^^
 
I do less breaks than before... I've stop taking cigarets breaks ; I smoke my e-cig at my desk :)
 
Oh, never thought about this.
Clever one.
 
yes :)
 
10:41 AM
I would do the same, in case I start smoking. ^^
 
lol
 
But I don't. xD
 
I'd like to slap I the face every person that starts smoking
 
Yeah... somehow. ^^
 
hate!
and I hate it when you all join!
 
10:52 AM
lol
 
haha
 
11:05 AM
Guys, I have an app in which I have to implement signup/signin from facebook/twitter/the app backend itself. I have full control over my app's backend/api (which I also develop). I don't even know where to start. How do I link the user from twitter/facebook to my backend's user ? Do you have any advice ?
 
11:20 AM
Sorry, havn't messed with it
Maybe match their emails ?
I think that's the normal way to do it. unique emails.
and then email verification of cause.
 
 
1 hour later…
12:42 PM
Time spent at work:
Coding = 20%
Issue management = 30%
Explaining to the test team how Android works = 50%
Correcting the test team issue raising = 20%

>...that's right 120%. Incompetence is something I can't stand....some of these issues....
 
@Reno I was just wondering how long should I stay to experience the city. Or if it's worth going at all.
 
Hehe, you get used to it in my oppinion Ocean
 
@AndersMetnik ..the problem is, when I correct them and withdraw the issue they get offended! So precious....
 
ping :-/
Well Isn't that their problem that they get offended? not yours...
 
The test team have a set of opaque, hidden, draconian like laws about whether a release can go out....
Turns out the padding being off by 2px is a "Critical"
w***kers
Meanwhile we've had consistent crashes on ICS devices since August....no patch release
they're all going to hell.
 
12:52 PM
good morning
 
Good morning to you too.
 
1:08 PM
user image
5
my own one! :D
 
1:30 PM
awesome image from Obama
looks like he really enjoyed the joke
 
Oh, I'm sure he really did
 
Merkel is raging that she is treated like a German citizen...
 
2:01 PM
dafuq?!
Here is solution matter not format thanks — Sandeep Tiwari 1 min ago
 
hahaha
wow
 
People are amazing!
 
fixed ;)
 
2:19 PM
Downvoted
 
this is probably a real footage...
 
Ha!
 
I might start a flag war...
 
Fhat do you want to flag him for?
It's not really offensive, just rude as you said.
..well I guess it is not constructive.
 
na, I didn't mean him :D
 
2:56 PM
Good morning
nice Morpheus warren
 
yeah that thought crossed my mind while checking the dashboard :D
thought the percentage is determined by playstore access and I doubt that many devs browsing the app store on their testing devices
 
hey nebulae
 
Hey Ahmad
I do warren, all the time.
 
on a dedicated test device?
why?
 
My fave test device is an original galaxy that's rooted and running 2.3
So I can instally app from the store
on phone can't edit.
Install, update, etc
I left the plastic on that thing for years, its like new lol
The galaxy logo on the back is so sharp it'll cut your fingers.
 
3:07 PM
:)
 
hey guys
check this out
0
Q: Android Google Analytics Getting Referrer

hanleyhansenWhen dealing with Campaign Measuring (see here) from Google Analytics SDK on Android, what is the best way to get the referrer? I can successfully broadcast an intent to my app and i see in my logs that the campaign was found. What i need to do is take that referrer information and send it to my...

 
why someone is even complaining about it? i.imgur.com/czGgE8c.png
 
Seriously?
 
oh wow
 
@Rezoom Avatar explains it all.
 
3:22 PM
lets bash him by leavin a comment!
done
 
wow, harsh critic.
came out on a wed during survivor. 1 star.
 
Deadtrigger your app ?
 
3:42 PM
Hello, Android!
 
anyone feel like chatting about this problem with me?
http://stackoverflow.com/questions/19532831/image-management-when-to-recycle-bitmaps
I have several ideas that feel like they would take a while to implement
 
people are probably going to want to see some code, Carl
I'm not familiar with bitmap recycling or the LRU cache :(
 
@WarrenFaith +1'ed
 
hrm.. yeah. I'm not sure what portions of the code to post. :-/
 
Id check first: in the array adapter, if the convert view being reused or is it creating a new view for every getView call?
that would be a good place to release the previous bitmap,
before setting the new bitmap if the convertview != null
 
3:53 PM
yeah, just implemented that yesterday
 
and they're being recycled from the LRU cache as well?
do those images ever get recycled? whats the logcat say?
 
Images are evicted from the ImageCache, but not recycled when they're evicted, because some view somewhere might still be holding a reference to it
It recycles a few images
 
@nebulae More importantly, what does the Fox say?
 
you're adding it to an imageview? in the getView method?
 
yeah, the code pasted is from an ImageView subclass
 
3:57 PM
ahha, ok
can you set the image drawable to null before recycling?
 
@CarlAnderson please use pastebin or similar services to provide code. Pasting code in chat is against our rules
 
I'm not sure I would have gone to the point of subclassing imageview
 
oh you're right, sorry Warren
 
1 message moved to recycle bin
and a final tip: put a link to a question as a separate chat message, you will get the awesome quickbox format :)
like that:
1
Q: Image management: When to recycle bitmaps?

Carl AndersonI've read When should I recycle a bitmap using LRU Cache and several other questions here, and am still struggling with OutOfMemoryExceptions. But I'm getting ahead of myself. I'm taking over an app that displays a tremendous amount of images. Primarily this is done in an grid view, using a subc...

 
ahh, I figured it wasn't showing that because it was me posting it
@nebulae - this is all pretty much code I inherited
the image subclass owns managing the asynchronous call to get the image off the web
 
4:02 PM
oh
ok then
well, try setting the drawable to null before recycling it, if you can, or maybe to another drawable.
 
or otherwise have the imageview release the bitmap from itself before recycling
setting it to null might throw an error, I'm not sure
 
part of me thinks the bigger problem is that we allow essentially infinite browse depth
grid view of images -> click an image -> detailed view of image, with links in the page to new grid views
'oh look at that'
if you keep doing that, we eventually blow up on OOM
so today my thinking was that even if I get the image recycling down, this is just a band-aid
 
that doesn't seem unreasonable to me, as navigation
I think you would want to reuse the same fragments though, and populate them from a saved state on back, a la facebook,
know what i mean?
 
yeah, that seems like a good approach. We don't do that currently
each is a new instance of the fragment
pastebin test (never used it before)
http://pastebin.com/K0CHG8V6
 
4:09 PM
theres a great pattern for such a thing.
I believe it's called the memento pattern
afk
 
I am off heading home. cya!
 
bb
 
4:25 PM
Bye Warren
 
4:53 PM
aaaaand...
 
s/Communism/Terrorism s/Microsoft/Google
 
5:45 PM
Do you guys use Guava?
 
Guava is in my app, not much experience with it yet
 
is anyone good at widgets...apparently I can't type today
 
I am definitely not good with widgets, but shoot.
 
I am just having trouble loading images remotely from a bitmap
in RemoteViews they only allow setImageViewBitmap, setImageDrawable
and I am download the images via a string Url
I have tried the UIL, LazyList, and Aquery
 
user image
2
 
5:58 PM
bahahahaha
that is what I based it on
 
user457812
Behold, my state's government is ever the progressive thinker → theregister.co.uk/2013/10/23/…
 
If I've got a ListView adapter with a lot of Images in it, and I want to do a clear() on the adapter, do I want to do that in onPause(), or in onStop() ?
 
6:14 PM
Lucky what is your string url giving you?
I'd think you made it to an inputstream of some sort and then saved that inputstream
@Ahmad I soo disagree though :)
 
I have been trying to use those libs and they aren't really meant for RemoteViews...I am just going try Async and download and convert to bitmap myself
 
You won't believe how long I spend to come up with a proper method or class name
haha
how about this?... nah not descriptive enough. And this one's too long. This one is to confusing. This on might fit. Oh no, lets change the name of the whole process. Now.. I like that one
 
I think I am just getting confused on where to try and download the image when it comes to widgets
 
user457812
I just name stuff and rename them later via IntelliJ's refactoring. Don't need to spend as much time thinking about it.
 
@nil unbelievable
Just read up what the 4th amendment is. That's just messed up.
 
6:24 PM
@nil I do the same thing, I just wasn't going to admit it
also, eclipse refactoring.
 
user457812
I prefer IntelliJ's since I never have to leave the editor for it
 
user457812
Just highlight a name, press a key, and replace it. IntelliJ just takes care of the rest silently unless it finds a conflict.
 
same in netbeans, though i press 3 keys (ctrl+shift+r)
 
hehe, naming.
 
user457812
I press four keys, but they're two at a time. Specifically, ⌘K⌘R
 
user457812
6:34 PM
Could've been two, but I like my ⌘K* keys.
 
I just created private static final String JOINER_ATOM_DELIMITER, anyone want to guess what it is?
,
@luckyreed76 Could you use Picasso by FourSquare? I am using it heavily and I LOVE it!
 
Thanks Mr. Fu...I haven't seen that one before
I will check it out
 
00:00 - 19:0019:00 - 00:00

« first day (1104 days earlier)      last day (3845 days later) »