[android-beginners] Re: Project on Android

2010-12-16 Thread Warwick Hunter
Off the top of my head, here are a few suggestions. An app that scans all the photos on the phone and for any with GPS co-ordinates displays a marker on a map. An app that scans all the SMS messages on a phone and shows a histogram of the number of messages sent to each contact in the address b

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 > Johnson, > > Were you able to find the answe

[android-beginners] Re: database

2010-08-08 Thread skink
Tanay M. Kapoor wrote: > i need to add a large amount of data to an android database i have > created. Is there any tool i can use to do this instead of making an > activity to write and manually add the data. My application need only > display the data not add new thigns to the datdbase. > Pleas

[android-beginners] Re: database

2010-08-08 Thread DanH
You can build the database on any platform (perhaps using a tool like SQLite Expert) and upload it to Android. The trick is that you have get it from wherever you upload it into the app's database directory (plus add a few extra records that Android wants). Some info here: http://www.reigndesign

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

2010-08-07 Thread Indicator Veritatis
BTW: if you do a daily walk-through, why is MY question still unanswered? It was not even that hard a question. It was: http://stackoverflow.com/questions/2603391/how-do-we-get-polygon-antialiasing-in-opengl-es-on-android-1-5 On Aug 6, 1:52 pm, fadden wrote: > On Aug 6, 1:20 pm, Greg Donald wrot

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

2010-08-07 Thread Indicator Veritatis
But just how thorough is this "daily walk through"? Today, there are 14645 questions tagged 'android'. How do you choose which ones you really look at? Worse yet, some idiot decided there should be ONE tag for 'android- sdk', but then three separate tags for 'android-sdk-2.1', 'android- sdk-2.2' a

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

2010-08-07 Thread Indicator Veritatis
But that assumes that people tag them accurately, so that they CAN be found. That assumption is wildly optimistic: look at how many meaningless variations of the non-descript tag 'android' there are in Stack Overflow. I have yet to find a way to do a meaningful tag-based search in Stack Overflow fo

[android-beginners] Re: Default values in SharedPreferences

2010-08-07 Thread skink
Bret Foreman wrote: > Ideally, the SharedPreferences infrastructure could be told to read in > the entire preferences.xml file so the SharedPreferences database is > loaded with all the initial values. But I haven't found any way to do > that. did you try http://developer.android.com/reference/

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

2010-08-06 Thread TreKing
On Fri, Aug 6, 2010 at 5:38 PM, Bret Foreman 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 value > from preferenc

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

2010-08-06 Thread Rajesh Bachani
Thanks Justin, this helps :) :) Rajesh. On Aug 2, 11:52 pm, Justin Anderson wrote: > 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/resou

[android-beginners] Re: Default values in SharedPreferences

2010-08-06 Thread Bret Foreman
Yeah, that's messy, but it will probably work. 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 value from preferences.xml if there

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 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 because it exists i

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

2010-08-06 Thread fadden
On Aug 6, 1:20 pm, Greg Donald wrote: > > # users with less than 1500 reputation can't create new tags. The tags > 'rails3 linecache' are new. Try using existing tags instead. > > > Good luck only tagging questions that already have "popular" tags. What advantage do you expect to gain from crea

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 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 really do not belon

[android-beginners] Re: WQVGA not respecting android:layout_height="fill_parent" for layout.

2010-08-06 Thread ckloch
I have got some support on this and my problem is now solved both on Android 1.5 and 2.1 Best regards ckloch On 17 Jun., 20:41, ckloch wrote: > Thanks for this inspiring contribtion. > > I have just ran in to the same problem with a HTC Hero Android 1.5 > By using android:layout_width="fill_pare

[android-beginners] Re: How comes that the estimate time becomes negative

2010-08-06 Thread ckloch
Dear all, I have solved my problem, so the issue below is no logner relevant Thank you for all the great input I have got in this forum best regards CKLOCH On 22 Jun., 11:25, ckloch wrote: > Dear all, > > I have developed a small app that helps the driver to regulate his > speed in order to pa

[android-beginners] Re: how to change colours in a .xml defined layout in run time

2010-08-06 Thread ckloch
Thank you very much for your input I have solved the problem and the application is now ready for trial. best regards ckloch On 23 Jun., 17:38, TreKing wrote: > On Wed, Jun 16, 2010 at 6:55 AM, ckloch wrote: > > In theory it seems to be easy, but I would highly appreciate your help on > > how t

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 calli

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

2010-08-06 Thread Bender
I tried the following in my activity: mServiceConnection = new DbServiceConnection(mDatabaseBinder); final Intent databaseServiceIntent = new Intent(this, DatabaseService.class); this.bindService(databaseServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE);

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" написал: Ok I tried to find out at which point the service is started and when I can access its database variable. The logs I u

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

2010-08-06 Thread Bender
Ok I tried to find out at which point the service is started and when I can access its database variable. The logs I used showed that the services onCreate() is called after the onResume() method by my activity. That is a bit late because I need access to the database before onResume() to fill the

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 t

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

2010-08-05 Thread Bender
Thanks for your reply, and sorry for my late answer. :-) I tried to get it running as a service but I don't really get how I have to use services, binders and service connections. I'm reading a book with an example for services but can't adopt it to my problem. What I tried is the following: I cr

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 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 more under your own

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

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

2010-08-04 Thread Bret Foreman
The keystore is in the .android folder but it does not show in the Export Wizard. I can see keystores that were created by the wizard but can't see any that are built with the keytool. There must be some import step to tell Eclipse about a new key. Something beyond just dropping the keystore into t

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

2010-08-04 Thread Indicator Veritatis
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 really do not belong. On Aug 3, 11:49 am, Mark Murphy wrote: > On Tue, Aug 3, 2010 at

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

2010-08-04 Thread Jake Colman
> "AP" == Alessandro Pellizzari writes: AP> Too many, I agree, but this one was "official", and was easily usable, AP> being a mailing list. AP> I would prefer a NNTP newsgroup, but a ml is good too. AP> A forum or a website? Not so... This "mailing list", along with many, many o

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 wrote: > 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 clearer? > If by "we",

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

2010-08-04 Thread Bret Foreman
That's a fair point. I wasn't planning to generate a production key until I was ready to publish but there's no harm in doing it now. On careful reading of this: http://developer.android.com/guide/publishing/app-signing.html#cert there is a sentence that goes "You can not publish an application th

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 wrote: > 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 API key. I'm using

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

2010-08-04 Thread Bret Foreman
Except I don't have a production/release signing key yet. I've only ever generated the debug key, which I also used to generate the maps API key. I'm using the Export wizard in Eclipse with the "sign the package" box checked and my debug key chosen. I shouldn't be able to even install an unsigned

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 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 keys? I don't know ho

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

2010-08-03 Thread Bret Foreman
Yes, I mean from within Eclipse. I signed the package with my debug key, which is also the key I used when I got the Maps API key. My manifest has INTERNET permissions and anyway a permission violation would show in the logcat. The device has connectivity, since it works when I download from within

[android-beginners] Re: Eclipse lockups and crashes

2010-08-03 Thread -DC-
For anyone else experiencing the same issue, see: http://blogs.infosupport.com/blogs/peterhe/archive/2010/07/18/eclipse-helios-and-sun-oracle-update-21.aspx PS: I uninstalled 1.6u21 and re-installed 1.6u20, but then Eclipse wouldn't start at all (JVM terminated error). Turns out you can't use the

[android-beginners] Re: Eclipse lockups and crashes

2010-08-03 Thread -DC-
For anyone else experiencing the same issue, see: http://blogs.infosupport.com/blogs/peterhe/archive/2010/07/18/eclipse-helios-and-sun-oracle-update-21.aspx PS: I uninstalled 1.6u21 and re-installed 1.6u20, but then Eclipse wouldn't start at all (JVM terminated error). Turns out you can't use the

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

2010-08-03 Thread Indicator Veritatis
When I first saw Google announce the existence of Stack Overflow and suggest it for posting questions instead of this forum, I found it mildly amusing. I wondered if it meant Google had plans to discontinue this forum! But then to my surprise, I started seeing not only more traffic in Android Begi

[android-beginners] Re: Changing WiFi network login

2010-08-03 Thread Bret Foreman
The essence of a beginner list is that you can ask stupid questions without people acting like you are wasting their precious computer cycles. From that perspective, this list is quite useful. Nobody acts impatient or patronizing, no matter how elementary the question. I'll miss this list too. > B

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

2010-08-03 Thread Dean-O
Sorry for the double post... Frustrated that I did exactly what an example shows and I get this silly error. Thanks for your assistance in advance Dean-O On Aug 3, 2:59 pm, Justin Anderson wrote: > BTW... I am planning on looking into this one, but I just haven't had > time... > > -

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" 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 Aug 3, 10:39 am, Wal

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

2010-08-03 Thread Wall-E
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 Aug 3, 10:39 am, Wall-E wrote: > Did some more searching and I found out that I am not getting the >

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 also

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

2010-08-03 Thread cellurl
I will probably move to the android-developers group and take the wrath of the experts like a man... -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For more infor

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

2010-08-03 Thread Wall-E
Did some more searching and I found out that I am not getting the "java async thread exception" anymore but I'm still getting the NullPointerException. Anybody else know what I'm doing wrong? On Aug 3, 7:32 am, Wall-E wrote: > "Look specifically for a "caused by" line... " > > Yes, in the "cau

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

2010-08-03 Thread parul
I'm able to delete the accounts with above code. only google account is not getting deleted now. Kindly suggest how to delete google account. On Aug 3, 12:09 pm, parul wrote: > now i've changed implementation as i came to know that we can access > accounts using AccountManager > Therefore i'm usi

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

2010-08-03 Thread Wall-E
"Look specifically for a "caused by" line... " Yes, in the "caused by" line is where I'm seeing the NullPointerException (don't worry I'm not making "educated" guesses). My subclassing of the Application class works, or at least it did before I added the instantiation of the TelophonyManager so I

[android-beginners] Re: Serial ports?

2010-08-03 Thread Flamechamp
USB is a serial port right? On Aug 2, 11:54 am, BobG wrote: > Has anyone discovered a serial port in any android phone? Undocumented > factory debug feature or something? -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. ATTENTION: Android-

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 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 = intent.getIntExtra("ImagePosition", -1);

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

2010-08-03 Thread Justin
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 = intent.getIntExtra("ImagePosition", -1); If I create the variable in this activity and blank

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 Files\J

[android-beginners] Re: Eclipse lockups and crashes

2010-08-03 Thread blindfold
I'm having the same problem with the latest r06 Android SDK and using Java SDK 1.6.0_21 (C:\Program Files\Java\jdk1.6.0_21) and the latest Eclipse updates on my Windows 7 64-bit system. It is a lot worse than it was in the past (on the same PC) with older SDKs. I use Eclipse SDK 3.6.0, build id I20

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

2010-08-03 Thread parul
now i've changed implementation as i came to know that we can access accounts using AccountManager Therefore i'm using this code: but this is also not giving any output not even exception. AccountManager accountManager = (AccountManager)mContext.getSystemService(Context.ACCOUNT_SERVICE); android.a

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 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 date very quickly wi

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

2010-08-02 Thread brucko
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 date very quickly with Android. Geoff -- You received this message because y

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

2010-08-02 Thread gdonald
On Aug 2, 4:37 pm, "Roman N (Google Employee)" wrote: > Android questions:http://stackoverflow.com/questions/tagged/android People post on this list because they want to help beginners. People post on stackoverflow for points and rankings, not necessarily to help beginners. I've gotten so many

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 b

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

2010-08-02 Thread Wall-E
Oh, and I do add the following permission: -- 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, s

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

2010-08-02 Thread infero
try this: private File getFile( String folder, String filename ) { // make sure the directory exists on the sd card File appRoot = new File( Environment.getExternalStorageDirectory(), ); File fileRoot = new File( appRoot, folder ); if( !fileRoot.exists() &&

[android-beginners] Re: Beagleboard Rev C4 Android Porting Efforts

2010-08-02 Thread RichardC
Try asking in http://groups.google.com/group/android-porting On Aug 2, 8:25 am, Tech Talk wrote: > Hi All, > >   I am porting Android on Beagle-board Rev C4 OMAP 3530. > >   Can any provide me guidelines to port Android, I checked for Emblinux for > Android porting from where I have downloaded A

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

2010-08-01 Thread Bret Foreman
> Now that wireless companies are moving to metered data plans, I would be > very annoyed if I found that the initial install of an app required a > network connection to download an undetermined amount of data. If anyone > does this, they should make sure that they tell the user how much data > is

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 i

[android-beginners] Re: second activity error onClick package is duplicating in intent line

2010-08-01 Thread Dean-O
OMG man that is unreal. Thanks for clearing that up. On Aug 1, 9:54 am, RichardC wrote: > You have nested your second activity inside your 1st activity inthe > manifest. Change the lines > > from: >           > >         > > to: >         > >         > > and I should now work > > On Aug

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 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 the S3 objects and

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

2010-08-01 Thread Bret Foreman
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 is that initial load data should come from an

[android-beginners] Re: second activity error onClick package is duplicating in intent line

2010-08-01 Thread RichardC
You have nested your second activity inside your 1st activity inthe manifest. Change the lines from: to: and I should now work On Aug 1, 2:28 pm, Dean Rochester wrote: > I am trying to create a two activity test application using eclipse. > > I have bee

[android-beginners] Re: Default Permission with Eclipse ?

2010-08-01 Thread RichardC
Some new premission were introduced in Android v1.6 (API level 4). In your project if you are targeting Android v1.5 (API level 3) or earlier these permissions will automatically get added to your APK. To fix this target Android v1.6 (API level 4) and add To your manifest. Your APK w

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

2010-07-31 Thread Mark Murphy
Sorry for the delay in responding. On Fri, Jul 30, 2010 at 10:01 PM, calmchess 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. -- Mark Murphy (a Commons

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

2010-07-31 Thread Bret Foreman
Yeah, I thought about that. The two app solution is certainly clunky, though, especially when it's such a common problem. I think an S3 connection would be easier to implement, and certainly easier for the user. > I've seen several dictionary apps that include the data in an app that > you downlo

[android-beginners] Re: I joined in a match on mobile app developing and i need an idea on GPS

2010-07-31 Thread cellurl
do altitude. On Jul 31, 9:36 am, Robert Lin wrote: > I joined in a match on mobile app developing and i wanna design an app > based on GPS. But what exactly kind of app is the best? do u have > ideas friends? -- You received this message because you are subscribed to the Google Groups "Android

[android-beginners] Re: Cannot pass Byte Array using Intents (help!)

2010-07-31 Thread Arascii
Same crashing problem: Camera.PictureCallback mPictureCallback = new Camera.PictureCallback() { public void onPictureTaken(byte[] data, Camera camera) { startImageProcess(data); } }; public void startImageProcess(byte[] data)

[android-beginners] Re: Cannot pass Byte Array using Intents (help!)

2010-07-31 Thread RichardC
You added a Bundle to the Intent so you should get a Bundle from the the Intent and then get the array from the Bundle. put: Intent putExtra(String name, Bundle value) get: Bundle getExtras() or put: Intent putExtra(String name, byte[] value) get: byte[] getByteArrayExtra(Str

[android-beginners] Re: I joined in a match on mobile app developing and i need an idea on GPS

2010-07-31 Thread Bret Foreman
The really interesting apps are those that combine two or more sensors. How about using the accelerometer along with GPS to measure how many calories someone burns jogging or walking? The GPS can give you distance and the acceleration values can be filtered to detect gait or number of steps. If the

[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] 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] 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

[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

[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] 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

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

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

  1   2   3   4   5   6   7   8   9   10   >