[android-developers] Robotium horizontalscroll using solo

2012-03-12 Thread Uday Gokhale
Hi All,

I have 2 galary views in my app. I want to scroll right on 2nd galary view.

here is my code but its not working..

ArrayList views = solo.getCurrentViews();

*for* (*int* i=0;ihttp://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Listview and expandablelistview

2012-01-13 Thread Uday Gokhale
Ya TreKing,robinns <http://sites.google.com/site/rezmobileapps/treking> you
are rite.

THANKS A LOT!!!

On Fri, Jan 13, 2012 at 8:40 PM, TreKing  wrote:

> On Fri, Jan 13, 2012 at 3:28 AM, Uday Gokhale wrote:
>
>> How can i achieve this.
>
>
> Learn to program, read the docs, read the samples, write some code, fail,
> learn, debug, fix, ask a better question, profit.
>
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> 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
>



-- 
Best Regards,

Uday Gokhale | Jr.Software Engineer |
Omni-Bridge Systems Pvt. Ltd.
one small step..one giant leap
18, Shivranjani House, 4th Floor,
Sitabaug Colony, Ganeshmala,
Pune - 411030, Maharashtra, India.
Mobile No. : +91-8087934662
www.omni-bridge.com

-- 
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] Listview and expandablelistview

2012-01-13 Thread Uday Gokhale
I want to create app in which
1) get main list view content from user (from edit-text) .on click of add
button it will add dynamically.
2)on click of list view pop up in which 3 options 1)add sub list
2)delete3)edit
3)And repete 2) for my sublist also.

How can i achieve this.


-- 
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] How to run application in background on click of device back button

2011-12-18 Thread Uday Gokhale
I want to show route between source and destination using google
map.whenever -

1) I get the message,on click of that message I want to check whether my
application is install on device?

2) If my app install on a device i want to show route,

3)I want my application to run in background when back key(Device) pressed.

Please any idea how to achieve above three functionality? 3rd one is most
imp.


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]

2011-12-15 Thread Uday Gokhale
I am having an activity which reads outgoing call. I got the numers
and suceessfully shon on my listview . but I am not getting names
releated to that particular outgoing calls.
the whole thing look like this

Uri allCalls = Uri.parse("content://call_log/calls");
Cursor c = managedQuery(allCalls, null, null, null, null);
for (String colName : c.getColumnNames())
Log.v(TAG, "Column Name: " + colName);
System.out.println("IN CURSOR COUNT::" + c.getCount());

ArrayList valueList = new ArrayList();
//  ContentResolver cr = getContentResolver();
//Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI, 
null,
//null, null, null);
if (c.moveToFirst()) {

do {
id = 
c.getString(c.getColumnIndex(CallLog.Calls._ID));
num = 
c.getString(c.getColumnIndex(CallLog.Calls.NUMBER));
//name =  c.getString(
c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
type = Integer.parseInt(c.getString(c

.getColumnIndex(CallLog.Calls.TYPE)));
 //System.out.println("TYPE::"+name+"\n 
NUMBER"+num);
switch (type) {
//case Calls.OUTGOING_TYPE:
case 2:
Log.v(TAG, id + ", " + num + ": 
OUTGOING");
int count =0;
//  names = new String[cur.getCount()];
//  if (cur.getCount() > 0) {
//  while (cur.moveToNext()) {
//  String id =
cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID));
//  name =
cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));

System.out.println("name out going::" + name);
//names[count]=name;
valueList.add(num);
break;
} while (c.moveToNext());
ArrayAdapter adapter = new ArrayAdapter(
Outgoing.this, 
android.R.layout.simple_list_item_1,
valueList);
setListAdapter(adapter);

I want name if that particular number is stored in mobile database.
If i call to particular no. that particular namename is not coming to
outgoing call listview,instead of that only numbers are coming.

PLEASE tell me soln.

-- 
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] Retrive outgoing call and name using content provider

2011-12-15 Thread Uday Gokhale
I am having an activity which reads outgoing call. I got the numbers
and suceessfully shown on my listview . but I am not getting names
releated to that particular outgoing calls.
the whole thing look like this

   Uri allCalls = Uri.parse("content://call_log/calls");
   Cursor c = managedQuery(allCalls, null, null, null, null);
   for (String colName : c.getColumnNames())
   Log.v(TAG, "Column Name: " + colName);
   System.out.println("IN CURSOR COUNT::" + c.getCount());

   ArrayList valueList = new ArrayList();
   //  ContentResolver cr = getContentResolver();
   //Cursor cur =
cr.query(ContactsContract.Contacts.CONTENT_URI, null,
   //null, null, null);
   if (c.moveToFirst()) {

   do {
   id =
c.getString(c.getColumnIndex(CallLog.Calls._ID));
   num =
c.getString(c.getColumnIndex(CallLog.Calls.NUMBER));
   //name =  c.getString(
c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
   type = Integer.parseInt(c.getString(c

 .getColumnIndex(CallLog.Calls.TYPE)));
//System.out.println("TYPE::"+name+"\n
NUMBER"+num);
   switch (type) {
   //case Calls.OUTGOING_TYPE:
   case 2:
   Log.v(TAG, id + ", " + num + ":
OUTGOING");
   int count =0;
//  names = new String[cur.getCount()];
//  if (cur.getCount() > 0) {
//  while (cur.moveToNext()) {
//  String id =
cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID));
//  name =
cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));

 System.out.println("name out going::" + name);
   //names[count]=name;
   valueList.add(num);
   break;
} while (c.moveToNext());
   ArrayAdapter adapter = new
ArrayAdapter(
   Outgoing.this,
android.R.layout.simple_list_item_1,
   valueList);
   setListAdapter(adapter);

I want name if that particular number is stored in mobile database.
If i call to particular no. that particular namename is not coming to
outgoing call listview,instead of that only numbers are coming.

PLEASE tell me soln.



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