[android-developers] XML files and SQLITE Database

2011-09-13 Thread Bishan
i have a xml file.(pls see attachement). and i need insert data in my
xml file to a sqlite database in my android project.

hw can i do 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
http://www.w3.org/2001/XMLSchema"; xmlns:es="http://www.elephantgreen.com/Interface";>
	
		1072
		LASANTHA STORES
		R1
		2
		1000
		GROCERY
		BRONZ
		4
		1
		HIGHL LEVEL ROAD
		MAHARAGAMA
		COLOMBO
		1101
		test
		Y
	
	
		1073
		GAYATHRI STORES
		R1
		4
		0
		GROCERY
		BRONZ
		4
		2
		HIGHL LEVEL ROAD
		MAHARAGAMA
		COLOMBO
		1102
		
		Y
	
	
		1074
		MITHUL'S 
		R1
		3
		0
		HOTEL
		BRONZ
		4
		3
		HIGHL LEVEL ROAD
		MAHARAGAMA
		COLOMBO
		1103
		
		Y
	
	
		1075
		CHAMI
		R1
		2
		5000
		HOTEL
		SILVER
		4
		4
		HIGHL LEVEL ROAD
		MAHARAGAMA
		COLOMBO
		1101
		
		Y
	
	
		1076
		NILU
		R1
		7
		2
		GROCERY
		GOLD
		7
		5
		HIGHL LEVEL ROAD
		MAHARAGAMA
		COLOMBO
		1102
		
		Y
	
	
		1077
		CHAMITHU
		R1
		1
		14000
		RESTAURANT
		GOLD
		1
		6
		HIGHL LEVEL ROAD
		MAHARAGAMA
		COLOMBO
		1103
		
		Y
	
	
		1078
		AMAYA
		R2
		3
		12000
		RESTAURANT
		GOLD
		3
		2
		ATHURUGIRIYA ROAD
		KOTTAWA
		COLOMBO
		1101
		
		Y
	
	
		1079
		COOL ZONE
		R2
		14
		4000
		GROCERY
		SILVER
		14
		5
		ATHURUGIRIYA ROAD
		KOTTAWA
		COLOMBO
		1102
		
		Y
	
	
		1080
		BON BON 
		R2
		2
		3000
		HOTEL
		SILVER
		3
		7
		ATHURUGIRIYA ROAD
		KOTTAWA
		COLOMBO
		1103
		
		Y
	
	
		1081
		PANORAMA
		R3
		3
		0
		GROCERY
		BRONZ
		3
		1
		MALABE ROAD
		PANNIPITIYA
		COLOMBO
		1101
		
		Y
	
	
		1082
		NALINDA
		R3
		5
		0
		RESTAURANT
		BRONZ
		1
		2
		MALABE ROAD
		PANNIPITIYA
		COLOMBO
		1102
		
		Y
	
	
		1083
		UPUL
		R3
		2
		0
		HOTEL
		BRONZ
		7
		3
		MALABE ROAD
		PANNIPITIYA
		COLOMBO
		1103
		
		Y
	
	
		1084
		DILINI
		R3
		3
		3000
		HOTEL
		SILVER
		3
		4
		MALABE ROAD
		PANNIPITIYA
		COLOMBO
		1101
		
		Y
	
	
		1085
		BUZZ BUN
		R3
		3
		3000
		RESTAURANT
		SILVER
		3
		7
		MALABE ROAD
		PANNIPITIYA
		COLOMBO
		1102
		
		Y
	
	
		1086
		V
		R3
		3
		3000
		GROCERY
		SILVER
		3
		8
		MALABE ROAD
		PANNIPITIYA
		COLOMBO
		1103
		
		Y
	
	
		1087
		VENUS
		R5
		4
		5000
		GROCERY
		SILVER
		5
		1
		KOTTAW ROAD
		PANNIPITIYA
		COLOMBO
		1101
		
		Y
	
	
		1088
		POL ATHU BATH KADE
		R5
		1
		1000
		RESTAURANT
		BRONZ
		2
		4
		KOTTAW ROAD
		PANNIPITIYA
		COLOMBO
		1102
		
		Y
	
	
		1089
		POL KADE
		R5
		1
		2400
		RESTAURANT
		BRONZ
		1
		6
		KOTTAW ROAD
		PANNIPITIYA
		COLOMBO
		1103
		
		Y
	
	
		1090
		CO OP CITY
		R6
		2
		2500
		GROCERY
		BRONZ
		1
		7
		PILIYANADALA ROAD
		KOTTAWA
		COLOMBO
		1101
		
		Y
	
	
		1091
		NT TRADE
		R6
		2
		0
		GROCERY
		BRONZ
		4
		67
		PILIYANADALA ROAD
		KOTTAWA
		COLOMBO
		1102
		
		Y
	
	
		1092
		LASANTHA HOTEL
		R7
		2
		0
		HOTEL
		BRONZ
		5
		78
		PILIYANADALA ROAD
		KOTTAWA
		COLOMBO
		1103
		
		Y
	
	
		1093
		LASANTHA TRADERS
		R1
		3
		0
		GROCERY
		BRONZ
		5
		45
		HIGHL LEVEL ROAD
		MAHARAGAMA
		COLOMBO
		1101
		
		Y
	
	
		1094
		LASANTHA PANNIPITIYA
		R6
		7
		0
		GROCERY
		BRONZ
		7
		23
		PILIYANADALA ROAD
		KOTTAWA
		COLOMBO
		1102
		
		Y
	
	
		1095
		TRADE MARKS
		R8
		7
		1
		HOTEL
		GOLD
		7
		34
		HIGHL LEVEL ROAD
		PANNIPITIYA
		COLOMBO
		1103
		
		Y
	
	
		1096
		GLEN
		R8
		3
		5000
		HOTEL
		SILVER
		3
		45
		HIGHL LEVEL ROAD
		PANNIPITIYA
		COLOMBO
		1101
		
		Y
	
	
		1097
		TARAGO
		R8
		3
		5000
		HOTEL
		SILVER
		7
		56
		HIGHL LEVEL ROAD
		PANNIPITIYA
		COLOMBO
		1102
		
		Y
	
	
		
		Tets
		Ga
		2
		1
		
		BRONZE
		
		
		
		
		Galle
		1102
		
		Y
	




[android-developers] Multi apk normal to xlarge

2011-09-13 Thread Droid
I am trying to specify one apk for normal and another for large
layouts. But market always seems to specify small to xlarge and normal
to xlarge. I have no xlarge or large folders and manifest defines
xlarge and large as false.

What am I doing wrong or is this expected behavior?

-- 
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] [2011-09-14 09:10:06 - Emulator] emulator: ERROR: the user data image is used by another emulator. aborting

2011-09-13 Thread androidhub trainer
If with emulator restart it doesn't work, then do the following:

Go to .android folder from Users folder. Once you are in .android go to avd
folder. Select the emulator, which you are using. Inside that folder you
will see two folders:
cache.img.lock and userdata-qemu.img.lock. Delete both these folders and
then just restart the emulator.

Thanks

On Wed, Sep 14, 2011 at 9:13 AM, venugopal reddy
wrote:

> Hi ,
>
> I am always getting below error , can u please tel me wgat is the
> reason behide that
> [2011-09-14 09:10:06 - Emulator] emulator: ERROR: the user data image
> is used by another emulator. aborting
>
> --
> 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: how can i get data value from ArrayList> weatherlist to string

2011-09-13 Thread Jhew SAN
I want to get value from weatherlist to write in XML 

-- 
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: WebView takes up entire screen, I need it to fit in the remaining space of the layout.

2011-09-13 Thread Conny
:) On man.. this drove me crazy for a while. Thanks Dan. Very helpful.

Mark, your comments are always insightful. Thanks for you too.

Siddharth

On Sep 13, 7:31 pm, IcedNet  wrote:
>                  android:layout_below="@id/searchResultPages"
>
> is a pretty good indication you are doing something wrong...
>
> Peace,
> Dan
>
> On Sep 13, 9:49 am, Mark Murphy  wrote:
>
>
>
>
>
>
>
> > Try pressing the MENU button. If you see the options menu from the
> > browser app, that's because you're in the browser app, and you are not
> > looking at your WebView. That would be because the server issued a
> > redirect, which you did not handle in shouldOverrideUrlLoading() of a
> > WebViewClient.
>
> > If, OTOH, you are sure that you are still in your own app, use
> > Hierarchy View to examine your layout and figure out where your rules
> > are going haywire.
>
> > On Tue, Sep 13, 2011 at 9:34 AM, MCON Dev  wrote:
> > > Hello All,
>
> > > I am trying to use Webview in a relative layout with a progress bar
> > > and some buttons. But as soon as I run webview.loadUrl("my path"), the
> > > webview takes over the entire space. I need the webview to fit in the
> > > remaining space of my layout. Please help.
>
> > > 
> > > 
> > > http://schemas.android.com/apk/res/android";
> > >        android:layout_width="fill_parent" 
> > > android:layout_height="fill_parent">
> > >         > >                android:layout_alignParentTop="true" 
> > > android:layout_height="wrap_content"
> > >                android:id="@+id/progressBar"
> > > style="@android:style/Widget.ProgressBar.Horizontal" />
> > >         > >                android:layout_below="@id/progressBarText" 
> > > android:layout_width="fill_parent"
> > >                android:layout_height="wrap_content" 
> > > android:orientation="horizontal">
> > >                 > > android:id="@+id/search"
> > >                        android:layout_height="wrap_content" 
> > > android:text="Search"
> > >                        android:layout_weight="1" 
> > > android:layout_gravity="center_vertical" />
> > >                 > > android:id="@+id/cancel"
> > >                        android:layout_height="wrap_content" 
> > > android:text="Cancel"
> > >                        android:layout_weight="1" 
> > > android:layout_gravity="center_vertical" />
> > >        
> > >         > >                android:background="@android:color/transparent"
> > >                android:layout_centerInParent="true" 
> > > android:src="@drawable/left"
> > >                android:layout_height="wrap_content" 
> > > android:layout_width="wrap_content"
> > >                android:id="@+id/previous">
> > >         > >                android:background="@android:color/transparent"
> > > android:layout_height="wrap_content"
> > >                android:layout_alignParentRight="true" 
> > > android:layout_centerInParent="true"
> > >                android:src="@drawable/right" 
> > > android:id="@+id/next">
> > >         > >                android:layout_below="@id/searchResultPages"
> > >                android:layout_alignParentBottom="true" 
> > > android:layout_width="fill_parent"
> > >                android:layout_height="wrap_content" />
> > > 
> > > 
>
> > > The AndroidManifest.xml has
> > > 
> > >  > >                        android:screenOrientation="portrait"
> > > android:configChanges="orientation|keyboardHidden"
> > >                        android:windowSoftInputMode="stateHidden">
> > >                        
> > > 
>
> > > Regards
> > > Conny
>
> > > --
> > > 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
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Android Training...At Your Office:http://commonsware.com/training

-- 
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: how can i get data value from ArrayList> weatherlist to string

2011-09-13 Thread skink


On Sep 14, 7:26 am, skink  wrote:
> On Sep 14, 7:12 am, Jhew SAN  wrote:
>
> > I want to get value from weatherlist to write in XML
>
> First of all: I already told you to store your data in sqlite not in
> xml file.
>
> Second: if your weatherlist is a List you can either use an Iterator
> or use get() method to access particular element of your List. Then
> each element is a Map where you can access its elements by, again,
> iterating over its key set and using again get() method.
>
> pskink

btw more info about std java collection here:

http://download.oracle.com/javase/tutorial/collections/

pskink

-- 
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: how can i get data value from ArrayList> weatherlist to string

2011-09-13 Thread skink


On Sep 14, 7:12 am, Jhew SAN  wrote:
> I want to get value from weatherlist to write in XML

First of all: I already told you to store your data in sqlite not in
xml file.

Second: if your weatherlist is a List you can either use an Iterator
or use get() method to access particular element of your List. Then
each element is a Map where you can access its elements by, again,
iterating over its key set and using again get() method.

pskink

-- 
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] ExpandableListView Question

2011-09-13 Thread Ash
Well basically here is the breakdown:
Time when operator clicks on button = 15:17:46:351
Time when the button on click function finishes = 15:17:46:414

Time when the final display was updated = 15:17:47:179

I found that all the time was spent in displaying the list view on the 
screen. Basically on my 7" LCD screen, at any time about 6 items can be 
displayed. So the code keeps looping around the function getGroupView.

However, how can I find out that the expandablelistview has finished it's 
process. When the user starts to scroll, getGroupView function is called 
again to redraw new listview items. So it is hard for me to tap into that 
function and also it is hard to wait for exactly 6 items to be finished. 
What if there is only 1 item to be displayed.

Is there a function which gets called to indicated that display is ready to 
be shown?

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: how can i get data value from ArrayList> weatherlist to string

2011-09-13 Thread skink


On Sep 14, 6:50 am, Jhew SAN  wrote:
> listViewInfo.setOnItemClickListener(new OnItemClickListener() {
>
> @Override
> public void onItemClick(AdapterView a, View v,
> final int position, long id) {
> // TODO Auto-generated method stub
> AlertDialog.Builder adb = new AlertDialog.Builder(
> EditCity.this);
> adb.setTitle("Delete?");
> adb.setMessage("Are you sure you want to delete ");
> // final int positionToRemove = position;
> adb.setNegativeButton("Cancel", null);
> adb.setPositiveButton("Ok",
> new AlertDialog.OnClickListener() {
> @Override
> public void onClick(DialogInterface dialog,
> int which) {
> // TODO Auto-generated method stub
> try
> {
> weatherlist.remove(position);
> listViewInfo.setAdapter(tempListAdapter);
> System.out.println(position);
> WriteIntoXML(weatherlist);}catch(Exception e)
>
> {
> //
>
> }
> }
>
> private void WriteIntoXML(ArrayList> weatherlist) {
> // TODO Auto-generated method stub
> System.out.println(weatherlist);
> // addListCity();
>
>
>
> }
> });
> adb.show();
> }
> });
> }
> }

hey dude, you seem to post the same piece of code over again and again
- i've seen it at least three times or more.

what exactly is your problem?

pskink

-- 
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 can i get data value from ArrayList> weatherlist to string

2011-09-13 Thread Jhew SAN
listViewInfo.setOnItemClickListener(new OnItemClickListener() {

@Override
public void onItemClick(AdapterView a, View v,
final int position, long id) {
// TODO Auto-generated method stub
AlertDialog.Builder adb = new AlertDialog.Builder(
EditCity.this);
adb.setTitle("Delete?");
adb.setMessage("Are you sure you want to delete ");
// final int positionToRemove = position;
adb.setNegativeButton("Cancel", null);
adb.setPositiveButton("Ok",
new AlertDialog.OnClickListener() {
@Override
public void onClick(DialogInterface dialog,
int which) {
// TODO Auto-generated method stub
try
{ 
weatherlist.remove(position); 
listViewInfo.setAdapter(tempListAdapter); 
System.out.println(position); 
WriteIntoXML(weatherlist);
}catch(Exception e)
{
// 
}
}

private void WriteIntoXML(ArrayList> weatherlist) {
// TODO Auto-generated method stub
System.out.println(weatherlist); 
// addListCity(); 
}
});
adb.show();
}
});
}
}

-- 
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] ExpandableListView Question

2011-09-13 Thread Ash
I hear you. Let me try that out.
Thanks
Ash

-- 
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] [2011-09-14 09:10:06 - Emulator] emulator: ERROR: the user data image is used by another emulator. aborting

2011-09-13 Thread aditya prakash
Restart Your Emulator.
It should work.

On Wed, Sep 14, 2011 at 9:13 AM, venugopal reddy
wrote:

> Hi ,
>
> I am always getting below error , can u please tel me wgat is the
> reason behide that
> [2011-09-14 09:10:06 - Emulator] emulator: ERROR: the user data image
> is used by another emulator. aborting
>
> --
> 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
>



-- 
Thanks,
 Aditya Prakash

-- 
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: Out Of Memory Error with Images loaded through XML

2011-09-13 Thread Sorab
Solved the issue by having a separate Bitmap object for each Image and then 
when the user navigates to the next page, decode the next bitmap, show it on 
the ImageView and then recycle the previous one. For eg. in my gotoNext()

switch(index)
{
case 1:
h2=BitmapFactory.decodeResources(res,R.drawable.h2);
im.setImageBitmap(h2);
h1.recycle();
break;
}

-- 
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] ExpandableListView Question

2011-09-13 Thread TreKing
On Tue, Sep 13, 2011 at 6:49 PM, Ash  wrote:

> well the expandablelistadapter already has all the contents which is loaded
> when onstart function is called. When the user clicks on the button, I
> simply set this adapter in the expandablelistview. So the only code line
> that is being executed is
>
> expandablelistview.setadapter(myadapter);
>
> Hence I am not sure where the delay is coming from.
>

My original response still applies.

You could put breakpoints in the functions of your adapter and view to see
what, if anything, is getting called and how frequently. You also have the
source code available for your perusal.

-
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

[android-developers] [2011-09-14 09:10:06 - Emulator] emulator: ERROR: the user data image is used by another emulator. aborting

2011-09-13 Thread venugopal reddy
Hi ,

I am always getting below error , can u please tel me wgat is the
reason behide that
[2011-09-14 09:10:06 - Emulator] emulator: ERROR: the user data image
is used by another emulator. aborting

-- 
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] Android Alarm application

2011-09-13 Thread Craig Sparks
sqlite or xml? What would be better?

On Tue, Sep 13, 2011 at 11:46 PM, Hassy  wrote:
> Hi,
>
> I want to create an android Alarm application but I don't know how to
> save alarm settings and get saved settings for the background service.
>
> que.
>
> 1. should I use sqlite database? or can I use text files?
>
> 2. can I create the alarm using the alarm manager?
>
> Please help me .
>
> Thank you
> Hassy
>
> --
> 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



-- 
-
Jackie *"Craig"* Sparks - *"Focus on Solutions not Problems"*
Email0: jackie.craig.spa...@gmail.com

http://chunkhost.com/r/getachunk - Support my VPS host sign up now
http://www.sparkscomm.com
http://sparkscomm.com/wordpress/resume
http://www.facebook.com/profile.php?ref=profile&id=10140654932
https://www.scriptlance.com/cgi-bin/freelancers/feedback.cgi?p=rwtskraps
http://twitter.com/#!/skraps_foo
http://skraps.pastebin.com

-BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.4.10 (GNU/Linux)

mQINBE1kJ5YBEAC1w4t0k7lLyBuikRUSZfvsigSR1IRASTuU5X2o443E/7fPYo/m
kwDwc8uqzwCvvuV9ziZgv5+KFZ8eUUrTN1TTc8zu4hMX9xt1l8nBRHYb2jrTBXKF
9Hu85CSN1WKc+FJSFtZgdpi8Vo0jgPgNQS9C/Vndei94O3/PukrE7dn17HISbCw/
svAF/Y1MrwtcV20lZqnEf5RYddvuN86FxM77SyF9PdlSzFuIVMKa2zDSUHRNqWId
Y/e+mObf/kJdA0tHaQHwEX4VlX7o504v8Jqnjq1WeiebHp0wKHouSF+Inmift9PK
0MQQkDOG6MFRlK3cWt0LIPGDl31ZlfkTSH21XETEQjKTM5Afmdmv2zHi1z0q5YQY
iaUClUSMLzx4gJQg3G/Rfx+VMDRrVW5nkDLMYuce7Fdutw3zVcH5bxs+T6+nqgqL
DK1SPmNW6dyxOjkDVs0/5AwOx+1mb0R5u7vFyrTOr7PV4ZpI9ejTwRx0PBptj8pb
+f5Vp4B177fvL5clY61MwojIdW+3aobP912PY/ffR9t3uN1bmYoy0tdFHvnhAuxs
qA6qEriRp3Oz5xhpSIUKAngsuuQh9dd915LoRFKMsh1PLCGEcPy+sFCGPppFJg79
Df5MeSHBqDhq/ofml2xS9XzYFNAmgzJ1RWBYTe45C/iKu0/rHb+GsDT2iwARAQAB
tDNKYWNraWUgQ3JhaWcgU3BhcmtzIDxqYWNraWUuY3JhaWcuc3BhcmtzQGdtYWls
LmNvbT6JAjgEEwECACIFAk1kJ5YCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheA
AAoJEN3TA3S+FcwAMeMP/R5nOm0eLywi1oZkA+NTQctJ9mMhmAgbUJnGvu5vG0YS
dQ1NhyJdZ/oKtqZdLtaFv3blenBZIMf45qIhlzm2JXpHXGCoWbPtu9sRnwfA+IQi
ohlk8D6i2Gf+NTbp5SJtwUBlkws61isJmN/RbPyS79V7R0RnUW0Uc2y6TpvTx523
7geS3+sVPKuVxnp6Q7SySodv+Tlxy+P/brmANEeGMZAjPMTgqLHg9Js6ZkZ/HrWQ
EEZD3W8n/DU1KMOTr96BfDAGEGZZAWS78GQvQy0Jff9g9eNnept+bntpy+i0NTUS
mRq+uGGKfzIZudKr066ILaH2YIWf9YBWyrhfnpESmTnv65Uvca4V+b1vzV0wbKl7
UUacuFOn5BdAcVIT9L3IAsOMZWZOmHIB6c28mv3BDT25kS5t+mhzf7t+ppPLb83S
6uYlitgWLrpjgDrY2UFVWbvVxfiN9G4qhS2IOpRpvBQVTN3iTlHQ2keBfCUfOnOd
1cmJtvh57wCKDvjapPrzEjhUDor27HGM6XhaPV7DpSLeUBjZcSmWtoSB/Ff0LTVu
ChP2oiaqUWW8QkYayCye6sviCsdW+bfCwA9kBZmNXDM49qC951pmKvOY4bKNSmbk
O17BwgRoNDB2BVC7zA29J6I+dzlWydDk1DsxCcNffoeeEkMDcjZEnCVySEv8vStL
uQINBE1kJ5YBEADfM60c5yMCZqjb6pbn38RGIjoN9El/GvByX3h5jaWp04eJcc07
VSwetzF3h/q3BL4nVgyUykZr7eOr9TomimgsaWXS+Vf99uXGujQVrXMWU0H5zfhN
et+smsP97J+YOVM3tJD30XEJwFRFWU5oTjG/AQml9/1AC4RgEmIauphS/aRo4TG1
yRqqp6XMAnPsWAacPt3eZA/HH4LbLZcxfpC/mx9F/QKM/bMV1TdRHwAIFavw5yl1
CCVxC/YuDyOiczAiZoOS7syUwCfVmVk8HxbI3IqhK31AN2Qviq5fq8iTTR+xkjFK
7XR7UKKuig5vk4AUiZPlVf4OgDCpJAQIU7HEc0Wpfo1WfcVfxkEH2Jl7K1EUACCU
oIx2BGGs5x/O1cXx0aHZUfo6kWVUoXKXgJeMFL2KvBn4a+BkzdpI6TLJFiifOkDK
ZbwVV/GDn6t1xCqz2gVLK+PDfv4tdD7lKWUN9C1pH5rB3XXI4MtegD/DR/08D8Yw
bdF57ZKbruMxdV1Q3eHcFhJFyqs82suygxCfTlBOIoAV0dkTSbVi1bkcBKSh9gk0
k19cFzvO3S72NEwQrZcs0uBhUX3HDhx0eFQtGPEyZl/77e554DDJ3MQUCGeGmFSO
w1/7p3lDCAIGtIr4sSLUUyQn7h0RbfFZwBwzZrh9nMmDbhWibJurul3/kQARAQAB
iQIfBBgBAgAJBQJNZCeWAhsMAAoJEN3TA3S+FcwAUf8P/2zUCvOOX0viuC3nI0ZR
3bXWBobv5Fs0Fb3A6O8DVzXLsNsC3WoHdvqRlxHT4fHuKuDAjOj3XHsqntKe+omC
PXSIrHGsKK3va3FnLSRMUqQ45zTXc2rNRW+FYMr0EsIAeBcWK17DbfSBuVJxUx0I
Hs9AgJZ+w+YBcNnp0/gKyN7EjETdJJUo2t2zNv7FEf/hLIBFddYL2clxrlRlD+aR
5eQ/BNIJOu+T8jENb3zdbee+aC9ZJ5waFlDSBirFwsDOdJHTxXwZ1fb9YlQBmTNI
mERLlI2VBIV5FdANpnsm9kczJiQGLZajfgylEglwJ3TSo4x1CM9Kwmo1XDK39ZV4
7rurtx5/Pzukd9Kyy6v3BLUkA8toE4U3y9TeHCQcC8IfjEJU8qMu1t0H++Yl0ikN
sRpY1vfsEVv9txuKVQxXPxD6nZMe8Edhn5SMRtbe2XmM1NKT8WLvjNmd1wWWP6+E
Ucx5/kcvxlPmDmmdLqUpTrRcTfs5iwKf3TiQyl4eFNXZs4tXy/Bv5JFTSx5l5PSD
nBitamN/G+rYoYmdAvwiW3Cnf2LdYWYH2V3wNeTd1vthg3AeQPB9rhLbvtsjwmIP
lZETXNjsVlJRB595j9vDfy8qiUzg93OO3pdKRzr1cxWyyt6uNzGiOPTJiN02lp6a
VPd1isDqohZq35dMK3SYoOzH
=NjkE
-END PGP PUBLIC KEY BLOCK-

-- 
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] Android Alarm application

2011-09-13 Thread Hassy
Hi,

I want to create an android Alarm application but I don't know how to
save alarm settings and get saved settings for the background service.

que.

1. should I use sqlite database? or can I use text files?

2. can I create the alarm using the alarm manager?

Please help me .

Thank you
Hassy

-- 
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: Why is the default to use dpi instead of screen size for drawables

2011-09-13 Thread ArcDroid
My layout is the same for both apps, I simply want to use higher
quality graphics for the tablets 90dpi vs 200dpi.

>From the link I assumed from the below example that you should have
similar drawable buckets if the layout is actually the same.

res/layout/main_activity.xml   # For phones
res/layout-xlarge/main_activity.xml# For pre-3.2 tablets
res/layout-sw600dp/main_activity.xml   # For 3.2 and up tablets




Thanks again

On Sep 13, 9:18 am, Dianne Hackborn  wrote:
> If you are writing drawable-large, you are almost certainly doing it wrong.
>
>
>
> On Tue, Sep 13, 2011 at 6:02 AM, ArcDroid  wrote:
> > So it appears I need to have the same higher res images in drawable-
> > hdpi and drawable-large buckets.  This is going to make the install
> > big if an app has many pictures.
>
> > On Sep 10, 10:44 am, Dianne Hackborn  wrote:
> > > They are two completely different things.
>
> > > Please read:
> >http://android-developers.blogspot.com/2011/07/new-tools-for-managing...
>
> > > On Sat, Sep 10, 2011 at 7:44 AM, ArcDroid 
> > wrote:
> > > > Directories are already created for ldpi, mdpi and hdpi, but it
> > > > appears that normal, large, xlarge work much better for tablets and
> > > > phone sizes since some old phones fall into the mdpi bucket.  why is
> > > > the default to use dpi instead of screen size?
>
> > > > Thanks,
> > > > ArcDroid
> > > >http://www.arcdroid.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
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
>
> > --
> > 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
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
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] Inapp Billing: Security best practices

2011-09-13 Thread Nikolay Elenkov
On Wed, Sep 14, 2011 at 12:56 AM, androidmediadeveloper
 wrote:
> We are integrating with market to provide inapp billing on our app.
> The implementation guide says for additional security, we can use a
> server to do the key verification process. This is so we dont bake the
> apk with the public key I suppose.
>
> Having a server side presence for us for right now is overkill. So,
> outside of the proguard obfuscation (which we are doing), are there
> any recommended security techniques that we can incorporate to make
> the apk tighter ?
>

If you don't need to authenticate people who bought an item using IAB,
and let them download additional contents, a server might be overkill.
You can split the key and scramble it somehow so it's not an obvious
string resource if you are worried about people replacing it. However,
if someone wants to crack your app, they are far more likely to modify
the bytecode to bypass any checking routines you have, rather than
trying to replace the key and fool signature checking.

The Google IO 'Evading Pirates and Stopping Vampires' presentation
has some tips on further obfuscation and integrity checking. It boils
down to: use native code and server-side code. You decide how far
you need to go.

-- 
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: auto starting application after boot complete

2011-09-13 Thread Ash
Thanks for the info. The change didn't make any difference, but I have 
learned about the priority parameter.

Appreciate for your input.

Cheers
Ash

-- 
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] emulator: android.process.acore has stopped unexpectedly.

2011-09-13 Thread Mark Murphy
On Tue, Sep 13, 2011 at 3:46 PM, John Goche  wrote:
>
> Thanks Mark Murphy for your reply,
>
> I am developing on a brand new Sony laptop with:
>
> - Intel Core i5-2410M CPU 2.30 GHz
> - 6 GB RAM
>
> Is this configuration not good enough?

That should be fine for Android 2.x. Android 3.x will probably be too
slow, given the current state of the emulator.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
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: Enable android:hardwareAccelerated, but build against a target earlier than 3.0

2011-09-13 Thread Mark Murphy
On Tue, Sep 13, 2011 at 8:12 PM, Tom  wrote:
> This approach doesn't allow me to build against Android 2.1, though,
> as adding android:hardwareAccelerated requires me to build against
> android 3.0. I want to build against my min target sdk in order to
> make sure no developers on my team (myself included) accidentally
> refer to an API that isn't available in my min target sdk.

By going with this approach, you can't have hardware acceleration, or
lots of other things added to Android in the last 18 months (e.g.,
customizing the action bar for Honeycomb+).

If you have solid tests with solid code coverage, you will detect any
inappropriate API usage even if you compile with the newer SDK. If you
don't have such tests, you have much bigger problems than lacking
hardware acceleration.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
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: Enable android:hardwareAccelerated, but build against a target earlier than 3.0

2011-09-13 Thread Tom
This approach doesn't allow me to build against Android 2.1, though,
as adding android:hardwareAccelerated requires me to build against
android 3.0. I want to build against my min target sdk in order to
make sure no developers on my team (myself included) accidentally
refer to an API that isn't available in my min target sdk.

On Sep 12, 12:55 pm, David Turner  wrote:
> That's the point of this attribute, just add android:hardwareAccelerated to
> your manifest.
>
> On platforms < 3.0, it will be ignored, on platforms >= 3.0, it will tell
> the system to use the hardware-accelerated canvas implementation (that
> provides the same API than the software based one).
>
> Just ensure that you test your application on a 3.0+ device, the
> hardware-accelerated canvas implementation doesn't support all the features
> of the software one.
>
>
>
>
>
>
>
> On Mon, Sep 12, 2011 at 9:21 PM, Tom  wrote:
> > I want to enable hardware acceleration for my android app, but I still
> > want to build against Android 2.1 (in order to make sure I don't
> > accidentally rely on APIs introduced in 3.0, for example). Is there
> > anyway to turn on a feature and still build against a version before
> > it was introduced? I know I can use reflection in code to check for
> > say, an API added after my build target, but I'm not sure if I can do
> > something similar for android:hardwareAccelerated.
>
> > --
> > 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] ExpandableListView Question

2011-09-13 Thread Ash
well the expandablelistadapter already has all the contents which is loaded 
when onstart function is called. When the user clicks on the button, I 
simply set this adapter in the expandablelistview. So the only code line 
that is being executed is

expandablelistview.setadapter(myadapter);

Hence I am not sure where the delay is coming from.

-- 
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] Need help for Android news alert program

2011-09-13 Thread TreKing
On Tue, Sep 13, 2011 at 12:24 PM, Rathna Kumara Premadasa <
rathnakumar...@gmail.com> wrote:

> Please help me to find a any tutorial or any path to get a help to my
> project.


http://developer.android.com/index.html
http://www.google.com/

-
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

Re: [android-developers] emulator: android.process.acore has stopped unexpectedly.

2011-09-13 Thread John Goche
In case anyone else has been experiencing the same problem.

My solution was to delete the AVD and recreate it.

Now I no longer get the error messages.

Regards,

John Goche

-- 
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: Nexus-S SDK Skin.

2011-09-13 Thread sblantipodi
ok, solved.
Thanks anyway.

On Sep 14, 12:27 am, sblantipodi  wrote:
> Hi,
> I founded tons of guides that explains how to install NexusS skin on
> SDK but it doesn't work.
>
> They all says to copy the skin folder in
> c:\android-sdk-windows\platforms\android-9\skins\NEXUS-S
>
> I've done it but I can't find the skin in my AVD Manager when trying
> to create a simulator with that skin...
>
> Any idea?

-- 
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] Nexus-S SDK Skin.

2011-09-13 Thread sblantipodi
Hi,
I founded tons of guides that explains how to install NexusS skin on
SDK but it doesn't work.

They all says to copy the skin folder in
c:\android-sdk-windows\platforms\android-9\skins\NEXUS-S

I've done it but I can't find the skin in my AVD Manager when trying
to create a simulator with that skin...

Any idea?

-- 
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] Changing the Android SDK Device ID.

2011-09-13 Thread sblantipodi
As title.
Is this possible?

-- 
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] Fill a LinearLayout with an ArrayAdapter

2011-09-13 Thread TreKing
Please respond back to the whole group.

On Tue, Sep 13, 2011 at 4:37 PM, Isambert  wrote:

> Le mardi 13 septembre 2011 12:30:31 UTC+2, TreKing a écrit :
>
>> On Tue, Sep 13, 2011 at 1:28 AM, Guillaume LACHAUD 
>>  wrote:
>>
>>> My linear layout is in a scrollview
>>
>>
>> So what? A ListView scrolls.
>>
> Yes but the ListView would not be the only element in my scrollView so it
> is much more convenient to have a LinearLayout
>

Alrighty then. Well there's no need for an adapter - just add to the
LinearLayout using addView(). (Assuming your layout is not going to grow
indefinitely).

-
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

[android-developers] Re: Create videos for android market.

2011-09-13 Thread sblantipodi
Can't find a valid solution... No one else solved the problem?

On Sep 13, 10:23 pm, TreKing  wrote:
> On Tue, Sep 13, 2011 at 11:25 AM, sblantipodi
> wrote:
>
> > what do you mean?
>
> I mean, did you evaluate every video recording software package available to
> determine that none was good enough?
>
> >  The only option I know is to record the phone screen, I don't like this
> > way.
> > The other option is to use a recording software but no one as far as I know
> > is fast enough to record a smooth animation or transition.
>
> lulz @ "The only option" followed immediately by "The other option" =P
>
> When I needed to record my app I googled for screen recording software,
> found various options, tried them out, and found one that worked well enough
> using the emulator. Granted, I don't use animation in my app yet. I don't
> have the link of the app I used handy though, sorry.
>
> -
> 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


Re: [android-developers] Changing the "scaled pixel" size

2011-09-13 Thread Dianne Hackborn
This is for a global system setting, which is not currently available to
users.  If you want to have a local font scale setting in your app, you will
need to implement that yourself.

On Tue, Sep 13, 2011 at 12:50 PM, Doug Gordon  wrote:

> In a number of places the documentation recommends specifying font sizes in
> "sp" (scaled pixels) because the size can then be adjusted by "user
> preference". However, AFAIK there is no global way to do this. So if I want
> to allow users to increase or decrease the font size in my app, I assume
> that I'll have to implement my own app-specific preference.
>
> The problem is that I can't see how to change the setting. DisplayMetrics
> has a "scaledDensity" field that is obviously the scaling factor that
> affects font specified in "sp", but I don't see any way to change that
> value. Am I missing something?
>
> Doug Gordon
> GHCS Software
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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: word wrapping

2011-09-13 Thread Kenny Riddile

On 9/13/2011 4:38 PM, Tor Norbye wrote:

He's probably asking about soft wrapping. Eclipse does not support it
directly; see https://bugs.eclipse.org/bugs/show_bug.cgi?id=35779
(though from a quick skim it looks like there might be some support in
the framework and some plugins to enable it.)

-- Tor

On Tue, Sep 13, 2011 at 1:28 PM, Kenny Riddile  wrote:

On 9/13/2011 4:22 PM, bob wrote:


Is there a way to make Eclipse do word wrapping?  Do you all use word
wrapping or no?



You mean word wrapping your source code?  I've never seen anyone want to or
do that ever in my entire development career.

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





Uggh...looks terrible to me.  If you have lines in your code that are 
long enough to require word-wrapping, then those lines are too long, 
especially with today's large monitors and high resolutions.  Decompose 
them and make the code more readable IMO.


--
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: word wrapping

2011-09-13 Thread Tor Norbye
He's probably asking about soft wrapping. Eclipse does not support it
directly; see https://bugs.eclipse.org/bugs/show_bug.cgi?id=35779
(though from a quick skim it looks like there might be some support in
the framework and some plugins to enable it.)

-- Tor

On Tue, Sep 13, 2011 at 1:28 PM, Kenny Riddile  wrote:
> On 9/13/2011 4:22 PM, bob wrote:
>>
>> Is there a way to make Eclipse do word wrapping?  Do you all use word
>> wrapping or no?
>>
>
> You mean word wrapping your source code?  I've never seen anyone want to or
> do that ever in my entire development career.
>
> --
> 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: word wrapping

2011-09-13 Thread Kenny Riddile

On 9/13/2011 4:22 PM, bob wrote:

Is there a way to make Eclipse do word wrapping?  Do you all use word
wrapping or no?



You mean word wrapping your source code?  I've never seen anyone want to 
or do that ever in my entire development career.


--
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] showing the default A icon on google maps

2011-09-13 Thread guich
Hi,

I would like to know how can i place the default (A) baloon icon that
Google Maps has at the point i asked it to open. I don't need custom
icons, neither a custom text, just an icon or something showing the
center of the screen. My code is this one. I saw some things about
ItemizedOverlay but its proving to be just too complex.

public class MapViewer extends MapActivity
{
   public void onCreate(Bundle savedInstanceState)
   {
  super.onCreate(savedInstanceState);
  // setup the viewe
  MapView mapview = new MapView(this,"...");
  mapview.setBuiltInZoomControls(true);
  mapview.setClickable(true);
  mapview.setStreetView(true);
  setContentView(mapview);
  if (Loader.isFullScreen)
 
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
  // get passed parameters
  Bundle extras = getIntent().getExtras();
  double lat = extras.getDouble("lat");
  double lon = extras.getDouble("lon");
  mapview.setSatellite(extras.getBoolean("sat"));
  int ilat = (int)(lat * 1e6);
  int ilon = (int)(lon * 1e6);
  // move the map to the given point
  MapController mc = mapview.getController();
  if (ilat != 0 || ilon != 0)
 mc.setCenter(new GeoPoint(ilat,ilon));
  mc.setZoom(21);
   }

   protected boolean isRouteDisplayed()
   {
  return false;
   }
}


thanks

   guich

-- 
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: Create videos for android market.

2011-09-13 Thread TreKing
On Tue, Sep 13, 2011 at 11:25 AM, sblantipodi
wrote:

> what do you mean?
>

I mean, did you evaluate every video recording software package available to
determine that none was good enough?


>  The only option I know is to record the phone screen, I don't like this
> way.
> The other option is to use a recording software but no one as far as I know
> is fast enough to record a smooth animation or transition.
>

lulz @ "The only option" followed immediately by "The other option" =P

When I needed to record my app I googled for screen recording software,
found various options, tried them out, and found one that worked well enough
using the emulator. Granted, I don't use animation in my app yet. I don't
have the link of the app I used handy though, sorry.

-
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

[android-developers] Re: Drawing errors during a shrink animation in Android 2.3.4

2011-09-13 Thread buda gavril
did you trued to invalidate the view? maybe if you draw it again it
will look good

On Sep 13, 6:10 pm, neuromit  wrote:
> I have 12 ImageButtons setup in a 3x4 grid. When the user clicks on an
> image button it grows to fill the screen, holds, and then shrinks down
> to its original location.
>
> The animation works except that when the button is shrinking it
> sometimes leaves lines behind. (I've attached images below). The are
> cleared once the animation finished but it looks really bad during the
> animation.
>
> Is there a better way to achieve this animation? What can I do to
> prevent the drawing errors that I'm getting?
>
> Here is my animation code, its a little complex as I have 3 nested
> animations:
>
> http://ideone.com/kFhs4
>
> Here is an example of what the images look like:
> Before animation:http://i.stack.imgur.com/gOrvX.png
> During Grow Animation:http://i.stack.imgur.com/5l2mx.png
> During Shrink Animation:http://i.stack.imgur.com/driuL.png
>
> These are images captured from my phone running cm7. However I've have
> the same problems in the Emulator and on my Galaxy Tab 10.1 running
> 3.1

-- 
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] word wrapping

2011-09-13 Thread bob
Is there a way to make Eclipse do word wrapping?  Do you all use word
wrapping or no?

-- 
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] Analytics Tracking

2011-09-13 Thread Mullins
Whilst trying to determine what is causing significant data on my
Android device I noticed the following packet in Wireshark.

http://www.google-analytics.com/__utm.gif?utmwv=4.5ma&utmn=8572**408&utmt=event&utme=5(2.2.16*Startup*FIRST_STARTUP)8(1!Device)9(1!Nexus%20S%40samsung)11(1!2)&utmcs=UTF-8&utmsr=480x800&utmul=en-GB&utmac=UA-2090-1&utmcc=__utma%3D999.1670970809.1315943979.1343979.13159***79.1

I have starred out a few numbers in case they represent anything
private.
Anyway, the reason it came to my attention is the mention of
FIRST_STARTUP.

If Google is using this tracker to measure new device startups then I
am afraid it is flawed.
My device was started up several months ago.
Just thought I would bring it your attention.

-- 
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] Changing the "scaled pixel" size

2011-09-13 Thread Doug Gordon
In a number of places the documentation recommends specifying font sizes 
in "sp" (scaled pixels) because the size can then be adjusted by "user 
preference". However, AFAIK there is no global way to do this. So if I 
want to allow users to increase or decrease the font size in my app, I 
assume that I'll have to implement my own app-specific preference.


The problem is that I can't see how to change the setting. 
DisplayMetrics has a "scaledDensity" field that is obviously the scaling 
factor that affects font specified in "sp", but I don't see any way to 
change that value. Am I missing something?


Doug Gordon
GHCS Software

--
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] emulator: android.process.acore has stopped unexpectedly.

2011-09-13 Thread John Goche
Thanks Mark Murphy for your reply,

I am developing on a brand new Sony laptop with:

- Intel Core i5-2410M CPU 2.30 GHz
- 6 GB RAM

Is this configuration not good enough?

I need to solve this problem soon
but don't know what I should do.

Thank you for your help,

John Goche

On Tue, Sep 13, 2011 at 2:25 PM, Mark Murphy wrote:

> On Tue, Sep 13, 2011 at 7:56 AM, John Goche 
> wrote:
> > P.S. Do all of these problems show up under Linux as well?
>
> They can. All of these are symptoms of a computer with either too slow
> of a CPU or insufficient RAM. What are the specifications of your
> development machine?
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> 

-- 
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: AccountManager.getAuthTokenByFeatures() with null authTokenType

2011-09-13 Thread richf
I realize this is a bit of an old thread, but this might be what you're 
looking for:
http://code.google.com/apis/gdata/faq.html#clientlogin

-- 
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: Gallery View and SQLite database

2011-09-13 Thread lbendlin
There's a thing called The Google. Try it...

http://www.tutorialforandroid.com/2009/10/how-to-insert-image-data-to-sqlite.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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Textview from thread

2011-09-13 Thread Kristoffer
Thanks.

Its now up and running with Handler

On 10 Sep, 12:53, HideCheck  wrote:
> You need to use the Handler.
>
> http://developer.android.com/reference/android/os/Handler.html
>
> Handler handler = new Handler();
>
> ex)
>  public void run() {
>
>         handler.post(new Runnable() {
>
>                         public void run() {
>                                 textview.setText("xxx");
>
>                         }
>                 });
>
> }
> }
>
> 2011/9/10 Kristoffer :
>
>
>
> > Hello.
>
> > I have been searching for answer how to update a textview from another
> > thread, i have found several answer that point to using "Handler" but
> > i dont know how i should implement that in my code, maybe you could
> > point it out for me.
>
> > Iam checking if the user is logged in or not to Twitter,
> > here is my code.
>
> > SettingsActivity.java
>
> > public void updateLoginStatus() {
> >                Thread f = new Thread() {
> >                public void run() {
>
> >                        final TextView loginStatus = (TextView)
> > findViewById(R.id.loginstatus);
> >                        loginStatus.setText("Logged into Twitter : " +
> > TwitterUtils.isAuthenticated(prefs));
>
> >                }
>
> >            };
> >            f.start();
> >        }
>
> > and here is the code in TwitterUtils.java
>
> > public static boolean isAuthenticated(SharedPreferences prefs) {
>
> >                String token = prefs.getString(OAuth.OAUTH_TOKEN, "");
> >                String secret = prefs.getString(OAuth.OAUTH_TOKEN_SECRET, 
> > "");
>
> >                AccessToken a = new AccessToken(token,secret);
> >                Twitter twitter = new TwitterFactory().getInstance();
> >                twitter.setOAuthConsumer(Constants.CONSUMER_KEY,
> > Constants.CONSUMER_SECRET);
> >                twitter.setOAuthAccessToken(a);
>
> >                try {
> >                        twitter.getAccountSettings();
> >                        return true;
> >                } catch (TwitterException e) {
> >                        return false;
> >                }
> >        }
>
> > any good idees?
> > 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Dialog dismiss()

2011-09-13 Thread Miguel Morales
It really isn't that hard.  I went ahead and created a test project to
show the way I'm doing it.
I'll probably write a blog post about it.  See:
https://github.com/therevoltingx/android_orientation_test/blob/master/src/com/solrpg/orientation_test/DefaultActivity.java

On Tue, Sep 13, 2011 at 9:50 AM, Greg Donald  wrote:
>
>
>
> On Friday, September 9, 2011 10:44:24 PM UTC-5, TreKing wrote:
>>>
>>> At this point I'm going with
>>>
>>> setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT );
>>>
>>>
>>>
>>> It's a sure thing.
>>
>> It's not
>
> Yup, it's not.
> I have crash logs (many of them, and for multiple resolutions) with devices
> having width > height when I explicitly call setRequestedOrientation(
> ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ); in my onCreate().   WTF?  How is
> this even possible?
> This is a nightmare.
>
> --
> Greg Donald
>
> --
> 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



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx

-- 
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] Gallery View and SQLite database

2011-09-13 Thread Abhi
Hi all,

I have a sqlite database of 100+ low res images saved as Blob data. I
am creating an App that has a GalleryView and I would like to display
the 100+ images from my database in this view. The user can scroll
through the horizontally scrolling list and select the one he wants to
see full screen.

I am using a sample app that takes sample images from 'res/drawable'
folder to display them on the gallery view. I would like to do the
same but pull images from the database instead. Can someone guide me?

Thanks,

AB

-- 
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] Why is my ImageView (wrap_content) bigger than the Image itself?

2011-09-13 Thread Martin
Hi!

I want to put a Button in a RelativeLayout on top of an Image and also at 
the bottom. The Image should be scaled with the scaletype "centerInside".
The ImageView has the height and width "wrap_content".

Why does the ImageView take more space than the image itself? Like this I 
cannot use the RelativeLayout.

Greetings, Martin

-- 
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: Need a gud UI designer for my project

2011-09-13 Thread rambabu mareedu
hi ..we have a mobile apps dev company...if u r intrested then drop me a
word to   rambabu.mare...@gmail.com

On Tue, Sep 13, 2011 at 10:39 AM, martypantsROK  wrote:

> sure. I'll do it - how much will you pay me?
>
> On Sep 12, 4:00 pm, pa1ani  wrote:
> > Hi I need a gud UI designer for my project..
> > Interested people can ping me..
>
> --
> 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Need a gud UI designer for my project

2011-09-13 Thread martypantsROK
sure. I'll do it - how much will you pay me?

On Sep 12, 4:00 pm, pa1ani  wrote:
> Hi I need a gud UI designer for my project..
> Interested people can ping me..

-- 
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 help for Android news alert program

2011-09-13 Thread Rathna Kumara Premadasa
Hi all,

I've wanted to create a android application to display the news alerts which
are recently updated using RSS feed from corresponding web sites.Actually
I've already not any idea about that kind of project.Please help me to find
a any tutorial or any path to get a help to my project. I appreciate any
reply from u...

Thanks,
-- 
*Rathna Kumara Premadasa*
Sri Lanka.

-- 
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] Scroll not working on 'div's with overflow:auto set

2011-09-13 Thread archana
Hi,
   In my web-application, we need to use the 'overflow:auto' property
to enable scrolling in multi-page documents.
   Any scrolling functions from javascript stops working when a 'div'
has the the overflow set to 'auto'. The scrolling starts working if
the overflow is changed to 'hidden'. We tried Jquery plugin 'scrollTo'
or the native javascript method 'scrollTop'.
   Problem seen on 'Samsung Galaxy Tab 10.1 (Android 3.1 build
HMJ37.UEKF3. P7510UEKF3)'
   Anybody tried to make 'scrollTop' work on Android with
overflow:auto property?

-- 
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] Dialog dismiss()

2011-09-13 Thread Greg Donald



On Friday, September 9, 2011 10:44:24 PM UTC-5, TreKing wrote:
>
> At this point I'm going with
>>
>> setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT );
>>
>  
>
> It's a sure thing.
>
>
> It's not
>


Yup, it's not.

I have crash logs (many of them, and for multiple resolutions) with devices 
having width > height when I explicitly call setRequestedOrientation( 
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ); in my onCreate().   WTF?  How is 
this even possible?

This is a nightmare.


--
Greg Donald

-- 
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: Create videos for android market.

2011-09-13 Thread sblantipodi
what do you mean?
The only option I know is to record the phone screen, I don't like
this way.
The other option is to use a recording software but no one as far as I
know is fast enough to record a smooth animation or transition.

I'm searching for a solution.

On Sep 13, 1:38 pm, TreKing  wrote:
> On Tue, Sep 13, 2011 at 5:53 AM, sblantipodi
> wrote:
>
> > the camera way is ugly and the screen capture software is too slow,
> > it completely cut off the animations.
>
> You tried every single option you found?
>
> -
> 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


Re: [android-developers] Re: auto starting application after boot complete

2011-09-13 Thread Dianne Hackborn
You can't do this.  BOOT_COMPLETED isn't shown until the Launcher is
running, so the user doesn't have to wait for the BOOT_COMPLETED broadcast
to complete before they can use their device.

On Mon, Sep 12, 2011 at 7:50 PM, Ash  wrote:

> It does not matter which lock screen the OS is set to.
>
> The issue here is that there is a delay of about 1-2 seconds before my
> application gets notified that the boot sequence is completed and that delay
> is enough for the Android screen to be shown. My intention is that when the
> device is powered, it boots straight in our application.
>
> Maybe this will require custom firmware, but if this approach can be
> avoided it will be great.
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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] Dynamically loading code in Android application

2011-09-13 Thread Kristopher Micinski
2011/9/13 Raffaele Sgarro :
> I'm only evaulating if it's viable.. My plan is to download the code from a
> server. What's the warning about code injection?

If you store it on SD card: it can happen.

Kris

-- 
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: Why is the default to use dpi instead of screen size for drawables

2011-09-13 Thread Dianne Hackborn
If you are writing drawable-large, you are almost certainly doing it wrong.

On Tue, Sep 13, 2011 at 6:02 AM, ArcDroid  wrote:

> So it appears I need to have the same higher res images in drawable-
> hdpi and drawable-large buckets.  This is going to make the install
> big if an app has many pictures.
>
> On Sep 10, 10:44 am, Dianne Hackborn  wrote:
> > They are two completely different things.
> >
> > Please read:
> http://android-developers.blogspot.com/2011/07/new-tools-for-managing...
> >
> >
> >
> > On Sat, Sep 10, 2011 at 7:44 AM, ArcDroid 
> wrote:
> > > Directories are already created for ldpi, mdpi and hdpi, but it
> > > appears that normal, large, xlarge work much better for tablets and
> > > phone sizes since some old phones fall into the mdpi bucket.  why is
> > > the default to use dpi instead of screen size?
> >
> > > Thanks,
> > > ArcDroid
> > >http://www.arcdroid.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
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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: MediaRecorder.start() fails

2011-09-13 Thread Matthew Fleming
Thanks, I will. I would have already, but don't have a device with me
at the moment. Also, when I last played with audio recording -- which
admittedly was some time ago -- I recall it did work on an AVD.

Matthew Fleming

On Sep 13, 10:58 am, Michael Banzon  wrote:
> I would try it on a device. The emulator usually makes audio handeling a
> pain (for me) and generally doesn't work (for me).
>
>
>
>
>
>
>
>
>
> On Tuesday, September 13, 2011, Matthew Fleming  wrote:
> > Hi,
>
> > I have the following ridiculously simple code which for some reason is
> > not working:
>
> > recorder = new MediaRecorder();
> > recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
> > recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
> > recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
> > recorder.setOutputFile(audioFile.getAbsolutePath());
> > recorder.prepare();
> > recorder.start();
>
> > It fails with a runtime exception at recorder.start() with the message
> > "start failed". Very informative. I have verified that the audioFile
> > points to something reasonable (/data/data/com.dermvision.vfuAndroid/
> > files/audio.m4a) and that this file gets created, though with 0
> > length. I have used basically the same code in the past without
> > problems. I have tried running on 2.2 and 3.2 emulators with the same
> > result. The computer running the emulator has working audio hardware.
> > I have not yet tried running on an Android device. The application has
> > RECORD_AUDIO permissions.
>
> > Any ideas would be greatly appreciated -- this is really getting
> > annoying.
>
> > Thank very much,
>
> > Matthew Fleming
> > DermVision
>
> > --
> > 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
>
> --
> Michael Banzonhttp://michaelbanzon.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


Re: [android-developers] MediaRecorder.start() fails

2011-09-13 Thread Michael Banzon
I would try it on a device. The emulator usually makes audio handeling a
pain (for me) and generally doesn't work (for me).

On Tuesday, September 13, 2011, Matthew Fleming  wrote:
> Hi,
>
> I have the following ridiculously simple code which for some reason is
> not working:
>
> recorder = new MediaRecorder();
> recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
> recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
> recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
> recorder.setOutputFile(audioFile.getAbsolutePath());
> recorder.prepare();
> recorder.start();
>
> It fails with a runtime exception at recorder.start() with the message
> "start failed". Very informative. I have verified that the audioFile
> points to something reasonable (/data/data/com.dermvision.vfuAndroid/
> files/audio.m4a) and that this file gets created, though with 0
> length. I have used basically the same code in the past without
> problems. I have tried running on 2.2 and 3.2 emulators with the same
> result. The computer running the emulator has working audio hardware.
> I have not yet tried running on an Android device. The application has
> RECORD_AUDIO permissions.
>
> Any ideas would be greatly appreciated -- this is really getting
> annoying.
>
> Thank very much,
>
> Matthew Fleming
> DermVision
>
> --
> 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
>

-- 
Michael Banzon
http://michaelbanzon.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] Inapp Billing: Security best practices

2011-09-13 Thread androidmediadeveloper
We are integrating with market to provide inapp billing on our app.
The implementation guide says for additional security, we can use a
server to do the key verification process. This is so we dont bake the
apk with the public key I suppose.

Having a server side presence for us for right now is overkill. So,
outside of the proguard obfuscation (which we are doing), are there
any recommended security techniques that we can incorporate to make
the apk tighter ?

>From my understanding, the market does not facilitate downloading any
bits upon a purchase, or else we could have used this to only
conditionally install the "pro" class files.

Any hints/advice/lessons learnt would be helpful.

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] MediaRecorder.start() fails

2011-09-13 Thread Matthew Fleming
Hi,

I have the following ridiculously simple code which for some reason is
not working:

recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(audioFile.getAbsolutePath());
recorder.prepare();
recorder.start();

It fails with a runtime exception at recorder.start() with the message
"start failed". Very informative. I have verified that the audioFile
points to something reasonable (/data/data/com.dermvision.vfuAndroid/
files/audio.m4a) and that this file gets created, though with 0
length. I have used basically the same code in the past without
problems. I have tried running on 2.2 and 3.2 emulators with the same
result. The computer running the emulator has working audio hardware.
I have not yet tried running on an Android device. The application has
RECORD_AUDIO permissions.

Any ideas would be greatly appreciated -- this is really getting
annoying.

Thank very much,

Matthew Fleming
DermVision

-- 
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: SSL certificate error for authenticating the credentials

2011-09-13 Thread b0b
use this for your SSL factory:

SSLSocketFactory sslFactory = SSLSocketFactory.getSocketFactory();
sslFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);


But since you didn't specify a truststore with the certificate of the 
server, you'll probably have another error.

-- 
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] info about ARMV6 processor type and phone model

2011-09-13 Thread David Turner
ARMv6 doesnt use the same VFP instruction set than ARMv7 (ARMv6 is VFPv2,
while ARMv7 is VFPv3)
The two are completely incompatible, I really doubt that Firefox is going to
work on this device.

On Sat, Sep 10, 2011 at 4:49 PM, netuser501  wrote:

> Hi,
>
> I'm looking for the following information : what processor is inside
> the phone? It's a Samsung S5570 and I understand the processor is
> ARMV6. Is it V6 only or V6 + VFP.
>
> I guess I can get the answer if I install Firefox as it only works on
> V7 processors but I think I have read it could work with V6+VFP.
>
> Can anyone tell if the Samsung S5570 smartphone has VFP in it?
>
> I don't know a lot about processor hardware but I understand VFP is
> Very Floating Point and it enhances the capacities of the processor...
>
> Thanks,
>
> Pascal
>
> --
> 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Drawing errors during a shrink animation in Android 2.3.4

2011-09-13 Thread neuromit
I have 12 ImageButtons setup in a 3x4 grid. When the user clicks on an
image button it grows to fill the screen, holds, and then shrinks down
to its original location.

The animation works except that when the button is shrinking it
sometimes leaves lines behind. (I've attached images below). The are
cleared once the animation finished but it looks really bad during the
animation.

Is there a better way to achieve this animation? What can I do to
prevent the drawing errors that I'm getting?

Here is my animation code, its a little complex as I have 3 nested
animations:

http://ideone.com/kFhs4

Here is an example of what the images look like:
Before animation: http://i.stack.imgur.com/gOrvX.png
During Grow Animation: http://i.stack.imgur.com/5l2mx.png
During Shrink Animation: http://i.stack.imgur.com/driuL.png

These are images captured from my phone running cm7. However I've have
the same problems in the Emulator and on my Galaxy Tab 10.1 running
3.1


-- 
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] Starting an Activity from a service and then passing through the backkey

2011-09-13 Thread Sanjay
Hi,

I'm starting an Activity from a Service, something like the Whitepages
Application.

Now in the Activity, I don't want to use any key inputs like Back Key
etc. However these keys should be passed to another application (pl.
note this application is not started by my Service, instead it's the
Phone application of the Android).

Is the above possible. Whitepages app is doing it, so there must be
some way of doing this.

Any pointers on this would be helpful.

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: WebView takes up entire screen, I need it to fit in the remaining space of the layout.

2011-09-13 Thread IcedNet
 wrote:
> Try pressing the MENU button. If you see the options menu from the
> browser app, that's because you're in the browser app, and you are not
> looking at your WebView. That would be because the server issued a
> redirect, which you did not handle in shouldOverrideUrlLoading() of a
> WebViewClient.
>
> If, OTOH, you are sure that you are still in your own app, use
> Hierarchy View to examine your layout and figure out where your rules
> are going haywire.
>
>
>
>
>
>
>
>
>
> On Tue, Sep 13, 2011 at 9:34 AM, MCON Dev  wrote:
> > Hello All,
>
> > I am trying to use Webview in a relative layout with a progress bar
> > and some buttons. But as soon as I run webview.loadUrl("my path"), the
> > webview takes over the entire space. I need the webview to fit in the
> > remaining space of my layout. Please help.
>
> > 
> > 
> > http://schemas.android.com/apk/res/android";
> >        android:layout_width="fill_parent" 
> > android:layout_height="fill_parent">
> >         >                android:layout_alignParentTop="true" 
> > android:layout_height="wrap_content"
> >                android:id="@+id/progressBar"
> > style="@android:style/Widget.ProgressBar.Horizontal" />
> >         >                android:layout_below="@id/progressBarText" 
> > android:layout_width="fill_parent"
> >                android:layout_height="wrap_content" 
> > android:orientation="horizontal">
> >                 > android:id="@+id/search"
> >                        android:layout_height="wrap_content" 
> > android:text="Search"
> >                        android:layout_weight="1" 
> > android:layout_gravity="center_vertical" />
> >                 > android:id="@+id/cancel"
> >                        android:layout_height="wrap_content" 
> > android:text="Cancel"
> >                        android:layout_weight="1" 
> > android:layout_gravity="center_vertical" />
> >        
> >         >                android:background="@android:color/transparent"
> >                android:layout_centerInParent="true" 
> > android:src="@drawable/left"
> >                android:layout_height="wrap_content" 
> > android:layout_width="wrap_content"
> >                android:id="@+id/previous">
> >         >                android:background="@android:color/transparent"
> > android:layout_height="wrap_content"
> >                android:layout_alignParentRight="true" 
> > android:layout_centerInParent="true"
> >                android:src="@drawable/right" 
> > android:id="@+id/next">
> >         >                android:layout_below="@id/searchResultPages"
> >                android:layout_alignParentBottom="true" 
> > android:layout_width="fill_parent"
> >                android:layout_height="wrap_content" />
> > 
> > 
>
> > The AndroidManifest.xml has
> > 
> >  >                        android:screenOrientation="portrait"
> > android:configChanges="orientation|keyboardHidden"
> >                        android:windowSoftInputMode="stateHidden">
> >                        
> > 
>
> > Regards
> > Conny
>
> > --
> > 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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training

-- 
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] WebView takes up entire screen, I need it to fit in the remaining space of the layout.

2011-09-13 Thread Mark Murphy
Try pressing the MENU button. If you see the options menu from the
browser app, that's because you're in the browser app, and you are not
looking at your WebView. That would be because the server issued a
redirect, which you did not handle in shouldOverrideUrlLoading() of a
WebViewClient.

If, OTOH, you are sure that you are still in your own app, use
Hierarchy View to examine your layout and figure out where your rules
are going haywire.

On Tue, Sep 13, 2011 at 9:34 AM, MCON Dev  wrote:
> Hello All,
>
> I am trying to use Webview in a relative layout with a progress bar
> and some buttons. But as soon as I run webview.loadUrl("my path"), the
> webview takes over the entire space. I need the webview to fit in the
> remaining space of my layout. Please help.
>
> 
> 
> http://schemas.android.com/apk/res/android";
>        android:layout_width="fill_parent" android:layout_height="fill_parent">
>                        android:layout_alignParentTop="true" 
> android:layout_height="wrap_content"
>                android:id="@+id/progressBar"
> style="@android:style/Widget.ProgressBar.Horizontal" />
>                        android:layout_below="@id/progressBarText" 
> android:layout_width="fill_parent"
>                android:layout_height="wrap_content" 
> android:orientation="horizontal">
>                 android:id="@+id/search"
>                        android:layout_height="wrap_content" 
> android:text="Search"
>                        android:layout_weight="1" 
> android:layout_gravity="center_vertical" />
>                 android:id="@+id/cancel"
>                        android:layout_height="wrap_content" 
> android:text="Cancel"
>                        android:layout_weight="1" 
> android:layout_gravity="center_vertical" />
>        
>                        android:background="@android:color/transparent"
>                android:layout_centerInParent="true" 
> android:src="@drawable/left"
>                android:layout_height="wrap_content" 
> android:layout_width="wrap_content"
>                android:id="@+id/previous">
>                        android:background="@android:color/transparent"
> android:layout_height="wrap_content"
>                android:layout_alignParentRight="true" 
> android:layout_centerInParent="true"
>                android:src="@drawable/right" 
> android:id="@+id/next">
>                        android:layout_below="@id/searchResultPages"
>                android:layout_alignParentBottom="true" 
> android:layout_width="fill_parent"
>                android:layout_height="wrap_content" />
> 
> 
>
> The AndroidManifest.xml has
> 
>                         android:screenOrientation="portrait"
> android:configChanges="orientation|keyboardHidden"
>                        android:windowSoftInputMode="stateHidden">
>                        
> 
>
> Regards
> Conny
>
> --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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] WebView takes up entire screen, I need it to fit in the remaining space of the layout.

2011-09-13 Thread MCON Dev
Hello All,

I am trying to use Webview in a relative layout with a progress bar
and some buttons. But as soon as I run webview.loadUrl("my path"), the
webview takes over the entire space. I need the webview to fit in the
remaining space of my layout. Please help.



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











The AndroidManifest.xml has





Regards
Conny

-- 
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: Why is the default to use dpi instead of screen size for drawables

2011-09-13 Thread RichardC
> So it appears I need to have the same higher res images in drawable-
> hdpi and drawable-large buckets.

NO

Go back and read the docs

On Sep 13, 2:02 pm, ArcDroid  wrote:
> So it appears I need to have the same higher res images in drawable-
> hdpi and drawable-large buckets.  This is going to make the install
> big if an app has many pictures.
>
> On Sep 10, 10:44 am, Dianne Hackborn  wrote:
>
>
>
>
>
>
>
> > They are two completely different things.
>
> > Please 
> > read:http://android-developers.blogspot.com/2011/07/new-tools-for-managing...
>
> > On Sat, Sep 10, 2011 at 7:44 AM, ArcDroid  wrote:
> > > Directories are already created for ldpi, mdpi and hdpi, but it
> > > appears that normal, large, xlarge work much better for tablets and
> > > phone sizes since some old phones fall into the mdpi bucket.  why is
> > > the default to use dpi instead of screen size?
>
> > > Thanks,
> > > ArcDroid
> > >http://www.arcdroid.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
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.

-- 
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] Using the Ringtone class

2011-09-13 Thread TreKing
On Tue, Sep 13, 2011 at 7:09 AM, Antonio  wrote:

> The problem is that the Ringtone.play() method is static and the onCreate()
> method of an Activity is not, so it won't compile. How can I use it then?
>

What have you tried that is not working?

-
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

[android-developers] Using chimpchat

2011-09-13 Thread suman
I have read on one of the Android groups that it is better ti use
ChimpChat rather than using MonkeyRunner.
I have downloaded chimpchat source and jar file. Till now I have not
found any documentation or code sample on how to use it. Is it in a
stable state to be used in my automation project.

Thanks,
Suman

-- 
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] SampleSyncAdapter synchronization interval

2011-09-13 Thread Claire Reynaud
Hi,

I am trying out the SampleSyncAdapter application (android 2.2 API
level 8), and I would like to know if it is possible to specify the
synchronization interval programmatically. The
SyncAdapter.onPerformSync method is only called when I select Sync
Contacts in my SampleSyncAdapter account (Settings -> Accounts and
sync) so far.

Thanks,
Claire

-- 
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] Using the Ringtone class

2011-09-13 Thread Antonio
Hi there,
I've been trying to use the Ringtone class to ensure that I can play
ringtones easily. So I'm using the Ringtone.play() method.

The problem is that the Ringtone.play() method is static and the
onCreate() method of an Activity is not, so it won't compile. How can
I use it then?

I feel like I'm missing something basic here. Could you help me?

Thanks!
Antonio

-- 
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: auto starting application after boot complete

2011-09-13 Thread jayaram p
Ash,
 You can try setting high priority to your intent-filter similar to the
following snippet so that your application will be the first one to receive
the BOOT_COMPLETED intent by which your application would avoid showing up
Home screen in delta time

   
   
   
   

   Ref:
http://developer.android.com/guide/topics/manifest/intent-filter-element.html#priority

Cheers,
Jayaram

On Tue, Sep 13, 2011 at 11:25 AM, Ash  wrote:
> That is what my guess is.
>
> --
> 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Is it possible to use MonkeyRunner from java

2011-09-13 Thread suman
Is the problem related to dispose() method of MonkeyDevice class
resolved in ChimChat? If yes then where can I download the
chimpchat.jar?

Thanks
Suman

On Aug 23, 1:42 am, Bill Napier  wrote:
> We re-factored a bunch of code to take a lot of the MonkeyRunner source and
> make it available as a library, specifically for people doing project
> similar to what you're doing.  You should probably stop depending on the
> monkeyrunner.jar and start depending on chimpchat.jar (the new java library
> that encapsulates this functionality).  A new example looks like this:
>
>                 Map options = new TreeMap();
>                 options.put("backend", "adb");
>                 ChimpChat chimpchat = ChimpChat.getInstance(options);
>                 IChimpDevice device = chimpchat.waitForConnection();
>
> Which is the same snippet as before, but with the updated code.
>
> Bill
>
>
>
> On Sat, Aug 20, 2011 at 1:34 PM, Vikram  wrote:
> > Dear Bill,
>
> > Why would I be getting the following error while trying to compile ?
>
> > Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved
> > compilation problem:
> >     Type mismatch: cannot convert from AdbBackend to IMonkeyBackend
>
> > AM using what you had quoted to initiate the connection to the device.
>
> > CHeers,
> > Vikram.
>
> > --
> > 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- Hide quoted text -
>
> - Show quoted text -

-- 
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 close ADBMonkeyDevice and iDevice classes if device is disconnected

2011-09-13 Thread suman
I am trying to close instances of ADBMonkeyDevice and IDevice classes
by calling
ADBMonkeyDevice.dispose() method. But this method always throws "null
pointer" exception. I am disposing adbMonkeyDevice when my device is
no longer attached. When device comes online again I can not create
new instance of ADBMonkeyDevice class as it throws error

SEVERE: Adb rejected adb port forwarding command: cannot bind socket
com.android.ddmlib.AdbCommandRejectedException: cannot bind socket
at com.android.ddmlib.AdbHelper.createForward(AdbHelper.java:537)
at com.android.ddmlib.Device.createForward(Device.java:300)
at
com.android.monkeyrunner.adb.AdbMonkeyDevice.createManager(AdbMonkeyDevice.java:
118)
at
com.android.monkeyrunner.adb.AdbMonkeyDevice.(AdbMonkeyDevice.java:
66)
at
com.adobe.genie.deviceController.android.ADBDeviceBroker.initMonkeyDevice(ADBDeviceBroker.java:
77)
at
com.adobe.genie.deviceController.android.ADBDeviceBroker.(ADBDeviceBroker.java:
30)
at
com.adobe.genie.deviceController.android.AndroidDeviceClient.(AndroidDeviceClient.java:
30)
at
com.adobe.genie.deviceController.deviceComm.DeviceClientList.deviceListUpdate(DeviceClientList.java:
354)
at
com.adobe.genie.deviceController.DeviceControllerPollThread.updateDeviceClients(DeviceControllerPollThread.java:
159)
at
com.adobe.genie.deviceController.DeviceControllerPollThread.run(DeviceControllerPollThread.java:
122)
AdbCommandRejectedException while initiating AdbMonkeyDevice: cannot
remove listener

This problem gets resolved only when I restart adb.
I want to dispose ADBMonkeyDevice when device is not connected and
want to instantiate it again when it is attached again. I do not want
to restart ADB in between.

Please help me on this one.

Regards,
Suman

-- 
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] Communicating with widget

2011-09-13 Thread Vic
Hello I've been searching for some informations for few days and as I
didn't found solution to my problem I'm writing here. I need to do a
widget with one imagebutton. It displays green icon when a
MyCommService is running and red icon when service is not ronning.
When service is not running and I click button it should start and
when it's running and I click button it should stop. Could somebody
help me ?

-- 
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: itemizedOverlay, onTap

2011-09-13 Thread Saket Agarwal
>From what i understand mContext is never initialized in your code.
Instead of doing

 itemizedOverlay = new helloItemizedOverlay(drawable);

try,

itemizedOverlay = new helloItemizedOverlay(drawable,getcontext);



On Sep 12, 3:30 am, rochi  wrote:
> hello, I'm having problems with this code:
>
> http://developer.android.com/resources/tutorials/views/hello-mapview
>
> In main.xml I have:
>
> 
> http://schemas.android.com/apk/res/
> android"
>     android:id="@+id/mainlayout"
>     android:orientation="vertical"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent" >
>
>            android:id="@+id/mapview"
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent"
>         android:clickable="true"
>         android:apiKey="myKey"
>     />
>
> 
>
> In the AndroidManifest.xml
>
> 
> http://schemas.android.com/apk/res/android";
>       package="maps.rochi"
>       android:versionCode="1"
>       android:versionName="1.0">
>     
>
>     
>
>     
>
>         
>
>                            android:label="@string/app_name">
>             
>                 
>                  android:name="android.intent.category.LAUNCHER" />
>             
>         
>
>     
>
> 
>
> In mapsActivity.java:
>
> public class MapsActivity extends MapActivity {
>
>         LinearLayout linearLayout;
>         MapView mapView;
>         MapController mapController;
>
>         List mapOverlays;
>         Drawable drawable;
>         helloItemizedOverlay itemizedOverlay;
>
>     protected boolean isRouteDisplayed() {
>         return false;
>     }
>
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>
>         mapView = (MapView) findViewById(R.id.mapview);
>         mapView.setBuiltInZoomControls(true);
>
>         mapController = mapView.getController();
>
>         mapOverlays = mapView.getOverlays();
>         drawable =
> this.getResources().getDrawable(R.drawable.bikeicon);
>         itemizedOverlay = new helloItemizedOverlay(drawable);
>
>         GeoPoint point = new GeoPoint(1924,-9912);
>         OverlayItem overlayitem = new OverlayItem(point, "Hola,
> Mundo!", "I'm in Mexico City!");
>
>         itemizedOverlay.addOverlay(overlayitem);
>
>         mapOverlays.add(itemizedOverlay);
>
>     }
>
> }
>
> And helloItemizedOverlay:
>
> public class helloItemizedOverlay extends ItemizedOverlay {
>
>     Context mContext = null;
>     private ArrayList mOverlays = new
> ArrayList();
>
>     public helloItemizedOverlay(Drawable marker) {
>         super(boundCenterBottom(marker));
>
>     }
>
>         public void addOverlay(OverlayItem overlay) {
>             mOverlays.add(overlay);
>             populate();
>         }
>
>         @Override
>         protected OverlayItem createItem(int i) {
>           return mOverlays.get(i);
>         }
>
>         @Override
>         public int size() {
>                 // TODO Auto-generated method stub
>                 return mOverlays.size();
>         }
>
>     public helloItemizedOverlay(Drawable defaultMarker, Context
> context) {
>         super(defaultMarker);
>         mContext = context;
>     }
>
>         @Override
>         protected boolean onTap(int index){
>                   OverlayItem item = mOverlays.get(index);
>                   try{
>                           AlertDialog.Builder dialog = new 
> AlertDialog.Builder(mContext);
>                           dialog.setTitle(item.getTitle());
>                           dialog.setMessage(item.getSnippet());
>                           dialog.show();
>                   } catch (Exception e){
>                           e.printStackTrace();
>                   }
>
>                   return true;
>         }
>
> }
>
> When I click in some icon, I found a nullPointerException in  this
> line AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
>
> what's my mistake???
>
> Thank you so much!

-- 
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: Why is the default to use dpi instead of screen size for drawables

2011-09-13 Thread ArcDroid
So it appears I need to have the same higher res images in drawable-
hdpi and drawable-large buckets.  This is going to make the install
big if an app has many pictures.

On Sep 10, 10:44 am, Dianne Hackborn  wrote:
> They are two completely different things.
>
> Please 
> read:http://android-developers.blogspot.com/2011/07/new-tools-for-managing...
>
>
>
> On Sat, Sep 10, 2011 at 7:44 AM, ArcDroid  wrote:
> > Directories are already created for ldpi, mdpi and hdpi, but it
> > appears that normal, large, xlarge work much better for tablets and
> > phone sizes since some old phones fall into the mdpi bucket.  why is
> > the default to use dpi instead of screen size?
>
> > Thanks,
> > ArcDroid
> >http://www.arcdroid.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
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
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] Accessory Developer Kit on any phone running 2.3.4

2011-09-13 Thread TreKing
On Mon, Sep 12, 2011 at 11:15 AM, John Windberg  wrote:

> That ought be enough to get the accessory developer kit app working,
> but I'm getting messages about a missing library.
>
> Does anyone know what it really takes to get the adk demo app working?
>

I don't, but posting the error and missing library might help someone that
might know help you.

-
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

Re: [android-developers] How do I filter out applications from system packages

2011-09-13 Thread TreKing
On Mon, Sep 12, 2011 at 12:29 PM, Taranasus  wrote:

> What can I do so that it doesn't exclude these apps that are somewhat
> essential to be in an application launcher but are already part of the
> Android OS?
>

How do you define "somewhat essential to be in an application launcher"?

-
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

Re: [android-developers] How can i write name city from listview into SD Card

2011-09-13 Thread TreKing
On Mon, Sep 12, 2011 at 9:43 PM, Jhew SAN wrote:

> How i can delete it in searchcity.xml in SD Card too ?


Read your data from XML to memory, delete the entry in question, write it
back. This is not Android-specific.

-
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

Re: [android-developers] Re: Emulator Help

2011-09-13 Thread Amol Sharma
RAM is 3GB.it's working fine now...i reinstalled the things..and
it's performance is improved !!
--


Amol Sharma
Third Year Student
Computer Science and Engineering
MNNIT Allahabad
 






On Tue, Sep 13, 2011 at 10:30 AM, moktarul anam  wrote:

> can u tell me ur ram size?. if less than 2GB then emulator will be
> very slow
>
> On Sep 11, 11:19 pm, Amol Sharma  wrote:
> > Hi all,
> > i am new in this android development..i have recently installed
> Eclipse
> > and Android SDK API 13.created a hello world application
> > i know that emulator takes time to load..but after loading also
> it
> > is also working very slowly..is there any fix for it ??does
> the
> > size of sd memory selected in avd has any affect only
> >
> > one more thingthere is only one skin available in my eclipse...how
> can i
> > install more skins.
> >
> > plz guide me
> > thank you
> > --
> >
> > Amol Sharma
> > Third Year Student
> > Computer Science and Engineering
> > MNNIT Allahabad
> >  
> > <
> http://in.linkedin.com/pub/amol-sharma/21/79b/507><
> http://youtube.com/amolsharma99>
>
> --
> 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] ExpandableListView Question

2011-09-13 Thread TreKing
On Mon, Sep 12, 2011 at 10:02 PM, Ash  wrote:

> Is there way to get notified when all the items have been loaded and shown
> on the screen?


Do whatever is taking so long in an AsyncTask. Show your progress dialog on
start, do your work, then hide your dialog when the work is done.

-
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

Re: [android-developers] emulator: android.process.acore has stopped unexpectedly.

2011-09-13 Thread Mark Murphy
On Tue, Sep 13, 2011 at 7:56 AM, John Goche  wrote:
> P.S. Do all of these problems show up under Linux as well?

They can. All of these are symptoms of a computer with either too slow
of a CPU or insufficient RAM. What are the specifications of your
development machine?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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: Memory Usage and Garbage Collection issues on 1.6 and 2.1

2011-09-13 Thread MarcoAndroid
To better understand/how to analyse memory usage, you probably want to
check:
http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html
http://ttlnews.blogspot.com/2010/01/attacking-memory-problems-on-android.html
http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/


On 9 sep, 06:43, hooked82  wrote:
> I'm checking my app for Memory Leaks/Usage and came across something
> weird that I've only seen so far in Android 1.6 and 2.1. After
> clicking around in the app a bit and I run "adb shell dumpsys meminfo"
> for my application, I see the following:
>
> DUMP OF SERVICE meminfo:
> Applications Memory Usage (kB):
> Uptime: 34639912 Realtime: 153524709
>
> ** MEMINFO in pid 5778 [com.app.myapp] **
>                         native    dalvik     other   total
>             size:    14336     4679      N/A    19015
>        allocated:  13971     4139      N/A    18110
>             free:        280       540      N/A       820
>            (Pss):     2986     4181    13491    20658
>   (shared dirty):    972     3948      620       5540
>     (priv dirty):     2876     3224    10976    17076
>
>  Objects
>                  Views:      545          ViewRoots:        4
>        AppContexts:       32             Activities:       31
>                 Assets:        2    AssetManagers:        2
>        Local Binders:       43     Proxy Binders:       79
>   Death Recipients:        2
> OpenSSL Sockets:        1
>
>  SQL
>                 heap:       91               dbFiles:        0
>        numPagers:        4   inactivePageKB:        0
>     activePageKB:        0
>
>  Asset Allocations
>     zip:/data/app/com.app.myapp.apk:/resources.arsc: 119K
>
> The memory dump was after clicking around in the app, going from
> Activity to Activity and that is all.  This isn't reproduce-able in
> 2.2+ and it seems that I'm either missing something simple, or there's
> something about pre 2.2 versions of Android that I'm just not aware
> of.  What could be the cause of this?
>
> The app will eventually crash with an OutOfMemoryError once the
> objects pile up.  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] How to make custom Spinner pop-up list radio button on Android

2011-09-13 Thread TreKing
On Tue, Sep 13, 2011 at 7:06 AM, petr.maza...@mautilus.com <
petr.maza...@mautilus.com> wrote:

> How can I define the custom check mark - ideally by using styles/
> themes for the whole application? I have tried many ways including
> this one, but nothing works. If anyone has the working example please
> share.
>

IDK if there is an easier way, but you can define your own adapter that
returns your custom drawable based on the selection state of each item in
the list.

-
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

[android-developers] Re: itemizedOverlay, onTap

2011-09-13 Thread android 4u
While creating the object of your class helloItemizedOverlay you are
supposed to pass the current context. Use the constructor
helloItemizedOverlay(Drawable defaultMarker, Context context). When
you do this your context will not be null.
This constructor in turn is calling the super constructor.

Thanks

On Sep 13, 4:50 pm, Logesh rajendren  wrote:
> you have only one activity in your manifest file . include the
> HelloItemizedOverlay activity in your manifest file.
>
>
>
>
>
>
>
> On Mon, Sep 12, 2011 at 12:30 AM, rochi  wrote:
> > hello, I'm having problems with this code:
>
> >http://developer.android.com/resources/tutorials/views/hello-mapview
>
> > In main.xml I have:
>
> > 
> > http://schemas.android.com/apk/res/
> > android"
> >    android:id="@+id/mainlayout"
> >    android:orientation="vertical"
> >    android:layout_width="fill_parent"
> >    android:layout_height="fill_parent" >
>
> >   >        android:id="@+id/mapview"
> >        android:layout_width="fill_parent"
> >        android:layout_height="fill_parent"
> >        android:clickable="true"
> >        android:apiKey="myKey"
> >    />
>
> > 
>
> > In the AndroidManifest.xml
>
> > 
> > http://schemas.android.com/apk/res/android";
> >      package="maps.rochi"
> >      android:versionCode="1"
> >      android:versionName="1.0">
> >    
>
> >    
>
> >    
>
> >        
>
> >         >                  android:label="@string/app_name">
> >            
> >                
> >                 > android:name="android.intent.category.LAUNCHER" />
> >            
> >        
>
> >    
>
> > 
>
> > In mapsActivity.java:
>
> > public class MapsActivity extends MapActivity {
>
> >        LinearLayout linearLayout;
> >        MapView mapView;
> >        MapController mapController;
>
> >        List mapOverlays;
> >        Drawable drawable;
> >        helloItemizedOverlay itemizedOverlay;
>
> >    protected boolean isRouteDisplayed() {
> >        return false;
> >    }
>
> >    /** Called when the activity is first created. */
> >    @Override
> >    public void onCreate(Bundle savedInstanceState) {
> >        super.onCreate(savedInstanceState);
> >        setContentView(R.layout.main);
>
> >        mapView = (MapView) findViewById(R.id.mapview);
> >        mapView.setBuiltInZoomControls(true);
>
> >        mapController = mapView.getController();
>
> >        mapOverlays = mapView.getOverlays();
> >        drawable =
> > this.getResources().getDrawable(R.drawable.bikeicon);
> >        itemizedOverlay = new helloItemizedOverlay(drawable);
>
> >        GeoPoint point = new GeoPoint(1924,-9912);
> >        OverlayItem overlayitem = new OverlayItem(point, "Hola,
> > Mundo!", "I'm in Mexico City!");
>
> >        itemizedOverlay.addOverlay(overlayitem);
>
> >        mapOverlays.add(itemizedOverlay);
>
> >    }
> > }
>
> > And helloItemizedOverlay:
>
> > public class helloItemizedOverlay extends ItemizedOverlay {
>
> >    Context mContext = null;
> >    private ArrayList mOverlays = new
> > ArrayList();
>
> >    public helloItemizedOverlay(Drawable marker) {
> >        super(boundCenterBottom(marker));
>
> >    }
>
> >        public void addOverlay(OverlayItem overlay) {
> >            mOverlays.add(overlay);
> >            populate();
> >        }
>
> >        @Override
> >        protected OverlayItem createItem(int i) {
> >          return mOverlays.get(i);
> >        }
>
> >        @Override
> >        public int size() {
> >                // TODO Auto-generated method stub
> >                return mOverlays.size();
> >        }
>
> >    public helloItemizedOverlay(Drawable defaultMarker, Context
> > context) {
> >        super(defaultMarker);
> >        mContext = context;
> >    }
>
> >        @Override
> >        protected boolean onTap(int index){
> >                  OverlayItem item = mOverlays.get(index);
> >                  try{
> >                          AlertDialog.Builder dialog = new
> > AlertDialog.Builder(mContext);
> >                          dialog.setTitle(item.getTitle());
> >                          dialog.setMessage(item.getSnippet());
> >                          dialog.show();
> >                  } catch (Exception e){
> >                          e.printStackTrace();
> >                  }
>
> >                  return true;
> >        }
>
> > }
>
> > When I click in some icon, I found a nullPointerException in  this
> > line AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
>
> > what's my mistake???
>
> > Thank you so much!
>
> > --
> > 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 "

Re: [android-developers] Hi

2011-09-13 Thread TreKing
On Tue, Sep 13, 2011 at 5:59 AM, Tushar Sahni wrote:

> I have developed an application that is made in android 3.2. The project
> contains 5 tabs and activity group.
>

You should not be using ActivityGroup. Use Fragments.

Is it possible for me to run the same code in android 3.2 ..?
>

I thought you said you developed it in 3.2 already?


> But when i run the code its crashing.
>

Debug your code.


> Is dere any solution in which i can run the application in android
> 2.1 updated one version
>

Yes.


> If yes,,can anyone guide me
>

Not if you don't explain what "crashing" means and provide more information
in to what you're actually doing.

-
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

[android-developers] How to make custom Spinner pop-up list radio button on Android

2011-09-13 Thread petr.maza...@mautilus.com
Hello,

I am able to customize the Spinner widget drop-down background by
specifying the drawable resource in the Spinner XML element:




Once the spinner drop down is tapped by user's finger the pop-up list
with options appears. This I am able to customize as well by calling
the adapter.setDropDownViewResource(R.layout.spinner_row_layout);
where the spinner_row_layout is the layout for one line for the list.

By specifying the row layout with use of a TextView I have the custom
row, but I miss the radio button on the right side. If I put there
instead of the TextView the CheckedTextView then I can have custom
background for the row as well, but it used the default check mark.

The problem with the default checkmark is that its color does not fit
the company color guidelines for the application.

How can I define the custom check mark - ideally by using styles/
themes for the whole application? I have tried many ways including
this one, but nothing works. If anyone has the working example please
share.

Thanks a lot
Regards,
STeN

-- 
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] itemizedOverlay, onTap

2011-09-13 Thread androidhub trainer
While creating the object of your class helloItemizedOverlay you are
supposed to pass the current context. Use the constructor
helloItemizedOverlay(Drawable defaultMarker, Context context). When you do
this your context will not be null.
This constructor in turn is calling the super constructor.

Thanks

On Tue, Sep 13, 2011 at 5:28 PM, androidhub trainer <
androidtrainin...@gmail.com> wrote:

> While creating the object of your class helloItemizedOverlay you are
> supposed to pass the current context. Use the constructor
> helloItemizedOverlay(Drawable defaultMarker, Context
> > > context). When you do this your context will not be null.
>
>
> On Mon, Sep 12, 2011 at 1:00 PM, rochi  wrote:
>
>> hello, I'm having problems with this code:
>>
>> http://developer.android.com/resources/tutorials/views/hello-mapview.html
>>
>>
>> In main.xml I have:
>>
>> 
>> http://schemas.android.com/apk/res/
>> android"
>>android:id="@+id/mainlayout"
>>android:orientation="vertical"
>>android:layout_width="fill_parent"
>>android:layout_height="fill_parent" >
>>
>>  >android:id="@+id/mapview"
>>android:layout_width="fill_parent"
>>android:layout_height="fill_parent"
>>android:clickable="true"
>>android:apiKey="myKey"
>>/>
>>
>>
>> 
>>
>> In the AndroidManifest.xml
>>
>> 
>> http://schemas.android.com/apk/res/android";
>>  package="maps.rochi"
>>  android:versionCode="1"
>>  android:versionName="1.0">
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>>  android:label="@string/app_name">
>>
>>
>>> android:name="android.intent.category.LAUNCHER" />
>>
>>
>>
>>
>>
>> 
>>
>> In mapsActivity.java:
>>
>> public class MapsActivity extends MapActivity {
>>
>>LinearLayout linearLayout;
>>MapView mapView;
>>MapController mapController;
>>
>>List mapOverlays;
>>Drawable drawable;
>>helloItemizedOverlay itemizedOverlay;
>>
>>
>>protected boolean isRouteDisplayed() {
>>return false;
>>}
>>
>>/** Called when the activity is first created. */
>>@Override
>>public void onCreate(Bundle savedInstanceState) {
>>super.onCreate(savedInstanceState);
>>setContentView(R.layout.main);
>>
>>mapView = (MapView) findViewById(R.id.mapview);
>>mapView.setBuiltInZoomControls(true);
>>
>>mapController = mapView.getController();
>>
>>mapOverlays = mapView.getOverlays();
>>drawable =
>> this.getResources().getDrawable(R.drawable.bikeicon);
>>itemizedOverlay = new helloItemizedOverlay(drawable);
>>
>>GeoPoint point = new GeoPoint(1924,-9912);
>>OverlayItem overlayitem = new OverlayItem(point, "Hola,
>> Mundo!", "I'm in Mexico City!");
>>
>>
>>itemizedOverlay.addOverlay(overlayitem);
>>
>>mapOverlays.add(itemizedOverlay);
>>
>>
>>}
>> }
>>
>> And helloItemizedOverlay:
>>
>> public class helloItemizedOverlay extends ItemizedOverlay {
>>
>>Context mContext = null;
>>private ArrayList mOverlays = new
>> ArrayList();
>>
>>
>>public helloItemizedOverlay(Drawable marker) {
>>super(boundCenterBottom(marker));
>>
>>}
>>
>>public void addOverlay(OverlayItem overlay) {
>>mOverlays.add(overlay);
>>populate();
>>}
>>
>>@Override
>>protected OverlayItem createItem(int i) {
>>  return mOverlays.get(i);
>>}
>>
>>@Override
>>public int size() {
>>// TODO Auto-generated method stub
>>return mOverlays.size();
>>}
>>
>>public helloItemizedOverlay(Drawable defaultMarker, Context
>> context) {
>>super(defaultMarker);
>>mContext = context;
>>}
>>
>>@Override
>>protected boolean onTap(int index){
>>  OverlayItem item = mOverlays.get(index);
>>  try{
>>  AlertDialog.Builder dialog = new
>> AlertDialog.Builder(mContext);
>>  dialog.setTitle(item.getTitle());
>>  dialog.setMessage(item.getSnippet());
>>  dialog.show();
>>  } catch (Exception e){
>>  e.printStackTrace();
>>  }
>>
>>  return true;
>>}
>>
>> }
>>
>>
>> When I click in some icon, I found a nullPointerException in  this
>> line AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
>>
>> what's my mistake???
>>
>> Thank you so much!
>>
>> --
>> 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.goog

Re: [android-developers] itemizedOverlay, onTap

2011-09-13 Thread androidhub trainer
While creating the object of your class helloItemizedOverlay you are
supposed to pass the current context. Use the constructor
helloItemizedOverlay(Drawable defaultMarker, Context
> > context). When you do this your context will not be null.

On Mon, Sep 12, 2011 at 1:00 PM, rochi  wrote:

> hello, I'm having problems with this code:
>
> http://developer.android.com/resources/tutorials/views/hello-mapview.html
>
>
> In main.xml I have:
>
> 
> http://schemas.android.com/apk/res/
> android"
>android:id="@+id/mainlayout"
>android:orientation="vertical"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent" >
>
>  android:id="@+id/mapview"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent"
>android:clickable="true"
>android:apiKey="myKey"
>/>
>
>
> 
>
> In the AndroidManifest.xml
>
> 
> http://schemas.android.com/apk/res/android";
>  package="maps.rochi"
>  android:versionCode="1"
>  android:versionName="1.0">
>
>
>
>
>
>
>
>
>
>
>  android:label="@string/app_name">
>
>
> android:name="android.intent.category.LAUNCHER" />
>
>
>
>
>
> 
>
> In mapsActivity.java:
>
> public class MapsActivity extends MapActivity {
>
>LinearLayout linearLayout;
>MapView mapView;
>MapController mapController;
>
>List mapOverlays;
>Drawable drawable;
>helloItemizedOverlay itemizedOverlay;
>
>
>protected boolean isRouteDisplayed() {
>return false;
>}
>
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>mapView = (MapView) findViewById(R.id.mapview);
>mapView.setBuiltInZoomControls(true);
>
>mapController = mapView.getController();
>
>mapOverlays = mapView.getOverlays();
>drawable =
> this.getResources().getDrawable(R.drawable.bikeicon);
>itemizedOverlay = new helloItemizedOverlay(drawable);
>
>GeoPoint point = new GeoPoint(1924,-9912);
>OverlayItem overlayitem = new OverlayItem(point, "Hola,
> Mundo!", "I'm in Mexico City!");
>
>
>itemizedOverlay.addOverlay(overlayitem);
>
>mapOverlays.add(itemizedOverlay);
>
>
>}
> }
>
> And helloItemizedOverlay:
>
> public class helloItemizedOverlay extends ItemizedOverlay {
>
>Context mContext = null;
>private ArrayList mOverlays = new
> ArrayList();
>
>
>public helloItemizedOverlay(Drawable marker) {
>super(boundCenterBottom(marker));
>
>}
>
>public void addOverlay(OverlayItem overlay) {
>mOverlays.add(overlay);
>populate();
>}
>
>@Override
>protected OverlayItem createItem(int i) {
>  return mOverlays.get(i);
>}
>
>@Override
>public int size() {
>// TODO Auto-generated method stub
>return mOverlays.size();
>}
>
>public helloItemizedOverlay(Drawable defaultMarker, Context
> context) {
>super(defaultMarker);
>mContext = context;
>}
>
>@Override
>protected boolean onTap(int index){
>  OverlayItem item = mOverlays.get(index);
>  try{
>  AlertDialog.Builder dialog = new
> AlertDialog.Builder(mContext);
>  dialog.setTitle(item.getTitle());
>  dialog.setMessage(item.getSnippet());
>  dialog.show();
>  } catch (Exception e){
>  e.printStackTrace();
>  }
>
>  return true;
>}
>
> }
>
>
> When I click in some icon, I found a nullPointerException in  this
> line AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
>
> what's my mistake???
>
> Thank you so much!
>
> --
> 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] emulator: android.process.acore has stopped unexpectedly.

2011-09-13 Thread John Goche
Hello,

I am having some problems with the various emulators. I am
running 64-bit Windows 7 with the latest JDK SE 6 Update 27
and Eclipse 3.7.0 (Indigo) classic. I downloaded release 12 of
the android sdk starter kit and installed the ADT plugin. I then
installed several android SDKs and compiled a hello world
application for

1. Android 2.1-update1 SDK emulator:

This one hangs after displaying the android characters and
then the android animated characters. I had it run over night
and the next morning it was still loading.

2. Android 2.3.3 SDK emulator:

Once the emulator loads the hello world application is displayed
but I keep getting the message "Sorry! The process android.process.acore
has stopped unexpectedly. Please try again." This message keeps popping
up even if I press the "Force close" button.

3. Android 3.2 SDK emulator:

Here it boots up fine but did not display my hello world emulator on
startup, so I retried with 3.0 SDK which is similar...

4. Android 3.0 SDK. Again, like in the 3.2 SDK case I get a tablet emulator.
I figured out if I click on Apps -> My apps -> Hello I can launch my
application
although the emulator UI is a bit slow. I use the Esc key to go back. But
then
again I keep getting and dismissing the message:

The process androild.process.acore has stopped unexpectedly, and keep
getting this message even after I exit my application.

Every 30 seconds or so it keeps popping up.

P.S. Do all of these problems show up under Linux as well?

I need to develop on 800x600 screen resolution tablets.
Any suggestions would be welcome.

Thanks,

John Goche

-- 
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] itemizedOverlay, onTap

2011-09-13 Thread Logesh rajendren
you have only one activity in your manifest file . include the
HelloItemizedOverlay activity in your manifest file.

On Mon, Sep 12, 2011 at 12:30 AM, rochi  wrote:

> hello, I'm having problems with this code:
>
> http://developer.android.com/resources/tutorials/views/hello-mapview.html
>
>
> In main.xml I have:
>
> 
> http://schemas.android.com/apk/res/
> android"
>android:id="@+id/mainlayout"
>android:orientation="vertical"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent" >
>
>  android:id="@+id/mapview"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent"
>android:clickable="true"
>android:apiKey="myKey"
>/>
>
>
> 
>
> In the AndroidManifest.xml
>
> 
> http://schemas.android.com/apk/res/android";
>  package="maps.rochi"
>  android:versionCode="1"
>  android:versionName="1.0">
>
>
>
>
>
>
>
>
>
>
>  android:label="@string/app_name">
>
>
> android:name="android.intent.category.LAUNCHER" />
>
>
>
>
>
> 
>
> In mapsActivity.java:
>
> public class MapsActivity extends MapActivity {
>
>LinearLayout linearLayout;
>MapView mapView;
>MapController mapController;
>
>List mapOverlays;
>Drawable drawable;
>helloItemizedOverlay itemizedOverlay;
>
>
>protected boolean isRouteDisplayed() {
>return false;
>}
>
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>mapView = (MapView) findViewById(R.id.mapview);
>mapView.setBuiltInZoomControls(true);
>
>mapController = mapView.getController();
>
>mapOverlays = mapView.getOverlays();
>drawable =
> this.getResources().getDrawable(R.drawable.bikeicon);
>itemizedOverlay = new helloItemizedOverlay(drawable);
>
>GeoPoint point = new GeoPoint(1924,-9912);
>OverlayItem overlayitem = new OverlayItem(point, "Hola,
> Mundo!", "I'm in Mexico City!");
>
>
>itemizedOverlay.addOverlay(overlayitem);
>
>mapOverlays.add(itemizedOverlay);
>
>
>}
> }
>
> And helloItemizedOverlay:
>
> public class helloItemizedOverlay extends ItemizedOverlay {
>
>Context mContext = null;
>private ArrayList mOverlays = new
> ArrayList();
>
>
>public helloItemizedOverlay(Drawable marker) {
>super(boundCenterBottom(marker));
>
>}
>
>public void addOverlay(OverlayItem overlay) {
>mOverlays.add(overlay);
>populate();
>}
>
>@Override
>protected OverlayItem createItem(int i) {
>  return mOverlays.get(i);
>}
>
>@Override
>public int size() {
>// TODO Auto-generated method stub
>return mOverlays.size();
>}
>
>public helloItemizedOverlay(Drawable defaultMarker, Context
> context) {
>super(defaultMarker);
>mContext = context;
>}
>
>@Override
>protected boolean onTap(int index){
>  OverlayItem item = mOverlays.get(index);
>  try{
>  AlertDialog.Builder dialog = new
> AlertDialog.Builder(mContext);
>  dialog.setTitle(item.getTitle());
>  dialog.setMessage(item.getSnippet());
>  dialog.show();
>  } catch (Exception e){
>  e.printStackTrace();
>  }
>
>  return true;
>}
>
> }
>
>
> When I click in some icon, I found a nullPointerException in  this
> line AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
>
> what's my mistake???
>
> Thank you so much!
>
> --
> 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to implement chat application in android

2011-09-13 Thread TreKing
On Tue, Sep 13, 2011 at 5:58 AM, Ratheesh Valamchuzhy
wrote:

> Plse share any ideas about implementing chat in android
> application...


Here are a few ideas.

1: Learn to spell "please".
2: Try to solve your own problem.
3: If you can't, read this: http://catb.org/~esr/faqs/smart-questions.html,
then come back here with a better question.
4: Do not bump your post in half an hour.
5: Lay off the giant, red font.

Hope that helps.

-
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

Re: [android-developers] Re: Create videos for android market.

2011-09-13 Thread TreKing
On Tue, Sep 13, 2011 at 5:53 AM, sblantipodi
wrote:

> the camera way is ugly and the screen capture software is too slow,
> it completely cut off the animations.
>

You tried every single option you found?

-
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

[android-developers] Re: How to implement chat application in android

2011-09-13 Thread Ratheesh Valamchuzhy
NO 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

Re: [android-developers] how to auto install apk programmatic

2011-09-13 Thread Mark Murphy
On Mon, Sep 12, 2011 at 10:00 AM, Kamala  wrote:
> I have two applications what i want when i install one application
> other one should be installed automatically.

This is not possible.

You can arrange for the first application to initiate a download and
installation of the second application, when the user first runs the
first application. However, the user will still need to agree to the
installation -- the second application will not be installed
"automatically".

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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: Create videos for android market.

2011-09-13 Thread RichardC
Use a phone with a video out (there are quite a few available) and
record it.

On Sep 13, 11:53 am, sblantipodi  wrote:
> the camera way is ugly and the screen capture software is too slow, it
> completely cut off the animations.
> Will we ever see a decent SDK with decent speeds?
>
> On Sep 13, 4:03 am, TreKing  wrote:
>
>
>
>
>
>
>
> > On Mon, Sep 12, 2011 at 8:03 PM, sblantipodi
> > wrote:
>
> > > The SDK is too slow to make a decent video, how can I do it?
> > > How do you do it?
>
> > I googled "free screen capture software"
>
> > -
> > 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


[android-developers] Hi

2011-09-13 Thread Tushar Sahni
Hi all,,,

I have developed an application that is made in android 3.2. The
project contains 5 tabs and activity group.Is it possible for me to
run the same code in android 3.2 ..? But when i run the code its
crashing.Its working fine in android 2.1 and above...


Is dere any solution in which i can run the application in android 2.1
updated one version
If yes,,can anyone guide me



Thanks
Tushar

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


  1   2   >