[android-beginners] Re: 'drawable' vs. 'drawable-hdpi' in Online Tutorial

2010-02-01 Thread Indicator Veritatis
Oh, well, thanks for your response anyway. But I am going to wait in
the hopes that some who unlike us, it not a newbie, can come up with a
suggestion that is not one of our newbie kludges;)

On Feb 1, 4:16 pm, "Ben & Jerry's South Bay" 
wrote:
> It was a bit kludgie...but for me as a newbie to eclipse...it was not to
> painful :-).
>
> On Mon, Feb 1, 2010 at 3:28 PM, Indicator Veritatis wrote:
>
>
>
> > And switching back to 1.5 usually works for me. But both your approach
> > and mind sound like kludges. There should be a better solution. I
> > really do not want, for example, to have to create this extra
> > directory for EVERY tutorial I complete using SDK 2.1. Do you?
>
> > On Feb 1, 3:01 pm, "Ben & Jerry's South Bay" 
> > wrote:
> > > I just created a new folder within eclipse called 'drawable' and then
> > > created my new files there.  It worked for me.
>
> > > On Feb 1, 2010 12:18 PM, "Indicator Veritatis" 
> > wrote:
>
> > > It seems the online tutorials have not been rewritten to reflect
> > > Android 2.1. For they still refer to 'drawable' and 'res/drawable',
> > > but when I create a new project for 2.1 using the wizard, I do not GET
> > > any such directory. Instead, I get 'res/drawable-hdpi', 'res/drawable-
> > > ldpi' and 'res/drawable-mdpi'.
>
> > > Now for some tutorials, I have been able to get by by putting files in
> > > 'res/drawable-hdpi'. But for the TabLayout tutorial,
> >http://developer.android.com/resources/tutorials/views/hello-tabwidge...,
> > > this does not work. I still get the error message (on completion of
> > > step 3) "R.drawable.ic_tab_artists cannot be resolved".
>
> > > The files "ic_tab_artists_grey.png" and "ic_tab_artists_whit.png"
> > > really are in res/drawable-hdpi.
>
> > > I also tried changing the name 'drawable' to 'drawable-hdpi', but Java
> > > did not like the '-' in the name (no surprise).
>
> > > So how are we supposed to get this to work? Go back to 1.5? Surely
> > > there is a better way.
>
> > > Just for clarity's sake, the line of code I get the error on is: spec
> > > = tabHost.newTabSpec("artists").setIndicator("Artists",
> > > //                          res.getDrawable
> > > (R.drawable.ic_tab_artists))
> > >                      .setContent(intent);
>
> > > in HelloTabWidget.java.
>
> > > I get the same class of error message on the other three
> > > res.getDrawable calls, too.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Beginners" group.
>
> > > NEW! Try asking and tagging your question on Stack Overflow athttp://
> > stackoverflow.com/questions/tagged/android
>
> > > To unsubscribe from this group, send email to
> > > android-beginners+unsubscr...@googlegroups.com > >  i...@googlegroups.com> > i...@googlegroups.com>
> > > For more options, visit this group athttp://
> > groups.google.com/group/android-beginners?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com > i...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] list view button error

2010-02-01 Thread Justin Anderson
Can you give us a little more info, like where the NullPointerException
happens in the code?

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Mon, Feb 1, 2010 at 3:09 PM, Sam B  wrote:

> Hi guys im trying to put a button on each row of a list but i get null
> pointer exception, i'll show the java files below. The list view is in
> a seperate xml file to the button because button is inside a relative
> layout. Can anyone help?.
>
> This class gets data from a database and puts it in array and displays
> in a list view which works fine until i try to put a button in each
> row.
> Java:
>
> package project.Maps;
> public class SatMain extends Activity {
>/** Called when the activity is first created. */
> ArrayList results = new ArrayList();
> @Override
>public void onCreate(Bundle savedInstanceState)
>{
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>dbAdapter db = new dbAdapter(this);
>
>  ;
>
>
>
>//---get all titles---
>db.open();
>  db.InsertData();
>
>Cursor c =  db.getSat1();
>
>if (c.moveToFirst())
>{
>do {
> String pub =  c.getString(c.getColumnIndex
> (db.KEY_Artist));
> String pub1 =  c.getString(c.getColumnIndex
> (db.KEY_Time));
>
>
>
>  results.add(pub + pub1 );
>} while (c.moveToNext());
>}
>db.close();
>
>ListView listProducts;
>List results = new ArrayList();
>Context cont = null;
>  customArray ca = new customArray(cont, R.layout.button,
> results);
>listProducts = (ListView)findViewById(R.id.list123);
>listProducts.setAdapter(ca);
>ca.notifyDataSetChanged();
>}}
>
>
>
> Code for my custom adapter.
>
> Java:
>
> package project.Maps;
> import java.util.List;
> public class customArray extends ArrayAdapter {
> int resource;
>
> public customArray(Context cont, int _resource, List
> results) {
>  super (cont, _resource, results);
>  resource = _resource;
> }
>
> @Override
> public View getView(int position, View convertView, ViewGroup
> parent) {
>  RelativeLayout rl;
>
>   //   String prod = getItem(position);
>  if (convertView == null) {
>   rl = new RelativeLayout(getContext());
>   LayoutInflater vi = (LayoutInflater)getContext
> ().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
>   vi.inflate(resource, rl, true);
>  } else {
>   rl = (RelativeLayout)convertView;
>  }
>
>
>  return rl;
> }
> }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: 'drawable' vs. 'drawable-hdpi' in Online Tutorial

2010-02-01 Thread Ben & Jerry's South Bay
It was a bit kludgie...but for me as a newbie to eclipse...it was not to
painful :-).

On Mon, Feb 1, 2010 at 3:28 PM, Indicator Veritatis wrote:

> And switching back to 1.5 usually works for me. But both your approach
> and mind sound like kludges. There should be a better solution. I
> really do not want, for example, to have to create this extra
> directory for EVERY tutorial I complete using SDK 2.1. Do you?
>
> On Feb 1, 3:01 pm, "Ben & Jerry's South Bay" 
> wrote:
> > I just created a new folder within eclipse called 'drawable' and then
> > created my new files there.  It worked for me.
> >
> > On Feb 1, 2010 12:18 PM, "Indicator Veritatis" 
> wrote:
> >
> > It seems the online tutorials have not been rewritten to reflect
> > Android 2.1. For they still refer to 'drawable' and 'res/drawable',
> > but when I create a new project for 2.1 using the wizard, I do not GET
> > any such directory. Instead, I get 'res/drawable-hdpi', 'res/drawable-
> > ldpi' and 'res/drawable-mdpi'.
> >
> > Now for some tutorials, I have been able to get by by putting files in
> > 'res/drawable-hdpi'. But for the TabLayout tutorial,
> http://developer.android.com/resources/tutorials/views/hello-tabwidge...,
> > this does not work. I still get the error message (on completion of
> > step 3) "R.drawable.ic_tab_artists cannot be resolved".
> >
> > The files "ic_tab_artists_grey.png" and "ic_tab_artists_whit.png"
> > really are in res/drawable-hdpi.
> >
> > I also tried changing the name 'drawable' to 'drawable-hdpi', but Java
> > did not like the '-' in the name (no surprise).
> >
> > So how are we supposed to get this to work? Go back to 1.5? Surely
> > there is a better way.
> >
> > Just for clarity's sake, the line of code I get the error on is: spec
> > = tabHost.newTabSpec("artists").setIndicator("Artists",
> > //  res.getDrawable
> > (R.drawable.ic_tab_artists))
> >  .setContent(intent);
> >
> > in HelloTabWidget.java.
> >
> > I get the same class of error message on the other three
> > res.getDrawable calls, too.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
> >
> > NEW! Try asking and tagging your question on Stack Overflow athttp://
> stackoverflow.com/questions/tagged/android
> >
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com i...@googlegroups.com>
> > For more options, visit this group athttp://
> groups.google.com/group/android-beginners?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Eclipse can't seem to locate R.java

2010-02-01 Thread Xavier Ducrohet
That's not a dependency issue.

Creating the R.java file is part of the build process, and if you
don't let Eclipse build automatically, you will need to force a
project compilation every time you add/remove a resources so that the
R class is updated.

People who work with the Ant build script already have to do this.
Eclipse does improve on this by using the automatic build, but you can
do without if you remember to manually recompile when needed.

Xav

On Sat, Jan 30, 2010 at 2:46 AM, Indicator Veritatis  wrote:
> I had this problem on every other build until I turned on the Eclipse
> flag Project>Build Automatically.
>
> I believe that is the default when Eclipse is installed, but I
> unchecked it because I thought it was unnecessary. Even now, I think
> it is necessary only to cover up a bug in Eclipse when it tries to
> detect build dependencies.
>
> So turn on that flag and see if that solves the problem.
>
> On Jan 28, 1:47 pm, André  wrote:
>> Hello,
>>
>> I'm not sure if it's me or eclipse that has a problem. Probably me
>> with eclipse!
>> With three different projects where I have copy and pasted the code
>> from the sample apps as an example I almost always get a problem to
>> locate setContentView(R.layout.main); for instance and it says that it
>> can not be resolved.
>>
>> Any suggestions on what I can do to solve this?
>>
>> André
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Bug in SDK Manager: cannot update

2010-02-01 Thread Xavier Ducrohet
Yes. this is the solution.

The problem is that older version of Java lack a XML schema validator.
Unfortunately, the SDK tools revert to the wrong code path when this
happens and it looks like the schema is more recent that the tools and
it requires to update the tools first.

Use the MacOS X software update feature to get the newest version of Java.

Xav


On Tue, Jan 5, 2010 at 5:51 PM, Mugdha Bendre  wrote:
> Nope, I gave up and switched to a Linux workstation. However, try upgrading
> your installation of Java. Someone said it worked for them after updating
> Java.
> On Sun, Jan 3, 2010 at 2:04 AM, leuat  wrote:
>>
>> Did you guys manage to find a solution? I am still having problems
>> with the SDK on  OSX 10.5.5  with "This repository requires a
>> more recent version of the tools.". This is even though the SDK
>> updater
>> is version 4.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Beginners" group.
>>
>> NEW! Try asking and tagging your question on Stack Overflow at
>> http://stackoverflow.com/questions/tagged/android
>>
>> To unsubscribe from this group, send email to
>> android-beginners+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-beginners?hl=en
>
>
>
> --
> Courage is the price that life exacts for granting peace.
> - Amelia Earhart
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: 'drawable' vs. 'drawable-hdpi' in Online Tutorial

2010-02-01 Thread Indicator Veritatis
And switching back to 1.5 usually works for me. But both your approach
and mind sound like kludges. There should be a better solution. I
really do not want, for example, to have to create this extra
directory for EVERY tutorial I complete using SDK 2.1. Do you?

On Feb 1, 3:01 pm, "Ben & Jerry's South Bay" 
wrote:
> I just created a new folder within eclipse called 'drawable' and then
> created my new files there.  It worked for me.
>
> On Feb 1, 2010 12:18 PM, "Indicator Veritatis"  wrote:
>
> It seems the online tutorials have not been rewritten to reflect
> Android 2.1. For they still refer to 'drawable' and 'res/drawable',
> but when I create a new project for 2.1 using the wizard, I do not GET
> any such directory. Instead, I get 'res/drawable-hdpi', 'res/drawable-
> ldpi' and 'res/drawable-mdpi'.
>
> Now for some tutorials, I have been able to get by by putting files in
> 'res/drawable-hdpi'. But for the TabLayout 
> tutorial,http://developer.android.com/resources/tutorials/views/hello-tabwidge...,
> this does not work. I still get the error message (on completion of
> step 3) "R.drawable.ic_tab_artists cannot be resolved".
>
> The files "ic_tab_artists_grey.png" and "ic_tab_artists_whit.png"
> really are in res/drawable-hdpi.
>
> I also tried changing the name 'drawable' to 'drawable-hdpi', but Java
> did not like the '-' in the name (no surprise).
>
> So how are we supposed to get this to work? Go back to 1.5? Surely
> there is a better way.
>
> Just for clarity's sake, the line of code I get the error on is: spec
> = tabHost.newTabSpec("artists").setIndicator("Artists",
> //                          res.getDrawable
> (R.drawable.ic_tab_artists))
>                      .setContent(intent);
>
> in HelloTabWidget.java.
>
> I get the same class of error message on the other three
> res.getDrawable calls, too.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow 
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com i...@googlegroups.com>
> For more options, visit this group 
> athttp://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] 'drawable' vs. 'drawable-hdpi' in Online Tutorial

2010-02-01 Thread Ben & Jerry's South Bay
I just created a new folder within eclipse called 'drawable' and then
created my new files there.  It worked for me.

On Feb 1, 2010 12:18 PM, "Indicator Veritatis"  wrote:

It seems the online tutorials have not been rewritten to reflect
Android 2.1. For they still refer to 'drawable' and 'res/drawable',
but when I create a new project for 2.1 using the wizard, I do not GET
any such directory. Instead, I get 'res/drawable-hdpi', 'res/drawable-
ldpi' and 'res/drawable-mdpi'.

Now for some tutorials, I have been able to get by by putting files in
'res/drawable-hdpi'. But for the TabLayout tutorial,
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html,
this does not work. I still get the error message (on completion of
step 3) "R.drawable.ic_tab_artists cannot be resolved".

The files "ic_tab_artists_grey.png" and "ic_tab_artists_whit.png"
really are in res/drawable-hdpi.

I also tried changing the name 'drawable' to 'drawable-hdpi', but Java
did not like the '-' in the name (no surprise).

So how are we supposed to get this to work? Go back to 1.5? Surely
there is a better way.

Just for clarity's sake, the line of code I get the error on is: spec
= tabHost.newTabSpec("artists").setIndicator("Artists",
//  res.getDrawable
(R.drawable.ic_tab_artists))
 .setContent(intent);

in HelloTabWidget.java.

I get the same class of error message on the other three
res.getDrawable calls, too.

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] list view button error

2010-02-01 Thread Sam B
Hi guys im trying to put a button on each row of a list but i get null
pointer exception, i'll show the java files below. The list view is in
a seperate xml file to the button because button is inside a relative
layout. Can anyone help?.

This class gets data from a database and puts it in array and displays
in a list view which works fine until i try to put a button in each
row.
Java:

package project.Maps;
public class SatMain extends Activity {
/** Called when the activity is first created. */
 ArrayList results = new ArrayList();
 @Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
dbAdapter db = new dbAdapter(this);

  ;



//---get all titles---
db.open();
  db.InsertData();

Cursor c =  db.getSat1();

if (c.moveToFirst())
{
do {
 String pub =  c.getString(c.getColumnIndex
(db.KEY_Artist));
 String pub1 =  c.getString(c.getColumnIndex
(db.KEY_Time));



  results.add(pub + pub1 );
} while (c.moveToNext());
}
db.close();

ListView listProducts;
List results = new ArrayList();
Context cont = null;
  customArray ca = new customArray(cont, R.layout.button,
results);
listProducts = (ListView)findViewById(R.id.list123);
listProducts.setAdapter(ca);
ca.notifyDataSetChanged();
}}



Code for my custom adapter.

Java:

package project.Maps;
import java.util.List;
public class customArray extends ArrayAdapter {
 int resource;

 public customArray(Context cont, int _resource, List
results) {
  super (cont, _resource, results);
  resource = _resource;
 }

 @Override
 public View getView(int position, View convertView, ViewGroup
parent) {
  RelativeLayout rl;

   //   String prod = getItem(position);
  if (convertView == null) {
   rl = new RelativeLayout(getContext());
   LayoutInflater vi = (LayoutInflater)getContext
().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
   vi.inflate(resource, rl, true);
  } else {
   rl = (RelativeLayout)convertView;
  }


  return rl;
 }
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] 'drawable' vs. 'drawable-hdpi' in Online Tutorial

2010-02-01 Thread Indicator Veritatis
It seems the online tutorials have not been rewritten to reflect
Android 2.1. For they still refer to 'drawable' and 'res/drawable',
but when I create a new project for 2.1 using the wizard, I do not GET
any such directory. Instead, I get 'res/drawable-hdpi', 'res/drawable-
ldpi' and 'res/drawable-mdpi'.

Now for some tutorials, I have been able to get by by putting files in
'res/drawable-hdpi'. But for the TabLayout tutorial,
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html,
this does not work. I still get the error message (on completion of
step 3) "R.drawable.ic_tab_artists cannot be resolved".

The files "ic_tab_artists_grey.png" and "ic_tab_artists_whit.png"
really are in res/drawable-hdpi.

I also tried changing the name 'drawable' to 'drawable-hdpi', but Java
did not like the '-' in the name (no surprise).

So how are we supposed to get this to work? Go back to 1.5? Surely
there is a better way.

Just for clarity's sake, the line of code I get the error on is: spec
= tabHost.newTabSpec("artists").setIndicator("Artists",
//  res.getDrawable
(R.drawable.ic_tab_artists))
  .setContent(intent);

in HelloTabWidget.java.

I get the same class of error message on the other three
res.getDrawable calls, too.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-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 start Call Log Activity

2010-02-01 Thread jaydip makadia
Hi,

I am not able to start Call Log Activity from below code, so please help me
how to start call Log activity.

Intent i = new Intent();
i.setAction(Intent.ACTION_VIEW);
i.setData(android.provider.CallLog.CONTENT_URI);
startActivity(i);

Thanks
Jaydip

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: SDK Setup.exe not working

2010-02-01 Thread Liviu Ungureanu
Hi!

 You have to install Java JDK:
http://java.sun.com/javase/downloads/index.jsp

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: No market on HTC hero

2010-02-01 Thread Kevin Duffey
I don't think 1.6 or 2.x will add market for you. Your service location will
not permit you to have the Market store period..until Google and your
country work out the details. It's not the version of Android, but the
country you live in and Google not yet supporting the Market in your
country.

On Sun, Jan 31, 2010 at 11:22 PM, Batuka  wrote:

> ohhh isee outside of the countries but i think if i can upgrade my
> HTC HERO 1.5 to 1.6 or 2.0 market is will be added
> and how i upgrade my HTC HERO to 1.6 or 2.0 help me
>
> On Jan 28, 8:29 pm, Sean Hodges  wrote:
> > You can't install it, it comes pre-installed on the phone. If you
> > can't see it on your home screen, then check your applications menu.
> >
> > If it's not there either, then you may be encountering the same
> > problem as the people reporting here:
> http://www.google.com/support/forum/p/Android+Market/thread?tid=53291...,
> > which suggests you might be outside of the countries listed here:
> http://www.google.com/support/androidmarket/bin/answer.py?hl=en&answe...
> >
> > On Thu, Jan 28, 2010 at 11:20 AM, Batuka  wrote:
> > > Thaks but it wasnt i thinkmarketis missing and i wont to install
> > >market
> > > but how how to install androidmarketon my HTC HERO
> >
> > > On Jan 28, 3:05 pm, Batuka  wrote:
> > >> Hi all i cant seeMarketon my HTC HERO where is theMarket
> > >> help me pls
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Beginners" group.
> >
> > > NEW! Try asking and tagging your question on Stack Overflow at
> > >http://stackoverflow.com/questions/tagged/android
> >
> > > To unsubscribe from this group, send email to
> > > android-beginners+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-beginners?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: I have note pad where are notepads files saved???

2010-02-01 Thread Kitzy
To view files on the emulator you open a new view and under the
android folder select file explorer.

The files get put, I think, into /data/data/my.project.path/

Files have the permissions of the program that created them, and no
other programs can access them unless they are signed by the same
developer.  Since the project is in java, have you considered doing
your parsing in java?

Also, you may be able to upload them to your web-server and have them
manipulated off of the device.

Happy coding,
-Kitzy

On Jan 31, 11:10 am, edexter  wrote:
> I want to create a text file and I figure it should be easy but I
> don't seem to be getting a file on the emulator.
> after I have the text file I want to use a program I already have that
> uses python (and already works on pc and normal linux) to go over
> that text file.  I seem to be having trouble creating the text file, I
> just need to know about a free editor and
> where the text file is stored so I can port the project to the
> android.  The easier the better.  vim seems to be sorta complex to
> install
> and the editor I have seems to be saving the files somewhere that I
> cannot find.  thanks in advance for any help with this.
>
> ___http://dextracker.blogspot.com/
> On Jan 19, 5:17 pm, Justin Anderson  wrote:
>
>
>
> > What?
>
> > --
> > There are only 10 types of people in the world...
> > Those who know binary and those who don't.
> > --
>
> > On Fri, Jan 15, 2010 at 10:51 AM, edexter  wrote:
> > > I just started to use the emulator and I have it setup with python,
> > > notepad and a file manager.  I am wanting to port some python code to
> > > manipulate text files but I have no idea where the text files are (or
> > > if I need a different text editor).
>
> > >  I was wanting to use a program called netcsound and I would need to
> > > send the files over to it after I had processed them.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Beginners" group.
>
> > > NEW! Try asking and tagging your question on Stack Overflow at
> > >http://stackoverflow.com/questions/tagged/android
>
> > > To unsubscribe from this group, send email to
> > > android-beginners+unsubscr...@googlegroups.com > >  i...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Can't create new class in Eclipse (Google Map View official tutorial)

2010-02-01 Thread Kitzy
You need to be sure that you have given it a package name and sometime
you also have to select the project you're working in, even if you
only have one open project.

-Kitzy

On Jan 30, 4:40 pm, yodaa  wrote:
> Hi,
>
> I'm running Eclipse IDE on Windows XP using Android SDK "up-to-
> date" (and working fine...).
> I'm doing the "Hello Views" tutorials series, and I've done the first
> part of "Google Map View" tutorial :
>
> http://developer.android.com/resources/tutorials/views/hello-mapview
>
> I went succesfully through Part 1, and ran the application properly on
> the emulator.
>
> I discovered an issue when I started Part 2 of this tutorial. I tried
> to create a new class in Eclipse using :
>
> - right clic on my package > New Class
> - Entered "HelloItemizedOverlay" in the Class Name field
> - Within the Superclass field, entered
> "com.google.android.maps.ItemizedOverlay"
> - Clicked the checkbox for "Constructors from superclass"
>
> The weird thing happens here : The finish button, even if active can't
> be clicked
> I tried to create the Class several times and only the cancel button
> is responding.
>
> Maybe I've missed something here
> Help would be appreciated.
>
> Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Want to get senders name from contacts when receiving a sms message

2010-02-01 Thread ronnie173
I am developing a application that speaks out the contents of the
users sms messages and I am having problems getting the senders name
to show up. It only says the phone number when they receive a text
message. So I need to make a content provider and pull the number from
the contacts database based on the senders phone number. Can anybody
help with starting the content provider.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread MobDev
Is that code that I pasted any good ?
Because if I only use the . tags/code it won't
recognize it...
Also why those folders ? Because they actually are created when
creating a 1.6 project...
The multiple resolutions were introduced with 1.6, versions prior to
that should only have one directory, now they have 3 :
drawable-dpi, drawable-ldpi, drawable-mdpi

i just tried with bottom|left and this is the result :
http://rapidshare.com/files/344319470/device_resized.png.html

Is it maybe because I use that full-screen option ?

On 1 feb, 13:48, skink  wrote:
> On Feb 1, 1:33 pm, MobDev  wrote:
>
>
>
> > hhmmm...
> > Ok I just created a proxy.xml file within the res/drawable-dpi folder
> > using this code :
>
> > 
> >  > xmlns:android="http://schemas.android.com/apk/res/android";
> >     android:src="@drawable/bgimage"
> >     android:gravity="bottom">
> > 
>
> > afterwards I created (in my main.xml file) the following :
>
> > 
> > http://schemas.android.com/apk/res/
> > android"
> >             android:background="@drawable/proxy"
> >             android:layout_height="fill_parent"
> > android:layout_width="fill_parent">
> > 
>
> > So where does that BitmapDrawable come into the equation ? :D
>
> it's OK, but actually i used "bottom|left" gravity
>
> what is res/drawable-dpi folder? why not just res/drawable?
>
> i was using 320x480 image
>
> pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread skink


On Feb 1, 1:33 pm, MobDev  wrote:
> hhmmm...
> Ok I just created a proxy.xml file within the res/drawable-dpi folder
> using this code :
>
> 
>  xmlns:android="http://schemas.android.com/apk/res/android";
>     android:src="@drawable/bgimage"
>     android:gravity="bottom">
> 
>
> afterwards I created (in my main.xml file) the following :
>
> 
> http://schemas.android.com/apk/res/
> android"
>             android:background="@drawable/proxy"
>             android:layout_height="fill_parent"
> android:layout_width="fill_parent">
> 
>
> So where does that BitmapDrawable come into the equation ? :D
>

it's OK, but actually i used "bottom|left" gravity

what is res/drawable-dpi folder? why not just res/drawable?

i was using 320x480 image

pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread skink


On Feb 1, 1:33 pm, MobDev  wrote:
> hhmmm...
> Ok I just created a proxy.xml file within the res/drawable-dpi folder
> using this code :
>
> 
>  xmlns:android="http://schemas.android.com/apk/res/android";
>     android:src="@drawable/bgimage"
>     android:gravity="bottom">
> 
>
> afterwards I created (in my main.xml file) the following :
>
> 
> http://schemas.android.com/apk/res/
> android"
>             android:background="@drawable/proxy"
>             android:layout_height="fill_parent"
> android:layout_width="fill_parent">
> 
>
> So where does that BitmapDrawable come into the equation ? :D
>
> On 1 feb, 13:23, skink  wrote:
>
>
>
> > MobDev wrote:
> > > About your solution :
> > > If I try that it will actually resize the background to a little
> > > version of itself and place it aligned with the bottom of the screen,
> > > anwyays it WILL get resized/scaled...
>
> > i've test it five minutes ago to make sure that setting gravity in
> > BitmapDrawable prevents Bitmap from scaling.
>
> > maybe you forgot to change layout's background from original png image
> > to its BitmapDrawable proxy?
>
> > pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread MobDev
btw you ahve tested it with an Image which is actually exactly the
same size as the screen ? In my case 320x480...

On 1 feb, 13:23, skink  wrote:
> MobDev wrote:
> > About your solution :
> > If I try that it will actually resize the background to a little
> > version of itself and place it aligned with the bottom of the screen,
> > anwyays it WILL get resized/scaled...
>
> i've test it five minutes ago to make sure that setting gravity in
> BitmapDrawable prevents Bitmap from scaling.
>
> maybe you forgot to change layout's background from original png image
> to its BitmapDrawable proxy?
>
> pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread MobDev
hhmmm...
Ok I just created a proxy.xml file within the res/drawable-dpi folder
using this code :


http://schemas.android.com/apk/res/android";
android:src="@drawable/bgimage"
android:gravity="bottom">


afterwards I created (in my main.xml file) the following :


http://schemas.android.com/apk/res/
android"
android:background="@drawable/proxy"
android:layout_height="fill_parent"
android:layout_width="fill_parent">


So where does that BitmapDrawable come into the equation ? :D

On 1 feb, 13:23, skink  wrote:
> MobDev wrote:
> > About your solution :
> > If I try that it will actually resize the background to a little
> > version of itself and place it aligned with the bottom of the screen,
> > anwyays it WILL get resized/scaled...
>
> i've test it five minutes ago to make sure that setting gravity in
> BitmapDrawable prevents Bitmap from scaling.
>
> maybe you forgot to change layout's background from original png image
> to its BitmapDrawable proxy?
>
> pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread skink


MobDev wrote:
> About your solution :
> If I try that it will actually resize the background to a little
> version of itself and place it aligned with the bottom of the screen,
> anwyays it WILL get resized/scaled...
>

i've test it five minutes ago to make sure that setting gravity in
BitmapDrawable prevents Bitmap from scaling.

maybe you forgot to change layout's background from original png image
to its BitmapDrawable proxy?

pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread MobDev
Thanks,
about that gradient tutorial from that blog that one I already knew
off :P
I have searched a lot on the net before even posting here :D
About your solution :
If I try that it will actually resize the background to a little
version of itself and place it aligned with the bottom of the screen,
anwyays it WILL get resized/scaled...


On 1 feb, 12:31, skink  wrote:
> On Feb 1, 10:23 am, MobDev  wrote:
>
> > Actually I have added :
>
> > Setting the android:layout="bottom" on the used RealtiveLayout (with
> > the Image as background) still will result into a hideous version of
> > the original Image...
>
> i was wrong: use android:gravity="bottom" in  and not in
> layout definition:
>
> file res/drawable/proxy.xml:
>
>      android:src="..."
>     android:gravity="bottom"
> />
>
> and then use it in your layout's android:background="@drawable/proxy"
>
> pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread skink


On Feb 1, 10:23 am, MobDev  wrote:
> Actually I have added :
>
> Setting the android:layout="bottom" on the used RealtiveLayout (with
> the Image as background) still will result into a hideous version of
> the original Image...
>

i was wrong: use android:gravity="bottom" in  and not in
layout definition:

file res/drawable/proxy.xml:



and then use it in your layout's android:background="@drawable/proxy"

pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread skink


On Feb 1, 11:32 am, skink  wrote:
> hmmm, maybe this will help a bit:
>
> http://android.amberfog.com/?p=247
>
> pskink

or if it doesn't help, what about 'proxy deawables' ?

http://www.mail-archive.com/android-develop...@googlegroups.com/msg36450.html

pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread skink


On Feb 1, 10:23 am, MobDev  wrote:
>
> Setting the android:layout="bottom" on the used RealtiveLayout (with
> the Image as background) still will result into a hideous version of
> the original Image...


hmmm, maybe this will help a bit:

http://android.amberfog.com/?p=247

pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread MobDev
One last addition :
I did try to trasnfer the same Image to my device and show it onscreen
(through gallery) and it looks exactly how it's meant to look like :P
I did notice though the same crappy gradient on the thumbnail though
of the Image in the Gallery...

On 1 feb, 10:26, MobDev  wrote:
> Also, another thing I noticed :
> I also have some Images with text, those look ultra-sharp on my pc but
> they look kinda unsharp on the device... I don't understand why this
> would happen ?
> I always select the min height and min width as the actual Images
> sizes so that they don't get resized (with loss of quality) still no
> good results unfortunately...
> Also should I sued dip or pix as size parameters ?
>
> On 1 feb, 10:23, MobDev  wrote:
>
> > Actually I have added :
>
> > android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
>
> > to my manifest so that there wouldn't be a upper and lower bar...
> > I did set the minimum height and width to 480 and 320 pixels...
>
> > Setting the android:layout="bottom" on the used RealtiveLayout (with
> > the Image as background) still will result into a hideous version of
> > the original Image...
>
> > To try the ImageView option of Robert how do I create a ImageView and
> > afterwards paint other stuf on top of that ?
> > I mean I create a RelativeLayout, place an imageView in it, but
> > afterwards I'd like to place another RelativeLayout (with several
> > items) on top of that, how is this done ?
>
> > On 29 jan, 23:21, Robert Nekic  wrote:
>
> > > So does the gradient look any better?
>
> > > On Jan 29, 5:05 pm, skink  wrote:
>
> > > > On Jan 29, 9:18 pm, Robert Nekic  wrote:
>
> > > > > In that case, instead of using the image as the RelativeLayout's
> > > > > background, have you tried placing it into your RelativeLayout via an
> > > > > ImageView with height/width set to wrap_content and the scaleType to
> > > > > centerCrop?  You might lose some pixels on the edges but it should at
> > > > > least display the image without altering its proportions and possibly
> > > > > introducing scaling oddities.
>
> > > > or better yet, set image to RelativeLayout's background and simply set
> > > > android:gravity = "bottom", this will prevent scaling
>
> > > > pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread MobDev
Also, another thing I noticed :
I also have some Images with text, those look ultra-sharp on my pc but
they look kinda unsharp on the device... I don't understand why this
would happen ?
I always select the min height and min width as the actual Images
sizes so that they don't get resized (with loss of quality) still no
good results unfortunately...
Also should I sued dip or pix as size parameters ?

On 1 feb, 10:23, MobDev  wrote:
> Actually I have added :
>
> android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
>
> to my manifest so that there wouldn't be a upper and lower bar...
> I did set the minimum height and width to 480 and 320 pixels...
>
> Setting the android:layout="bottom" on the used RealtiveLayout (with
> the Image as background) still will result into a hideous version of
> the original Image...
>
> To try the ImageView option of Robert how do I create a ImageView and
> afterwards paint other stuf on top of that ?
> I mean I create a RelativeLayout, place an imageView in it, but
> afterwards I'd like to place another RelativeLayout (with several
> items) on top of that, how is this done ?
>
> On 29 jan, 23:21, Robert Nekic  wrote:
>
> > So does the gradient look any better?
>
> > On Jan 29, 5:05 pm, skink  wrote:
>
> > > On Jan 29, 9:18 pm, Robert Nekic  wrote:
>
> > > > In that case, instead of using the image as the RelativeLayout's
> > > > background, have you tried placing it into your RelativeLayout via an
> > > > ImageView with height/width set to wrap_content and the scaleType to
> > > > centerCrop?  You might lose some pixels on the edges but it should at
> > > > least display the image without altering its proportions and possibly
> > > > introducing scaling oddities.
>
> > > or better yet, set image to RelativeLayout's background and simply set
> > > android:gravity = "bottom", this will prevent scaling
>
> > > pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Gradient Image

2010-02-01 Thread MobDev
Actually I have added :

android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

to my manifest so that there wouldn't be a upper and lower bar...
I did set the minimum height and width to 480 and 320 pixels...

Setting the android:layout="bottom" on the used RealtiveLayout (with
the Image as background) still will result into a hideous version of
the original Image...

To try the ImageView option of Robert how do I create a ImageView and
afterwards paint other stuf on top of that ?
I mean I create a RelativeLayout, place an imageView in it, but
afterwards I'd like to place another RelativeLayout (with several
items) on top of that, how is this done ?

On 29 jan, 23:21, Robert Nekic  wrote:
> So does the gradient look any better?
>
> On Jan 29, 5:05 pm, skink  wrote:
>
> > On Jan 29, 9:18 pm, Robert Nekic  wrote:
>
> > > In that case, instead of using the image as the RelativeLayout's
> > > background, have you tried placing it into your RelativeLayout via an
> > > ImageView with height/width set to wrap_content and the scaleType to
> > > centerCrop?  You might lose some pixels on the edges but it should at
> > > least display the image without altering its proportions and possibly
> > > introducing scaling oddities.
>
> > or better yet, set image to RelativeLayout's background and simply set
> > android:gravity = "bottom", this will prevent scaling
>
> > pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en