Re: [android-beginners] Re: Any existed support for ZigBee module?

2010-10-14 Thread Pedro E. Cunha Brigatto
Hi, guys. I am currently searching for any news about ZigBee support on Android, and unfortunately got no answers 'til now. Does anyone have any update about it or a link for me to speed up my searches? Thanks in advance, Pedro 2009/11/17 meetsang meets...@gmail.com Johnson, Were you able

Re: [android-beginners] Lanunch an application at the time of Start up

2010-09-01 Thread Dirk Jäckel
Hi! You can launch a service at boot time. You need the permission RECEIVE_BOOT_COMPLETED and a BroadcastReceiver that listens to ACTION_BOOT_COMPLETED. In Your AndroidManifest you need the following: uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED/ receiver

Re: [android-beginners] Airplane mode

2010-08-09 Thread Jenus Dong
*public* AirplaneModeEnabler*(*Context context, CheckBoxPreference airplaneModeCheckBoxPreference*)* *{* mContext = context; mCheckBoxPref = airplaneModeCheckBoxPreference; airplaneModeCheckBoxPreference.setPersistent*(**false**)*; mPhoneStateReceiver = *new*

Re: [android-beginners] How to set location information permanently in the emulator

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 2:43 AM, sunny menon1...@gmail.com wrote: I am not sure how to set the location permanently in the emulator. You can't. I use the ddms to push the location but I can only see it when I open the map. If I exit, it is gone. Correct. Next time when my open my map, it

Re: [android-beginners] Howto integrate 3rd party app to tabhost

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 7:59 AM, daph...@googlemail.com daph...@googlemail.com wrote: I using android 2.2 and I want to integrate a third party application into the tabulator. Is that possible and how can I do that? It is not possible, sorry. -- Mark Murphy (a Commons Guy)

Re: [android-beginners] Opening the preferences.xml file

2010-08-07 Thread Mark Murphy
On Sat, Aug 7, 2010 at 2:28 PM, Bret Foreman bret.fore...@gmail.com wrote: The following code does not give the expected results:                prefInputStream = getResources().openRawResource(R.xml.preferences);                byte[] rawBytes = new byte[100];                

Re: [android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Kostya Vasilyev
Sure. The service connection callback you seem to already have in your code. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 06.08.2010 12:10 пользователь Bender abende...@googlemail.com написал: Ok I tried to find out at which point the service is started and when I can access its database

Re: [android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Kostya Vasilyev
No, calling Thread.sleep() won't work. Android framework is largely single-threaded, event-driven. This means that your application and the framework run on the same thread, passing control to each other, doing work in small pieces. This thread is called the UI thread, and blocking it by

Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-06 Thread Greg Donald
On Wed, Aug 4, 2010 at 8:32 PM, Indicator Veritatis mej1...@yahoo.com wrote: Yes, the distinction has been getting blurred. This is a bad thing. Discontinuing this group only makes the blurring worse, as more and more beginners will move to android-developers -- where beginning questions

Re: [android-beginners] Default values in SharedPreferences

2010-08-06 Thread TreKing
On Fri, Aug 6, 2010 at 3:24 PM, Bret Foreman bret.fore...@gmail.com wrote: This is such a generic problem that I'm hoping someone has already solved it and I can get something off the shelf. Any suggestions? I haven't done this (yet) but you could probably store your default values as

Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-06 Thread Greg Donald
On Fri, Aug 6, 2010 at 3:52 PM, fadden fad...@android.com wrote: I do a daily walk through stackoverflow for questions tagged with android.  Nobody will be searching based on esoteric tags.  I think the point of restricting tag generation is to ensure that people *do* find your question

Re: [android-beginners] Re: Default values in SharedPreferences

2010-08-06 Thread TreKing
On Fri, Aug 6, 2010 at 5:38 PM, Bret Foreman bret.fore...@gmail.com wrote: One other consideration is what the next version of Android will do about this. It's pretty clear that this is an important missing feature. I expect they'll eventually make a version of getXXX that reads the default

Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-05 Thread Alessandro Pellizzari
Il giorno mer, 04/08/2010 alle 17.16 -0400, Jake Colman ha scritto: This mailing list, along with many, many others can be access via NNTP using gmane. Pretty much any mailing list I care to follow is on gmane and, if it isn't, it be easily added. Cool! I didn't know gmane was accessible

Re: [android-beginners] Re: Importing a keystore into Eclipse

2010-08-05 Thread TreKing
On Wed, Aug 4, 2010 at 11:23 PM, Bret Foreman bret.fore...@gmail.com wrote: The keystore is in the .android folder but it does not show in the Export Wizard. . folders are hidden by default, maybe that's why? But why put your keystore in the .android folder? I'd put it somewhere a little

Re: [android-beginners] Google Maps on .apk application not showing maps

2010-08-05 Thread TreKing
On Thu, Aug 5, 2010 at 11:47 AM, Ivanico ivan.fran...@gmail.com wrote: Does anyone might know what is going on or has came across this as well? If you exported the app with your signing key, you need to generate an associated release MAP API key. Follow the instructions on the Maps API

Re: [android-beginners] Bibrate on screen touch

2010-08-05 Thread Konstantin Burov
((Vibrator) getSystemService(Context.VIBRATOR_SERVICE)).vibrate(200); You also need to request vibrate permission at manifest: uses-permission android:name=android.permission.VIBRATE / -- You received this message because you are subscribed to the Google Groups Android Beginners group.

Re: [android-beginners] Re: Database handling - when do you open and close

2010-08-05 Thread Kostya Vasilyev
Starting / binding to a service is asynchronous. You can't call bindService and expect it to be already started and bound by the next line. Call bindService and return control to Android by returning from onCreate or whatever. Your service connection callback will be invoked a little later, once

Re: [android-beginners] How to configure proxy settings on my Droid with Android 1.6 ?? plz help

2010-08-04 Thread wahib haq
Thanks anderson for responding. Apologies for posting a vague question. My issue is like a very common one .. There is no option to set up proxy settings on droid. I have searched and there a like hundreds of post with the same issue. I wanted to know if there has been a kind of hack available by

Re: [android-beginners] Changing WiFi network login

2010-08-04 Thread Kostya Vasilyev
Then do it the same way web applications do. Implement login functionality in your application, and you can check credentials. If the app has a web service-based backend, pass some kind of login token to the server can track usage. -- Kostya 04.08.2010 1:09, Kevin Brooks пишет: My original

Re: [android-beginners] SecurityException in AccountManager.get(mContext).getPassword(account);

2010-08-04 Thread Kostya Vasilyev
Looks like Google has a special process that deals with account management. Only this process is allowed to get / set account passwords. It's probably also signed with a special key, which is checked by the kernel when it's started (guessing here). If any application was allowed this, think

Re: [android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread Mark Murphy
On Tue, Aug 3, 2010 at 11:34 PM, Bret Foreman bret.fore...@gmail.com wrote: Is it kosher to sign an apk file with a debug key or is that only for inside Eclipse? That should be kosher. I suspect there's still something wrong with your process here -- perhaps signed by both production and debug

Re: [android-beginners] Google map tiles missing with adb install

2010-08-04 Thread TreKing
On Tue, Aug 3, 2010 at 8:26 PM, Bret Foreman bret.fore...@gmail.com wrote: If I export to an apk file and install it to the same phone from the command line (adb install path/ filename.apk) then the MapView shows the Google logo and the grid, but no map. Any ideas what might be going wrong?

Re: [android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread TreKing
On Wed, Aug 4, 2010 at 10:45 AM, Bret Foreman bret.fore...@gmail.comwrote: Except I don't have a production/release signing key yet. I would generate one, then a corresponding release Maps API key and try that. I've only ever generated the debug key, which I also used to generate the maps

Re: [android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread TreKing
On Wed, Aug 4, 2010 at 11:16 AM, Bret Foreman bret.fore...@gmail.comwrote: I was thinking that publish meant placing in the Marketplace. I believe that's what is meant. I could be wrong, of course - I didn't write it :) Perhaps we should log a bug against the documentation to make that

Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-04 Thread Alessandro Pellizzari
Il giorno mar, 03/08/2010 alle 14.49 -0400, Mark Murphy ha scritto: For those who find StackOverflow to be ineffective, or find the behavior of volunteers there to be morally reprehensible, or whatever, use the [android-developers] Google Group. The dividing line between that group and this

Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-04 Thread Kostya Vasilyev
If there are so many regrets about the closing of this list isn't it possible for anyone to create a mailing list with Google Groups? Let's call it android-for-beginners or whatever. Anyone? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 04.08.2010 20:39 пользователь Alessandro

Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-04 Thread TreKing
2010/8/4 Kostya Vasilyev kmans...@gmail.com If there are so many regrets about the closing of this list isn't it possible for anyone to create a mailing list with Google Groups? Let's call it android-for-beginners or whatever. Anyone? On Tue, Aug 3, 2010 at 12:52 PM, Greg Donald

Re: [android-beginners] Importing a keystore into Eclipse

2010-08-04 Thread TreKing
On Wed, Aug 4, 2010 at 3:57 PM, Bret Foreman bret.fore...@gmail.com wrote: How do I get Eclipse to know about a new keystore? When you use the Export Wizard, it should give you the option to use an existing keystore and let you browse to it. Also, once I have a second keystore, how do I

Re: [android-beginners] Re: Eclipse lockups and crashes

2010-08-03 Thread Kostya Vasilyev
1.6 update 21 indeed has an issue with Eclipse, was discussed recently either here or on android-developers. Either roll back, or use search. -- Kostya 03.08.2010 13:19, blindfold пишет: I'm having the same problem with the latest r06 Android SDK and using Java SDK 1.6.0_21 (C:\Program

Re: [android-beginners] Re: Problem sending variable to java activity.

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 6:00 AM, Justin justinbrett1...@gmail.com wrote: The error I get is The Application has stopped unexpectedly. Please try again, but it only happens as if I use tthe following 2 lines:            Intent intent = getIntent();            int position =

Re: [android-beginners] Cannot load kml files through Emulator Control in Eclipse..

2010-08-03 Thread TreKing
On Tue, Aug 3, 2010 at 6:57 AM, prasad prasad.gang...@gmail.com wrote: I cannot load kml file through Load KML option in Emulator Control of Eclipse Why not? - TreKing

Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Nick Richardson
I have to agree with the others. This is a great group, because of the content as well as the fact that it's a mailing list and therefore can be easily monitored. I have received quite a bit of help from this list, as well as learned a LOT by reading everyone else's questions and answers. I

Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Kevin Brooks
I agree with everyone else that has commented on this thread. I have personally receive a fare amount of help from this group. I also have attempted to answer a couple questions. I really feel the loss of this group will be a large set back for new developers. On Mon, Aug 2, 2010 at 4:37 PM,

Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Greg Donald
On Tue, Aug 3, 2010 at 12:36 PM, Kevin Brooks bear35...@gmail.com wrote: I agree with everyone else that has commented on this thread. I don't see any reason why we can't have one that's not moderated by Google: http://groups.google.com/group/android-for-beginners Moderator volunteers please

Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Justin Anderson
I have joined it as well, and will continue to provide support and help on that list... Hopefully a few of the other major contributors will join and help out as well. -- There are only 10 types of people in the world... Those

Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 1:59 PM, Kevin Brooks bear35...@gmail.com wrote: I just joined the new group.  Hopefully Mark Murphy will decide to join as well an Volunteer to be a Moderator. Personally, I would recommend people use StackOverflow. For those who find StackOverflow to be ineffective, or

Re: [android-beginners] ERROR... No package identifier when getting value for resource number

2010-08-03 Thread Justin Anderson
Please don't double post if you don't get any responses... It just makes for more stuff to sift through. Instead, reply to your own post. Everyone will then get an email which will bring the post back to the forefront. --

Re: [android-beginners] ERROR... No package identifier when getting value for resource number

2010-08-03 Thread Justin Anderson
BTW... I am planning on looking into this one, but I just haven't had time... -- There are only 10 types of people in the world... Those who know binary and those who don't.

Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 2:41 PM, Kevin Brooks bear35...@gmail.com wrote: It is my understanding that the WiFi connection is based on only one user for the device. Here is my situation.  We have an Android device that can be used by different users.  We want to be able to track which data is

Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Kevin Brooks
I am not looking to create a true Multi-user Android environment. My idea would be for my application to change the WiFi settings then connect. I apologize for posting this one on here. Most of my questions are more beginning in Nature than this one. On Tue, Aug 3, 2010 at 1:59 PM, Mark Murphy

Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 3:06 PM, Kevin Brooks bear35...@gmail.com wrote: I am not looking to create a true Multi-user Android environment.  My idea would be for my application to change the WiFi settings then connect. Well, WifiManager has addNetworkConfiguration(), getConfiguredNetworks(),

Re: [android-beginners] Re: NullPointerException when trying to create TelephonyManager

2010-08-03 Thread Justin Anderson
Glad you were able to figure it out! On Aug 3, 2010 1:11 PM, Wall-E bashee...@gmail.com wrote: Ok, so the problem was that I was calling those methods before the application was fully created. So I did the getSystemService call inside of an onCreate method and all is well and dandy now. On

Re: [android-beginners] How to configure proxy settings on my Droid with Android 1.6 ?? plz help

2010-08-03 Thread Justin Anderson
* I am unable to use internet in university network due to proxy issue* Meaning you need to set up proxy settings in order to connect to the internet at your university? If that is the case you need to contact the university's IT department... only they will be able to give you the settings you

Re: [android-beginners] How to configure proxy settings on my Droid with Android 1.6 ?? plz help

2010-08-03 Thread Justin Anderson
And even if that isn't the case and your problem lies with something else, your question is way to vague to expect to get any help whatsoever... -- There are only 10 types of people in the world... Those who know binary and those

Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Kevin Brooks
The real issue is logging into the network that is on the other side of that Access Point. I apologize for not making that clear before. On Tue, Aug 3, 2010 at 2:21 PM, Mark Murphy mmur...@commonsware.com wrote: On Tue, Aug 3, 2010 at 3:06 PM, Kevin Brooks bear35...@gmail.com wrote: I am not

Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Kostya Vasilyev
If the other side requires logging in, perhaps you could track usage there? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 04.08.2010 0:54 пользователь Kevin Brooks bear35...@gmail.com написал: The real issue is logging into the network that is on the other side of that Access Point. I

Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Chris Ross
The other side, as in something beyond the network level, or do you mean the authentication used to connect to the WiFi network, via enterprise WPA or some such? If the authentication is done after the WiFi connection is established, than the way you asked the original question seems

Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Kevin Brooks
My original question was misleading. Let's forget the Android device for a moment. If a user logs into a computer, his credentials are checked on the network and he has access the Admin grants to him/her. So without changing the whole Android System, I need a way to authenticate the user on the

Re: [android-beginners] Google map tiles missing with adb install

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 9:26 PM, Bret Foreman bret.fore...@gmail.com wrote: If I run my application on a physical phone from within the SDK then the Google MapView works perfectly. What do you mean by from within the SDK? Do you mean from Eclipse? If I export to an apk file and install it to

Re: [android-beginners] Abridged summary of android-beginners@googlegroups.com - 18 Messages in 10 Topics

2010-08-03 Thread Jerome
Go on! android-beginners+nore...@googlegroups.com编写:=Today's Topic Summary=Group: android-beginners@googlegroups.comUrl:

Re: [android-beginners] Closing the activity completely

2010-08-02 Thread Mark Murphy
On Mon, Aug 2, 2010 at 4:53 AM, Revathi K J Ramanan revathiramana...@gmail.com wrote: I have a back button in my activity window on right corner of the title bar. I want to kill the activity completely on clicking the close button. Can I reuse the same function and will it have any major

Re: [android-beginners] Problem launching another java file from app.

2010-08-02 Thread Mark Murphy
On Mon, Aug 2, 2010 at 6:06 AM, Justin justinbrett1...@gmail.com wrote: Which loads up the new page fine, but then causes a error and forces close. Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine the Java stack trace associated with your force close. -- Mark Murphy (a

Re: [android-beginners] Checking to See if I directory is there and if not creating one?

2010-08-02 Thread TreKing
On Mon, Aug 2, 2010 at 5:09 AM, Justin justinbrett1...@gmail.com wrote: If I wanted to check to see if a directory called mypictures was on my SD Card, and if it wasn't created one, how would I do this please. Like this: http://tinyurl.com/34sjymt If I then wanted to make this appear in

Re: [android-beginners] Problem sending variable to java activity.

2010-08-02 Thread TreKing
On Mon, Aug 2, 2010 at 5:14 AM, Justin justinbrett1...@gmail.com wrote: I am writing a app, and basically I want to carry accross a variable from one java file to another. So from my first java file I am calling the second one by: Just to clarify, a java file is something you edit, not

Re: [android-beginners] Re: NullPointerException when trying to create TelephonyManager

2010-08-02 Thread Justin Anderson
* My code will run right until it gets to creating the telephony manager instance but will not actually create it and it throws aNullPointerException (I think).* What do you mean I think? Have you looked at the logcat info to determine what the problem may be? Look specifically for a caused by

Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-02 Thread Justin Anderson
I have been providing help on this group for well over a year now... The only reason I am really able to do this is because it is a mailing list... I get an email for every post on this group and I do my best to answer every one that I can. Is there a similar functionality with StackOverflow? I

Re: [android-beginners] Interaction between an Activity and a Service ?

2010-08-02 Thread Justin Anderson
You can pass information via the Intents used to start the service, and vice versa, with the various put and get methods on Intent. For more information, see this link: http://developer.android.com/resources/faq/framework.html#3

Re: [android-beginners] How to populate a ViewFlipper child view with a ListView??

2010-08-02 Thread Justin Anderson
Where exactly does the NullPointerException occur? If you aren't sure you can find this by looking for a caused by line in the logcat information after your app crashes. -- There are only 10 types of people in the world... Those

Re: [android-beginners] How to populate a ViewFlipper child view with a ListView??

2010-08-02 Thread Victoria Busse
The logat says the NPE is located at 08-03 00:07:57.464: ERROR/AndroidRuntime(8898): at com.mobilevideoeditor.moved.EditorView.onClick(EditorView.java:81), which would be lv.setAdapter(new ArrayAdapterString(this, R.layout.specialeffectsview, specialEffects)); Here is the output: 08-03

Re: [android-beginners] Re: Plug for Beginning Android 2

2010-08-02 Thread Mark Murphy
On Mon, Aug 2, 2010 at 6:32 PM, brucko geoff.bruck...@gmail.com wrote: I agree with you Doug on all points. There is however another benefit. The Warescription model. Since I started with Android about 12mths ago we have gone from version 1.5 to 1.6, 2.0, 2.1 and now 2.2. Books go out of

RE: [android-beginners] Controlling Camera Settings

2010-08-02 Thread tinyang
If you create your own custom camera activity, you can control most if not all of the settings you list. http://developer.android.com/reference/android/hardware/Camera.Parameters.ht ml -Original Message- From: android-beginners@googlegroups.com

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

2010-08-01 Thread Mark Murphy
Sorry for the delay in responding. On Fri, Jul 30, 2010 at 10:01 PM, calmchess calmchesspla...@gmail.com wrote: 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? It is licensed under the Apache License 2.0. --

Re: [android-beginners] Pre-loading an SQLite database

2010-08-01 Thread Ben Orchard
But this is still just a hack to solve what shouldn't be an issue at all. I understand that there are security concerns and all sorts of other reasons to be careful with databases, but bluntly put, there's no good reason that an easy to use and implement method of using a pre-loaded db doesn't

Re: [android-beginners] Re: Pre-loading an SQLite database

2010-08-01 Thread Mark Murphy
On Sun, Aug 1, 2010 at 11:59 AM, Bret Foreman bret.fore...@gmail.com wrote: I'm going to investigate the option of using Amazon S3. There exists a Java library for S3 access along with methods to access all the AWS services: http://aws.amazon.com/sdkforjava/ The question remains, if I just use

Re: [android-beginners] Plug for Beginning Android 2

2010-08-01 Thread Mark Murphy
On Sun, Aug 1, 2010 at 1:05 PM, Doug Gordon gordo...@gmail.com wrote: For that purpose, I would highly recommend Beginning Android 2 by some guy named Mark Murphy who shows up in these forums on occasion :-). I dunno. I hear he's balding. Can you really trust a book from a guy who can't keep

Re: [android-beginners] Re: Pre-loading an SQLite database

2010-08-01 Thread Brian Cowan
On 8/1/2010 11:59 AM, Bret Foreman wrote: Ben, I agree with you about the crying need. From a product roadmap point of view, this is a really obvious value for many developers. But I wouldn't jump to a solution too quickly. I've been thinking about the problem for a few days now and my opinion

Re: [android-beginners] How to reuse and include another package?

2010-07-31 Thread TreKing
On Sat, Jul 31, 2010 at 2:52 PM, Victoria victoriasarabu...@gmail.comwrote: I found some already existing code. Where? In the SDK? On the interwebs? In your basement? I was wondering if I could reuse an existing package within my java and xml code without having to code it all again?

Re: [android-beginners] Pre-loading an SQLite database

2010-07-31 Thread Ben Orchard
I've got no ideas, but this is the reason that I pretty much gave up on android as a platform for me: this activity should be simple. Instead accessing a db is difficult, and using a preloaded db results in larger apps. Somehow it is easier to use a db in JAVAFREAKINGSCRIPT than in android.

Re: [android-beginners] Pre-loading an SQLite database

2010-07-31 Thread peter f miller
On Fri, Jul 30, 2010 at 4:39 PM, Bret Foreman bret.fore...@gmail.com wrote: 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

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

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

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

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: . Preference android:key=aboutPref android:title=About title

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

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 kmans...@gmail.com wrote: Bret Mark, Sorry for interrupting, but I also got curious about this. It seems like a neat way to

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 bret.fore...@gmail.com 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

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 11:29 AM, Bret Foreman bret.fore...@gmail.com 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

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,

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 janderson@gmail.com 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

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 gpscru...@gmail.com 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,

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 bret.fore...@gmail.comwrote: I'm sure it's something basic. Any advice? You're using this inside a MapActivity, of course? - TreKing

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 bret.fore...@gmail.comwrote: 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

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

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 janderson@gmail.com 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

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 bret.fore...@gmail.comwrote: 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

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

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 calmchesspla...@gmail.com 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

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 calmchesspla...@gmail.com 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

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 calmchesspla...@gmail.com 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

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

2010-07-29 Thread Mark Murphy
Call finish(): http://developer.android.com/reference/android/app/Activity.html#finish() On Thu, Jul 29, 2010 at 7:39 AM, cellurl gpscru...@gmail.com wrote: I want to auto-close my about-window after 10 seconds, but don't have a clue how to do it Any help appreciated. -jp

Re: [android-beginners] Re: SQLiteConstraintException: error code 19: constraint failed when deleting from sqlite

2010-07-29 Thread Martin Obreshkov
I don't think this is the case. When i try to delete album that contains songs i got java.sql.SQLException: album has songs cannot be deleted at org.sqlite.DB.execute(DB.java:275) at org.sqlite.DB.executeUpdate(DB.java:281) at org.sqlite.PrepStmt.executeUpdate(PrepStmt.java:77) On Thu, Jul 29,

Re: [android-beginners] Map Key

2010-07-29 Thread TreKing
On Wed, Jul 28, 2010 at 11:18 PM, NBS and...@gmail.com wrote: Now I am using a generated map key on my system to work. But I dont know what this value will be if I have to upload to the market. It's whatever you generated for your signing key. Read this:

Re: [android-beginners] Map Key

2010-07-29 Thread TreKing
On Wed, Jul 28, 2010 at 11:18 PM, NBS and...@gmail.com wrote: Now I am using a generated map key on my system to work. But I dont know what this value will be if I have to upload to the market. It's whatever you generated for you signing key. Read this:

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

2010-07-29 Thread Justin Anderson
To auto close after a specified period of time, use a Timer... and then call finish(), as Mark suggested, when the timer expires. On Jul 29, 2010 5:44 AM, Mark Murphy mmur...@commonsware.com wrote: Call finish():

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

2010-07-29 Thread Justin Anderson
Put a '.' in front of the activity name in your manifest... That should fix it. -- There are only 10 types of people in the world... Those who know binary and those who don't.

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

2010-07-29 Thread TreKing
On Thu, Jul 29, 2010 at 6:39 AM, cellurl gpscru...@gmail.com wrote: I want to auto-close my about-window after 10 seconds Why? Do you not trust the user to do this? What if they're not done with it?

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

2010-07-29 Thread Nick Richardson
Step 1: Create new activity Step 2: Create intent to launch that activity Step 3: startActivityForResult() Step 4: Step 5: Profit! http://developer.android.com/reference/android/app/Activity.html#StartingActivities On Wed, Jul 28, 2010 at 7:57 PM, cellurl gpscru...@gmail.com wrote: Can

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

2010-07-29 Thread Justin Anderson
Step 4: That would be onActivityResult()... taken directly from the link you posted -- There are only 10 types of people in the world... Those who know binary and those who don't.

Re: [android-beginners] Trying to delete google account programmatically from my app.

2010-07-29 Thread Nick Richardson
Usually a good place to start is to find out what's causing it to crash. Use logcat and look for caused by in the exception. My money's on a NullPointerException. On Tue, Jul 27, 2010 at 9:24 PM, parul parulsinghal...@gmail.com wrote: Please help me how to delete google accounts from accounts

Re: [android-beginners] Re: Bluetooth Debugging on phones

2010-07-29 Thread Nick Richardson
I have had no problems reading messages from Log.* via logcat from either the emulator or my phone connected via USB. Are you perhaps filtering out your own log messages with the logcat command? Probably not since you said it works on the emulator. One more obvious point: make sure USB

  1   2   3   4   5   6   7   8   9   10   >