[android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread calmchess
Thankyou so much I was pulling hair out trying to google this all the tutorials out there just show how to populate the customlist and thats all. You went 1 step further and now i have what i need for my archive...you sir are a patron. -- You received this message because you are subscribed

[android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread calmchess
yes i think this does what i'm looking for do I need to write it from scratch or can i modify this code to suite my needs and use it? -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflo

Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 9:25 PM, calmchess wrote: > and now i think we are at the root of my problem...how do > i seperate the row from the container?? Well, your source code got cut off, so it is difficult to answer. Somewhere, your Activity is calling setContentView(). Ideally, pa

[android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread calmchess
and now i think we are at the root of my problem...how do i seperate the row from the container?? because right now its merging both togeather I've been working on this for days if you could help me seperate the two i'd appriciate it. -- You received this message because you are subsc

Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 9:16 PM, calmchess wrote: > for the billionth time i'm useing  a CUSTOM LISTVIEW it inflates the > xml Which has nothing to do with anything. < and getview gets called as many times as there is items in the > array...if you put a button in the xml no matter what way you f

[android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread calmchess
for the billionth time i'm useing a CUSTOM LISTVIEW it inflates the xml and getview gets called as many times as there is items in the array...if you put a button in the xml no matter what way you format the XML the button gets displayed multiple times not 1 time multiple times .no matter how

Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 8:55 PM, calmchess wrote: > I'm sorry i didn't try your code this isn't somthing that can be fixed > by formatting XML Yes, it can be. What you say you want is precisely what Nick and Kostya have supplied in the answers. > the button is always inside the  listview no matt

[android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread calmchess
I'm sorry i didn't try your code this isn't somthing that can be fixed by formatting XML the button is always inside the listview no matter what i do although yours came close to doing what i want.i want a button outside the listview and doesn't get highlighted by the list viewthankyou for

[android-beginners] Re: how to self-close an Activity

2010-07-30 Thread Indicator Veritatis
Also, if it is a "things are progressing" display rather than an About box, why aren't you using an android.Widget.ProgressBar instead? People are used to seeing a Progress Bar disappear when the underlying things are done. But they are not so used to About boxes (or things like them) disappearing.

[android-beginners] Pre-loading an SQLite database

2010-07-30 Thread Bret Foreman
I currently have a flat file in my assets directory that I read into SQLite the first time I need something from the appropriate table. That works OK, but I'm effectively doubling the space required for that data and it's a lot of data. I'd like to recover that space. I did some searching and this

[android-beginners] Re: Placing a MapView inside a LinearLayout

2010-07-30 Thread Bret Foreman
That did it. It's working great. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send

Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Nick Richardson
How can you still be having an issue? I literally gave you the XML that you need to accomplish what you're trying to do. On Fri, Jul 30, 2010 at 8:24 AM, Kostya Vasilyev wrote: > Declare the button in the activity's layout xml, above the ListView. > > -- Kostya > > 30.07.2010 19:20, calmchess п

Re: [android-beginners] How to populate a ViewStub using different ImageButtons?

2010-07-30 Thread Justin Anderson
No problem, glad I could help! -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Jul 30, 2010 at 3:58 PM

Re: [android-beginners] Re: Placing a MapView inside a LinearLayout

2010-07-30 Thread TreKing
On Fri, Jul 30, 2010 at 4:53 PM, Bret Foreman wrote: > Well, you see, that's the thing. What I really want is a MapView > embedded in a larger Activity where one half the screen is a > (smallish) map and the other is an address and other details about the > particular location of a marker on the m

Re: [android-beginners] How to populate a ViewStub using different ImageButtons?

2010-07-30 Thread Victoria Busse
Awesome,thanks Justin! On 30 Jul 2010 22:42, "Justin Anderson" wrote: Create a different ViewStub for each case and then inflate the one you want based on the button clicked. ViewStubs don't take up any space until they are inflated so this approach should give you the desired effect.

[android-beginners] Re: Placing a MapView inside a LinearLayout

2010-07-30 Thread Bret Foreman
Well, you see, that's the thing. What I really want is a MapView embedded in a larger Activity where one half the screen is a (smallish) map and the other is an address and other details about the particular location of a marker on the map. Think of how the pushpins work in Yelp when you mouse over

[android-beginners] Re: List Preference not taking up default value

2010-07-30 Thread Bret Foreman
That did it! Thanks. -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beg

Re: [android-beginners] How to populate a ViewStub using different ImageButtons?

2010-07-30 Thread Justin Anderson
Create a different ViewStub for each case and then inflate the one you want based on the button clicked. ViewStubs don't take up any space until they are inflated so this approach should give you the desired effect. -- There are

[android-beginners] How to populate a ViewStub using different ImageButtons?

2010-07-30 Thread Victoria
Hi there, I am trying to populate a ViewStub with a new view depending on which ImageButton is clicked, but as I just discovered ViewStubs I am not exactly sure how this would work... e.g. can I provide the ViewStub with different inflatedIds and within the onClick event of a Button inflate the V

Re: [android-beginners] List Preference not taking up default value

2010-07-30 Thread TreKing
On Fri, Jul 30, 2010 at 2:04 PM, Bret Foreman wrote: > The list of values has 7 choices and I'm setting the default value in one > case to 2 (3rd item > in list) and the other case to 3 (4th item in list). > Is "2" and "3" what the user sees or what you use as the setting in the background? It sh

[android-beginners] Re: read flat file from resources

2010-07-30 Thread Droid
Thanks for that info. Sounds very promising for my needs (storing language stuff) On Jul 30, 12:49 am, Nick Richardson wrote: > If you need to write info to a file, you can simply create a new file and > write to that instead. > > So for example: on first run, read info from your resource and wri

Re: [android-beginners] Placing a MapView inside a LinearLayout

2010-07-30 Thread TreKing
On Fri, Jul 30, 2010 at 3:51 PM, Bret Foreman wrote: > I'm sure it's something basic. Any advice? You're using this inside a MapActivity, of course? - TreKing

[android-beginners] Placing a MapView inside a LinearLayout

2010-07-30 Thread Bret Foreman
I'm getting an inflator exception when I place a MapView inside a LinearLayout. My test xml looks like this: http://schemas.android.com/apk/res/android";> http://schemas.android.com/apk/res/android"; android:id="@+id/eventDetailsMapView" android:layout_width="fill_parent" android:layo

Re: [android-beginners] Re: how to self-close an Activity

2010-07-30 Thread TreKing
On Fri, Jul 30, 2010 at 1:04 PM, cellurl wrote: > Its not actually closing an "about-box", its on a "things-are-progressing" > type pop-up window. > Well that makes quite the difference =) I still wonder why a "things-are-progressing" type pop-up would close after some time and not, you know, w

[android-beginners] List Preference not taking up default value

2010-07-30 Thread Bret Foreman
My list preference code is shown below. The list of values has 7 choices and I'm setting the default value in one case to 2 (3rd item in list) and the other case to 3 (4th item in list). However, when the list preference is shown for the first time, none of the choices is selected. Am I doing somet

Re: [android-beginners] app will not load admob?

2010-07-30 Thread Edmund Higgins
Wow that log is long. I'll delete and repost. Thanks On Jul 30, 2010 11:14 AM, "Justin Anderson" wrote: A couple things: 1. Have you contacted AdMob for support? 2. You have not given any code showing how you are trying to go about adding the ad bar... 3. You have not specified what

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Kostya Vasilyev
The key was having both action and category in the intent filter. Either one by itself didn't match the intent. -- Kostya 30.07.2010 21:30, Mark Murphy пишет: Yes, I think I barked up the wrong tree by suggesting to get rid of the DEFAULT category. Glad to know this works! On Fri, Jul 30, 2

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 11:29 AM, Bret Foreman wrote: > Note that there's a choice > called "clear task on launch", a phrase that you can search in vain > for in the manifest documentation. Ah, but if you remove the spaces, clearTaskOnLaunch is in the docs. > It seems like people mostly build pr

[android-beginners] Getting Force Close when Service calls activity

2010-07-30 Thread Glenn
Hi Everyone, I have a background service that sleeps for a minute then starts an activity that I've created. The problem is everytime the service calls the activity, an FC error displays. My project so far is very simple, these are the components (3): -MyActivity0 -MyActivity1 -MyService0 How it

Re: [android-beginners] Getting Force Close when Service calls activity

2010-07-30 Thread Justin Anderson
None of that information really helps us figure out the problem... What you need to do is look at the logcat info when the FC occurs. There should be a "caused by" line that will tell you what the problem is, along with the file and line number. ---

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 1:56 PM, Bret Foreman wrote: > Now, how do we get this documented so the capability doesn't disappear > in later releases? Ideally, this would become part of the Android > regression tests. Any ideas? File an issue on b.android.com, or submit a documentation patch and see

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Mark Murphy
Yes, I think I barked up the wrong tree by suggesting to get rid of the DEFAULT category. Glad to know this works! On Fri, Jul 30, 2010 at 12:33 PM, Kostya Vasilyev wrote: > Bret & Mark, > > Sorry for interrupting, but I also got curious about this. It seems like a > neat way to bring up the Abou

[android-beginners] Re: how to self-close an Activity

2010-07-30 Thread cellurl
my customers have requested auto-close. Its not actually closing an "about-box", its on a "things-are-progressing" type pop-up window. Also, my customers are in their car, so they need to safely glance at the screen while its safely docked on the dashboard. I have resisted it for 6 months, but I ca

[android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Bret Foreman
It worked! Now, how do we get this documented so the capability doesn't disappear in later releases? Ideally, this would become part of the Android regression tests. Any ideas? Bret -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try

[android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-30 Thread cellurl
I believe in transparency... In 1 month, my app has had 41 total installs, 21 paid (non canceled). -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/quest

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Kostya Vasilyev
Ditto - I was also about to suggest this. Base Preference class is quite complete, it handles drawing the title and summary with proper fonts, and has an onClick() method. Another way - instead of subclassing Preference, add a bit of code with setOnPreferenceClickListener. -- Kostya 30.07.

[android-beginners] Re: how to self-close an Activity

2010-07-30 Thread Indicator Veritatis
I have the same question. And even if they are done with it, I have another question: how do you suppose the user will react when he sees it auto-close? That is, do you really think the user expects this? I am not aware of any other app that does this, the user's expectation is based on these other

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Kostya Vasilyev
Bret & Mark, Sorry for interrupting, but I also got curious about this. It seems like a neat way to bring up the About box without making the context menu too large. This works, no problems at all: values/prefs.xml: . . the manifest: android:label="@string/about_activity" andr

[android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Bret Foreman
Mark, Well, the manifest documentation is pretty sparse so it's not surprising that it doesn't mention this case. A good example is the screen of choices that face you when you look at the Application tab in the manifest editor in Eclipse and click on one of the activities or services. That calls

Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Kostya Vasilyev
Declare the button in the activity's layout xml, above the ListView. -- Kostya 30.07.2010 19:20, calmchess пишет: I'm useing custom list view.which inflates the view..if you put a button in the XML it will put a button in each cell of the list view i only want 1 button above the list view

[android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread calmchess
I'm useing custom list view.which inflates the view..if you put a button in the XML it will put a button in each cell of the list view i only want 1 button above the list view here is some more code to make it clear. public class customlistview extends Activity implements OnClickListener{

Re: [android-beginners] custom listview add button above listeview

2010-07-30 Thread TreKing
On Thu, Jul 29, 2010 at 7:25 PM, calmchess wrote: > i want to add a single button above the listview without useing addheader > Why not? - TreKing

[android-beginners] Bibrate on screen touch

2010-07-30 Thread NBS
Hi all, How I can vibrate or beep sound on dispatchTouchEvent(MotionEvent) event. I have some image on my view and I want to vibrate when I touch that Image. Thanking you in advance regards NBS -- You received this message because you are subscribed to the Google Groups "Android Beginners" grou

[android-beginners] Shared Library

2010-07-30 Thread Sowmya
Hi I am again posting the same message in Android beginners instead of android developers I have a static c library which i want to port in android .i have c porting files . i have written jni interface and build shared library combining all above (c porting files,static library ,jni -cpp) Now i