[android-beginners] Imageview and ArrayAdapter

2009-01-09 Thread Ivan Soto
Hello,

I'm having the following problem.
I'm trying to populate a ListView with the following:
twText = (ListView) findViewById(R.id.list_items);
ArrayAdapter twText_list = new
ArrayAdapter(this, R.layout.list_item, R.id.row_text2,
tw_text);
twText.setAdapter(twText_list);

and the list_item.xml is this one:


http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="wrap_content">




That works perfectly, but once I add an ImageView it crashes:


http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="wrap_content">





What I don't understand is that if I replace the ImageView with just another
TextView it works.

Any ideas? With an example preferably.. I'm really new on this.
Thanks in advance

--~--~-~--~~~---~--~~
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: Multiple EditText's in the same view

2009-01-09 Thread Eddie O'Hagan

MAIN.XML

http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>




MANIFEST

http://schemas.android.com/apk/res/android";
  package="com.android.perfecttip"
  android:versionCode="1"
  android:versionName="1.0.0">










not sure what part u wanna see. I don't rely know xml well.
--~--~-~--~~~---~--~~
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: Tracking data/hiding things in a list

2009-01-09 Thread Faber Fedor
On Fri, Jan 9, 2009 at 8:15 PM, Mark Murphy  wrote:

>
> Faber Fedor wrote:
> > How do I get rid of either passing the _id around or not displaying it?
>
> To not display it, don't put it in the list in the first place.


Well, if you're going to be unreasonable about it! :-)

I'm not quite sure how you're handling a double-click (double-clicks
> aren't that common in Androidland, AFAIK),


I'm not handling it; I just double-click in the emulator and it Just Works.
Maybe the second click is ignored?  I'll test it tomorrow.


> but most of the click-related
> callbacks have a "long id" parameter that should be the _id of the
> clicked-upon row from your Cursor.


Now *that's* magical! How does the callback know I have a long id and that
it's the _id on the SQLite table? If I change my SimpleCursorAdapter to, oh,
I don't know, an ArrayAdapter, do I have to change the parameters in my
OnClickItemList?

-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.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] Lock phone to control access

2009-01-09 Thread java.webline

Hi all,

I need to develop an application that allows parents to do following
in android phone

1. Allows parents to  "lock down" mobile phones
2. Enabling and disabling mobile internet access
3. Restricting calls to certain phone numbers
4. Banning calls to premium rate numbers

So my question here is,  Are above features possible to build in
android application?

Any reply is 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] Re: Multiple EditText's in the same view

2009-01-09 Thread Mark Murphy

Eddie O'Hagan wrote:
> basically I want to make a program where there are 3 things on the
> screen. 2 of which are EditTexts and 1 other that is just a display.
> 
> when I try to do this I just get one of my EditTexts taking up the
> whole screen.

If you want, post your layout XML for review and comments.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~-~--~~~---~--~~
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: Tracking data/hiding things in a list

2009-01-09 Thread Mark Murphy

Faber Fedor wrote:
> How do I get rid of either passing the _id around or not displaying it?

To not display it, don't put it in the list in the first place.

I'm not quite sure how you're handling a double-click (double-clicks
aren't that common in Androidland, AFAIK), but most of the click-related
callbacks have a "long id" parameter that should be the _id of the
clicked-upon row from your Cursor.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~-~--~~~---~--~~
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] Tracking data/hiding things in a list

2009-01-09 Thread Faber Fedor
So I've got my ContentProvider displaying data in a ListView via the
SimpleCursorAdapter. I can double-click on an item and bring up an Edit
Activity and save the information back to the database.  The way I do this
is by passing the _id around between functions/Activities/whatever.

That means, in my list, I see the _id and the name listed for each item.
That looks stoopid.  How do I get rid of either passing the _id around or
not displaying it?  I tried the following:

TextView myId = (TextView)findViewById(R.id._id);  // yes there is a
R.id_id
myId.setVisibility(8); // GONE

but that just caused a Null Pointer Exception.

-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.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] Re: Multiple EditText's in the same view

2009-01-09 Thread Eddie O'Hagan

basically I want to make a program where there are 3 things on the
screen. 2 of which are EditTexts and 1 other that is just a display.

when I try to do this I just get one of my EditTexts taking up the
whole screen.

On Jan 9, 3:52 pm, Mark Murphy  wrote:
> Eddie O'Hagan wrote:
> > I want to be able to have the user input numbers into 2 different
> > "text boxes" but not have the text box take up the whole screen.
>
> Specify android:layout_width and/or android:layout_height.
>
> > I tried resizing the "text box" but it had no effect because
> > apparently the default view uses all the space available.
>
> I have no idea what you mean by this.
>
> If you want, post your layout XML for review and comments.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android Training in Sweden --http://www.sotrium.com/training.php
--~--~-~--~~~---~--~~
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] Keyboard Input

2009-01-09 Thread Eddie O'Hagan

I'm not sure where to start but I want to find out how I can created
simple keyboard input.

Also when and where do the "onKeyDown" and "onKeyUp" methods get
called?
--~--~-~--~~~---~--~~
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: Multiple EditText's in the same view

2009-01-09 Thread Mark Murphy

Eddie O'Hagan wrote:
> I want to be able to have the user input numbers into 2 different
> "text boxes" but not have the text box take up the whole screen.

Specify android:layout_width and/or android:layout_height.

> I tried resizing the "text box" but it had no effect because
> apparently the default view uses all the space available.

I have no idea what you mean by this.

If you want, post your layout XML for review and comments.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~-~--~~~---~--~~
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 get Android default ringtone?

2009-01-09 Thread Hw3699

I need help on getting Android default ringtone. Please help.

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: Understanding ListView

2009-01-09 Thread Ivan Soto
Wow, that exactly what I was looking.

Thanks

On Fri, Jan 9, 2009 at 10:44 AM, Mark Murphy wrote:

>
> Ivan Soto wrote:
> > This is what I'm trying to achieve: Have a list and in each list item
> > have multiples elements.
> >
> > Have a list that
> >
> > file_row.xml is working if I do this:
> >  > xmlns:android="http://schemas.android.com/apk/res/android";
> > android:textAppearance="?android:attr/textAppearanceSmall"
> > android:layout_width="fill_parent"
> > android:layout_height="fill_parent"
> > android:text="TCaptionsmall"/>
> >
> > I want it to be
> > 
> > http://schemas.android.com/apk/res/android";
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content">
> >  > android:textAppearance="?android:attr/textAppearanceLarge"
> > android:layout_width="fill_parent"
> > android:layout_height="fill_parent"
> > android:layout_marginTop="8dip"
> > android:layout_marginBottom="8dip"
> > android:text="TCaption biig"/>
> >  > android:textAppearance="?android:attr/textAppearanceSmall"
> > android:layout_width="fill_parent"
> > android:layout_height="fill_parent"
> > android:text="TCaptionsmall"/>
> > 
>
> If you're using SimpleCursorAdapter, just provide both column IDs and
> both TextView IDs to the adapter constructor.
>
> If you're using something else, you will probably need to override
> getView() in the adapter to inflate the XML yourself. See my Fancy
> ListView series on AndroidGuys for details:
>
> http://androidguys.com/?s=fancy+listviews
>
> (forgive the formatting, and forgive that these examples were mostly for
> the older M5 SDK and may need some tweaks to work on the current SDK)
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
>
> >
>

--~--~-~--~~~---~--~~
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: Understanding ListView

2009-01-09 Thread Mark Murphy

Ivan Soto wrote:
> This is what I'm trying to achieve: Have a list and in each list item
> have multiples elements.
> 
> Have a list that
> 
> file_row.xml is working if I do this:
>  xmlns:android="http://schemas.android.com/apk/res/android";
> android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:text="TCaptionsmall"/>
> 
> I want it to be
> 
> http://schemas.android.com/apk/res/android";
> android:layout_width="wrap_content"
> android:layout_height="wrap_content">
>  android:textAppearance="?android:attr/textAppearanceLarge"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:layout_marginTop="8dip"
> android:layout_marginBottom="8dip"
> android:text="TCaption biig"/>
>  android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:text="TCaptionsmall"/>
> 

If you're using SimpleCursorAdapter, just provide both column IDs and
both TextView IDs to the adapter constructor.

If you're using something else, you will probably need to override
getView() in the adapter to inflate the XML yourself. See my Fancy
ListView series on AndroidGuys for details:

http://androidguys.com/?s=fancy+listviews

(forgive the formatting, and forgive that these examples were mostly for
the older M5 SDK and may need some tweaks to work on the current SDK)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

--~--~-~--~~~---~--~~
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: Understanding ListView

2009-01-09 Thread Ivan Soto
This is what I'm trying to achieve: Have a list and in each list item have
multiples elements.

Have a list that

file_row.xml is working if I do this:
http://schemas.android.com/apk/res/android";
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="TCaptionsmall"/>

I want it to be

http://schemas.android.com/apk/res/android";
android:layout_width="wrap_content"
android:layout_height="wrap_content">






On Fri, Jan 9, 2009 at 7:29 AM, Faber Fedor  wrote:

>
>
> On Wed, Jan 7, 2009 at 7:37 PM, Ivan  wrote:
>
>>
>>
>> If in file_row.xml I only put a TextView it works but how can I do to
>> add extra stuff to the list item?
>
>
> If I understand you, you would just add more items to the items()
> ArrayList.
>
>
>
> --
>
> Faber Fedor
> Cloud Computing New Jersey
> http://cloudcomputingnj.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] Re: Not able to kill process using destroy() method

2009-01-09 Thread H

then what't the right way to do it?.
can I kill processes that were not started by my own app?

On Jan 9, 4:06 am, "Justin (Google Employee)"  wrote:
> This isn't the proper way to run anything in Android, why are you
> doing this?
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Jan 8, 6:15 am, CodePupil  wrote:
>
> > I don't be able to destroy the process started by
> > process = Runtime.getRuntime().exec();
> > :
> > :
> > :
> > process.destroy()// it doesn't kill the process started above
>
> > Does anybody know why Its not working and how should I make it able to
> > work ?
>
> > Thanks in advance !
--~--~-~--~~~---~--~~
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] Multiple EditText's in the same view

2009-01-09 Thread Eddie O'Hagan

I want to be able to have the user input numbers into 2 different
"text boxes" but not have the text box take up the whole screen.

I tried resizing the "text box" but it had no effect because
apparently the default view uses all the space available.
--~--~-~--~~~---~--~~
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: No repository found at https://dl-ssl.google.com/android/eclipse/

2009-01-09 Thread Adam G.

Ok, just discovered that you can also install manually:
http://code.google.com/intl/de-DE/android/adt_download.html

On 9 Jan., 09:15, "Adam G."  wrote:
> The same from me. But not USA, nor UK. I am from Germay and sitting in
> the University. I find that very very strange. Because beside this I
> have never had problems to access any of Google's pages...
>
> I tried the trick with the UK proxy, but I couldn't find a free one :
> ( Will continue with the search!
>
> On 21 Dez. 2008, 09:28, EvanK  wrote:
>
> > I'm having the same problem (No repository found), and it's certainly
> > not filtering on the ISP side...I live in Texas, USA.  Not sure why
> > Google would be filtering traffic from Texas, but I used a UK proxy
> > and it worked fine.
--~--~-~--~~~---~--~~
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: send gps location through Eclipse and be nofified through LocationListener.onLocationChanged

2009-01-09 Thread Miroslav Slobodnik

Somebody know how to get it working?

On Jan 7, 3:15 pm, Miroslav Slobodnik 
wrote:
> Hi,
> yes I use Win XP SP3. Telnet way to seng goe command through geo fix
> is working. So the problem is in language to get it work inEclipse?
>
> On Jan 7, 11:19 am, Spinjev Giginsky 
> wrote:
>
> > Hi...
> > I believe the problem is the DDMS ineclipse.
> > Do you use windows XP? Than it is often written that your language
> > settings there must be english.
>
> > I got a result with telnet.
>
> > C:\>telnet localhost 5554
> > Android Console: type 'help' for a list of commands
> > OK
> > geo fix -82.411629 28.054553
> > OK
>
> > On 5 Jan., 13:54, Miroslav Slobodnik 
> > wrote:
>
> > > Hi,
> > > I have problem withgpsrelated task. I registered location updates,
> > > and then useEclipseview "Emulator Control" to sendGPSlocation, but
> > > method onLocationChanged is never called. Method onStatusChanged is
> > > called when I first click button "Send" inEclipse"Emulator Control".
> > > I do not know why? Is there problem with some permission or something
> > > like that?
>
> > > My permissions:
>
> > >          > > android:name="android.permission.ACCESS_MOCK_LOCATION"> > > permission>
> > >          > > android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"> > > uses-permission>
> > >          > > android:name="android.permission.ACCESS_FINE_LOCATION"> > > permission>
> > >          > > android:name="android.permission.ACCESS_COARSE_LOCATION"> > > permission>
>
> > > Code:
>
> > > LocationManager locationManager = (LocationManager)getSystemService
> > > (Context.LOCATION_SERVICE);
> > >                                         
> > > locationManager.requestLocationUpdates("gps", 0, 0, new
> > > StartJourneyListener(journeyId));
>
> > > inner class:
>
> > > private class StartJourneyListener implements LocationListener{
> > > ...
> > >    public void onLocationChanged(Location location){
> > >    }
> > > ...
>
> > > }
>
> > > Thank you in advance for replies.
--~--~-~--~~~---~--~~
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: Understanding ListView

2009-01-09 Thread Faber Fedor
On Wed, Jan 7, 2009 at 7:37 PM, Ivan  wrote:

>
>
> If in file_row.xml I only put a TextView it works but how can I do to
> add extra stuff to the list item?


If I understand you, you would just add more items to the items() ArrayList.




-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.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] Re: Error using graphics in XML-Based UI

2009-01-09 Thread Mark Murphy

coderguy89 wrote:
>android:layout_width="wrap_content"
>   android:layout_height="wrap_content"
>   android:src="@+drawable/eclipse"
> />

Do not use plus in android:src. It should be:

android:src="@drawable/eclipse"

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
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: Requests: doc/FAQ fix & addition to SDK samples

2009-01-09 Thread Mark Murphy

hoijui wrote:
> 2. samples should contain ant scripts
> I would like the samples shipped with the SDK to contain buil.xml
> files.
> I figured out an easy way to create them:
> (1) create a temporaty Activity with the activity creator
> (2) copy files to sample project folder (eg LunarLander)
> - build.xml
> - libs (empty folder)
> - default.properties
> (3) edit build.xml
> - 
> + 
> - 
> (4) create file build.properties, containing:
> "
> # This file is handmade
> 
> ant.project.name=LunarLander
> application-package=com.example.android.lunarlander
> 
> "

The easier solution is to run activitycreator, passing it the name of a
class that already exists:

activitycreator com.sample.this.class.is.in.the.app.Already

The activitycreator script will then just create the missing build.xml
file for you.

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
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 problem

2009-01-09 Thread Mark Murphy

lili wrote:
> Hi I am lili
> I use Eclipse  to write Android clock
> 
> I compiled eclipse the console when no error, but in the simulator is
> not running the results of the procedure, when I click on my simulator
> application name, there has been an error:
> 
>  the application clock (process com.test.clock) has stopped
> unexpectedly, please try again!

Check your error log (adb logcat, DDMS, or the Eclipse equivalent),
which should give you some indication of what is going wrong.

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
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: Google phone dev 1 keyboard issues

2009-01-09 Thread David Turner
if you're really only touching one of the keys, it definitely sounds like a
bad hardware issue
since this isn't expected to happen at all.

On Thu, Jan 8, 2009 at 8:21 PM, kmatzen  wrote:

>
> I have a quick question regarding the functionality of the keyboard on
> the unlocked developer version of the phone.  When we try to register
> it with a google account during activation, the top two rows of keys
> seem to get typed at the same time.  For example, pressing 'e' makes
> '3e' appear and pressing '3' also makes '3e' appear.  Other examples
> include: '56', 'i0', 'r4'.
>
> Is this a hardware issue?  We are unfamiliar with the interface so we
> do not know if this is expected behavior.
>
> >
>

--~--~-~--~~~---~--~~
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] running an package from source code in emulator

2009-01-09 Thread soumyaranjan

hello everybody,
Well i am a newbie to java and android, so please forgive any
stupidity.  Can we run a single package say Contacts in the Android
Emulator ?
The Contacts package obviously has a structure similar to that of any
Android projects,
but an attempt to import it and run on the eclipse generates multiple
errors.
My doubt is how can the problem of unresolved classes, objects, data
members etc be solved. And most elementarily can we run a single
Android package given in the source code on the Eclipse and debug it.
Best of regards
satpathy
--~--~-~--~~~---~--~~
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] build_problem

2009-01-09 Thread soumyaranjan

i followed the steps given in the following link,

http://source.android.com/download#TOC-Building-the-code

but while running make i get the follwing errors

~/ANDROID/source_code$ make


build/core/product_config.mk:230: WARNING: adding test OTA key
build/core/main.mk:177: implicitly installing apns-conf_sdk.xml

TARGET_PRODUCT=generic
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_OS=linux
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=TC3

target Java: Contacts (out/target/common/obj/APPS/
Contacts_intermediates/classes)
packages/apps/Contacts/src/com/android/contacts/R.java:10: duplicate
class: com.android.contacts.R
public final class R {
 ^
Note: packages/apps/Contacts/src/com/android/contacts/
RecentCallsListActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
make: *** [out/target/common/obj/APPS/Contacts_intermediates/
classes.jar] Error 41



kindly help me out with this
best of regards
satpathy

--~--~-~--~~~---~--~~
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: Post Bitmap over Http

2009-01-09 Thread mobilek...@googlemail.com

Thanks for the hint! So how would you encode the bitmap provided that
you use the commons libraries. I've never done that and I'm not sure
how to implement the libraries.

On 9 Jan, 01:25, Raymond Rodgers  wrote:
> mobilek...@googlemail.com wrote:
> > Hi,
>
> > I need to send a bitmap to a server. I've written some code, however,
> > I got stuck on the part where I need to transform my bitmap into byte
> > []. Here is my code:
>
> > public void updateBitmap(Bitmap bm){
> >            URL url = null;
> >            HttpURLConnection conn = null;
> >            try {
> >                    url = new URL("http://www.myurl.com?";);
> >            } catch (MalformedURLException e) {
> >                    e.printStackTrace();
> >            }
> >            try {
> >                    conn = (HttpURLConnection) url.openConnection();
> >            } catch (IOException e) {
> >                    e.printStackTrace();
> >            }
> >            try {
> >                    conn.setRequestMethod("POST");
> >            } catch (ProtocolException e) {
> >                    e.printStackTrace();
> >            }
> >            conn.setDoOutput(true);
> >            conn.setDoInput(true);
> >            conn.addRequestProperty("user_id", user.getUsername());
> >            conn.addRequestProperty("pass", user.getPassword());
> >            conn.addRequestProperty("id", pinId);
>
> >                OutputStream os = null;
> >            try {
> >                    os = conn.getOutputStream();
> >            } catch (IOException e) {
> >                    e.printStackTrace();
> >            }
>
> >                 // Encode bitmap and flush the os
>
> >    }
>
> > Could you advice me on how to complete my code? Thank you.
>
> I'm going to be tackling the same sort of problem in an app I'm working
> on so I can't give you much advice. BUT, I can tell you that typically
> with HTTP file transfers, you'll want to encode the file into base-64
> format. Unfortunately, for whatever reason, Android does not include
> that capability as far as I know. Oddly, there's a bit of code in the
> Apache Commons/Jakarta project to do that, but it wasn't included in
> Android with the other code borrowed from that project. So what I did is
> download the following files from the Apache site (I grabbed them
> directly out of the source repository browser 
> athttp://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/...
> ) and create new packages within my app's project:
>
> BinaryDecoder.java
> BinaryEncoder.java
> Decoder.java
> DecoderException.java
> Encoder.java
> EncoderException.java
> StringDecoder.java
> StringEncoder.java
> StringEncoderComparator.java
> binary/Base64.java
> binary/Base64InputStream.java
> binary/Base64OutputStream.java
> binary/BinaryCodec.java
> binary/Hex.java
>
> I needed to create two packages: org.apache.commons.codec and
> org.apache.commons.codec.binary from those files; it should be easy
> enough to guess which ones go where. :-) From that point, base-64
> encoding or decoding is as simple as including the packages, and
> calling  Base64.encodeString() or Base64.decodeString(). There are
> multiple encoding/decoding functions there to suit your needs.
>
> Raymond
>
> P.S. I'm hoping that Google or some coder will include these classes in
> the Android sources in the future, which would make us using it like
> this unnecessary. Time will tell...
--~--~-~--~~~---~--~~
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: Not able to kill process using destroy() method

2009-01-09 Thread Justin (Google Employee)

This isn't the proper way to run anything in Android, why are you
doing this?

Cheers,
Justin
Android Team @ Google

On Jan 8, 6:15 am, CodePupil  wrote:
> I don't be able to destroy the process started by
> process = Runtime.getRuntime().exec();
> :
> :
> :
> process.destroy()// it doesn't kill the process started above
>
> Does anybody know why Its not working and how should I make it able to
> work ?
>
> Thanks in advance !
--~--~-~--~~~---~--~~
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] Google phone dev 1 keyboard issues

2009-01-09 Thread kmatzen

I have a quick question regarding the functionality of the keyboard on
the unlocked developer version of the phone.  When we try to register
it with a google account during activation, the top two rows of keys
seem to get typed at the same time.  For example, pressing 'e' makes
'3e' appear and pressing '3' also makes '3e' appear.  Other examples
include: '56', 'i0', 'r4'.

Is this a hardware issue?  We are unfamiliar with the interface so we
do not know if this is expected behavior.

--~--~-~--~~~---~--~~
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] auto generation of Android.mk file

2009-01-09 Thread krish24

Hi Everyone,

I am trying to port a package (library) in android.  There are many
subfolder in my library folder and each subfolder contains a makefile.
I know that we have to write Android.mk file for building the package.
Do we need to write the Andriod.mk file for each subfolder present in
my library. Is there any way to generate Android.mk file from standard
makefile?

Regards,
Krish

--~--~-~--~~~---~--~~
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] Error using graphics in XML-Based UI

2009-01-09 Thread coderguy89

Thought I posted this yesterday but don't see it on the forum. Sorry
if this is a duplicate.


Is there a bug when using the XML ImageView to display graphics? I can
display images fine using the ImageView class in
androids.widgets.ImageView. But when trying to run an application that
uses the XML ImageView to display images, my application crashes at
start-up saying "The application [appname] has stopped unexpectedly.
Please try again.".

Code in Main Activity

public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

setContentView(R.layout.main);
}


Code In main.xml:


http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>





In android:src 'eclipse' is an eclipse.png image.  I also tried
android:src="@drawable/eclipse" with no success --- it won't even
compile this way.



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] Unable to run android thru emulator on Fedora 9 Kernel-2.6.27

2009-01-09 Thread KK
Hi All,

I'm completely new to all this things. I downloaded the SDK and tried to run
it as given in google.android s home page. It runs and the UI comes up with
the logo o android blinking nicely but when i try to click on any of the
buttons of the handset, no response comes. Wehn I google out I found that
the kernel messages are correct till the final UI comes up and my xterm
shows me the following

--~--~-~--~~~---~--~~
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] Not able to kill process using destroy() method

2009-01-09 Thread CodePupil

I don't be able to destroy the process started by
process = Runtime.getRuntime().exec();
:
:
:
process.destroy()// it doesn't kill the process started above


Does anybody know why Its not working and how should I make it able to
work ?

Thanks in advance !

--~--~-~--~~~---~--~~
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 could I read the content of some multimedia message?

2009-01-09 Thread junlong.z...@gmail.com

I cannot find MMS reading support in the SDK,

--~--~-~--~~~---~--~~
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: Audio Processing Options

2009-01-09 Thread Mr . Black
Oh cmon man ... make it happen please coz, i will use it too

Thanks.

On Fri, Jan 9, 2009 at 10:39 AM, Dave Sparks wrote:

>
> No, there are no Java API's exposed for this currently.
>
> On Jan 8, 8:06 am, obi  wrote:
> > What options are there currently for analyzing sound files on Android,
> > specifically ones from the onboard microphone?  Ideally, I'd like to
> > be able to look at the amplitude of the microphone over time and
> > possibly perform an FFT.  Do those options currently exist in Android,
> > and, if so, where?
> >
> > -Obi
> >
>


-- 
Best Regards,

Double Beat Corp.
mr.black
CTO
http://www.double-beat.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] Re: Removing installed application in Emulator

2009-01-09 Thread dssheng

Hi
if you mean applications already in image, you can do it as below:

1-
adb remount
adb push yourapk  /system/app/

adb shell
ps
kill $(pid of zygote)

also you can
2-
make yourmodule snod
and you will got a image including your module.

--~--~-~--~~~---~--~~
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] Requests: doc/FAQ fix & addition to SDK samples

2009-01-09 Thread hoijui

Working wiht the SDK, i stumbled over two things that are slightly
inconvenient for beginners, and i though they should possibly be
changed.

1. Fix: missing content in FAQ
under: 
http://code.google.com/android/kb/commontasks.html#newandroidprojectnoeclipse
point 4., the link "Build and install your package" points to:
http://code.google.com/android/intro/installing.html#building
though section #building does not seem to exist on that page.

2. samples should contain ant scripts
I would like the samples shipped with the SDK to contain buil.xml
files.
I figured out an easy way to create them:
(1) create a temporaty Activity with the activity creator
(2) copy files to sample project folder (eg LunarLander)
- build.xml
- libs (empty folder)
- default.properties
(3) edit build.xml
- 
+ 
- 
(4) create file build.properties, containing:
"
# This file is handmade

ant.project.name=LunarLander
application-package=com.example.android.lunarlander

"

thanks for android! :-)

hoijui

--~--~-~--~~~---~--~~
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] Understanding ListView

2009-01-09 Thread Ivan

Hi, I'm playing around with a file browser tutorial just to learn and
I ran into this problem.

Currently I can list folder just fine.. what I'm trying to add
something extra to the list item in the in interface, like another
string, or whatever I want.

This is what I have:

private void fill(File[] files) {
items = new ArrayList();
items.add(getString(R.string.to_top));

for (File file : files)
items.add(file.getPath());
ArrayAdapter fileList = new ArrayAdapter(this,
R.layout.file_row, items);
setListAdapter(fileList);
}

If in file_row.xml I only put a TextView it works but how can I do to
add extra stuff to the list item?

--~--~-~--~~~---~--~~
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] Changing size of AlertDialog

2009-01-09 Thread Suicide King

is there anyway to change the size of a alertDialog?

my snippet of code:

LayoutInflater factory = LayoutInflater.from(cabBookingStart.this);
 final View textEntryView = factory.inflate(R.layout.driver_entry,
null);

new AlertDialog.Builder(cabBookingStart.this)
.setTitle("Enter Infornation")
.setView(textEntryView)
.setPositiveButton("Submit",new DialogInterface.OnClickListener(){
public void onClick(DialogInterface dialog, int whichButton)
{
finish();
}
})
.create()
.show();



what i have in my view is 2 textView and 2 editText. when the dialog
is  shown, my last editText will get cut off.

Need to know if it is possible to change the size of the dialog. If
not, is there any possible work around?


--~--~-~--~~~---~--~~
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: Netty on Android?

2009-01-09 Thread Trustin Lee

Hi Monk,

This is Trustin, the lead of the Netty project.  Glad to hear that you
are trying to run Netty on top of the Android platform.

There was another user who reported a different problem with running
Netty on Android recently and I have resolved the problem:

* https://jira.jboss.org/jira/browse/NETTY-103
* http://www.jboss.org/netty/community.html#nabble-td1771503

The fix is currently in the SVN trunk, so you need to build it by
yourself, but it shouldn't be that difficult.  Please feel free to
leave a comment or ask questions to our forum - other interested users
might help you.   At last but not least, I would love to see a Netty
application runs on an Android phone. :-)

Good luck!

On Dec 14 2008, 10:14 pm, Monk  wrote:
> Hi,
>
> I'm thinking of building an android client as part of my project
> within my studies. The server uses Netty (http://www.jboss.org/netty/)
> to communicate. Therefore I need to evaluate whether Netty runs on
> Android before the implementation phase starts.
>
> I tried to implement some netty examples (http://www.jboss.org/netty/
> documentation.html) with the server running on my Mac and the client
> running in the android emulator.
>
> In the SecureChat example I get "ERROR/OSNetworkSystem(272): unknown
> socket error -1" from the line
>
> ChannelFactory factory = new NioClientSocketChannelFactory
> (Executors.newCachedThreadPool(), Executors.newCachedThreadPool());
>
> and then the "ChannelPipelineException("Failed to initialize a
> pipeline.", e);" when trying to connect.
>
> The Echo example also outputs 2 "unknown socket error -1" errors.
>
> Can anybody confirm that Netty can run on Android? Are the errors my
> fault? If yes, what could be the reason?

--~--~-~--~~~---~--~~
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: No repository found at https://dl-ssl.google.com/android/eclipse/

2009-01-09 Thread Adam G.

The same from me. But not USA, nor UK. I am from Germay and sitting in
the University. I find that very very strange. Because beside this I
have never had problems to access any of Google's pages...

I tried the trick with the UK proxy, but I couldn't find a free one :
( Will continue with the search!

On 21 Dez. 2008, 09:28, EvanK  wrote:
> I'm having the same problem (No repository found), and it's certainly
> not filtering on the ISP side...I live in Texas, USA.  Not sure why
> Google would be filtering traffic from Texas, but I used a UK proxy
> and it worked fine.

--~--~-~--~~~---~--~~
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 problem

2009-01-09 Thread lili

Hi I am lili
I use Eclipse  to write Android clock

I compiled eclipse the console when no error, but in the simulator is
not running the results of the procedure, when I click on my simulator
application name, there has been an error:

 the application clock (process com.test.clock) has stopped
unexpectedly, please try again!

 clock is the name of the application, com.test.clock is my package
names.

 I am very anxious.



I am using Android release 1.0_r2 in Windows XP


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: Problem about registration

2009-01-09 Thread 冯驯
Hi~,anybody who could solve this problem~~~  thnx!

2009/1/8 exlarger 

>
> Any one here? please help~~
>
> On Jan 7, 9:30 am, exlarger  wrote:
> > Dear Android:
> > We are a software developer team, and we locate in China. Recently, we
> > decide to join the Android market for developing some applications for
> > Android Mobile phone, everything were just fine until we choose the
> > location for developer. There is no option for our Country.
> > We are very dissappoit to see that, since Android is an open sorce
> > program, and I really don't think there should be any limitation for
> > this kind of issue.
> > Please help us out.
> >
> > Best regards;
> >
> > Mike T.
> >
>

--~--~-~--~~~---~--~~
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 Emulator compile error, SDL

2009-01-09 Thread jeffpang

I got the same "#error unsupported CPU - please update the code"
error. The problem is that the host architecture is detected as i686
but only I386 is supported. A quickfix is to edit qemu/objs/config-
host.h (after failing) and replace HOST_i686 with HOST_I386. Then run
make in qemu.

Jeff

On Jan 5, 4:38 pm, dasacc22  wrote:
> Hi,
>
> I was trying to compile android emulator on ubuntu 8.10 platform and
> received the following during make
>
> Ready to go. Type 'make' to build emulator
> Prebuilt: objs/libSDLmain.a
> Prebuilt: objs/libSDL.a
> Compile: emulator-dyngen <= dyngen.c
> /home/daniel/Workspace/android/emulator/qemu/dyngen.c:123:2: error:
> #error unsupported CPU - please update the code
> Compile: emulator-op <= target-arm/op.c
> /home/daniel/Workspace/android/emulator/qemu/dyngen.c: In function
> ‘load_object’:
> /home/daniel/Workspace/android/emulator/qemu/dyngen.c:496: error:
> ‘ELF_CLASS’ undeclared (first use in this function)
> /home/daniel/Workspace/android/emulator/qemu/dyngen.c:496: error:
> (Each undeclared identifier is reported only once
> /home/daniel/Workspace/android/emulator/qemu/dyngen.c:496: error: for
> each function it appears in.)
> /home/daniel/Workspace/android/emulator/qemu/dyngen.c:2236:2: error:
> #error unsupported CPU
> /home/daniel/Workspace/android/emulator/qemu/dyngen.c:3215:2: error:
> #error unsupported CPU
> make: *** [objs/intermediates/emulator-dyngen/dyngen.o] Error 1
> make: *** Waiting for unfinished jobs
> ERROR: could not build SDL library
>
> Does anyone have any advice?
>
> Thanks,
> Daniel

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



AW: [android-beginners] Delete android database

2009-01-09 Thread androvisio
hi mitch,
try this (inside a Context-implementation)

getDatabasePath("yourDatabaseName").delete();

bye
marcus






Von: mitch 
An: Android Beginners 
Gesendet: Mittwoch, den 7. Januar 2009, 22:03:37 Uhr
Betreff: [android-beginners] Delete android database


Hiya,

Does anyone know if there is a way to remove an android database file
programmatically? I need to remove a lot of records (10,000+) and it
seems it would be quicker to remove the database and re-create from
scratch rather than deleting from the various tables (Which takes
about 20 seconds using triggers to force referential integrity).

Thanks in advance!
mitch


  
--~--~-~--~~~---~--~~
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: Custom Title Bar

2009-01-09 Thread muckwarrior

How can I set the background colour of the title bar?

On Dec 18 2008, 1:51 am, android  wrote:
> How do I set the height to be larger than the default one? And is
> there any way to use a drawable image? How about centering the image
> as well?
>
> Thanks
>
> On Dec 5, 12:27 am, "for android"  wrote:
>
> > setTitle(title) in your onCreate
>
> > On Thu, Dec 4, 2008 at 9:18 PM, and.m...@gmail.com 
> > wrote:
>
> > > Hi,
> > > I want to use custom title bar in my application, which changes when
> > > application is running.
> > >  What I found is that I may use
> > > requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); .
>
> > > But how can I change the title bar with it?
> > > 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] android build problems

2009-01-09 Thread riaz

when trying to build android  on ubuntu 8.10 I get the below error. Is
this is a known issue?



touch out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/
aidl_language_y.hpp
echo '#ifndef 'aidl_language_y_h > out/host/linux-x86/obj/EXECUTABLES/
aidl_intermediates/aidl_language_y.h
echo '#define 'aidl_language_y_h >> out/host/linux-x86/obj/EXECUTABLES/
aidl_intermediates/aidl_language_y.h
cat out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/
aidl_language_y.hpp >> out/host/linux-x86/obj/EXECUTABLES/
aidl_intermediates/aidl_language_y.h
echo '#endif' >> out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/
aidl_language_y.h
rm -f out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/
aidl_language_y.hpp
host C++: aidl <= frameworks/base/tools/aidl/aidl.cpp
frameworks/base/tools/aidl/aidl.cpp: In function ‘void test_document
(document_item_type*)’:
frameworks/base/tools/aidl/aidl.cpp:56: warning: format ‘%08x’ expects
type ‘unsigned int’, but argument 2 has type ‘long int’
frameworks/base/tools/aidl/aidl.cpp:56: warning: format ‘%ld’ expects
type ‘long int’, but argument 3 has type ‘unsigned int’
frameworks/base/tools/aidl/aidl.cpp: In function ‘int convert_direction
(const char*)’:
frameworks/base/tools/aidl/aidl.cpp:69: error: ‘strcmp’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:72: error: ‘strcmp’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp: In function ‘void
main_import_parsed(buffer_type*)’:
frameworks/base/tools/aidl/aidl.cpp:100: error: ‘malloc’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:101: error: ‘memset’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:102: error: ‘strdup’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp: In function ‘char*
parse_import_statement(const char*)’:
frameworks/base/tools/aidl/aidl.cpp:137: error: ‘malloc’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:138: error: ‘memcpy’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp: In function ‘int check_filename
(const char*, const char*, buffer_type*)’:
frameworks/base/tools/aidl/aidl.cpp:194: error: ‘strchr’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:195: error: ‘strlen’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp: In function ‘char* rfind(char*,
char)’:
frameworks/base/tools/aidl/aidl.cpp:275: error: ‘strlen’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp: In function ‘bool matches_keyword
(const char*)’:
frameworks/base/tools/aidl/aidl.cpp:373: error: ‘strcmp’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp: In function ‘int
parse_preprocessed_file(const std::string&)’:
frameworks/base/tools/aidl/aidl.cpp:629: error: ‘strncmp’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:650: error: ‘strcmp’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:652: error: ‘malloc’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:653: error: ‘memset’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:656: error: ‘strdup’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:666: error: ‘malloc’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:667: error: ‘memset’ was not
declared in this scope
frameworks/base/tools/aidl/aidl.cpp:670: error: ‘strdup’ was not
declared in this scope
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/
aidl.o] Error 1

--~--~-~--~~~---~--~~
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] Paying developer fee without credit card

2009-01-09 Thread Tinuz


Hi all,

Is there any way to pay the developer fee of $25 without a credit
card?

regards,
Tinuz

--~--~-~--~~~---~--~~
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] download audio file

2009-01-09 Thread baba vali
hi all,

can anyone tell me how to download audiofile save it to local file.

thanx.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---