[android-developers] How to search local banks..?

2010-03-16 Thread android beginner
Hello Every One ...
Any one  help me out regarding how can I retrieve near by banks to
the current location. I am using 1.6 SDK

Thanks in advance

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


[android-developers] Invoking Process from Application

2010-02-08 Thread android beginner
Hi,

We are migrating ncurses based application on our linux target platform into
Android based ones.

We have one application(parent) which runs ping process(child) and reads the
output (through Pipe) and displays on the screen.

I need to develop similar sort of application, but couldn't find Android
API's to invoke processes (/sbin/ping). Can anyone share their views to
accomplish this task?

Thanks

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

[android-developers] Re: TextView - disable focus

2010-02-04 Thread android beginner
Hi,

Any Suggestions?

Thanks

On Sun, Jan 31, 2010 at 3:17 PM, android beginner 
android.beginne...@gmail.com wrote:

 Hi,

 I have a listview, and wanted to make some list items to be non-focusable.
 i.e On pressing the down-arrow key, some items in the middle of the list
 gets skipped.

 I tried the following method.
 1. created separate ArrayAdapter class.
 2. override getView method.
 3. In getView, I called setSelected(false) and also tried
 setFocusable(false) for some items, but its not working.

 Any suggestions?

 Thanks



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

Re: [android-developers] Re: System Settings

2010-02-02 Thread android beginner
Thanks Bob.

On Tue, Feb 2, 2010 at 5:31 PM, Bob Kerns r...@acm.org wrote:

 The ones you're not allowed to change are defined here:

 http://developer.android.com/intl/de/reference/android/provider/Settings.Secure.html

 The ones you ARE allowed to change (with
 android.permission.WRITE_SETTINGS permission) are defined here:

 http://developer.android.com/intl/de/reference/android/provider/Settings.System.html

 You use the static methods on those two classes, together with your
 applications ContentResolver, to access them:
 e.g.:
 return Settings.System.getInt(getContentResolver(),
 NOTIFICATIONS_USE_RING_VOLUME)

 Physically, these are stored in a database, but you shouldn't do it
 that way.

 On Feb 1, 9:52 pm, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
 
  How System Settings (eg, volume, brightness) stored in Android and where?
 
  Thanks

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


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

Re: [android-developers] executing a shell script from Android application

2010-02-02 Thread android beginner
first thought that came to my mind is permission. ofcourse you can confirm
that with logcat.

On Tue, Feb 2, 2010 at 6:58 PM, Asif k asifk1...@gmail.com wrote:

 Hi all,

  I am configuring wifi on my android based board using shell script.
 Now I want to execute the same script from android application. For
 that, I had used following code, but it didn't give any success till
 now,

 I had executed same script from adb shell prompt and it works
 nicely.

 Process exeCommands = Runtime.getRuntime().exec(/data/busybox/
 board_script.sh);

 is there anything else required than this???

 Please help..
 Asif

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

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

[android-developers] Socket creation failure

2010-02-02 Thread android beginner
Hi,

I created a simple client socket from my Activity, but it fails. I am
running this activity in emulator and server runs on PC(its a different
application without Android stuff).

*clientSock = new Socket(127.0.0.1, 30001);*

logcat shows
java.net.SocketException: permission denied maybe missing INTERNET
permission

If I enable permission for my Activity(android.permission.INTERNET), my
Activity constructor itself not called and logcat shows following info.
Permission Denial: starting Intent  flg=0x1000
cmp=com.example.client/.MyClientActivity  from null
pid=-1, uid=-1 requires android.permission.INTERNET.

Any suggestion on how to resolve this issue?

Thanks

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

Re: [android-developers] Socket creation failure

2010-02-02 Thread android beginner
Thanks

On Wed, Feb 3, 2010 at 4:10 PM, Mike Novak m...@androidnerds.org wrote:

 uses-permission android:name=android.permission.INTERNET /

 ^^ place the above line in your AndroidManifest.xml file.

 Mike

 On Feb 3, 2010, at 12:07 AM, android beginner wrote:

 Hi,

 I created a simple client socket from my Activity, but it fails. I am
 running this activity in emulator and server runs on PC(its a different
 application without Android stuff).

 *clientSock = new Socket(127.0.0.1, 30001);*

 logcat shows
 java.net.SocketException: permission denied maybe missing INTERNET
 permission

 If I enable permission for my Activity(android.permission.INTERNET), my
 Activity constructor itself not called and logcat shows following info.
 Permission Denial: starting Intent  flg=0x1000
 cmp=com.example.client/.MyClientActivity  from null
 pid=-1, uid=-1 requires android.permission.INTERNET.

 Any suggestion on how to resolve this issue?

 Thanks

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


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

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

[android-developers] Service - Need Info

2010-02-01 Thread android beginner
Hi,

I created remote service and wanted to get the data from MyActivity's
onCreate().

Below bindService returns true but ServiceConnection() is not called.
Hence testService remains null and I couldn't get the data I want from
onCreate.

Any Suggestion?

public class MyActivity extends Activity
{
private ITestInterface testService = null;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
 bindService(new Intent(ITestInterface.class.getName()),
serConn, Context.BIND_AUTO_CREATE);
 }
 private ServiceConnection serConn = new ServiceConnection()
{
@Override
public void onServiceConnected(ComponentName name, IBinder service)
{
testService = ITestInterface.Stub.asInterface(service);
}

@Override
public void onServiceDisconnected(ComponentName name)
{
 }
};

}

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

[android-developers] Need Suggestion on running Service

2010-02-01 Thread android beginner
Hi,

Currently I am migrating our ncurses based application on Android powered
target hardware.

I need your expert advice on the feasibility of following scenario.

* In our existing application, we have a daemon process A which receives
query from UI process.
* Example, UI process sends message(implemented through local sockets) for
updating Brightness. Daemon Process A receives this message, and updates the
Brightness of the system.
* We are planning to implement UI in Android and wanted to communicate with
Deamon process A.

My Understanding is
* We can start Deamon process as Remote Service with aidl interface(from
init.rc). So that most of current code can be re-used, instead of developing
everything from scratch in java.
* From UI we can communicate with Daemon Process to update Brightness and
other settings for our application.
* I also believe it is in this way that wpa_supplicant is currently running
in Android.

Please correct me if I am wrong and need your expert advice in accomplishing
this task.

Thanks

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

Re: [android-developers] Service - Need Info

2010-02-01 Thread android beginner
Hi Mark,

I observed that after calling bindService in onCreate we should not call the
interface methods as ServiceConnection() runs after onCreate(maybe
bindService puts serviceConnection in queue).

Hence after calling interface method inside onServiceConnected its working
fine.

Thanks



On Mon, Feb 1, 2010 at 10:14 PM, Mark Murphy mmur...@commonsware.comwrote:


  Hi,
 
  I created remote service and wanted to get the data from MyActivity's
  onCreate().
 
  Below bindService returns true but ServiceConnection() is not called.
  Hence testService remains null and I couldn't get the data I want from
  onCreate.
 
  Any Suggestion?

 Most likely, there is an Intent resolution problem. Look at LogCat at the
 warning level and see if you get any messages from Android saying that it
 could not resolve some Intent. You can also confirm that your service has
 an intent-filter with an action that is equivalent to
 ITestInterface.class.getName().

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 Android App Developer Books: http://commonsware.com/books.html


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


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

[android-developers] System Settings

2010-02-01 Thread android beginner
Hi,

How System Settings (eg, volume, brightness) stored in Android and where?

Thanks

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

[android-developers] Re: EditText - maximum width

2010-01-31 Thread android beginner
Hi,

Any suggestion?

Thanks


On Jan 29, 7:49 am, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
 
  I made the EditText to accept only 4 characters, but my question was
  different. sorry for not being clear.
 
  When the EditText comes up, by default its very small(equavalent to one
  character length) and on entering characters it re-sizes itself. I do
 not
  want it to resize, but fixed size of 4 characters.
 
  Thanks
 
 
 
  On Fri, Jan 29, 2010 at 1:08 PM, Zsolt Vasvari zvasv...@gmail.com
 wrote:
   It helps reading the documentation, but here's your answer:
 
  addFilter(view, new InputFilter.LengthFilter(maxLength));
 
   On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
   wrote:
 Hi,
 
I need to have an EditText with maximum width for 4 characters. I
 do not
want set maximum width in pixels as I have my target with couple of
different screen resolutions.
 
Can anyone suggest me how to do this?
 
Thanks
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en





 --
 Thanks  Regards
 Sasikumar.S


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

Re: [android-developers] custom adapter

2010-01-31 Thread android beginner
I believe in your custom ArrayAdapter, you would have override getView.

get the default text size, double the size and again set the text size.

Hope this helps.

On Mon, Feb 1, 2010 at 10:51 AM, Andrei gml...@gmail.com wrote:

 How do i set row height if text of some rows more than one line when
 writing
 custom ArrayAdapter?
 Thanks

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

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

Re: [android-developers] Re: custom adapter

2010-01-31 Thread android beginner
This is just an example, which may not be applicable exactly in your case.

public View getView(int position, View convertView,
ViewGroup parent)
{

LayoutInflater inflater=context.getLayoutInflater();//initiliaze
context in ur constructor
View row=inflater.inflate(R.layout.row, null);
TextView label=(TextView)row.findViewById(R.id.label);
label.setText(item[position]);

   * float size = label.getTextSize();
label.setTextSize((float)((2)*size));*

return(row);
}

On Mon, Feb 1, 2010 at 11:14 AM, Andrei gml...@gmail.com wrote:

 true
 is there example?

 On Jan 31, 7:01 pm, android beginner android.beginne...@gmail.com
 wrote:
  I believe in your custom ArrayAdapter, you would have override getView.
 
  get the default text size, double the size and again set the text size.
 
  Hope this helps.
 
  On Mon, Feb 1, 2010 at 10:51 AM, Andrei gml...@gmail.com wrote:
   How do i set row height if text of some rows more than one line when
   writing
   custom ArrayAdapter?
   Thanks
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

[android-developers] TextView - disable focus

2010-01-30 Thread android beginner
Hi,

I have a listview, and wanted to make some list items to be non-focusable.
i.e On pressing the down-arrow key, some items in the middle of the list
gets skipped.

I tried the following method.
1. created separate ArrayAdapter class.
2. override getView method.
3. In getView, I called setSelected(false) and also tried
setFocusable(false) for some items, but its not working.

Any suggestions?

Thanks

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

[android-developers] EditText - maximum width

2010-01-28 Thread android beginner
Hi,

I need to have an EditText with maximum width for 4 characters. I do not
want set maximum width in pixels as I have my target with couple of
different screen resolutions.

Can anyone suggest me how to do this?

Thanks

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

Re: [android-developers] Re: EditText - maximum width

2010-01-28 Thread android beginner
Hi,

I made the EditText to accept only 4 characters, but my question was
different. sorry for not being clear.

When the EditText comes up, by default its very small(equavalent to one
character length) and on entering characters it re-sizes itself. I do not
want it to resize, but fixed size of 4 characters.

Thanks

On Fri, Jan 29, 2010 at 1:08 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 It helps reading the documentation, but here's your answer:

addFilter(view, new InputFilter.LengthFilter(maxLength));


 On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
 wrote:
   Hi,
 
  I need to have an EditText with maximum width for 4 characters. I do not
  want set maximum width in pixels as I have my target with couple of
  different screen resolutions.
 
  Can anyone suggest me how to do this?
 
  Thanks

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

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

[android-developers] Re: EditText - maximum width

2010-01-28 Thread android beginner
Hi Sasikumar,

Thanks for your email. But as mentioned in my first email, I do not want to
set it with pixel size as I have couple of screen with different resolution.

Thanks

On Fri, Jan 29, 2010 at 2:47 PM, Sasikumar S sasikumar.it1...@gmail.comwrote:

 Hi android beginner,

 you can set your edittext box width as 65PX. So that it will looks
 like four character supporting box.
 After you are entering text also it won't decrease or increase.

 On Jan 29, 7:49 am, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
 
  I made the EditText to accept only 4 characters, but my question was
  different. sorry for not being clear.
 
  When the EditText comes up, by default its very small(equavalent to one
  character length) and on entering characters it re-sizes itself. I do not
  want it to resize, but fixed size of 4 characters.
 
  Thanks
 
 
 
  On Fri, Jan 29, 2010 at 1:08 PM, Zsolt Vasvari zvasv...@gmail.com
 wrote:
   It helps reading the documentation, but here's your answer:
 
  addFilter(view, new InputFilter.LengthFilter(maxLength));
 
   On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
   wrote:
 Hi,
 
I need to have an EditText with maximum width for 4 characters. I do
 not
want set maximum width in pixels as I have my target with couple of
different screen resolutions.
 
Can anyone suggest me how to do this?
 
Thanks
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en


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

Re: [android-developers] Re: list - need suggestion

2010-01-27 Thread android beginner
Hi,
The basic list that I want to view is working.

In my first list activity(ListDemoActivity), I choosed some element, which
triggers another list A activity. If I go back (on pressing BACK key), the
state of ListDemoActivity screen is preserved. Now If I select the same
element again, I expect the state of A activity to be preserved aswell, but
its not happening.

Below is the code snippet, Can you please suggest me what I need to do?

public class ListDemoActivity extends ListActivity {
String[] firstPage = {a, b, c, d, e};
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

setListAdapter(new ArrayAdapterString(this,
android.R.layout.simple_list_item_1,
firstPage));

}

public void onListItemClick(ListView parent, View v,
int position, long id)
{
String txt = firstPage[position];
if ((txt == a) ||
(txt == b))
{
Intent startActivity = new Intent(this, Activity_A.class);
startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity(startActivity);
}
else
{
Intent startActivity = new Intent(this, Activity_B.class);
startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity(startActivity);
}

}
}

On Tue, Jan 26, 2010 at 5:28 PM, theSmith chris.smith...@gmail.com wrote:


 On Jan 25, 11:48 pm, android beginner android.beginne...@gmail.com
 wrote:
  so, each sub-lists should be created as list activity. On selecting any
  item, should call that particular list activity. Is my understanding
  correct?

 Yes

  Also, how to store parent list in the stack? so that on pressing escape
  key, I can navigate backwards.

 Android does this automatically, and I assume you mean the 'back'
 key.  Each new activity is launched ontop of the older ones allowing
 you to navigate backwards down the stack.

 -theSmith



  Thanks
 
  On Tue, Jan 26, 2010 at 9:11 AM, saad bouchehboun bsaad1...@gmail.com
 wrote:
 
   your item must be a listactivity , when you add it to your parent
   list , the UI is adapted automaticly .
 
   On 25 jan, 06:24, android beginner android.beginne...@gmail.com
   wrote:
 Hi,
 
My Activity has list of items and on clicking any item, new window
 with
different set of list has to appear and this can continue upto 4 or 5
   level
depths. I need your expert advice on how to achieve this.
 
Can I have each sub-list to be of separate activity? If there are any
   online
examples matching this requirement, please let me know.
 
Thank
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Re: list - need suggestion

2010-01-27 Thread android beginner
Yea, went through the document and got good understanding of activities 
tasks.

I observed one issue though (Not sure if its an issue, maybe I need to call
some other functions).

In my first list A, I selected one item using Keys. This leads to create
another list Activity B. I just browsed the list using Key, so that one
element will be highlighted (focussed). These activities are created with
Launch mode singleTop
Then I went to the Home Screen. Now on selecting my Activity Icon again, I
got the list Activity B screen but its not highlighted. Using onPause, I got
the position and in onResume I called setSelection(position). But still
that element in the list is not highlighted

Any Suggestions?

Thanks

On Thu, Jan 28, 2010 at 11:52 AM, theSmith chris.smith...@gmail.com wrote:



 On Jan 27, 7:03 pm, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
  The basic list that I want to view is working.
 
  In my first list activity(ListDemoActivity), I choosed some element,
 which
  triggers another list A activity. If I go back (on pressing BACK key),
 the
  state of ListDemoActivity screen is preserved. Now If I select the same
  element again, I expect the state of A activity to be preserved aswell,
 but
  its not happening.

 You're assuming things that are not true.  Its an activity stack, so
 once you pop it off (hit the back key) that state is lost, and you
 will be creating a new activity when launching that activity A again.

 I'd recommend learning a little bit about the nature of android before
 getting too deep into developing code.
 The Androidology videos will get you started and the Google I/O videos
 are some of my favorites for getting into Android as a pro.
 http://developer.android.com/intl/de/videos/index.html#v=opZ69P-0Jbc


  Below is the code snippet, Can you please suggest me what I need to do?
 
  public class ListDemoActivity extends ListActivity {
  String[] firstPage = {a, b, c, d, e};
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
 
  setListAdapter(new ArrayAdapterString(this,
  android.R.layout.simple_list_item_1,
  firstPage));
 
  }
 
  public void onListItemClick(ListView parent, View v,
  int position, long id)
  {
  String txt = firstPage[position];
  if ((txt == a) ||
  (txt == b))
  {
  Intent startActivity = new Intent(this, Activity_A.class);
  startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 
  startActivity(startActivity);
  }
  else
  {
  Intent startActivity = new Intent(this, Activity_B.class);
  startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 
  startActivity(startActivity);
  }
 
  }
 
  }
  On Tue, Jan 26, 2010 at 5:28 PM, theSmith chris.smith...@gmail.com
 wrote:
 
   On Jan 25, 11:48 pm, android beginner android.beginne...@gmail.com
   wrote:
so, each sub-lists should be created as list activity. On selecting
 any
item, should call that particular list activity. Is my understanding
correct?
 
   Yes
 
Also, how to store parent list in the stack? so that on pressing
 escape
key, I can navigate backwards.
 
   Android does this automatically, and I assume you mean the 'back'
   key.  Each new activity is launched ontop of the older ones allowing
   you to navigate backwards down the stack.
 
   -theSmith
 
Thanks
 
On Tue, Jan 26, 2010 at 9:11 AM, saad bouchehboun 
 bsaad1...@gmail.com
   wrote:
 
 your item must be a listactivity , when you add it to your parent
 list , the UI is adapted automaticly .
 
 On 25 jan, 06:24, android beginner android.beginne...@gmail.com
 wrote:
   Hi,
 
  My Activity has list of items and on clicking any item, new
 window
   with
  different set of list has to appear and this can continue upto 4
 or 5
 level
  depths. I need your expert advice on how to achieve this.
 
  Can I have each sub-list to be of separate activity? If there are
 any
 online
  examples matching this requirement, please let me know.
 
  Thank
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 android-developers%252bunsubscr

Re: [android-developers] Re: list - need suggestion

2010-01-27 Thread android beginner
Yes. Because of touch mode, I didn't get the focus. Since my hardware doesnt
have the the touch screen, it should not be an issue :)

On Thu, Jan 28, 2010 at 3:23 PM, android beginner 
android.beginne...@gmail.com wrote:

 Yea, went through the document and got good understanding of activities 
 tasks.

 I observed one issue though (Not sure if its an issue, maybe I need to call
 some other functions).

 In my first list A, I selected one item using Keys. This leads to create
 another list Activity B. I just browsed the list using Key, so that one
 element will be highlighted (focussed). These activities are created with
 Launch mode singleTop
 Then I went to the Home Screen. Now on selecting my Activity Icon again, I
 got the list Activity B screen but its not highlighted. Using onPause, I got
 the position and in onResume I called setSelection(position). But still
 that element in the list is not highlighted

 Any Suggestions?

 Thanks


 On Thu, Jan 28, 2010 at 11:52 AM, theSmith chris.smith...@gmail.comwrote:



 On Jan 27, 7:03 pm, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
  The basic list that I want to view is working.
 
  In my first list activity(ListDemoActivity), I choosed some element,
 which
  triggers another list A activity. If I go back (on pressing BACK key),
 the
  state of ListDemoActivity screen is preserved. Now If I select the same
  element again, I expect the state of A activity to be preserved aswell,
 but
  its not happening.

 You're assuming things that are not true.  Its an activity stack, so
 once you pop it off (hit the back key) that state is lost, and you
 will be creating a new activity when launching that activity A again.

 I'd recommend learning a little bit about the nature of android before
 getting too deep into developing code.
 The Androidology videos will get you started and the Google I/O videos
 are some of my favorites for getting into Android as a pro.
 http://developer.android.com/intl/de/videos/index.html#v=opZ69P-0Jbc


  Below is the code snippet, Can you please suggest me what I need to do?
 
  public class ListDemoActivity extends ListActivity {
  String[] firstPage = {a, b, c, d, e};
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
 
  setListAdapter(new ArrayAdapterString(this,
  android.R.layout.simple_list_item_1,
  firstPage));
 
  }
 
  public void onListItemClick(ListView parent, View v,
  int position, long id)
  {
  String txt = firstPage[position];
  if ((txt == a) ||
  (txt == b))
  {
  Intent startActivity = new Intent(this, Activity_A.class);
  startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 
  startActivity(startActivity);
  }
  else
  {
  Intent startActivity = new Intent(this, Activity_B.class);
  startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 
  startActivity(startActivity);
  }
 
  }
 
  }
  On Tue, Jan 26, 2010 at 5:28 PM, theSmith chris.smith...@gmail.com
 wrote:
 
   On Jan 25, 11:48 pm, android beginner android.beginne...@gmail.com
   wrote:
so, each sub-lists should be created as list activity. On selecting
 any
item, should call that particular list activity. Is my understanding
correct?
 
   Yes
 
Also, how to store parent list in the stack? so that on pressing
 escape
key, I can navigate backwards.
 
   Android does this automatically, and I assume you mean the 'back'
   key.  Each new activity is launched ontop of the older ones allowing
   you to navigate backwards down the stack.
 
   -theSmith
 
Thanks
 
On Tue, Jan 26, 2010 at 9:11 AM, saad bouchehboun 
 bsaad1...@gmail.com
   wrote:
 
 your item must be a listactivity , when you add it to your parent
 list , the UI is adapted automaticly .
 
 On 25 jan, 06:24, android beginner android.beginne...@gmail.com
 wrote:
   Hi,
 
  My Activity has list of items and on clicking any item, new
 window
   with
  different set of list has to appear and this can continue upto 4
 or 5
 level
  depths. I need your expert advice on how to achieve this.
 
  Can I have each sub-list to be of separate activity? If there
 are any
 online
  examples matching this requirement, please let me know.
 
  Thank
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers

[android-developers] string to uppercase not working

2010-01-27 Thread android beginner
Hi,

The following is the code snippet. It is observed that after calling the
toUpperCase routine, 'f' is not converted to F. Can anyone let me know why
this behaviour??

String str = f;

str.toUpperCase(Locale.*ENGLISH*);

Thanks

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

Re: [android-developers] Re: list - need suggestion

2010-01-25 Thread android beginner
so, each sub-lists should be created as list activity. On selecting any
item, should call that particular list activity. Is my understanding
correct?

Also, how to store parent list in the stack? so that on pressing escape
key, I can navigate backwards.

Thanks

On Tue, Jan 26, 2010 at 9:11 AM, saad bouchehboun bsaad1...@gmail.comwrote:

 your item must be a listactivity , when you add it to your parent
 list , the UI is adapted automaticly .

 On 25 jan, 06:24, android beginner android.beginne...@gmail.com
 wrote:
   Hi,
 
  My Activity has list of items and on clicking any item, new window with
  different set of list has to appear and this can continue upto 4 or 5
 level
  depths. I need your expert advice on how to achieve this.
 
  Can I have each sub-list to be of separate activity? If there are any
 online
  examples matching this requirement, please let me know.
 
  Thank

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


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

Re: [android-developers] Log messages no longer appear in LogCat

2009-11-16 Thread android beginner
s i experience the same.did u get any answer

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