[android-beginners] Regarding CTS test apk Signing procedure

2010-05-06 Thread pradeep
Hi

I am trying to develop new cts testcases. After I ran those testcases
by adding them in CTS,
I got the below error.

Permission Denial: starting  instrumentation
ComponentInfo{com.android.cts.performance4/
android.test.InstrumentationTestRunner}
from pid=6365, uid=6365 not allowed because package
com.android.cts.performance4  does not have a signature matching the
target com.android.mms

I thought it is something related to signing the newly developed test
apks.

I have the below queries related to signing the cts test apks. I would
be grateful if any one can clear these doubts.

1.  What kind of signing should be followed to sign  cts test apks if
they have to be build in ubuntu linux.
2.  Do we need to get signed our certificate from any Certification
authority
3.  Since CTS test apks test other applications, do they need to be
signed with same certificate [used to sign android applications
present in the phone]. If yes , then is it required to specify that
private key in Android manifest file

Thanks,
Pradeep

-- 
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: How do I simulate a "Home", "Menu", Or "Back" key press

2010-05-06 Thread Mani Android
Dear all

Any one find out the solution how to simulate the  Power, Back and Menu keys
and other Hard keys?


Thanks in advance...





On Tue, Nov 10, 2009 at 7:44 AM, GT  wrote:

> Update:
>
>  I managed to get the soft Home button functioning by sending the
> Intent:
>
> Intent HomeIntent = new Intent();
> HomeIntent.setAction(Intent.ACTION_MAIN);
> HomeIntent.addCategory(Intent.CATEGORY_HOME);
>
> I still don't have a solution for the Back and Menu keys.
> Furthermore, I ran into problems setting my window to always display
> on top.  Since I have no hardware buttons the user needs access to
> this menu from anywhere.  Unfortunately I haven't found a way of doing
> this.
>
> Are devices without hardware keyboards not supported?  Is the only way
> to get this working by modifiying Android itself?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> To post to this group, send email to android-beginners@googlegroups.com
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
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: How to create a new folder on the SD card?

2010-05-06 Thread DonFrench
I hate it when I find the answer two minutes after posting the
question!   All I needed was this:



in the manifest.

On May 6, 4:50 pm, DonFrench  wrote:
> I am not succeeding in creating a new folder on the SD card using the
> following code:
>
>   try{
>     String dirName = "/sdcard/testdir";
>     File newFile = new File(dirName);
>     newFile.mkdirs();
>     if(newFile.exists()){
>         toastLong("directory exists");
>         if(newFile.isDirectory()){
>                 toastLong("isDirectory = true");
>         } else toastLong("isDirectory = false");
>     } else {
>         toastLong("directory doesn't exist");
>     }} catch(Exception e){
>
>         toastLong("Exception creating folder " + e);
>
> }
>
> I don't get an exception but the message I do get is "directory
> doesn't exist"and in fact the folder is not created.  Why doesn't this
> work and what is the right way to do this?
>
> --
> 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
> 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


[android-beginners] How to create a new folder on the SD card?

2010-05-06 Thread DonFrench
I am not succeeding in creating a new folder on the SD card using the
following code:

  try{
String dirName = "/sdcard/testdir";
File newFile = new File(dirName);
newFile.mkdirs();
if(newFile.exists()){
toastLong("directory exists");
if(newFile.isDirectory()){
toastLong("isDirectory = true");
} else toastLong("isDirectory = false");
} else {
toastLong("directory doesn't exist");
}
} catch(Exception e){
toastLong("Exception creating folder " + e);
}

I don't get an exception but the message I do get is "directory
doesn't exist"and in fact the folder is not created.  Why doesn't this
work and what is the right way to do this?

-- 
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] Compiling and porting Open source android to Nexus One

2010-05-06 Thread TreKing
On Thu, May 6, 2010 at 2:11 PM, prajakta choudhari <
prajaktachoudh...@gmail.com> wrote:

> I wanted to know the steps to follow to port the Open Source Android to my
> nexus phone.
>

You probably want to ask this on the Android Porting group.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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] Maps Overlay onTap help needed:

2010-05-06 Thread TreKing
On Thu, May 6, 2010 at 1:29 PM, karthik k  wrote:

> Thanks for your reply.. I still could not figure out on how to write in the
> ontap method with that canvas opup which is again clickable to a new
> activity..
>

What did you try? What specific problems are you having getting this to
work?


> Can u please help me in code level with the same..
>

I already told you what you need to do - I'm not going to write the code for
you, if that's what you're asking.


> This is quite urgent for me
>

Then you should put more effort in asking specific questions that you can
get answers to or into solving the problem on your own. "I can't figure this
out" is not going to get you a quick response and saying it's urgent is not
going to make people drop what they're doing to do your work for you.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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] Compiling and porting Open source android to Nexus One

2010-05-06 Thread prajakta choudhari
Dear All:

I wanted to know the steps to follow to port the Open Source Android
to my nexus phone.

I have downloaded the source code, but are there any vendor specific
libraries that i need to include. I am totally blank about it.

I am completely new to it.

Thank you in advance.
Regards
Prajakta

-- 
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] Maps Overlay onTap help needed:

2010-05-06 Thread karthik k
HI,
Thanks for your reply.. I still could not figure out on how to write in the
ontap method with that canvas opup which is again clickable to a new
activity..
Can u please help me in code level with the same.. Thanks in advanceThis
is quite urgent for me and i've been unsuccessful in getting the same .The
code is as below:


I'm using the sample program given in the Google Android Website
http://developer.android.com/resources/tutorials/views/hello-mapview.html
and i want to extended it to the next level.

Urgent help needed. Thanks in advance..

Let me know if more infomration is requirred

//HelloGoogleMaps.java

import java.util.List;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
import com.google.android.maps.OverlayItem;

import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.os.Bundle;

public class HelloGoogleMaps extends MapActivity {
   MapController mapController;

  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  MapView mapView = (MapView) findViewById(R.id.mapview);
  mapView.setBuiltInZoomControls(true);
  mapController = mapView.getController();
  mapController.setZoom(2);
  List mapOverlays = mapView.getOverlays();
  Drawable drawable =
this.getResources().getDrawable(R.drawable.androidmarker);
  HelloItemizedOverlay itemizedoverlay = new
HelloItemizedOverlay(drawable,this);

  GeoPoint point = new GeoPoint(45005000,-93228900);
  OverlayItem overlayitem = new OverlayItem(point, "Hola,
Mundo!", "I'm in Mexico City!");
  GeoPoint point2 = new GeoPoint(3541, 13946);
  OverlayItem overlayitem2 = new OverlayItem(point2, "wow",
"this is tokyo");
  itemizedoverlay.addOverlay(overlayitem);
  itemizedoverlay.addOverlay(overlayitem2);

  mapOverlays.add(itemizedoverlay);
  }

  @Override
  protected boolean isRouteDisplayed() {
  return false;
  }
}


// HelloItemizedOverlay.java

import java.util.ArrayList;

import android.app.AlertDialog;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.Toast;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class HelloItemizedOverlay extends ItemizedOverlay {
   private ArrayList mOverlays = new
ArrayList();
   Context mContext ;

   public HelloItemizedOverlay(Drawable defaultMarker) {
super(boundCenterBottom(defaultMarker));

// TODO Auto-generated constructor stub
   }

   public HelloItemizedOverlay(Drawable defaultMarker, Context
context) {
  super(boundCenterBottom(defaultMarker));
  mContext = context;
   }

   @Override
   protected boolean onTap(int index) {
 OverlayItem item = mOverlays.get(index);
 /*// working below code, just replace */
   AlertDialog.Builder dialog = new
AlertDialog.Builder(mContext);
 dialog.setTitle(item.getTitle());
 dialog.setMessage(item.getSnippet());
 dialog.show();

 // I need to show another dialog opening up on tapping the
above dialog. Need help here:



 return true;
   }

   @Override
   public int size() {
 return mOverlays.size();
   }

   @Override
   protected OverlayItem createItem(int i) {
 return mOverlays.get(i);
   }

   public void addOverlay(OverlayItem overlay) {
   mOverlays.add(overlay);
   populate();
   }


}



On Thu, May 6, 2010 at 8:34 AM, TreKing  wrote:

> On Wed, May 5, 2010 at 8:57 PM, karthik k  wrote:
>
>> I'm unable to implement the methods inside the onTap() so that upon
>> i click the androidmarker icon on the map, it tells me some cavvas popout
>> layout being  transparent with some text(substantially, even that canvas
>> layout is clickable and takes to another activity).
>>
>
> A MapView is a ViewGroup like any other -  you can add other views to it at
> any point. Unique to MapView are layout params that let you place views
> based on map coordinates.
>
> It's a simple matter of defining the layout you want to show, inflating it
> on tap, and adding it to the MapView at the correct location.
>
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
> http://sites.google.com/site/rezmobileapps/treking
>
> --
> 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
> ht

Re: [android-beginners] Tabbed UI

2010-05-06 Thread Justin Anderson
Is this the tutorial you are following?
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

If so, that was one of the first tutorials I did, and everything worked out
fine for me.  Where, EXACTLY, are you getting hung up?

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


On Thu, May 6, 2010 at 11:54 AM, TreKing  wrote:

> On Thu, May 6, 2010 at 12:08 PM, Raul Martinez  wrote:
>
>> i honestly havent done much cause i dont know where to start, im really
>> new at this
>
>
> OK, you're really going to have to provide more information than this to
> get some help.
> "Where to start" would be the official android documentation and a good
> book (cue Mark Murphy =P)
>
> The best way to get help in this group is to post SPECIFIC questions with
> what problem you're having with as much detail as possible so people can
> quickly and easily grasp the problem you're having.
>
> "i dont know how to get the 3 activities", without context, code, or
> explanation of what you have tried and hasn't worked, isn't very useful
> information for someone trying to help you. I'm not even sure what you mean
> by "get the 3 activities".
>
>
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
> http://sites.google.com/site/rezmobileapps/treking
>
> --
> 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] Android GPS degree format

2010-05-06 Thread TreKing
On Thu, May 6, 2010 at 11:47 AM, msurrow  wrote:

> Does any one know what the degree format of the GPS fixes one get from the
> LocationManager is?
>

I can't back this up, but I'm fairly certain it's decimal degrees. Seems
like the only format that's easily represented by a single double value.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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] Tabbed UI

2010-05-06 Thread TreKing
On Thu, May 6, 2010 at 12:08 PM, Raul Martinez  wrote:

> i honestly havent done much cause i dont know where to start, im really new
> at this


OK, you're really going to have to provide more information than this to get
some help.
"Where to start" would be the official android documentation and a good book
(cue Mark Murphy =P)

The best way to get help in this group is to post SPECIFIC questions with
what problem you're having with as much detail as possible so people can
quickly and easily grasp the problem you're having.

"i dont know how to get the 3 activities", without context, code, or
explanation of what you have tried and hasn't worked, isn't very useful
information for someone trying to help you. I'm not even sure what you mean
by "get the 3 activities".

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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] LatinIME Donut Build Errors

2010-05-06 Thread jpspringall
I'm trying to build LatinIME, but have a total of 35 build errors:

1x  BackupHelperAgent cannot be resolved to a type
1x  BackupManager cannot be resolved to a type
2x  com.android.internal.R cannot be resolved

25x mScrollX cannot be resolved

1x  SharedPreferencesBackupHelper cannot be resolved to a type
1x  The constructor Vibrator() is not visible
3x  The import android.backup cannot be resolved

1x  The method getInstance(LatinIME) is undefined for the type
InputMethodManager

The one that occurs 25x i have found this thread -
http://groups.google.com/group/android-framework/browse_thread/thread/572303b9c8c7f021?fwc=1

But dont really understand the solution. If anyone has any pointers
that would be great

Cheers

James

-- 
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] Tabbed UI

2010-05-06 Thread Raul Martinez
i honestly havent done much cause i dont know where to start, im really new
at this

On Thu, May 6, 2010 at 11:44 AM, Justin Anderson wrote:

> What have you tried thus far?
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
>
> On Thu, May 6, 2010 at 10:37 AM, Raul Martinez  wrote:
>
>> i dont know how to get the 3 activities
>>
>>
>> On Thu, May 6, 2010 at 10:12 AM, TreKing  wrote:
>>
>>> On Wed, May 5, 2010 at 11:09 PM, Raul Martinez wrote:
>>>
 i really need help figuring the tab ui tutorial, i dont understand how
 to make the three activities
>>>
>>>
>>> What, SPECIFICALLY, are you having trouble with?
>>>
>>>
>>>
>>> -
>>> TreKing - Chicago transit tracking app for Android-powered devices
>>> http://sites.google.com/site/rezmobileapps/treking
>>>
>>> --
>>> 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
>

-- 
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] Android GPS degree format

2010-05-06 Thread msurrow
Does any one know what the degree format of the GPS fixes one get from
the LocationManager is? It looks like DD, but I can't find any
documentation specifying this.

DMS Degrees:Minutes:Seconds (49°30'00"N, 123°30'00"W)
DM Degrees:Decimal Minutes (49°30.0', -123°30.0'),
(49d30.0m,-123d30.0')
DD Decimal Degrees (49.5000°,-123.5000°), generally with 4-6 decimal
numbers.

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] Tabbed UI

2010-05-06 Thread Justin Anderson
What have you tried thus far?

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


On Thu, May 6, 2010 at 10:37 AM, Raul Martinez  wrote:

> i dont know how to get the 3 activities
>
>
> On Thu, May 6, 2010 at 10:12 AM, TreKing  wrote:
>
>> On Wed, May 5, 2010 at 11:09 PM, Raul Martinez wrote:
>>
>>> i really need help figuring the tab ui tutorial, i dont understand how to
>>> make the three activities
>>
>>
>> What, SPECIFICALLY, are you having trouble with?
>>
>>
>>
>> -
>> TreKing - Chicago transit tracking app for Android-powered devices
>> http://sites.google.com/site/rezmobileapps/treking
>>
>> --
>> 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


Re: [android-beginners] Tabbed UI

2010-05-06 Thread Raul Martinez
i dont know how to get the 3 activities

On Thu, May 6, 2010 at 10:12 AM, TreKing  wrote:

> On Wed, May 5, 2010 at 11:09 PM, Raul Martinez  wrote:
>
>> i really need help figuring the tab ui tutorial, i dont understand how to
>> make the three activities
>
>
> What, SPECIFICALLY, are you having trouble with?
>
>
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
> http://sites.google.com/site/rezmobileapps/treking
>
> --
> 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: Titkle bar display

2010-05-06 Thread TreKing
On Thu, May 6, 2010 at 7:06 AM, Revathi K J Ramanan <
revathiramana...@gmail.com> wrote:

> But my question is ,Is there any possibility of hiding the title bar after
> setContentView()   
>

I'm sure there is as I've seen apps do this, though I've not done it myself.
What have you tried?

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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] Handle Button Click

2010-05-06 Thread TreKing
On Thu, May 6, 2010 at 4:07 AM, MadBunny  wrote:

> I do not get any errors, but the click does not register on the emulator.
>
I have set breakpoints and confirmed that the handler never gets executed.
>

Code looks fine, as far as I can tell. Maybe you're doing something wrong in
the emulator or how you've set up the break points? Did you try logging in
the onClickListener?

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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] Tabbed UI

2010-05-06 Thread TreKing
On Wed, May 5, 2010 at 11:09 PM, Raul Martinez  wrote:

> i really need help figuring the tab ui tutorial, i dont understand how to
> make the three activities


What, SPECIFICALLY, are you having trouble with?

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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] SectionIndexer problem

2010-05-06 Thread manigault
Hi all i have ArrayAdapter that implements SectionIndexer. It
implement basic alphabetic indexing for string but the problem is that
i'm filling the strings dynamically so if i start using the fast
scroll before all items are loaded getSection method is called and
only sections that are present in the current state are displayed. How
to notify the scroll that there are new items in the adapter and
refetch newly created sections.
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: Titkle bar display

2010-05-06 Thread Revathi K J Ramanan
Hi Treking,

As per the posts and documentation in android, i have gone through ,
this requestWindowFeature should  be called before setContentView().

Other than this we have setFlags() through which we can hide the title
bar but all this can happen before setContentView().

But my question is ,Is there any possibility of hiding the title bar
after setContentView()   

Thanks in advance.

Regards,
Revathi K J Ramanan
On May 4, 6:59 pm, TreKing  wrote:
> On Tue, May 4, 2010 at 12:24 AM, Revathi K J Ramanan <
>
> revathiramana...@gmail.com> wrote:
> > Is it possible to disable title bar display dynamically after setting the
> > content view by setting the NoTitlebar theme?
>
> Yes. Try 
> this:http://developer.android.com/intl/fr/guide/appendix/faq/commontasks.h...
> 
>
>
>
> > All the posts I have read told that any title bar changes we can make only
> > before setContentView() call.
>
> I believe that refers to the theme only being able to be set before
> setContetView(). You can show / hide the title bar at any time.
>
> ---­--
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> --
> 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
> 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


[android-beginners] Handle Button Click

2010-05-06 Thread MadBunny
Hi,

I am new to Android development and I am currently working through a
tutorial but have already run into a brick wall. I am trying to handle
a simple button click following some sample code but can't get it to
work. I do not get any errors, but the click does not register on the
emulator. I have set breakpoints and confirmed that the handler never
gets executed. I have attached the complete code below. Any help would
be appreciated.

package com.test.HelloWorld;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;


public class mainPage extends Activity {

TextView dollars;
TextView euros;
TextView debug;
RadioButton dtoe;
RadioButton etod;
Button convert;


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


dollars = (TextView)this.findViewById(R.id.dollars);
euros = (TextView)this.findViewById(R.id.euros);
debug = (TextView)this.findViewById(R.id.Debug);
dtoe = (RadioButton)this.findViewById(R.id.dtoe);
etod = (RadioButton)this.findViewById(R.id.etod);

dtoe.setChecked(true);

debug.setText("Program Started..");

convert = (Button)this.findViewById(R.id.convert);
convert.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method stub
if (dtoe.isChecked())
{
convertDollarsToEuros();
}

if (etod.isChecked())
{
convertEurosToDollars();
}
}
});
   }



protected void convertDollarsToEuros()
{
double val = Double.parseDouble(dollars.getText().toString());
euros.setText(Double.toString(val*0.67));
debug.setText(euros.getText());

}

protected void convertEurosToDollars()
{
double val = Double.parseDouble(euros.getText().toString());
dollars.setText(Double.toString(val/0.67));
}

}

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