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

[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 uses-sdk

[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: activity android:name=.SecondScreenView/activity /activity to: /activity activity android:name=.SecondScreenView/activity and I should now work On Aug 1,

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

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

2010-07-29 Thread RichardC
In the file you linked above the class AccountManagerService is marked as @hide in the java doc - that means it's an internal class. Also there is no reference to AccountManagerService on the developer.android.com. Either of these should indicate to you that what you are trying to do is

[android-beginners] Re: internet connection on android emulator

2010-07-26 Thread RichardC
Windows XP, Emulator running 2.2 Click browser look at internet from an app needs uses-permission android:name=android.permission.INTERNET/uses- permission On Jul 26, 3:49 am, androidreamer anshu.sau...@gmail.com wrote: Is anyone here has successfully run internet on 2.2 froyo(on

[android-beginners] Re: generating http request from android phones

2010-07-23 Thread RichardC
http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html On Jul 23, 9:28 am, Emmen Farooq farooq.em...@gmail.com wrote: Hi all , I know this is a really stupid question , but I have made a tremendous effort , but in vague , so where do i read for the simplest

[android-beginners] Re: SQL

2010-07-10 Thread RichardC
You have one in the SDK: android\platforms\android-1.6\samples\NotePad and it is documented in an online tutorial: http://developer.android.com/resources/tutorials/notepad/index.html -- Richard On Jul 10, 7:06 am, Raul Martinez raul5...@gmail.com wrote: hey, i wanna create an app that connect

[android-beginners] Re: App installation

2010-07-10 Thread RichardC
Remember to turn on USB debugging on the phone -- Richard On Jul 10, 3:41 am, Mark H. Nichols code.pr...@gmail.com wrote: On Jul 7, 2010, at 6:52 PM, Varun Khanduja wrote: I asked a question yesterday about a application I am trying to make based on OCR and some other points. I tried to

[android-beginners] Re: Navigation bar in an application

2010-07-09 Thread RichardC
Two techniques can help, sub-class controls and layout fragments. You probably only need to use the 1st one if you navigation is dynamic. Create sub-classes for some or all of the controls in your navigation bar (which classes depends on your design). This lets you move the code for the

[android-beginners] Re: Calling localhost web service from emulator

2010-07-09 Thread RichardC
127.0.0.1 is the loopback (local address) for the emulator. 127.0.0.1 is the local system; so when you are on the emulator it is the emulator, when you are on your host it is the host. 127.0.0.1 can never cross a system boundary (for a given value of never). /Richard On Jul 9, 1:04 pm, NIK

[android-beginners] Re: Difference Between Two Times

2010-07-05 Thread RichardC
Quick and dirty, number of mins difference between 2 Date objects (note this can be negative) ... long minsDifference(Date testDate) { Date dateNow = new Date(); return (testDate.getTime() - dateNow.getTime()) / 1000; } There are lots of issues and corner cases with Dates and timezones so be

[android-beginners] Re: back button when in ListActivity causes runtime exception

2010-07-02 Thread RichardC
For the moment get rid of any try catch handlers (comment them all out). They are swallowing the exceptions and thefore we do not seeing a full stack trace. /Richard On Jul 2, 6:09 pm, Mark Murphy mmur...@commonsware.com wrote: Please see my answer for your other question for some thoughts on

[android-beginners] Re: Application still consumes battery even tough it is closed

2010-06-28 Thread RichardC
http://developer.android.com/intl/fr/guide/topics/fundamentals.html#lcycles On Jun 28, 7:49 pm, Flamechamp flamechamp1...@yahoo.com wrote: ermm... can someone show me or give me an URL that shows how to use the onDestroy, onPause or onStop?? I am really beginner and didn't understand how

[android-beginners] Re: Application still consumes battery even tough it is closed

2010-06-26 Thread RichardC
Why both onPause() and onStop()? Looking at the application lifecycle diagram http://developer.android.com/images/activity_lifecycle.png it's not possible to get to onStop() without going through onPause(). If however, you have found this not to be the case, I will have to change my programs

[android-beginners] Re: Problems with Google Groups?

2010-06-21 Thread RichardC
Had the same problem in Firefox, deleting the cookies for groups.google.* fixed it. Hope this helps /Richard On Jun 21, 7:15 pm, Greg Donald gdon...@gmail.com wrote: On Mon, Jun 21, 2010 at 12:43 PM, DonFrench dcfre...@gmail.com wrote: I just fired up an IE 8.0 instance and the problem does

[android-beginners] Re: Setting interval to set for service

2009-11-11 Thread RichardC
AlarmManager see: http://developer.android.com/reference/android/app/AlarmManager.html Also if you are waking the phone every 10mins to run your service you will really drain the battery as the phone takes a while to go back to sleep again. -- RichardC On Nov 6, 9:48 pm, sunitha sunitha

[android-beginners] Re: Edit a Contact

2009-11-11 Thread RichardC
On what - phone or emulator and version? -- RichardC On Nov 6, 5:20 pm, Raj rajesh.kamin...@gmail.com wrote: Hi I would like to edit a contact but I keep getting the message No Activity found to handle Intent { act=android.intent.action.EDIT dat=content://com.android.contacts/data/1

[android-beginners] Re: How to begin with android

2009-11-08 Thread RichardC
://groups.google.com/group/android-platform http://groups.google.com/group/android-porting -- RichardC On Nov 8, 7:23 am, Niamathullah sharief android...@gmail.com wrote: I have some doubts. From where we will get this android kernel part? is it nessary to learn java to work in android kernel part

[android-beginners] Re: modular programming (design pattern)

2009-11-08 Thread RichardC
Read all about Intents. Here are a few links to get you started: http://developer.android.com/guide/topics/fundamentals.html http://developer.android.com/guide/appendix/g-app-intents.html http://code.google.com/p/openintents/ -- RichardC On Nov 8, 10:50 am, Marton Kodok pentiu...@gmail.com

[android-beginners] Re: Very specific question about Foreground / Background tasks...

2009-10-30 Thread RichardC
Yes, and here is one page to get you started: http://developer.android.com/intl/fr/guide/topics/fundamentals.html -- RichardC On Oct 29, 2:24 pm, tob t...@sourcecode-llc.com wrote: Hi, I started down the road towards an iPhone app but was dismayed by so many things (e.g.  you do not have

[android-beginners] Re: What does the Home button do?

2009-10-28 Thread RichardC
. -- RicharDC On Oct 28, 7:04 pm, jbrohan jbro...@gmail.com wrote: I'm running into a problem that when I press Home in say the settings page of my app, it finishes OK but the next time I start it's back in settings. I'd really prefer it to start at the beginning! It looks from the trace

[android-beginners] Re: usage of technology

2009-10-27 Thread RichardC
Java SE 1.5 or 1.6 with the Andoid class libraries for full info please read http://developer.android.com/sdk/1.6_r1/index.html http://developer.android.com/sdk/1.6_r1/requirements.html -- RichardC On Oct 27, 4:11 am, sabs bsabare...@gmail.com wrote: Hi every body, I am developing

[android-beginners] Re: Taking Screenshots from Phone using Windows 7?

2009-10-27 Thread RichardC
Have you installed the USB drivers? Addon download after you have installed the Android SDK, just type android at a command prompt. -- RichardC On Oct 27, 2:53 am, Justin Anderson janderson@gmail.com wrote: Are you able to debug your app on the phone or is this broken as well? Thanks

[android-beginners] Re: Android and SQLite - setting up a db at install time

2009-10-27 Thread RichardC
/SQLiteOpenHelper.html#onCreate%28android.database.sqlite.SQLiteDatabase%29 -- RichardC On Oct 26, 9:33 pm, Froens fro...@gmail.com wrote: Hi group I am new to developing programs to the  Android framework. I've read the sample exercises (http://developer.android.com/guide/ tutorials/notepad/notepad

[android-beginners] Re: kiosk mode

2009-10-27 Thread RichardC
) then the platform group http://groups.google.com/group/android-platform or the porting group http://groups.google.com/group/android-porting may be able to offer you some help. -- RichardC On Oct 26, 9:54 pm, Enrique Tomas ultranoise...@gmail.com wrote: Hi all! I am developing an app that needs

[android-beginners] Re: Screen Off and Lock Notfication?

2009-10-27 Thread RichardC
Have a read about Services and Alarms -- RichardC On Oct 27, 1:52 am, Prabakar prabhu_mp...@yahoo.com wrote: Hello, I want to continue running my application when the backlight and screen goes off and lock. How do i find out whether the device screen goes off and lock from my application

[android-beginners] Re: Writing an app using android.speech.srec ... how to get to that code?

2009-10-27 Thread RichardC
there is NO guarantee that it will continue to work tomorrow. If you need to use the platform code then you will have to build your own device. -- RichardC On Oct 26, 4:46 pm, DulcetTone dulcett...@gmail.com wrote: I have the Android open source tree, and can even build within it my own voice dialer

[android-beginners] Re: Native Shared Lib

2009-10-27 Thread RichardC
Try asking in http://groups.google.com/group/android-ndk -- RichardC On Oct 26, 4:42 pm, Sanjay sanjai...@gmail.com wrote: Hi, I'm trying to create a shared lib written in c++. I followed all the steps which are recommended to create the shared lib and to access the native code in Android

[android-beginners] Re: Emulator permission problem

2009-10-27 Thread RichardC
If you are developing for 1.6 you will need the WRITE_EXTERNAL_STORAGE permission in your manifest. -- RichardC On Oct 27, 10:24 am, Tom tomir...@googlemail.com wrote: Anyone have any ideas? On 26 Oct, 13:09, Chaiyasit T chaiyasi...@gmail.com wrote: your problem would ge about internet

[android-beginners] Re: Is there any way to make changes to the files/raw resources in the raw/res folder?

2009-10-27 Thread RichardC
On a device you should concider the contents of your APK file to be read-only. Remember you signed the contents so any changes would invalidate the signature, also keeping them read-only saves space on the device. -- RichardC On Oct 27, 2:22 pm, launchpadtt christopher.yee...@gmail.com wrote

[android-beginners] Re:

2009-10-27 Thread RichardC
else. http://developer.android.com/reference/android/app/PendingIntent.html Lifecycle: http://developer.android.com/guide/topics/fundamentals.html#lcycles Now all you have to do is read the docs :) -- RichardC On Oct 27, 2:35 pm, saurabh sinha saurso...@gmail.com wrote: please tell me what

[android-beginners] Re: Multi-layout app [total beginner]

2009-10-27 Thread RichardC
There are lots (and lots) of examples doing this in the samples in the SDK. If you want to look at a smallish app have a look at the Notepad sample. -- RichardC On Oct 27, 2:11 pm, Sobert sok...@gmail.com wrote: Hi, I get a small problem here. I have a simple App, with two layout

[android-beginners] Re: How to begin with android

2009-10-27 Thread RichardC
that is not in the documented SDK. -- RichardC On Oct 27, 5:59 am, neha nskulkarn...@gmail.com wrote: Hi, I am new to android. I want to get the android source code,compile it and run it. I have read the instructions on the websitehttp://source.android.com/download but there a big list of requirements

[android-beginners] Re: Setup SQLite db at install time

2009-10-27 Thread RichardC
I have already answered you earlier (duplicate post) http://groups.google.com/group/android-beginners/browse_thread/thread/30f39bc30da6c5de# -- RichardC On Oct 27, 6:48 am, Froens fro...@gmail.com wrote: Hi group I am new to developing programs to the  Android framework. I've read

[android-beginners] Re: Resource files not found (or being compiled?)

2009-10-27 Thread RichardC
types. Sorry I can't be more help. -- RichardC On Oct 27, 10:01 am, Revenant revenant...@gmail.com wrote: This is probably a real basic problem.  I've been working on the tutorials, and everything had been going fine so far (well, had a few quirks, but I managed to solve them myself

[android-beginners] Re: Visual Studio Android Development

2009-10-27 Thread RichardC
switch to Ant (XML based make equivalent) as I have not yet found a way to automate the checkout, build, release cycle in Eclipse for larger multi-project applications. -- RichardC On Oct 27, 2:51 pm, BermudaLamb thoml...@gmail.com wrote: I spend my entire day in Visual Studio 2005 and 2008.  I

[android-beginners] Re: Android 2.0 SDK is here!

2009-10-27 Thread RichardC
Woot! On Oct 27, 4:45 pm, Xavier Ducrohet x...@android.com wrote: Hello everyone! We've just announced the Android 2.0 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-... If you already have the 1.6 SDK, note that you can simply use the SDK Manager to add Android

[android-beginners] Re: new'ing an Intent

2009-10-27 Thread RichardC
The this you are passing into new Intent is an anonymous derived class of View.OnClickListener not your derived Activity class WelcomeScreen. You will need to ask someone who knows more Java than I do how to get at this in your outer class. -- RichardC On Oct 27, 9:48 pm, tatman matt.raf

[android-beginners] Re: Issue with Android Debug Bridge

2009-10-26 Thread RichardC
If you enter the command adb devices what does it say and and what platform are you running on? -- RichardC On Oct 26, 2:44 pm, Maxood maqs...@salsoft.net wrote: Whenever i try to run ADB in shell mode, i receive the error: Device Not Found Please help

[android-beginners] Re: passing a fn thru SQLiteDatabase insert?

2009-10-23 Thread RichardC
. No attempt is made to convert NULL or blob values. -- RichardC On Oct 24, 1:12 am, Craig csab...@gmail.com wrote: I'm missing something here - here is a brief snippet showing what I'm trying to do, with db a SQLiteDatabase object:   ContentValues values = new ContentValues();   values.put(KEY_DATE

[android-beginners] Re: Trouble with a cursor

2009-10-22 Thread RichardC
back one parameter at a time and test each time. Hope this helps -- RichardC On Oct 22, 8:02 am, brucko geoff.bruck...@gmail.com wrote: Thanks, but I tried that earlier. moveToFirst() also calls count() and results in same error ... sigh On Oct 22, 5:08 pm, zhen guo mguoz...@gmail.com wrote

[android-beginners] Re: Error early in development

2009-10-22 Thread RichardC
What platform are you developing on? If Windows what at the environment variables HOMEDRIVE and HOMEPATH set to? -- RichardC On Oct 22, 2:09 am, hawksd20 hawks...@yahoo.com wrote: Does anyone know how to fix this? I've tried reinstalling and installing in different locations on my computer

[android-beginners] Re: Error early in development

2009-10-22 Thread RichardC
Did you open a command prompt and type set it should list about 2 pages of environment variables? You will need a response from someone using Windows 7 to see if it works for them I am still on XP. -- RichardC On Oct 22, 2:54 pm, hawksd20 hawks...@yahoo.com wrote: I am on Windows 7 and I

[android-beginners] Re: Database Retrieval in Android

2009-10-22 Thread RichardC
Notepad in samples android-sdk-windows-1.6_r1\platforms\android-1.6\samples\NotePad is a good example of using SQLite through a content provider. Hopefully someone else will come along with a simpler example. -- RichardC On Oct 22, 5:10 pm, Maxood maqs...@salsoft.net wrote: I need a simple

[android-beginners] Re: Android newbie development

2009-10-21 Thread RichardC
Visit http://groups.google.com/group/android-kernel -- RichardC On Oct 21, 10:44 am, Niamathullah sharief android...@gmail.com wrote: ok is it nessary to learn java to do android development?why?java is only the UI for android right? If i want to develop the android kernel part..what should

[android-beginners] Re: Is Android GPS more precise than the iPhone GPS?

2009-10-21 Thread RichardC
in a custom view. -- RichardC On Oct 21, 12:35 pm, jan.rigg...@grabarzundpartner.de jan.rigg...@grabarzundpartner.de wrote: Thanks for the info. Creating your own GPS calculations doesnt seem to be possible with the iPhone. Because of those API restrictions. Did I interpret your answer correctly

[android-beginners] Re: Is Android GPS more precise than the iPhone GPS?

2009-10-21 Thread RichardC
Source is at: http://code.google.com/p/trivial-android-apps/source/browse/gpswatch/src/com/apptude/android/trivial/gpswatch/GpsWatch.java Please note that this is play-pen code. -- RichardC On Oct 21, 1:24 pm, RichardC richard.crit...@googlemail.com wrote: Yes, I get frequent updates.  My

[android-beginners] Re: Needs help on debug

2009-10-20 Thread RichardC
With the emulator running (start it manually if you have to), what does adb devices show? -- RichardC On Oct 20, 6:38 am, Freeman Zhang pcman.zh...@gmail.com wrote: Hello, can anybody help me? 2009/10/19 Freeman Zhang pcman.zh...@gmail.com HI I'm a beginner on Android develop. When

[android-beginners] Re: Needs help on debug

2009-10-20 Thread RichardC
with a # are comments. My file only has the line: 127.0.0.1 localhost See also: http://groups.google.com/group/android-developers/browse_thread/thread/6c9bd1ce0e623b20/fa69d087980a3b2e?#fa69d087980a3b2e -- RichardC On Oct 20, 2:24 pm, Freeman Zhang pcman.zh...@gmail.com wrote: HI Thanks

[android-beginners] Re: Cannot install packages on new phone

2009-10-20 Thread RichardC
[menu] Settings About Phone Firmware version -- RichardC On Oct 20, 6:16 pm, Neilz neilhorn...@googlemail.com wrote: Hi. No, I've been developing in 1.5, I haven't got around to upgrading yet. But - how do I tell what the phone version is? On Oct 20, 5:47 pm, Jeffrey Blattman

[android-beginners] Re: Is Android GPS more precise than the iPhone GPS?

2009-10-20 Thread RichardC
is some form of windowed averaging (average of last n-fixes throwing away any fix which is too far away) to give you a more accurate position. How many fixes and how big your window should be is up to your application. -- RichardC On Oct 19, 10:08 am, jan.rigg...@grabarzundpartner.de jan.rigg

[android-beginners] Re: Using the android logo in a paid app

2009-10-19 Thread RichardC
http://www.android.com/branding.html -- RichardC On Oct 19, 3:33 am, jax jackma...@gmail.com wrote: Is it OK to use the Android logo in a paid application?  If not is it OK to use a modified version of the logo? --~--~-~--~~~---~--~~ You received this message

[android-beginners] Re: R class outside of activity

2009-10-18 Thread RichardC
Try this: http://developer.android.com/guide/topics/resources/index.html -- RichardC On Oct 18, 10:48 am, jax jackma...@gmail.com wrote: I have made a regular class that needs to use string from the R class. I have imported the R class into the activity and am able to access all

[android-beginners] Re: R class outside of activity

2009-10-18 Thread RichardC
The need to pass the context around is because your strings (and all resources) may be different for localization, layout, screen size etc. So accessing a string (resource) without an application context does not make sence. -- RichardC On Oct 18, 11:04 am, RichardC richard.crit

[android-beginners] Re: R class outside of activity

2009-10-18 Thread RichardC
hardware and allow application developers to support future devices not just translations. When resources can be dependant on the physical aspects of the device (as well as local etc) you will need a much larger class to carry around the necessary information. -- RichardC On Oct 18, 11:19 am, Jeffrey

[android-beginners] Re: Which phone to use for developer?

2009-10-16 Thread RichardC
mock locations Making sure the above are are all present will give you a phone suitable for development of Android applicatons. -- RichardC On Oct 15, 8:56 am, kengheng kengh...@mysql.cc wrote: Hi All, I would like to check which phone to use for the android development ? Thanks. -- Best

[android-beginners] Re: Can't get the altitude from Location.getAltitude()

2009-10-14 Thread RichardC
; . . . Just dropped the above code in my Gps test program and I am 228.0 meters above sea level. -- RichardC On Oct 14, 12:02 pm, cedcox ced...@gmail.com wrote: Same issue. does android manage altitude information ? did someone try on a real phone ? thx Cédric On 12 sep, 22:48, Ken

[android-beginners] Re: barcodeScanner

2009-10-13 Thread RichardC
communicating with a server. We currently have production-quality support for:... -- RichardC On Oct 13, 7:06 am, prasad NSRS prasad.9...@gmail.com wrote: u can use the open source  GOCR for making that and it is available in c++ code and it is working on linux platform with a gui tcl/tk jst go

[android-beginners] Re: Displaying a single oversized image + using zoom features

2009-10-10 Thread RichardC
, available memory is not that much? -- RichardC On Oct 10, 3:29 pm, Samuh samuh.va...@gmail.com wrote: caveat: I dont know the answer to your question;I would like to participate in this discussion though Here is my guess.. You can try extending a view, put the image on the canvas and then let

[android-beginners] Re: someone plz help me .. how to call built in camera app from my custom app ??

2009-10-08 Thread RichardC
In the SDK samples have a look at android-sdk-windows-1.6_r1\platforms\android-1.5\samples\ApiDemos\src \com\example\android\apis\graphics\CameraPreview.java On Oct 8, 10:43 am, wahib wahib.t...@gmail.com wrote: Hi !! I have a straightforward question. I just want to call and execute the

[android-beginners] Re: Socket client does not work with emulator

2009-10-08 Thread RichardC
the device to your PC. -- RichardC On Oct 8, 8:57 pm, Android_n00b nikhil...@gmail.com wrote: Hi, I am trying to create a connection between a server socket program written in C and an android client socket program. Now when I write a regular java client program such as: try