Office Hours — Today, March 10

Thursday, March 6

Mark M.
has entered the room
Mark M.
turned on guest access
Mar 10
8:10 PM
bobr1013
has entered the room
bobr1013
Hi Mark
Mark M.
hello, bobr1013!
how can I help you today?
8:15 PM
bobr1013
Do you do anything with banner ads? I'm looking everywhere to try to get some advertising on my apps. Do you have any instruction in this specific area with adding xml/java into existing apps?
Mark M.
no, sorry
bobr1013
Can I ask why. I thought that you would implement that into your apps.
Mark M.
heavens, no
I have zero interest in ad networks
for apps, sites, whatever
so I do not use them, nor do I intend to cover them in a book
bobr1013
OK. I thought this would be a great avenue to generate some income.
ok
Just checking. I'
8:20 PM
bobr1013
I've been running into a brick wall with this.
Mark M.
what specifically is the problem?
bobr1013
I thought a small banner ad at the bottom of my app could be a great form of advertising
Mark M.
AFAIK, ad networks provide instructions for integration
AFAIK, they ship libraries with custom views that you can add to your layouts
bobr1013
WHATS AFAIK?
Mark M.
"as far as I know"
bobr1013
Earlier today I tried adding a Webview to my Listview and I couldnt get the listview to work. Process froze
Mark M.
putting a WebView in a ListView is unlikely to work well
if the WebView is for your ad banner, put it below the ListView, via a LinearLayout
bobr1013
Oh, I guess I learned the hard way
8:25 PM
bobr1013
My Listview is wrapped around a relative view. Are you saying that I should put it withing a linear layout at the end?
rmcore
has entered the room
Mark M.
well, LinearLayout was just a suggestion
rmcore
hello
Mark M.
one way or another, put the ad WebView outside the ListView
rmcore: hello!
bobr1013
OK
Mark M.
rmcore: the chat is nearly over -- do you have a question?
bobr1013
Thanks
rmcore
I have a question about the Action Bar.
I am implementing the filtering action item from the example in the book.
But it appears that onClose is not being called.
bobr1013
If you dont use ads networks how do you advertise with all the apps that are available
Mark M.
bobr1013: I don't advertise
rmcore: onClose() of what? which example, specifically?
rmcore
ok...hold on a sec...
bobr1013
Thanks Mark, Have a good night:)
rmcore
I am looking at the chapter "Other Advanced Action Bar Techniques"
There is an example "SearchView... And Filtering a ListView"
it goes through the interface that is required to implement setOnCloseListener
Mark M.
OK, I'm with you
rmcore
I am testing on a 4.1 device
it seems like onClose never gets called
8:30 PM
rmcore
Have you seen this?
Mark M.
I have not looked at this in some time
rmcore
I found this on SO
Mark M.
are you clicking the close X in the SearchView?
rmcore
But I am not sure exactly what the proposed solution is.
yes
I click the close X
I set a break point in the onClose function
My breakpoint never gets hit
Mark M.
I'll have to take a peek at it sometime
rmcore
ok
well it is frustrating
Mark M.
I'm sure it is
if you join a chat closer to the beginning, I can run some tests live, to see what I see
and I'll try to take a peek at this before the next book update
rmcore
ok...I thought this started at 7:30?
Mark M.
US Eastern Time
rmcore
am I in the wrong time zone or something?
ok...sorry
Mark M.
(and don't forget the US changed clocks this past Sunday)
(gotta love daylight savings time..._)
rmcore
yes I know....I'm in Centeral time zone
Mark M.
anyway, that's a wrap for today's chat
rmcore
another question about the list view
Mark M.
the transcript will be posted to http://commonsware.com/office-hours/ shortly
the next chat is tomorrow at 4pm US Eastern Time
rmcore
Mark, thanks for the book and all the code samples.
Mark M.
you are very welcome
have a pleasant day!
bobr1013
has left the room
rmcore
has left the room
Mark M.
turned off guest access

Thursday, March 6

 

Office Hours

People in this transcript

  • bobr1013
  • Mark Murphy
  • rmcore