« first day (221 days earlier)      last day (4728 days later) » 
03:00 - 12:0012:00 - 20:00

12:00 PM
@user264953 whatever calls that class you've linked me to will pass an Activity context to is as UI components just need that type of context, so just use that passed context wherever you need it.
 
yepp
 
@Rosalie this is not a general question then but a specific one, please post a question on SO about that
 
@OctavianDamiean: i have search but it say that i must use the transparent image for it
for changing the visibility of image view in getView()
 
@OctavianDamiean okay
 
@rubyid10 I have no idea about your problem and as long as it isn't on SO it isn't anything to be discussed in here as it is a specific problem
however that is not true you can just set the visibility to INVISIBLE
 
12:04 PM
ok
 
such a comic would be ace @Reno
 
Yup the one in DA was superb
 
haha awesome, I love it :D
I'd create a shortcut for that link then and every time I have to post the rule I'd just hit a combination of buttons to post that awesome comic :D
 
3
Q: Save/Create MMS in inbox Android

FarhanHi, I am working on an Application which needs to be able to Save/Create a new MMS in inbox or Sent folders but i cant figure out the way. I tried the following code but it gave me exception: ContentValues values = new ContentValues(); values.put("address", "xxxxxxxxxxx"); values.put("body", "...

 
12:19 PM
@Farhan I'd probably start a bounty on it. That will get peoples attention.
 
already thought that... but option not shown at the moment...
 
oh I see.
 
hello to all
i am facing problem regarding OutOfMemory Excepetion
is it possible to free memory of Bitmap object after drawn on Canvas
any one have idea to free memory
i try with .recycle() method...but i want to keep drawing on Canvas n just want to rls object
 
@Shubh you need to be more specific. Have a look at the existing questions stackoverflow.com/search?q=out+of+memory+android
 
@Shubh create a question SO if there isn't one already. This is a specific problem.
 
12:29 PM
yes i have post an similar Q at stackoverflow.com/q/6120754/336990
but i m not getting proper answer
 
@Shubh why did you accept it then?
 
@Shubh Although this video will not solve your problem , it should help in memory management. : youtube.com/watch?v=_CruQY55HOk&feature=player_embedded
 
@Octavivan : i tried it ..but then it also not work for me
 
@Shubh also make sure you are not storing your context anywhere , most of my memory leaks have occurred due to it :-)
@Shubh OutOfMemory issues are not generic , so there is no single answer
 
@Ravi : when i draw no of Bitmap over canvas ...at here Bitmap are stored in Heap area
yes I know
but here when we use no of Bitmap over canvas it occur
 
12:32 PM
pre 2.3 bitmaps are not stored in the heap :-) , check the video out :-)
the video demos how to use the Memory analysis Tool to debug leaks
 
@Ravi : ok let me check once
@ravi : can u pls share ur mail id so i can contact u later
 
is there a way to DM / or private message?
 
DM mean?
 
Direct Message , twitter lingo :-)
@Shubh you on twitter?
 
yes but my id id expaired..not able to login again
:|
 
12:39 PM
hehe .. ok go here ravivyas.com/contact-me and send me a message , I will get back to you :-)
 
:) ok thanks
 
hello all
 
@Ravi : i sent u mail on ur site
 
@Shubh got it :-)
@Shubh sent a reply :-)
 
ok let me check
 
1:30 PM
1
A: How to have an activity that will run once only?

beetstraWhy don't you want to use the shared preferences? This would be by far the easiest. Of course you can think of more complicated ways that don't use shared preferences, but you have to store it somewhere. Some messier ways: use a SQLite database use your own file format use a unique device id (c...

love that answer :D
 
lol
 
the summary is great isn't it? :D
 
nice
 
> It works. Use it. No really.
 
yup lol
 
1:32 PM
I'm still laughing
 
:D
 
2:14 PM
Hello everyone :) i was just wondering --> i guess using the application context to create dialog fields is probably not a good idea xD ?
Lets say I have a rather weird use case which currently forces me to do so - though i am currently switching to another approach which will allow me to use the proper activity context for creating the belonging ui elements
@Ravi: btw nice memory management video :)
 
@Ready4Android You can't use anything else other than the Activity context for UI components
hello there btw. :)
 
hello there :) umm i shouldnt use anything else or i cant - because i definitely can - it's just ugly :D
It causes all sorts of problems though so I am afraid it's a bad approach to my use case :)
 
heh believe me that you can't create UI elements using the Application context. Try that with a dialog and you are going to get a BadToken exception ;)
 
oh thats odd :O --> because I am creating my eddittexts & buttons and stuff by passing the application context - later i bind those separate widgets to an activity
and it runs and works - until you rotate the screen xD
 
how do you bind them to an activity?
 
2:26 PM
once the activity is triggered it takes a list of those widgets that have been created with the application context - then i have a ui renderer which uses the activities context to add those widgets to the activities layout
 
@Ready4Android well then you use the Activity context ultimately ;)
otherwise that would happen
7
Q: Android 1.6: "android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application"

Dan MonegoI'm trying to open a dialog window, but every time I try to open it it throws this exception: E/AndroidRuntime( 206): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 206): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not ...

 
oh okay :O - i was wondering - does it not really matter that the widgets have been created with a "wrong" context ?
 
@Ready4Android well not really as Application and Activity are both of type Context which is what the constructor of the UI components need but to be rendered on the screen they need the Activity context
;)
 
ah i remember where i got that bad token exception --> stupid me thought she could render a progressdialog from the application class xD - needless to say i failed miserably :P
 
I had to learn it the hard way myself :)
 
2:30 PM
:)
 
hi, is it possible to use lucene for searching
 
Btw i was wondering: when having private variables in an activity - would there be any point in clearing those up onPause() - activity event?
 
@SudeepSR in general or in Android?
 
in Android
@OctavianDamiean in android
 
How we can create a PUSH Notification based app in Android
 
2:36 PM
@SudeepSR not sure, you'll have to try it I guess
@AlexMathew in Eclipse, File -> New Android Project
3
 
@OctavianDamiean Then
??
 
well then you'll have to start developing ;)
 
@AlexMathew ,it possible to create push notification(2.2) ,check out the chrome to phone from google
 
@AlexMathew this was an attempt to make you understand that the question is overly broad
 
2:37 PM
@OctavianDamiean Cant Understand that
 
@AlexMathew well basically I can answer it like that, Yes
you'll have to start your project and run into an issue otherwise there is no way to help you. Just read up the documentation on it and start developing
 
@OctavianDamiean basically i developed an app. which is using HTTP Protocol to send data over a MYSQL server and Android using PHP as intermediate language
is it like PUSH?
 
oO
@AlexMathew have you read about the Push technology?
 
@OctavianDamiean what should i read?
 
2:51 PM
Push technology, server push, describes a style of Internet-based communication where the request for a given transaction is initiated by the publisher or central server. It is contrasted with pull technology, where the request for the transmission of information is initiated by the receiver or client. General use Push services are often based on information preferences expressed in advance. This is called a publish/subscribe model. A client might "subscribe" to various information "channels". Whenever new content is available on one of those channels, the server would push that informat...
as a start
just so you understand what the Push technology is
 
3:50 PM
What do you mean support?
 
4:00 PM
It depends how much are you paying @alex?
 
@AlexMathew if you need push for pre 2.2 devices check out urbanairship.com
@Ready4Android in one of my projects I tried setting custom views to null hoping it would free up memory but I did get across to verifying it :-)
 
1 hour ago, by Octavian Damiean
@Ready4Android well not really as Application and Activity are both of type Context which is what the constructor of the UI components need but to be rendered on the screen they need the Activity context
 
hey has anyone integrated with zxing....the barcode scanner?
 
that message above is wrong
@ninjasense nope
 
Ive been trying to get the project to compile but there is no R!!
i tried cleaning and changing the project target but it wont generate
 
4:16 PM
@ninjasense probably an issue in some XML file
they silently fail which often results in the R file not being generated
 
@OctavianDamiean which message :) the one with context?
 
@OctavianDamiean thanks man ill take a look into it
 
jepp that silent file is plain annoying happens a lot with my manifest too fails on run ... P.s. thats an additional problem actually as ninjas didnt even compile in the first place :)
 
@ninjasense often it is just a period instead of a colon as the namespace delimiter (android:blah)
@Ready4Android yup
 
@octav ah ok :)
 
4:19 PM
@Ready4Android it won't compile without the R file as that is where all the references are :D
 
@OctavianDamiean jepp :) actually the problem i had with the manifest is another one :) but its also a way of silently fail --> if there already is an r file
 
oh thats what you mean :)
 
5:09 PM
Interesting Romain guy spoke at Google I/O
He is pretty active on SO.
 
about?
 
He implemented the android UI running with the GPU
using openGL ES i think
(HoneyComb)
 
oh.. I have yet to see that talk :-)
 
A long time ago i was doing stuff with google earth, we had a couple of discussions online. I was really surprised I guess
 
@Reno ages ago he was in this room ;)
 
5:15 PM
lol
 
One more person from developer relations, Pamela Fox I saw her on some social n/w site by accident. (She used to handle kml projects I think) Either the world is a small place or googlers are everywhere.
 
When I was a kid I did a play, it started with the line "Long long ago,not so long ago, but a little long ago" ... or some thing like that
 
oh no hold on I'm wrong, it wasn't Romain but Roman Nurik ;)
 
ah
 
5:29 PM
ah i came across romain guy on SO a lot :) and also elsewhere
 
General question : DO you guys think on the long term is feasible to be an android app developer or one should dive in deeper to the internals?
 
As in you want to contribute to the android OS?
 
internals are helpful either way :) never hurts to know how the system ticks
 
or work on it for another company
 
Yep that is what I'm doing now
 
5:33 PM
@Ready4Android yup but I keep thinking whether I should spend time to work on WP7 or Android internals
as in WP7 apps
brb 5 mins
 
mhhh actually i am not a big ms fan but i like what i have read about WPF so far (and WP7) but i guess it very much depends on what you favour?
Knowing the internals will help writing efficient apps plus if you want to work as a framework def it can be helpful too :)
 
Personally I'm starting to explore other areas like Linux applications development
 
very true... I do keep looking at the framework source when coding apps
 
not solely applications but also kernel stuff (which is slightly more complex) :p
 
My personal problem is I like everythign about computing and find it hard to keep my mind on single thing
 
5:41 PM
I know that problem, I had just the same issue a few months ago. It is very important to focus on one thing tough.
 
kernel level is fun , I worked on a kernel level driver in my masters , the slow computers would take 45-60 mins to compile :-D
@OctavianDamiean true , and Android has been the first thing I have stuck at for a long time :-)
 
6:37 PM
Hello all!
 
hello
 
First time in stackoverflow chat. :) Is it kosher to ask questions in chat or should I just post it to the main site?
 
@isep if they are specific ask them on the site and post a link in here ;)
it is very nice to see people asking about the room policy :)
 
yup
 
@isep oh and welcome to the chat!
 
6:44 PM
@OctavianDamiean Will do. And thank you! :)
 
6:55 PM
Ok posted!
 
great not post just the link in here ;)
 
If anyone has any insight into android preferences... stackoverflow.com/questions/6129384/…
:)
 
if you post the link without any other text on that line it will be one-boxed
0
Q: Android: Programatically populating preferences with checkboxes

isepIn my setting page I have a preference which fetches a list of toggle-able settings that I wanted to display as individual checkbox preferences. I know that preferences.xml supports generating lists of preferences (looking at wi-fi settings page) but listPreference only allows you to select one ...

 
oh snazzy
 
another tip, if you post a question on SO that is already tagged as Android question, then there is no need to pseudo-tag it in the title ;)
 
7:01 PM
Gotcha
 
7:24 PM
@isep yet another tip. When posting code try to keep it at 80 columns so it doesn't create a horizontal scrollbar. It will be easier on the eye to parse the information. I'm going to edit one of your questions so you can see what I mean.
0
Q: Android: Getting Views from xmls

isepIn my app I have a navigation menu that is constant between activities. To make my code a bit easier to modify I made it into its own xml and have been importing it my layouts for each of my screens. To setup the buttons I made a class which I pass my current Activity. The new class has no probl...

@isep do you see what I mean?
 
Ahh yeah. Thats good to know.
Will try to that in the future. :)
 
03:00 - 12:0012:00 - 20:00

« first day (221 days earlier)      last day (4728 days later) »