[android-beginners] access resource strings from non-android classes?

2009-08-29 Thread Jeffrey Blattman




to access resource strings from android code, i can call
getResources().getString(R.string). however, what if i am in a
class that doesn't extend Context? i suppose i can pass the Context in,
but i'd rather not pollute the non-andoid classes.

is there a static accessor for resource strings?

-- 





[android-beginners] How do I keep an application alive?

2009-08-29 Thread cellurl

How do I keep an application alive?
e.g. keep the screen bright and everything displays instantly?

I have tried these to no avail...


  pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
  wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, TAG);
  wl.acquire();

  System.setProperty(DIM_SCREEN,0);


Its ok if I waste battery. (my application is tethered).

Thanks
jp
code here
http://code.google.com/p/speedlimit/source/browse/trunk/Speedlimit/src/org/speedlimit/Speedlimit.java

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: access resource strings from non-android classes?

2009-08-29 Thread Mark Murphy

Jeffrey Blattman wrote:
 to access resource strings from android code, i can call
 getResources().getString(R.string). however, what if i am in a class
 that doesn't extend Context? i suppose i can pass the Context in, but
 i'd rather not pollute the non-andoid classes.
 
 is there a static accessor for resource strings?

Not that I am aware of. You need the Context to know where the resources
live, AFAIK.

You can pass in the Resources object from getResources() if you don't
want to pass in the Context for some reason.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android 1.5 Programming Books: http://commonsware.com/books.html

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Android not found

2009-08-29 Thread Will

I'm just starting to work with Android.  I downloaded the sdk onto my
mac.  From the tools folder inside the unpacked file in terminal I'm
trying to create an AVD with the command  android create avd  Here
is what I get out:

willsetchell$ pwd
  /Users/willsetchell/Downloads/android-sdk-mac_x86-1.5_r3/tools

willsetchell$ ls
Jet android dmtracedump hierarchyviewer mksdcard
NOTICE.txt  apkbuilder  draw9patch  hprof-conv  sqlite3
adb ddmsemulatorlib traceview

willsetchell$ android create avd
-bash: android: command not found

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] intent filter to know when user change the volume

2009-08-29 Thread Michael Krebs

hello, i want to develop an application who allow the user to change
the brightness of the screen when he change the volume (in same time
he can choose volume or brightness in all application). In src of
class AudioManager i've see this :

 /**
 * @hide Broadcast intent when the volume for a particular stream
type changes.
 * Includes the stream and the new volume
 *
 * @see #EXTRA_VOLUME_STREAM_TYPE
 * @see #EXTRA_VOLUME_STREAM_VALUE
 */
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String VOLUME_CHANGED_ACTION =
android.media.VOLUME_CHANGED_ACTION;



so i create a Broadcast Receiver to capture this event but nothing.
Anybody know how i can do this ? thanks.

PS : excuse me for my bad english but i'm french.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] touch back buttun

2009-08-29 Thread servet

hi everyone

android very good os. i did research many times about touch back
button. im not successful.
i dont want to use hardware back button. beacuse its not easy and fast
when u using phone with touch.
i want to know . is there any app or widget to back?

many many thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Beginner problem with TabHost

2009-08-29 Thread nishiyath NAZER
i dont want to join in this group.so please remove me from this group.

On 8/13/09, Tuftux tuft.ouve...@gmail.com wrote:


 Hey guys !
 I'm quite new to Android. I followed the official TabHost tuto but I
 modified the XML template to display a LinearLayout wich contain a
 textView instead of a simple TextView (much easeier to handle when
 there's more than a simple text in a tab). But when I start the
 program it crashes. Here's the XML Layout :
 ?xml version=1.0 encoding=utf-8?
 TabHost
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent 
LinearLayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent 
TabWidget
android:id=@android:id/tabs
android:layout_width=fill_parent
android:layout_height=wrap_content /
FrameLayout
android:id=@android:id/tabcontent
android:layout_width=fill_parent
android:layout_height=fill_parent
 
LinearLayout

 android:orientation=vertical

 android:id=@+id/tab1

 android:layout_width=fill_parent

 android:layout_height=fill_parent

ImageView

 android:src=@drawable/header

 android:layout_width=wrap_content

 android:layout_height=wrap_content /


 TextView

 android:layout_width=fill_parent

 android:layout_height=wrap_content

 android:text=@string/HelloOuverta/
/LinearLayout

LinearLayout

 android:orientation=vertical

 android:id=@+id/tab2

 android:layout_width=fill_parent

 android:layout_height=fill_parent 

TextView

 android:layout_width=fill_parent

 android:layout_height=wrap_content

 android:text=@string/Idea /



/LinearLayout
/FrameLayout
/LinearLayout
 /TabHost

 Many thanks

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Set up Simple

2009-08-29 Thread black gin

Simple is new basic like android programming language.
I red instructions on Simple google code page, but they are not step
by step
Does someone know how to set up Simple build environment?
I'm on linux

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to exit App without closing the Emulator Window

2009-08-29 Thread Mimi

The first bringing up of the Emulator was painfully slow (3 min). I
ran an App. It ended but the AVD was still displaying the last image.
I ran the App again and got:

emulator: ERROR: the user data image is used by another emulator.
aborting

I had to close the Emulator Window (Vista) in order to rerun the App.
Because of this, I have to reload/relaunch the Emulator every single
time I use it.

Also, when I press the Power Off button, it was in shutting
down... mode forever and I had to close the Emulator Window to get
out.

Please HELP! I'd greatly appreciate it.

Thanks...Mimi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] A useful Group

2009-08-29 Thread Sasi Kumar

join this group it is very useful for you


http://groups.google.com/group/mobile-application-developers

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] eclipse plug-in installation problem

2009-08-29 Thread pro

Hi,

I'm trying to install the plug-in on eclipse for fedora 11.

Here is the version --

Fedora Eclipse Platform

Version: 3.4.2
Based on build id:  20090211-1700

(c) Copyright Eclipse contributors and others 2000, 2009.  All rights
reserved.
Visit http://sources.redhat.com/eclipse


I'm seeing the following problem --- Any help is much appreciated

Cannot complete the request.  See the details.
Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
0.9.1.v200905011822-1621] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.core/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
0.9.1.v200905011822-1621] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.core/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
0.9.1.v200905011822-1621] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.ui/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
0.9.1.v200905011822-1621] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.ui/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
0.9.1.v200905011822-1621] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.ui/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
0.9.1.v200905011822-1621] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.ui/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
0.9.1.v200905011822-1621] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.core/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
0.9.1.v200905011822-1621] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.core/0.0.0

Thanks
pro

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Application permissions to change time/date

2009-08-29 Thread debuti

I read at android api


public static boolean setCurrentTimeMillis (long millis)

Sets the current wall time, in milliseconds. Requires the calling
process to have appropriate permissions.
Returns

* if the clock was successfully set to the specified time.


which are the permissions, who do i manage them?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Android-Beginners Query : How to get the full path of the files under res folder of an Android App?

2009-08-29 Thread Mimi Tam
First time doing HelloAndroid, I could not get the Emulator to run newly
build Apps from within Eclipse when emulator is already up and running and I
had to relaunch the Emulator every time. I tried different things but to no
avail. Please help.

I am running Android SDK 1.5 r3, latest DDMS and Eclipse Galileo in Windows
Vista.

Any ideas will be greatly appreciated.

THANKS.

On Thu, Aug 27, 2009 at 7:31 PM, Israel Ferrer ral...@gmail.com wrote:

 The images goes into the apk.

 You have to put the images in the drawable folder from resource and if you
 want to use it:

 Drawable image= getResources().getDrawable(R.drawable.id);
 or
 Bitmap b = BitmapFactory.decodeResource(getResources(),R.drawable.id);

 El 27/08/2009, a las 23:02, Justin Anderson escribió:

 I may be wrong but I don't think you need the full path of where they are
 on the device...  You should be able to reference them using the R class.

 On Thu, Aug 27, 2009 at 6:11 AM, Latha Shivanna latha...@gmail.comwrote:


 Hii All,

 In my application, I have some image files under res\drawable folder.

 My problems are in getting their full pathname.

 Can anybody please answer my following queries?

 1. Do these files go as a part of apk?
 2. If so where do they actually stay on device? Is it
 /data/data/(package)/files ?
 3. If I have a function which needs the full path of these image
 files, how should I mention it ?
 4. Or do i need to keep my image files under asset? If so, what is
 the full path of these images on the device?

 Please do suggest. Would appreciate your help!

 Thanks
 Latha








 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Procedure to obtain Google Maps API key

2009-08-29 Thread chals

Hi,

MD5 Fingerprint of the SDK Debug Certificate works fine in my maps.
When i tried to run my maps using self signed certificate after obtain
Maps API key, my map's is not working.

Anybody tell me how to run maps using self sign certificate instead of
debug certificate.



On Aug 13, 5:27 pm, Mark Murphy mmur...@commonsware.com wrote:
 Maxood wrote:
  Could someone guide me step by step on how to obtain a Google Maps API
  key. I am developing a simple Google Maps app for the first time.

 The full instructions are here:

 http://code.google.com/android/add-ons/google-apis/mapkey.html

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, $35/Year

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] draw textview

2009-08-29 Thread Sasi Kumar

please give some suggestion for me...

I want to draw text in my text view

my class is extended with Activity.

textview t1;
textview t2;

t1.settext(sun 29 Sug 2009);
t2.settext(tue 29 Sug 2009);

see here sun and tue both are having same length words but it is
moving.

so when i'm showing it is like

sun 29 Sug 2009
tue 29 Sug 2009

i want it in straight line like

sun 29 Sug 2009
tue  29 Sug 2009

now i have adjused with giving space.
but i did not want to give space.

so by drawing we can get these correctly in x and y positions.

Please give idea for these to draw in activity extended class.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: eclipse error: missing required Java project

2009-08-29 Thread zyy571137





在2009-08-25,deki dcec...@gmail.com 写道:

hi list, beginner here.

I am getting 3 eclipse errors:

Project 'foo' is missing required Java project: 'bar'
The project cannot be built until build path errors are resolved
Conversion to Dalvik format failed with error 1

anyone seen this?

Thanks

Dejan



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Taking picture with camera and getting content uri

2009-08-29 Thread Matija

Hi,
how can start taking picture with camera and in dialog result get uri
for that picture.

I did following:

... for audio
Intent intent = new Intent
(android.provider.MediaStore.RECORD_SOUND);
startActivityForResult(intent, 2);

... for picture
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 3);
...
@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
super.onActivityResult(requestCode, resultCode, data);

String result = ;
switch (requestCode){
case 2:
if (resultCode == Activity.RESULT_OK){
result = data.toURI();
// FOR AUDIO I DID GET CONTENT URI AND IT EXISTS ON
SDCARD
}
break;
case 3:
if (resultCode == Activity.RESULT_OK){
 // HERE I WOULD LIKE TO GET CONTENT URI FOR PICTURE
AND I CAN'T FIND IT ANYWHERE
}
break;
}
}

I have noticed that in extras there is some Parcel object but I don't
know how to use it?

With
[
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File
(Environment.getExternalStorageDirectory(), path)));
]
before starting activity I can get picture but I need to set path and
I don't know how to find what is its content uri ?!

Can anybody help ?

Thanks, MATijA.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] problem with Hello, Gallery R.styleable not resolve

2009-08-29 Thread steve

I've been working through the Hello,Views examples.  They are great
resource - thanks to those that created them.

There is a problem with the setiton on the example using
android.R.sytleable

public ImageAdapter(Context c) {
mContext = c;
TypedArray a = obtainStyledAttributes
(android.R.styleable.Theme);
mGalleryItemBackground = a.getResourceId(
android.R.styleable.Theme_galleryItemBackground, 0);
a.recycle();
}

Eclipse reports that R.styleable cannot be resolved

There are lots of messages on the web about the problem.  Finally I
found one that reported android.R.styleable. is no longer supported in
sdk 1.5

http://mac.softpedia.com/progChangelog/Google-Android-SDK-Changelog-31208.html

If this is officially true, it would really be helpful to people
trying to learn Android programming to have some official notification
in the example and a revised workaround approach.  Otherwise a lot of
people will be wasting a lot of time.

thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Downloading files from the browser

2009-08-29 Thread gladys anne

Hi all, I wonder if android supports downloading all types of files
directly from the browser? If not, then (1) what type of files does it
support?
Also, (2) where do my downloaded files go? I just tried saving a
picture, and it went to Pictures, what about the others?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Scheduler or cron in android

2009-08-29 Thread debuti

Is there a way to set up a cron like task to do some background stuff?
That would be awesome, anyway, if there isnt, is there someway to
initialize a program at boottime (that schedules itself)?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Hello Tutorials - Gallery Example

2009-08-29 Thread noeuli

Thanks for all guys.
This bug-fix codes work good!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Is using google maps driving direction legal for android app for ADC II?

2009-08-29 Thread -v-

Hi,
Is it legal to use the driving directions obtained from google via
json in an android app (which I plan to submit to ADCII?)

They have deprecated com.google.googlenav the package I guess...dont
know why!


Do I need to get some sort of key to use their maps direction
legally?


-v-


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] R.java (generated File)

2009-08-29 Thread ConquerWorm

Hey,

I am wondering if someone can explain this file to me and how it
works. See I have created a very simple project that is suppose to
draw a Background image to the screen. I have created two files,
FirstTryActivity and FirstTryView.

So Here is the line of code that is causing me problems:

mFirstTryView = (FirstTryView)findViewById(R.id.FirstTryView);

R.id.FirstTryView doesn't exist. R didnt create and id for my
FirstTryView and so I am wondering how I can get it to create it. Is
there a line of code that creates it that I am missing or did I add a
file to the project wrong?

I found that with images you just need the image to be in the drawable
folder and it adds it, do I need something similar for my code files?

Thanks for your Help
CW

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Change system time

2009-08-29 Thread debuti

Hi everyone!

I'm looking forward to code a ntp application for android. The issue
is that i dont know how to achieve this with the latest api, i dont
know how to change/set the current phone time/date.

Any suggestions?

Thanks dudes.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] using java.sql instead of android.database

2009-08-29 Thread tetron

Can I use the standard java.sql API to query a sqlite database on
android?  I am working on an app that shares some code between the
client side (android) and server side (apache tomcat servlet) and I am
puzzled why the android documentation includes java.sql but no
information on how to use it to access android database with it.

Thanks,
Pete

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] ImageView appearing above soft keyboard

2009-08-29 Thread MobileDev

Hi,

We're using a bunch of ImageView windows in an application using SDK
1.5 and when the soft keyboard window appears the ImageView windows
are appearing ontop of it, thus blocking out some of the letters on
the keyboard.

When creating the LayoutParams we're only using the following:
WindowManager.LayoutParams.TYPE_APPLICATION,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE

It seems like there should be something in the WindowManager to
configure this but I am unable to find it.

Any suggestions?
Thanks!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] unsubscribe me

2009-08-29 Thread baskakov
Please unsubscribe me from this group!I permanently fail to achieve this on
my own because my messages to `unsubscribe` address are disregarded

unsubscribeInkorgenX
**baskakovunsubscribe
14.11 (8 timmar sedan)
**
Svara

Mail Delivery Subsystem till mig
visa information 14.11 (8 timmar sedan)
This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

android-beginners-unsubscr...@googlegroups.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient
domain. We recommend contacting the other email provider for further
information about the cause of this error. The error that the other server
returned was: 550 550-5.1.1 The email account that you tried to reach does
not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596
14si99312bwz.5
(state 14).

  - Original message -

-- 
Bästa hälsningar
Veniamin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] eclipse plug-in installation problem

2009-08-29 Thread pro

Never mind, activating all the ( brute force) the sites, makes the
problem go away.

thanks
-pro

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Configure my Account without G1

2009-08-29 Thread Winston Shines
Hola Jose,

There is a web site called cell phone hacks.   In case you have been there
already let me know otherwise when I find I will get you the website and
there may be someone there who knows, and I will do some research also.
Take care...

Mr. Winston Shines
Principal Consultant
Maximillian Bryan  Marcell Technologies Internationale LLC
http://mbmconsulting.blogspot.com
http://mbmwinstonshines.books.officelive.com
mbmwindowsser...@google.com

On Fri, Aug 28, 2009 at 1:40 AM, Jose Ayerdis joseayer...@gmail.com wrote:

 Is there any way to configure my account at start of my HTC Dream G1
 without having G3 i do have wireless but seems odd does not detec it and i
 cant access the settings to configure it ...

 any ideas ?

 thank you

 --
 Atte

 [[Jose Luis Ayerdis Espinoza]]
 http://blognecronet.blogspot.com

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Hi friends

2009-08-29 Thread hansika

Hi Friends,
I have send this msg for more flexible connection between friends,
Make a
huge circle by connecting friends, get improvement along with that.

Thanks
Regards,
Hansika.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: repo init error

2009-08-29 Thread catch222jp

Please tell me your developing env..
If there is any proxy server, you may have to use corkscrew, and
change proxy setting...

On 8月25日, 午前11:01, richard007.lin richard007@gmail.com wrote:
 Dear all,
     I've just installed repo successfully. But I got an error when using repo 
 init -u git://android.git.kernel.org/platform/mainfest.git . Here is the 
 error output:
 Traceback (most recent call last):
   File /home/android/mydroid/.repo/repo/main.py, line 235, in module
     _Main(sys.argv[1:])
   File /home/android/mydroid/.repo/repo/main.py, line 217, in _Main
     repo._Run(argv)
   File /home/android/mydroid/.repo/repo/main.py, line 123, in _Run
     cmd.Execute(copts, cargs)
   File /home/android/mydroid/.repo/repo/subcmds/init.py, line 218, in 
 Execute
     self._SyncManifest(opt)
   File /home/android/mydroid/.repo/repo/subcmds/init.py, line 110, in 
 _SyncManifest
     m.PreSync()
   File /home/android/mydroid/.repo/repo/project.py, line 1440, in PreSync
     cb = self.CurrentBranch
   File /home/android/mydroid/.repo/repo/project.py, line 271, in 
 CurrentBranch
     b = self.work_git.GetHead()
   File /home/android/mydroid/.repo/repo/project.py, line 1226, in GetHead
     fd = open(path, 'rb')
 IOError: [Errno 2] No such file or directory: 
 '/home/android/mydroid/.repo/manifests/.git/HEAD'

 what's wroing? can anyone give some clues?Thanks!

 2009-08-25

 richard007.lin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Why does using People._COUNT cause IllegalArgumentException to be thrown?

2009-08-29 Thread 장영환

Hi.
I tried with your code, it works.
Kindly check two things.

1. You should over 23 contacts, because you write Uri myPerson =
ContentUris.withAppendedId( People.CONTENT_URI, 23 );

2. You should write permission code in AndroidManifest.xml like below.

uses-permission android:name=android.permission.READ_CONTACTS /
application android:icon=@drawable/icon android:label=@string/app_name
activity android:name=.ContentProviderExamples
  android:label=@string/app_name
intent-filter

Have a good day!!

2009/8/26 Pankaj Godbole panka...@gmail.com

 Hello,

 I am learning about Content Providers, and tried the example from the 
 official Android tutorial on the topic. Please see the code below:


  

 package com.example.devguide;

 import android.app.Activity;
 import android.content.ContentUris;
 import android.database.Cursor;
 import android.net.Uri;
 import android.os.Bundle;
 import android.provider.Contacts.People;
 import android.util.Log;


 public class ContentProviderExamples extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     setContentView(R.layout.main);

     /* Use the ContentUris method to produce the base URI
  * for the contact with _ID == 23. */
     Uri myPerson = ContentUris.withAppendedId( People.CONTENT_URI, 23 );

     /* Alternatively, use the Uri method to produce the base URI. */
     myPerson = Uri.withAppendedPath( People.CONTENT_URI, 23 );

     /* Query this particular record. */
     Cursor c = managedQuery( myPerson, null, null, null, null );

     /* Form an array specifying which columns to return. */
     String[] projection = new String[] { People._ID,
  //People._COUNT, //throws 
 IllegalArgumentException
  People.NAME,
  People.NUMBER };
     Log.i( CPE, projection[] =  + projection );

     /* Get the base URI for the People table in the Contacts content 
 provider. */
     Uri contacts = People.CONTENT_URI;

     /* Construct the query. */
     Cursor managedCursor = managedQuery( contacts,
  projection,
  null,
  null,
  People.NAME +  ASC );

     showColumnData( managedCursor );

     Log.i( CPE, End of current code );

     }

     private void showColumnData( Cursor c ) {
     if ( c.moveToFirst() ) {
     String name;
     String phoneNumber;
     String imagePath;
     int nameColumn = c.getColumnIndex( People.NAME );
     int phoneColumn = c.getColumnIndex( People.NUMBER );

     do {
     /* Obtain the field values. */
     name = c.getString( nameColumn );
     phoneNumber = c.getString( phoneColumn );
     Log.d( CPE, name =  + name + , phone =  + phoneNumber );

     } while ( c.moveToNext() );
     }
     }
 }

 However, the example given did not work, because calling managedQuery with 
 the array projection as one of the arguments resulted in a 
 IllegalArgumentException (java.lang.IllegalArgumentException). Android says 
 that the column _count which is the value of the element People._COUNT in 
 array projection is invalid. Can anyone explain to me the reason for this 
 exception, even though the names of all the columns are as per the API 
 specification?

 Please see the output of LogCat below:

 08-26 12:06:20.330: ERROR/AndroidRuntime(1112): java.lang.RuntimeException: 
 Unable to start activity 
 ComponentInfo{com.example.devguide/com.example.devguide.ContentProviderExamples}:
  java.lang.IllegalArgumentException: Invalid column _count

 Thanks,
 Pankaj Godbole,



 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Install app on a device?

2009-08-29 Thread aamod rao

Hi Michael
I have a similar problem .. but the difference here is that These guys
at HTC have not installed Android magic on my phone at all.. they say
that android market is is not available in the India ...they do not
have a server here.. now i have an android phone HTC Magic with no
apps at all.???!!!i tried copying some APks which i
downloaded from some other site as well as sent to me by other android
users from other countries but i still cannot see it on the phone..
while it is visible o the SD card can u please tell me wt to do?

On Aug 26, 6:02 am, Michael Leung michaelchi...@gmail.com wrote:
 Yes, that is an  app calls AppsInstaller in the Android Market. It can do
 the job you want.
 I have written some instructions about this issue in my 
 blog.http://www.itblogs.info/index.php/2009/07/23/install-android-apps-fro...







 On Wed, Aug 26, 2009 at 10:08 AM, Yasser yassersiddi...@gmail.com wrote:

  Hi,

  I have HTC Magic and I want to install an android app (APK) on it.
  I did the following:
  1. connected phone to PC and then used HTC sync to synchronize with
  windows
  2. run adb install command

  For this I had to install and setup android SDK and HTC sync. Is there
  any simple way of installing an app for a normal user, like copying it
  to SD card and then selecting it to install?

  Thanks
  Yasser

 --
 Regards,
 Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How do you prevent media from restarting when you rotate an android phone

2009-08-29 Thread The White Rabbit

Hi,

I am trying to make a game for android.  But when I rotate the android
phone my background music restarts.  How do I prevent this?

Any help would be appreciated.
Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How can I grab all keys? (including ENTER key)

2009-08-29 Thread Marcin Baliniak

Hi,
I need to grab all keys in my application, but have a little problem
when I'm using soft keyboard I didn't get event when press ENTER key,
other keys generate event onDown/Up, but onKey event never occurs.

Here is full source code:

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnKeyListener;

public class keylogger extends Activity {

   View v;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.main);
v = (View)findViewById(R.id.View01);
v.setOnKeyListener( new OnKeyListener() {
 public boolean onKey(View v, int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
Log.d(test, onKey);
return false;
 }
  });
}

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
   // TODO Auto-generated method stub
   Log.d(test, onKeyDown);
   return super.onKeyDown(keyCode, event);
}

@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
   // TODO Auto-generated method stub
   Log.d(test, onKeyUp);
   return super.onKeyUp(keyCode, event);
}
}


--main.xml--
?xml version=1.0 encoding=utf-8?
LinearLayout android:id=@+id/LinearLayout01
android:layout_width=fill_parent
android:layout_height=fill_parent
xmlns:android=http://schemas.android.com/apk/res/android;

View android:id=@+id/View01
android:layout_width=wrap_content
android:layout_height=wrap_content
/View
/LinearLayout


Cheers,
Marcin.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Development Phone

2009-08-29 Thread Chris Stratton

On Aug 24, 9:09 am, Ran dahan...@gmail.com wrote:

 What is the benefit of working with ADP1 over the other Android
 phones ?

Just to expand on what others have said:

Cost seems comparable betwen a dev phone and a retail phone at full
retail or plan price + termination fee, so it's really more a of a
technical question.

Reasons for a dev phone

-sim unlocked (some such as tmobile may? do that if you pay full
retail or eventually on a plan)
-can change linux and system libraries
-can change pre-installed applications
-tmobile myfaves application sends periodic sms which costs money on
any other network

Reasons for _not_ getting a dev phone

-only one older dev phone model generally available at present
-dev phones can't buy paid applications from the market (including
your own)
-if you sell apps, you need to restrict yourself to the capabilities
of your users phones (and test on such a device!)
-various preinstalled proprietary applications missing (+/- depending
on your interest)

The not being able to change preinstalled applications is in my mind
the least anticipated, and most annoying, problem.  There are many
areas where very small decisions of questionable wisdom in default
applications really hamper the user experience (even in the using it
just to make calls sense), but these can't be very readily changed on
a retail phone, particularly the parts most closely involved in the
telephone functionality.

As of this moment, I believe most of the retail phones are probably
still shipping with an easily rooted linux kernel, but that probably
will get closed up (already fixed in google's tree) and they will be
limited until another hole is found.







--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Developing application in Android

2009-08-29 Thread Roman ( T-Mobile USA)

For sure you already found the following page

http://developer.android.com/index.html?utm_campaign=enutm_source=en-ha-na-us-bkutm_medium=ha

Download the Android SDK for your system (Windowsm, Linux or Mac)

I recommend to start playing around with the SDK. You find on the
Android SDK page information how to install and start developing a
HelloWord application which you can test on the emulator.

Of course if you are serious about Android programming get an Android
beginner book.

Most of your up coming beginner questions are answered somewhere on
this forum. But don't hesitate to reach out for help 

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 27, 9:42 am, blixs johannesla...@gmail.com wrote:
 Hi!!

 I am a programmingstudet at the Norwegian It-University. Now in the
 second year we have a huge proyect where we have to develope a product
 to a event. To do it best we have to make an mobile application in the
 Android Platform. I have worked with Java, and want to develope me in
 this area, but I don't have experiencie about Android. Therefor, I'm
 looking for help here, what can I use for make the application and if
 exist an API. Do I need to get an Android-cellphone to test if it
 work, or can I emulate it in the computer?

 Best regards!

 J
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Change system time

2009-08-29 Thread Roman ( T-Mobile USA)

Normally your phone gets the time information from your telephony
layer using NITZ. The Ril layer passes the time information up to the
higher level.

I am assuming that you cannot change the time settings as a normal
user.  You might be able to change the time using the date command as
root, but then you want to make sure that you block that the ril layer
passing up the time information received over the network.

I am not sure whether this is what you want to do 


--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On Aug 26, 10:50 pm, debuti deb...@gmail.com wrote:
 Hi everyone!

 I'm looking forward to code a ntp application for android. The issue
 is that i dont know how to achieve this with the latest api, i dont
 know how to change/set the current phone time/date.

 Any suggestions?

 Thanks dudes.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] The server does not accept apks signed with the debug certificate.

2009-08-29 Thread cellurl

I am trying to upload an app to the ADC-2.

http://market.android.com/adc/Home#EDIT_APPLICATION:

It says my .adk is wrong.

The server does not accept apks signed with the debug certificate.
Create a new certificate that is valid for at least 50 years.
The server requires that the certificate used to sign the apk be valid
until at least October 22, 2033. Create a new certificate.


Q: How do I fix this? I know how to run in eclipse in regular or
debug, but I can't figure out how to make eclipse build a release
version.

FYI, I created my .apk using eclipse-Export button.


Thanks for any help!

jim pruett

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: unsubscribe from this group

2009-08-29 Thread Romain Guy

Just go to http://groups.google.com/group/android-beginners?hl=enpli=1
(URL shown at the bottom of every email you send/receive) and click
Edit my Membership, then unsubscribe. No need to become rude and
demanding.

On Fri, Aug 28, 2009 at 11:49 AM, baskakovbaskakovea...@gmail.com wrote:
 Will anybody COMPETENT in this group PLEASE DO
 unsubscribe me from THIS group.
 This is really becoming very annoying.


 --
 Bästa hälsningar
 Veniamin

 




-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: The server does not accept apks signed with the debug certificate.

2009-08-29 Thread Mark Murphy

cellurl wrote:
 I am trying to upload an app to the ADC-2.
 
 http://market.android.com/adc/Home#EDIT_APPLICATION:
 
 It says my .adk is wrong.
 
 The server does not accept apks signed with the debug certificate.
 Create a new certificate that is valid for at least 50 years.
 The server requires that the certificate used to sign the apk be valid
 until at least October 22, 2033. Create a new certificate.
 
 
 Q: How do I fix this? I know how to run in eclipse in regular or
 debug, but I can't figure out how to make eclipse build a release
 version.
 
 FYI, I created my .apk using eclipse-Export button.

http://developer.android.com/guide/publishing/app-signing.html#ExportWizard

To create a signed .apk, right-click the project in the Package
Explorer and select Android Tools  Export Signed Application Package.

I don't use Eclipse personally, so I cannot get much deeper into the
explanation than the public docs.

As the section preceding the linked-to one points out, you can test an
APK to see what key it was signed with via:

jarsigner -verify -verbose -certs my_application.apk

If it has CN=Android Debug, it was signed with the debug key. If the CN
is your firm, it was probably signed with your production key.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: The server does not accept apks signed with the debug certificate.

2009-08-29 Thread cellurl

Thanks for that.
What I found was that I had 2 apk files
workspaces/app.apk
workspaces/app/bin/app.apk

I was uploading the bin one and instead I needed to upload the top
one.
It took it.
thanks
jp



On Aug 29, 3:52 pm, Mark Murphy mmur...@commonsware.com wrote:
 cellurl wrote:
  I am trying to upload an app to the ADC-2.

 http://market.android.com/adc/Home#EDIT_APPLICATION:

  It says my .adk is wrong.

  The server does not accept apks signed with the debug certificate.
  Create a new certificate that is valid for at least 50 years.
  The server requires that the certificate used to sign the apk be valid
  until at least October 22, 2033. Create a new certificate.

  Q: How do I fix this? I know how to run in eclipse in regular or
  debug, but I can't figure out how to make eclipse build a release
  version.

  FYI, I created my .apk using eclipse-Export button.

 http://developer.android.com/guide/publishing/app-signing.html#Export...

 To create a signed .apk, right-click the project in the Package
 Explorer and select Android Tools  Export Signed Application Package.

 I don't use Eclipse personally, so I cannot get much deeper into the
 explanation than the public docs.

 As the section preceding the linked-to one points out, you can test an
 APK to see what key it was signed with via:

 jarsigner -verify -verbose -certs my_application.apk

 If it has CN=Android Debug, it was signed with the debug key. If the CN
 is your firm, it was probably signed with your production key.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] When I hit a key I can't open the menu

2009-08-29 Thread Steeler

If I hit any key while my game runs, I can no longer open the built-in
menu by clicking the menu button (on the emulator), hitting f2, or
hitting page up... until I click on the screen on the emulator (not
the emulator window, but specifically the emulator's screen). Then I
can open the menu, and key events still work fine... except that they
block out the menu again until I click the screen.

Is this a known mistake, and if so is it a quick fix?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Mediaplay Problem

2009-08-29 Thread Nick Burton

Howdy all, this is a problem faced by an Android Australia group
member. Since we're just starting out I've reposted here to get him a
solution. Any help would be appreciated. Kind regards, Nick.

-- Forwarded message --

hey guys,

i got a bit a code in a resource utility class:
        static public void playSound(Context ctx, int resId) {

                try {
                        MediaPlayer mp = MediaPlayer.create(ctx,
resId);
                        mp.setOnErrorListener(mediaErrorListener);
                        mp.start();
                } catch (Exception e) {
                        Log.e(LOG_TAG, unable to play sound, e);
                }
        }

        static public class MediaErrorListener implements
MediaPlayer.OnErrorListener {
                @Override
                public boolean onError(MediaPlayer mp, int what, int
extra) {
                        Log.e(LOG_TAG, unable to play sound what:( +
what + ) extra:( +
extra + ));
                        return false;
                }
        }

its been working fine. but i just tried it on a long instructional mp3
file (10min)  7MB and it stops after 20sec.

any ideas?

rgds ash

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] OverLookingSomething??

2009-08-29 Thread Rc3375

Hi All,
I'm wondering if I'm overlooking something.  I too am new with
Android.  Finally got all software installed and the paths fixed.
Problem now is ECLIPSE(?) Is not generating the BUILD.xml file.  Am I
overlooking anything???  Thank you for your help..RC3375
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: When I hit a key I can't open the menu

2009-08-29 Thread Steeler

Never mind, fixed it. I had some issues with the return values on
onKeyUp and onKeyDown.

On Aug 29, 5:46 pm, Steeler cowboyd...@yahoo.com wrote:
 If I hit any key while my game runs, I can no longer open the built-in
 menu by clicking the menu button (on the emulator), hitting f2, or
 hitting page up... until I click on the screen on the emulator (not
 the emulator window, but specifically the emulator's screen). Then I
 can open the menu, and key events still work fine... except that they
 block out the menu again until I click the screen.

 Is this a known mistake, and if so is it a quick fix?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---