[android-developers] Re: Relative layout : how to horizontally center align 2 children.

2012-04-09 Thread Zsolt Vasvari
AFAIK, you cannot.  You will have to frame them using a sub-layout.

On Monday, April 9, 2012 11:56:56 AM UTC+8, Put_tiMe wrote:
>
> In a relative layout, how do I center align two *child* elements.
> The two elements could be of different widths.
>  
> They appear one below the other and are horizontally center aligned.
>  
>  
>

-- 
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: Image to Video Converter In android

2012-04-09 Thread Arun
Dear Nagaraj,

My requirement is differnt, i had created a slideshow of images and
now i want to share, and for that reson i think to convert slideshow
into video and share it,

What you think, is this the Right way to do this.

Thanks for your reply, n waiting for another.

Regards
Arun


On Apr 9, 1:07 pm, nagaraj attimani 
wrote:
> Dear Arun,
>
> First you need to convert Image to YUV format using Image Decoder.
> Then you can feed each YUV Image as a Video Input to Media Recorder Engine.
>
> Go through the Media Recorder Source Code to get more info.
>
>
>
>
>
>
>
>
>
> On Mon, Apr 9, 2012 at 1:22 PM, Arun  wrote:
> > hello all,
>
> > I want to convert a sequence of images in to video file in android.
> > and wants to share the file on facebook.  i had done lots of R&D and
> > uses FFmpeg library for the same, But no success.
>
> > please help me.
> > and id anyone have working code please provide me.. i am in deep
> > trouble.
>
> > Thanks in advance.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Warm Regards,
> Nagaraj

-- 
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] current lat and long

2012-04-09 Thread Bhuvan Chandra
Hey I got the idea of getting the current gps coordinates but i want these
cordinates to be sent to a server , can anyone help me how to send the
coordinates from mobile as soon as it recieves from the gps to a server


On Mon, Apr 9, 2012 at 9:27 PM, Dalvinder Singh wrote:

> /**
>  *
>  * @author Dalvin
>  * This class handles the task of getting user's current location.
>  */
> public class MyLocationManager{
>  private static long MINTIME = 3000;
> private static Geocoder geoCoder = null;
>  private static final int MAX_RESULTS = 1;
> private static MyLocationManagerCallBack myLocationManagerCallBack;
>  private static LocationManager locationManager;
> private static final String TAG = "MyLocationManager";
>  public static LocationListener locationListener = new LocationListener()
> {
>  @Override
> public void onStatusChanged(String provider, int status, Bundle extras) {
>  if(status != LocationProvider.AVAILABLE){
> MyLocationManager.myLocationManagerCallBack.onResultCallBack(
>  StatusCodes.LOCATION_PROVIDER_UNAVAILABLE,
> StatusCodes.getErrorMsg(StatusCodes.LOCATION_PROVIDER_UNAVAILABLE),
>  null,null,null,null);
>
> MyLocationManager.locationManager.removeUpdates(MyLocationManager.locationListener);
>  }
> }
>  @Override
> public void onProviderEnabled(String provider) {
> // TODO Auto-generated method stub
>  }
>  @Override
> public void onProviderDisabled(String provider) {
> MyLocationManager.myLocationManagerCallBack.onResultCallBack(
>  StatusCodes.LOCATION_PROVIDER_DISABLED,
> StatusCodes.getErrorMsg(StatusCodes.LOCATION_PROVIDER_DISABLED),
>  null,null,null,null);
>
> MyLocationManager.locationManager.removeUpdates(MyLocationManager.locationListener);
>  }
>  @Override
>  public void onLocationChanged(Location location) {
> Log.d(TAG, "onLocationChanged START");
>
> MyLocationManager.locationManager.removeUpdates(MyLocationManager.locationListener);
> if(geoCoder!=null){
>  try {
> List listOfAddresses =
> geoCoder.getFromLocation(location.getLatitude(),
>  location.getLongitude(), MAX_RESULTS);
> if(listOfAddresses != null && listOfAddresses.size()>0){
>  Address address = listOfAddresses.get(0);
>  MyLocationManager.myLocationManagerCallBack.onResultCallBack
>  (StatusCodes.SUCCESS,StatusCodes.getErrorMsg(StatusCodes.SUCCESS),
> Double.toString(location.getLatitude()),
>  Double.toString(location.getLongitude()),
> address.getAddressLine(0),
>  address.getPostalCode());
> address = null;
> listOfAddresses = null;
>  }else{
> MyLocationManager.myLocationManagerCallBack.onResultCallBack(
>  StatusCodes.SUCCESS,StatusCodes.getErrorMsg(StatusCodes.SUCCESS),
> Double.toString(location.getLatitude()),
>  Double.toString(location.getLongitude()),null,null);
>  }
>  } catch (IOException e) {
> e.printStackTrace();
> }
>  }
> Log.d(TAG, "onLocationChanged END");
> }
>  };
>  public static void getCurrentLocation(Context context,
> MyLocationManagerCallBack myLocationManagerCallBack){
>  Log.d(TAG, "getCurrentLocation START");
> if(geoCoder == null) geoCoder = new Geocoder(context);
>  MyLocationManager.myLocationManagerCallBack = myLocationManagerCallBack;
>  MyLocationManager.locationManager = (LocationManager)
> context.getSystemService(Context.LOCATION_SERVICE);
>  
> MyLocationManager.locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
> MINTIME, 0, MyLocationManager.locationListener);
>  Log.d(TAG, "getCurrentLocation END");
> }
>  public static void cancelCurrentLocation(){
> if(MyLocationManager.locationManager != null){
>
> MyLocationManager.locationManager.removeUpdates(MyLocationManager.locationListener);
> }
>  }
> }
>
> /*
> * Callback interface
> */
> public interface MyLocationManagerCallBack {
>  public void onResultCallBack(int status, String statusValue,
> String lat, String lng, String addressLine, String zipCode);
> }
>
> Cheers
> Dalvin
>
> On Mon, Apr 9, 2012 at 9:47 PM, Justin Anderson wrote:
>
>> http://lmgtfy.com/?q=android+current+gps+coordinates
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>>
>> On Mon, Apr 9, 2012 at 10:07 AM, Mini agrawal wrote:
>>
>>> Hi,
>>>
>>> Can anybody provide a  link to get latitude and longitude of current
>>> location?/
>>>
>>> Thanks in advance!!
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> 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

Re: [android-developers] current lat and long

2012-04-09 Thread Dalvinder Singh
/**
 *
 * @author Dalvin
 * This class handles the task of getting user's current location.
 */
public class MyLocationManager{
private static long MINTIME = 3000;
private static Geocoder geoCoder = null;
private static final int MAX_RESULTS = 1;
private static MyLocationManagerCallBack myLocationManagerCallBack;
private static LocationManager locationManager;
private static final String TAG = "MyLocationManager";
public static LocationListener locationListener = new LocationListener() {
 @Override
public void onStatusChanged(String provider, int status, Bundle extras) {
if(status != LocationProvider.AVAILABLE){
MyLocationManager.myLocationManagerCallBack.onResultCallBack(
StatusCodes.LOCATION_PROVIDER_UNAVAILABLE,
StatusCodes.getErrorMsg(StatusCodes.LOCATION_PROVIDER_UNAVAILABLE),
null,null,null,null);
MyLocationManager.locationManager.removeUpdates(MyLocationManager.locationListener);
}
}
 @Override
public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub
 }
 @Override
public void onProviderDisabled(String provider) {
MyLocationManager.myLocationManagerCallBack.onResultCallBack(
StatusCodes.LOCATION_PROVIDER_DISABLED,
StatusCodes.getErrorMsg(StatusCodes.LOCATION_PROVIDER_DISABLED),
null,null,null,null);
MyLocationManager.locationManager.removeUpdates(MyLocationManager.locationListener);
}
 @Override
public void onLocationChanged(Location location) {
Log.d(TAG, "onLocationChanged START");
MyLocationManager.locationManager.removeUpdates(MyLocationManager.locationListener);
if(geoCoder!=null){
try {
List listOfAddresses =
geoCoder.getFromLocation(location.getLatitude(),
location.getLongitude(), MAX_RESULTS);
if(listOfAddresses != null && listOfAddresses.size()>0){
Address address = listOfAddresses.get(0);
 MyLocationManager.myLocationManagerCallBack.onResultCallBack
(StatusCodes.SUCCESS,StatusCodes.getErrorMsg(StatusCodes.SUCCESS),
Double.toString(location.getLatitude()),
Double.toString(location.getLongitude()),
address.getAddressLine(0),
address.getPostalCode());
address = null;
listOfAddresses = null;
}else{
MyLocationManager.myLocationManagerCallBack.onResultCallBack(
StatusCodes.SUCCESS,StatusCodes.getErrorMsg(StatusCodes.SUCCESS),
Double.toString(location.getLatitude()),
Double.toString(location.getLongitude()),null,null);
 }
} catch (IOException e) {
e.printStackTrace();
}
}
Log.d(TAG, "onLocationChanged END");
}
};
 public static void getCurrentLocation(Context context,
MyLocationManagerCallBack myLocationManagerCallBack){
Log.d(TAG, "getCurrentLocation START");
if(geoCoder == null) geoCoder = new Geocoder(context);
MyLocationManager.myLocationManagerCallBack = myLocationManagerCallBack;
 MyLocationManager.locationManager = (LocationManager)
context.getSystemService(Context.LOCATION_SERVICE);
 
MyLocationManager.locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
MINTIME, 0, MyLocationManager.locationListener);
 Log.d(TAG, "getCurrentLocation END");
}
 public static void cancelCurrentLocation(){
if(MyLocationManager.locationManager != null){
MyLocationManager.locationManager.removeUpdates(MyLocationManager.locationListener);
}
}
}

/*
* Callback interface
*/
public interface MyLocationManagerCallBack {
public void onResultCallBack(int status, String statusValue,
String lat, String lng, String addressLine, String zipCode);
}

Cheers
Dalvin

On Mon, Apr 9, 2012 at 9:47 PM, Justin Anderson wrote:

> http://lmgtfy.com/?q=android+current+gps+coordinates
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Mon, Apr 9, 2012 at 10:07 AM, Mini agrawal  wrote:
>
>> Hi,
>>
>> Can anybody provide a  link to get latitude and longitude of current
>> location?/
>>
>> Thanks in advance!!
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> 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

My Code...Re: [android-developers] How to obtain the clicked list item??

2012-04-09 Thread Febi.M.Felix Maliakkal
   SimpleAdapter adapter = new SimpleAdapter(OnlineMembersActivity.this, 
mylist , R.layout.searchresultslistitem, 
new String[] { "username", 
"DOB","custom","Country_str_name","SEX","Profile_Pic", "mm"}, 
new int[] { R.id.tv_searchresults_membername, 
R.id.tv_searchresults_maleage 
,R.id.tv_searchresults_place_city,R.id.tv_searchresults_country,R.id.tv_searchresults_gender,R.id.member_photo,R.id.rightarrow});


adapter.setViewBinder(new MyViewBinder());

setListAdapter(adapter);
lv=getListView();

lv.setOnItemClickListener(new OnItemClickListener() 
{
public void onItemClick(AdapterView parent, 
View view, int position, long id) {  
  
 @SuppressWarnings("unchecked")
HashMap o = 
(HashMap) lv.getItemAtPosition(position);   
   Toast.makeText(OnlineMembersActivity.this, 
"ID '" + o.get("MainActivity.profile_id1") + "' was clicked.", 
Toast.LENGTH_SHORT).show();
   Intent i=new 
Intent(OnlineMembersActivity.this,OnlineMemberProfileActivity.class);
   i.putExtra("profile_id", 
o.get("profile_id"));
 // 
 MainActivity.Profile_id1=o.get("profile_id");
   i.putExtra("username", o.get("username"));
   i.putExtra("index",1);
   startActivity(i); 
}
});

class MyViewBinder implements ViewBinder {
public boolean setViewValue( View view, Object 
data,String textRepresentation) {
if( (view instanceof ImageView) & (data 
instanceof Bitmap) ) {
ImageView iv = (ImageView) view;
iv.setOnClickListener(new OnClickListener() 
{
 @Override
public void onClick(View v) {
// TODO Auto-generated method stub
Log.i("Image", "Tapped");
}
});
Bitmap bm = (Bitmap) data;  
iv.setImageBitmap(bm);  
return true;
}
else if (view instanceof ImageView){
 Log.i("Entered else", "Tapped");
 final ImageView Img=(ImageView) view;
 Img.setOnClickListener(new OnClickListener() {
 @Override
public void onClick(View v) {
// TODO Auto-generated method stub
DemoPopupWindow dw = new DemoPopupWindow(v);
dw.showLikePopDownMenu();
Log.i("Image Button", "Tapped");
View vie=v.findFocus();
Log.i("Febi", "View id: "+vie);
View v2=vie.findFocus();
Log.i("Febi", "View id2: "+v2);
// String item=lv.getItemAtPosition(getSelectedItemPosition()).toString();
// Log.i("Febi", "Item: "+item);
}
});
}
 

return false;
}
  }
class DemoPopupWindow extends BetterPopupWindow 
implements OnClickListener {
 public DemoPopupWindow(View anchor) {
 super(anchor);
 }

 @Override
 protected void onCreate() {
 // inflate layout
 LayoutInflater inflater =
 (LayoutInflater) 
this.anchor.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);

 ViewGroup root = (ViewGroup) 
inflater.inflate(R.layout.popup_grid_layout, null);

 // setup button events
 for(int i = 0, icount = root.getChildCount() ; i < icount 
; i++) {
 View v = root.getChildAt(i);

 if(v instanceof TableRow) {
 TableRow row = (TableRow) v;

 for(int j = 0, jcount = row.getChildCount() ; j < jcount ; 
j++) {
 View item = row.getChildAt(j);
 if(item instanceof Button) {
 Button b = (Button) item;
 b.setOnClickListener(this);
 }
 }
 }
 }

 // set the inflated view as what we want to display
 this.setContentView(root);
 }

 @Override
 public void onClick(View v) {
 switch (v.getId()) {
 case(R.id.one):
 
 
 Intent i=new 
Intent(OnlineMembersActivity.this,MailToActivity.class);
 i.putExtra("profile_id", MainActivity.Profile_id1);
 startActivity(i); 
 Log.i("one s clicked", MainActivity.Profile_id1);
 Toast.makeText(OnlineMembersActivity.this, "ID o

Re: [android-developers] NetworkManager

2012-04-09 Thread Michael Banzon
What exception?
Any other errors?
Have you set up the correct permissions?

On Tue, Apr 10, 2012 at 5:49 AM, Harsha  wrote:
> Hi
>
> manager = new
> NetworkManager(NetworkManager.ConfigMode.EDGE,"HelloWorld ") ;
>
> this method is generating an exception ...
> am on working android 2.2..
> can any1 help how to resolve it??.
>
> --
> 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


Re: [android-developers] How to obtain the clicked list item??

2012-04-09 Thread fred
Please post your code and logcat.

On Mon, 2012-04-09 at 21:00 -0700, Febi.M.Felix Maliakkal wrote:
> I have a listview..i am using simpleadapter to attach items to the
> listview..along with the data within the list,i have an image
> too.while clicking on the image, a popup menu will appear..(three
> buttons within a table row)..while i click on any of these buttons
> inside the popup menu ,,i need the correspoding list item...can any
> one please help 
> 
> -- 
> 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] NetworkManager

2012-04-09 Thread Harsha
Hi

manager = new
NetworkManager(NetworkManager.ConfigMode.EDGE,"HelloWorld ") ;

this method is generating an exception ...
am on working android 2.2..
can any1 help how to resolve it??.

-- 
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] Getting a complete bitmap.

2012-04-09 Thread darrinps
I have a bitmap, a canvas, and an imageview. They are set up something
like this:

mBitmap = Bitmap.createBitmap((int) mWidth, (int) mHeight,
Bitmap.Config.ARGB_);
mCanvas = new Canvas(mBitmap);
mImageView.setImageBitmap(mBitmap);


I flood the mCanvas with a color like this:

mCanvas.drawColor(color);

I then draw on the canvas at various points like this:

mCanvas.drawLine(inputDownX, inputDownY, inputUpX, inputUpY,
thisPaint);

I would like to get the image drawn on the screen and use this to do
that:

BitmapDrawable drawable = (BitmapDrawable) mImageView.getDrawable();
Bitmap bitmap = drawable.getBitmap();

When I do that though, even though there is a drawing on the screen,
all I see in the created bitmap is the flood color...none of the
lines.

Any idea what is going on? I thought the getDrawable().getBitmap()
should get everything but it's almost like the mCanvas.drawLine is
going to something other than where the drawColor is, but it isn't
coded that way.

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] how to make different widget buttons send broadcast to the same widget

2012-04-09 Thread mradlmaier
I have a widget. It has for 4 buttons. Each button should call the
same Widget and update some data in the widget. So,
I have 4 different action registered in the Manifest.xml.
I create 4 different PendingIntents, for each button 1.
However, when I click the buttons, only the button for which I
attached his PendingIntent first, is called. The other 3 buttons fail.
Here is my code:

Intent nextSaintIntent = new Intent(context,
SaintWidgetProvider4x2.class);

nextSaintIntent.setAction("com.radlmaier.saintscalendarwidget.ACTION_NEXT_SAINT");
nextSaintIntent.putExtra("action", "next_saint");
nextSaintIntent.putExtra("id", saintId);
nextSaintIntent.putExtra("widget_id", widgetId);
PendingIntent nextSaintPendingIntent =
PendingIntent.getBroadcast(context, widgetId,
nextSaintIntent, 
PendingIntent.FLAG_UPDATE_CURRENT);

remoteViews.setOnClickPendingIntent(R.id.image_button_next_saint,
nextSaintPendingIntent);

Intent nextSaintOfDayIntent = new Intent(context,
SaintWidgetProvider4x2.class);

nextSaintIntent.setAction("com.radlmaier.saintscalendarwidget.ACTION_NEXT_SAINT_OF_DAY");
nextSaintOfDayIntent.putExtra("action", "next_saint_of_day");
nextSaintOfDayIntent.putExtra("id", saintId);
nextSaintOfDayIntent.putExtra("widget_id", widgetId);
PendingIntent nextSaintOfDayPendingIntent =
PendingIntent.getBroadcast(context, widgetId,
nextSaintOfDayIntent, 
PendingIntent.FLAG_UPDATE_CURRENT);

remoteViews.setOnClickPendingIntent(R.id.image_button_next_saint_of_day,
nextSaintOfDayPendingIntent);

Intent previousSaintIntent = new Intent(context,
SaintWidgetProvider4x2.class);

nextSaintIntent.setAction("com.radlmaier.saintscalendarwidget.ACTION_PREVIOUS_SAINT");
previousSaintIntent.putExtra("action", "previous_saint");
previousSaintIntent.putExtra("id", saintId);
previousSaintIntent.putExtra("widget_id", widgetId);
PendingIntent previousSaintPendingIntent =
PendingIntent.getBroadcast(context, widgetId,
previousSaintIntent, 
PendingIntent.FLAG_UPDATE_CURRENT);

remoteViews.setOnClickPendingIntent(R.id.image_button_previous_saint,
previousSaintPendingIntent);

Intent previousSaintOfDayIntent = new Intent(context,
SaintWidgetProvider4x2.class);

nextSaintIntent.setAction("com.radlmaier.saintscalendarwidget.ACTION_PREIOUS_SAINT_OF_DAY");
previousSaintOfDayIntent.putExtra("action",
"previous_saint_of_day");
previousSaintOfDayIntent.putExtra("id", saintId);
previousSaintOfDayIntent.putExtra("widget_id", widgetId);
PendingIntent previousSaintOfDayPendingIntent =
PendingIntent.getBroadcast(context, widgetId,
previousSaintOfDayIntent, 
PendingIntent.FLAG_UPDATE_CURRENT);

remoteViews.setOnClickPendingIntent(R.id.image_button_previous_saint_of_day_,
previousSaintOfDayPendingIntent);

Here is my Manifest:
























And thats the LogCat:

04-10 02:48:33.476: D/SaintWidgetProvider4x2(11593):
intent.toString(): Intent { flg=0x1000
cmp=com.radlmaier.saintscalendarwidget/.SaintWidgetProvider4x2
bnds=[168,209][240,281] (has extras) }
04-10 02:48:33.476: D/SaintWidgetProvider4x2(11593): is not null: true
04-10 02:48:33.484: D/AndroidRuntime(11593): Shutting down VM
04-10 02:48:33.484: W/dalvikvm(11593): threadid=1: thread exiting with
uncaught exception (group=0x40015578)
04-10 02:48:33.496: E/AndroidRuntime(11593): FATAL EXCEPTION: main
04-10 02:48:33.496: E/AndroidRuntime(11593):
java.lang.RuntimeException: Unable to start receiver
com.radlmaier.saintscalendarwidget.SaintWidgetProvider4x2:
java.lang.NullPointerException
04-10 02:48:33.496: E/AndroidRuntime(11593):at
android.app.ActivityThread.handleReceiver(ActivityThread.java:1809)
04-10 02:48:33.496: E/AndroidRuntime(11593):at
android.app.ActivityThread.access$2400(ActivityThread.java:117)
04-10 02:48:33.496: E/AndroidRuntime(11593):at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:985)
04-10 02:48:33.496: E/AndroidRuntime(11593):at
android.os.Handler.dispatchMessage(Handler.java:99)
04-10 02:48:33.496: E/AndroidRuntime(11593):at
android.os.Looper.loop(Looper.java:130)
04-10 02:48:33.496: E/AndroidRuntime(11593):at
android.app.ActivityThread.main(ActivityThread.java:3687)
04-10 02:48:33.496: E/AndroidRuntime(11593):at
java.lang.reflect.Method.invokeNative(Na

Re: [android-developers] How to Configure WPA2 Enterprise in Wifi

2012-04-09 Thread Nikolay Elenkov
2012/4/10 Kostya Vasilyev :
> Whether or not you need a certficate depends on the particular 802.11x
> scheme actually in use.
>
> In my tests, I haven't had any trouble connecting to a 802.1x TLS secured
> network with a self-signed certificate, but that's a different scheme than
> you're using.
>

At least up until Gingerbread, it would connect even if the certificate is not
trusted (all you get is a warning in logcat). I think it's finally fixed in ICS
though.

-- 
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 use Google Maps in Android Apps

2012-04-09 Thread lbendlin
Unfortunately you will find that they are indeed coming from different 
sources. Google Maps for Android uses vector data, the Google Maps API only 
fetches prerendered raster tiles.

On Sunday, April 8, 2012 10:35:25 AM UTC-4, Nicolas Embleton wrote:

> I'll try to do some http level sniffing to see if the web uses the sames 
> sources as the Android SDK, but I don't think they would have 2 entry 
> points for that. But who knows.
>
>  
>
>

-- 
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 a canvas inside a layout

2012-04-09 Thread dashman
I'd like to put a view (canvas) in a layout and then draw it.

would i use a view sub-class -.

how would i do that 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 Configure WPA2 Enterprise in Wifi

2012-04-09 Thread Kostya Vasilyev
Oh, forgot to mention.

My test setup was DD-WRT on a Linksys 54GL, with freeradius2 on Linux
serving as the authentication server.

I suppose that's as far from Active Directory as you can get :)

-- K

10 апреля 2012 г. 0:37 пользователь Kostya Vasilyev написал:

> Whether or not you need a certficate depends on the particular 802.11x
> scheme actually in use.
>
> In my tests, I haven't had any trouble connecting to a 802.1x TLS secured
> network with a self-signed certificate, but that's a different scheme than
> you're using.
>
> There was no need for any extra steps - once the network's properties were
> set up on the Android side and the certificate storage unlocked, the device
> connected and was able to get on the Internet.
>
> Not sure about the certificate requirements for PEAP, I think it's not
> required, but don't take my word for it :)
>
> So, I would try to check any logs on the router and/or the authentication
> server for clues. Searching b.android.com for PEAP may also be useful.
>
> -- K
>
> 9 апреля 2012 г. 21:11 пользователь Raj Chinna 
> написал:
>
> Kostya,
>>
>> Thanks a lot for the quick reply.
>>
>> I understood that it can't be done without using reflection, but I use
>> reflection in my program.
>>
>> Currently am just trying to define the access point and manually trying
>> to connect. Unfortunately now am able to connect to the secured network and
>> getting DHCP assigned IP address. But, the problem is that am not able ping
>> my org proxy or any other PC.
>>
>> Do I need to install any specific certificated from my network admin on
>> my device to access the network completely. Or do I need to do any
>> more authentication after it gets connected to the network
>>
>> Regards,
>> Rajendra
>>
>>
>> On Monday, April 9, 2012 7:06:05 PM UTC+5:30, Kostya Vasilyev wrote:
>>
>>> For debugging, you might want to set up a test network with freeradius,
>>> and watch the logs.
>>>
>>> Also, configuring and connecting to 802.1x secured networks, is, AFAIK,
>>> not something third party applications have access to.
>>>
>>> There are undocumented functions, somewhat varying with platform
>>> versions, but they are 1) undocumented 2) inaccessible without reflection.
>>>
>>> Besides configuring the WiFi side of things, you also need to make sure
>>> the device's certificate store is unlocked before you try to connect (at
>>> least prior to Android 4.0).
>>>
>>> In short, if you really really really needed this, it could be
>>> implemented but there are limitations and the result would be somewhat
>>> fragile.
>>>
>>> -- K
>>>
>>> 9 апреля 2012 г. 16:43 пользователь Raj Chinna написал:
>>>
>>> Hi,

 I am programmatically trying to configure our organization WiFi access
 point which requires the following settings,

 *Sec.Type  : *WPA2-Enterprise
 *Enc.Type  : *AES
 *Net.Auth.Method : *PEAP

 Also it requires the org Active Directory user name and password for
 authentication.

 *In iPhone I could easily able to configure this with the
 WPA2-Enterprise security type with AD user name and password. *

 But, in Android I could configured the same access point with the
 following details.

 *Security : *802.1x EAP.
 *EAP Method :* PEAP
 *Phase 2 authentication : *None.
 *CA Certificate : *Unspecified.
 *user certificate :* Unspecified.
 *Identity : *ad user name.
 *password :* ad password.

 Once I configure the about network it authenticates and connects to the
 network with valid ip.

 But, the trouble comes here, even after connecting to the network am
 not able to browse anything also not even able to ping laptops which all
 are connected in the same WiFi network.

 Any pointers or suggestions needed.

 Regards,
 Rajendra

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

-- 
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...@go

Re: [android-developers] How to Configure WPA2 Enterprise in Wifi

2012-04-09 Thread Kostya Vasilyev
Whether or not you need a certficate depends on the particular 802.11x
scheme actually in use.

In my tests, I haven't had any trouble connecting to a 802.1x TLS secured
network with a self-signed certificate, but that's a different scheme than
you're using.

There was no need for any extra steps - once the network's properties were
set up on the Android side and the certificate storage unlocked, the device
connected and was able to get on the Internet.

Not sure about the certificate requirements for PEAP, I think it's not
required, but don't take my word for it :)

So, I would try to check any logs on the router and/or the authentication
server for clues. Searching b.android.com for PEAP may also be useful.

-- K

9 апреля 2012 г. 21:11 пользователь Raj Chinna
написал:

> Kostya,
>
> Thanks a lot for the quick reply.
>
> I understood that it can't be done without using reflection, but I use
> reflection in my program.
>
> Currently am just trying to define the access point and manually trying to
> connect. Unfortunately now am able to connect to the secured network and
> getting DHCP assigned IP address. But, the problem is that am not able ping
> my org proxy or any other PC.
>
> Do I need to install any specific certificated from my network admin on my
> device to access the network completely. Or do I need to do any
> more authentication after it gets connected to the network
>
> Regards,
> Rajendra
>
>
> On Monday, April 9, 2012 7:06:05 PM UTC+5:30, Kostya Vasilyev wrote:
>
>> For debugging, you might want to set up a test network with freeradius,
>> and watch the logs.
>>
>> Also, configuring and connecting to 802.1x secured networks, is, AFAIK,
>> not something third party applications have access to.
>>
>> There are undocumented functions, somewhat varying with platform
>> versions, but they are 1) undocumented 2) inaccessible without reflection.
>>
>> Besides configuring the WiFi side of things, you also need to make sure
>> the device's certificate store is unlocked before you try to connect (at
>> least prior to Android 4.0).
>>
>> In short, if you really really really needed this, it could be
>> implemented but there are limitations and the result would be somewhat
>> fragile.
>>
>> -- K
>>
>> 9 апреля 2012 г. 16:43 пользователь Raj Chinna написал:
>>
>> Hi,
>>>
>>> I am programmatically trying to configure our organization WiFi access
>>> point which requires the following settings,
>>>
>>> *Sec.Type  : *WPA2-Enterprise
>>> *Enc.Type  : *AES
>>> *Net.Auth.Method : *PEAP
>>>
>>> Also it requires the org Active Directory user name and password for
>>> authentication.
>>>
>>> *In iPhone I could easily able to configure this with the
>>> WPA2-Enterprise security type with AD user name and password. *
>>>
>>> But, in Android I could configured the same access point with the
>>> following details.
>>>
>>> *Security : *802.1x EAP.
>>> *EAP Method :* PEAP
>>> *Phase 2 authentication : *None.
>>> *CA Certificate : *Unspecified.
>>> *user certificate :* Unspecified.
>>> *Identity : *ad user name.
>>> *password :* ad password.
>>>
>>> Once I configure the about network it authenticates and connects to the
>>> network with valid ip.
>>>
>>> But, the trouble comes here, even after connecting to the network am not
>>> able to browse anything also not even able to ping laptops which all
>>> are connected in the same WiFi network.
>>>
>>> Any pointers or suggestions needed.
>>>
>>> Regards,
>>> Rajendra
>>>
>>> --
>>> 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
>

-- 
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] Layout: N Gallerys

2012-04-09 Thread Glen Cook
Hi Guys,

I've been presented with a design that looks visually like an
arbitrary number of gallery views.

[Gallery 1]
[Gallery 2]
...
[Gallery N]

It looks similar to the Pulse newsreader application.Can anyone
suggest an approach?

I was thinking along the lines:
  1. A standard ListView with a standard GalleryView in each row
  2. A standard ListView with a custom Horizontal ListView in each
row
[http://www.dev-smart.com/archives/34]
  3. Building a custom view from scratch

Are these first 2 approaches feasible memory wise?

Thanks,
Glen

-- 
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] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread Justin Anderson
>
> Many thanks, this worked a treat.
>
No problem, glad you got it working

Slightly annoyed with myself that I didn't come up with this obvious
> solution...
>
Happens to the best of us!

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 9, 2012 at 1:11 PM, MarkG123  wrote:

> Many thanks, this worked a treat.   Slightly annoyed with myself that I
> didn't come up with this obvious solution...
>
>
> On Monday, 9 April 2012 16:52:15 UTC+1, MagouyaWare wrote:
>>
>> Or, depending on how things are set up, you could put your gradient on
>> the background of the layout for the item, rather than the individual items
>> in the layout...
>
>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>>  --
> 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] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread MarkG123
Many thanks, this worked a treat.   Slightly annoyed with myself that I 
didn't come up with this obvious solution...


On Monday, 9 April 2012 16:52:15 UTC+1, MagouyaWare wrote:
>
> Or, depending on how things are set up, you could put your gradient on the 
> background of the layout for the item, rather than the individual items in 
> the layout... 


> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>

-- 
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] sensor data logging to SD card 6x to 10x slower after Nexus S gets update to ICS

2012-04-09 Thread Greg Sepesi
Last year, I slightly modified the SDK's samples/ApiDemos/OS/Sensors.java 
code to log the acquired sensor data to the Nexus S internal SD card in CSV 
format. Last week, after updating the Nexus S from OS 2.3.3 to 4.0.4, the 
number of logged samples per second plummeted from about 50 samples per 
second (accelerometer, magnetometer, and gyroscope) to between 5 to 8 
samples per second. In addition, the application's real time display of 
data is no longer smooth and continuous but now has lags of several 
seconds. Also, the TextToSpeech voice saying "starting" that I added to the 
beginning of my modified sample application now has about a dozen audible 
gaps in the output of that one word (e.g., 
"s...s...st...t...ah...ar...rr...rrt..tti...ining"). Given that the 
unmodified ApiDemos/OS/Sensors.java runs smoothly on OS 4.0.4, I suspect 
the decrease in sampling speed is related to some change in the OS's 
efficiency of writing to the SD card.

Has anyone else noticed problems related to SD card write speed after 
updating to OS 4.0.4 (Ice Cream Sandwich)? If I don't hear from anyone, 
I'll try to isolate the problem with a simpler application and file a bug 
report.

-- 
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: button click event listener

2012-04-09 Thread Vivek Punjabi
Thanks for d reply.
But now my problem is solved.
Actually i wanted the player to click button and then the game should
proceed until it waits for the same player to click button again. But
now got the structure. My fault.

On Apr 5, 7:42 pm, Justin Anderson  wrote:
> > oncreate()
> > {
> > function1( );
> > //wait for onclick event
> > function2( );  //After some calculation, calls function1( )
> > }
>
> That won't work... The UI will not show up until after onCreate() and
> onResume() are called.  Why are you explicitly waiting for a click event?
> What are you doing to do that, an infinite loop or something?
>
> Can u suggest me the structure of my game as I am a newbie in Android> 
> programming?
>
> Seems like you need to read up on the Android Activity 
> lifecycle:http://developer.android.com/guide/topics/fundamentals/activities.htm...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
> On Thu, Apr 5, 2012 at 2:58 AM, Vivek Punjabi wrote:
>
>
>
>
>
>
>
> > oncreate()
> > {
> > function1( );
> > //wait for onclick event
> > function2( );  //After some calculation, calls function1( )
> > }

-- 
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] GridLayout Text Clipping using Support Library

2012-04-09 Thread emaildevbr . stress


Connected by Motorola

Romain Guy  wrote:

>You set the width of GridLayout to "wrap_content" so it will extend as
>far as its content can go.
>
>On Mon, Apr 9, 2012 at 10:24 AM, Scott Olcott  wrote:
>> I am using the GridLayout that is in r7 of the support library.  I am having
>> an issue with text being clipped at the edge of the screen instead of being
>> wrapped.  Here is a layout that reproduces the issue.
>>
>> > xmlns:android="http://schemas.android.com/apk/res/android";
>>  android:layout_width="wrap_content"
>>  android:layout_height="wrap_content" >
>>
>>     >       android:minWidth="100dp"
>>       android:text="test123" />
>>
>>     >         android:text="test test test test tes test tes test test test test
>> test test test" />
>> 
>>
>> When using the ICS version of GridLayout I can just add
>> android:layout_width="0dp" and android:layout_gravity="fill_horizontal" to
>> the TextView and it wraps the text instead clipping.  However when I try
>> that using the support library GridView the whole TextView disappears.  I
>> attached a screenshot from the Graphic Layout view in Eclipse that
>> demonstrates what is happening.  It looks like the second TextView is not
>> inheriting it's size from it's container but is the same width as the
>> device.
>>
>> Is there a different way to get this to work correctly?
>>
>> --
>> 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
>
>
>
>-- 
>Romain Guy
>Android framework engineer
>romain...@android.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

-- 
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] GridLayout Text Clipping using Support Library

2012-04-09 Thread Scott Olcott
Even when setting the width of the GridLayout to fill_parent or 
match_parent I get the same result.

>

-- 
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] GridLayout Text Clipping using Support Library

2012-04-09 Thread Romain Guy
You set the width of GridLayout to "wrap_content" so it will extend as
far as its content can go.

On Mon, Apr 9, 2012 at 10:24 AM, Scott Olcott  wrote:
> I am using the GridLayout that is in r7 of the support library.  I am having
> an issue with text being clipped at the edge of the screen instead of being
> wrapped.  Here is a layout that reproduces the issue.
>
>  xmlns:android="http://schemas.android.com/apk/res/android";
>  android:layout_width="wrap_content"
>  android:layout_height="wrap_content" >
>
>            android:minWidth="100dp"
>       android:text="test123" />
>
>              android:text="test test test test tes test tes test test test test
> test test test" />
> 
>
> When using the ICS version of GridLayout I can just add
> android:layout_width="0dp" and android:layout_gravity="fill_horizontal" to
> the TextView and it wraps the text instead clipping.  However when I try
> that using the support library GridView the whole TextView disappears.  I
> attached a screenshot from the Graphic Layout view in Eclipse that
> demonstrates what is happening.  It looks like the second TextView is not
> inheriting it's size from it's container but is the same width as the
> device.
>
> Is there a different way to get this to work correctly?
>
> --
> 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



-- 
Romain Guy
Android framework engineer
romain...@android.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] GridLayout Text Clipping using Support Library

2012-04-09 Thread Scott Olcott
I am using the GridLayout that is in r7 of the support library.  I am 
having an issue with text being clipped at the edge of the screen instead 
of being wrapped.  Here is a layout that reproduces the issue.

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






When using the ICS version of GridLayout I can just add 
android:layout_width="0dp" and android:layout_gravity="fill_horizontal" to 
the TextView and it wraps the text instead clipping.  However when I try 
that using the support library GridView the whole TextView disappears.  I 
attached a screenshot from the Graphic Layout view in Eclipse that 
demonstrates what is happening.  It looks like the second TextView is not 
inheriting it's size from it's container but is the same width as the 
device.

Is there a different way to get this to work correctly? 

-- 
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 Configure WPA2 Enterprise in Wifi

2012-04-09 Thread Raj Chinna
Kostya,

Thanks a lot for the quick reply.

I understood that it can't be done without using reflection, but I use 
reflection in my program. 

Currently am just trying to define the access point and manually trying to 
connect. Unfortunately now am able to connect to the secured network and 
getting DHCP assigned IP address. But, the problem is that am not able ping 
my org proxy or any other PC. 

Do I need to install any specific certificated from my network admin on my 
device to access the network completely. Or do I need to do any 
more authentication after it gets connected to the network

Regards,
Rajendra 

On Monday, April 9, 2012 7:06:05 PM UTC+5:30, Kostya Vasilyev wrote:
>
> For debugging, you might want to set up a test network with freeradius, 
> and watch the logs.
>
> Also, configuring and connecting to 802.1x secured networks, is, AFAIK, 
> not something third party applications have access to.
>
> There are undocumented functions, somewhat varying with platform versions, 
> but they are 1) undocumented 2) inaccessible without reflection.
>
> Besides configuring the WiFi side of things, you also need to make sure 
> the device's certificate store is unlocked before you try to connect (at 
> least prior to Android 4.0).
>
> In short, if you really really really needed this, it could be implemented 
> but there are limitations and the result would be somewhat fragile.
>
> -- K
>  
> 9 апреля 2012 г. 16:43 пользователь Raj Chinna написал:
>
>> Hi,
>>
>> I am programmatically trying to configure our organization WiFi access 
>> point which requires the following settings, 
>>
>> *Sec.Type  : *WPA2-Enterprise 
>> *Enc.Type  : *AES
>> *Net.Auth.Method : *PEAP
>>
>> Also it requires the org Active Directory user name and password for 
>> authentication. 
>>
>> *In iPhone I could easily able to configure this with the 
>> WPA2-Enterprise security type with AD user name and password. *
>>
>> But, in Android I could configured the same access point with the 
>> following details. 
>>
>> *Security : *802.1x EAP.
>> *EAP Method :* PEAP
>> *Phase 2 authentication : *None.
>> *CA Certificate : *Unspecified.
>> *user certificate :* Unspecified.
>> *Identity : *ad user name.
>> *password :* ad password.
>>
>> Once I configure the about network it authenticates and connects to the 
>> network with valid ip. 
>>
>> But, the trouble comes here, even after connecting to the network am not 
>> able to browse anything also not even able to ping laptops which all 
>> are connected in the same WiFi network.
>>
>> Any pointers or suggestions needed.
>>
>> Regards,
>> Rajendra
>>
>> -- 
>> 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] device lockup

2012-04-09 Thread Justin Anderson
>
> I have a 100 dollar Android
>
Get a better device

and I try to play an MP4 on it in a loop for a few hours.  However, it
> locks up after maybe 2 hours.  I have to unplug it and drain the battery to
> reset it.
>
What exactly does this question have to do with this list?  Seriously, you
ask way too many questions that are not fit for this list.  This is a place
to ask questions about developing apps using the Android SDK.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Apr 6, 2012 at 5:02 PM, bob  wrote:

> I have a 100 dollar Android

-- 
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: rotate portion of a bitmap

2012-04-09 Thread Justin Anderson
>
> I started that book but couldn't find time to continue :).
>
And yet you have time to develop the app and ask questions on here?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, Apr 7, 2012 at 8:45 AM, elix  wrote:

> I started that book but couldn't find time to continue :).

-- 
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] LVL in debug mode

2012-04-09 Thread Justin Anderson
>
> What should I check?
>
Your code...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, Apr 7, 2012 at 10:13 AM, Giuseppe wrote:

> Strange very strange !!!
>
> Three application on the market, all three use LVL, but in debug mode two
> get the right answer from license server and one get alway TIMEOUT.
> What should I check?
>
> --
> 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] ARM11?

2012-04-09 Thread Justin Anderson
>
> Am I the only one confused by you posting things like this that are
> completely irrelevant to this list and can be answered on your own with a
> minimum of effort?
>
I'm not confused, really... just annoyed by the massive onslaught of
questions unrelated to this list. :-)

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, Apr 7, 2012 at 1:05 PM, TreKing  wrote:

> Am I the only one confused by you posting things like this that are
> completely irrelevant to this list and can be answered on your own with a
> minimum of effort?

-- 
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] Get a code

2012-04-09 Thread Justin Anderson
>
> i am moving that image but it is not working.
>
Can you be a little more precise maybe?  What do you mean by "it is not
working"?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Apr 8, 2012 at 5:09 AM, Siddharth Chopra wrote:

> i am moving that image but it is not working.

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

2012-04-09 Thread Justin Anderson
>
> I am not facing any thing just I want steps to do it
> becauase I am beginer in android and java
>
http://catb.org/esr/faqs/smart-questions.html


> I read alot but there is no example help me to do it
>
There are plenty of examples out there.  Take it in steps, and actually do
some critical thinking yourself.  First, look for a tutorial on how to
create a list view.  There are plenty of them out there.  Then maybe, look
at a tutorial on how to use a timer or some other mechanism, like an alarm,
so you can make the changes to your listview when you want.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


2012/4/8 sahar aseeri 

> yes I know, I will do this code by my self but I what some one tell me
> what is the steps or if the steps that I wrote was correct or not
> because I searched in google and  I didn't fine example like I want.
>
>
>
> بتاريخ 08 أبريل, 2012 04:52 م، جاء من Raghav Sood <
> raghavs...@androidactivist.org>:
>
>> You outlined the steps you wanted in the first email. You have the steps
>> then, just code it. No one is going to hand out code to you, unless you pay
>> them.
>>
>> Google can help you find hundreds on tutorials on this subject.
>>
>> Thanks
>>
>>
>> 2012/4/8 sahar aseeri 
>>
>>> I am not facing any thing just I want steps to do it
>>> becauase I am beginer in android and java
>>> I read alot but there is no example help me to do it
>>>
>>> thanks
>>>
>>> بتاريخ 08 أبريل, 2012 01:11 م، جاء من Raghav Sood <
>>> raghavs...@androidactivist.org>:
>>>
 What have you done so far? What specific problem are you facing?

 Thanks

 On Sun, Apr 8, 2012 at 3:32 PM, sahar aseeri wrote:

> Hello,
> I have qestion about arrayadapter i want to creat a list veiw and i
> want this list update it every minute by add new item and delet one item
> By using arrayadapter and send massege to the handler
> How can I do this part of code?
>
> Best Regards!
> Sahar
>
> --
> 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




 --
 Raghav Sood
 http://www.androidactivist.org/ - Author
 http://www.appaholics.in/ - Founder

  --
 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
>>>
>>
>>
>>
>> --
>> Raghav Sood
>> http://www.androidactivist.org/ - Author
>> http://www.appaholics.in/ - Founder
>>
>>  --
>> 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
>

-- 
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: My Question

2012-04-09 Thread Justin Anderson
>
> I have list veiw contain 20 items and I want just 10 of them appear in GUI
>
Why?  With a huge number of devices with different screen sizes and
densities, putting a restriction like this on your listview will make it
look horrific on a lot of devices.  For example, on really large screens
(like a tablet) each item will look really big and out of place.  On really
small LDPI screens each item will look too tiny and squished.

It would be much better to just let the ListView determine how many items
it can display in the GUI.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Apr 8, 2012 at 10:58 AM, sahar aseeri  wrote:

>
> Hello,
>> I have list veiw contain 20 items and I want just 10 of them appear in
>> GUI and I want to update this list evrey minute. what is the best way I use
>> to implement this ?
>> Best Regards,
>>
>> Sahar
>>
>  --
> 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] Relative layout : how to horizontally center align 2 children.

2012-04-09 Thread Justin Anderson
>
> I think centerHorizontal centers it w.r.t the parent.
>
How does that matter?  If both items are centered horizontally with respect
to the parent and they have the same parent, they would, by definition, be
centered horizontally with respect to themselves.

But my UI elements parent is the layout itself.
>
So?

 And I did try "centerHorizontal" on the 2 UI child elements that I want to
> center align, and it didn't work.

What does your XML look like?

 Maybe because those controls already have a horizontal-align flag set???

Did you set it?  If so, then quite possibly.  If not, then probably not...
What does your XML look like?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 9, 2012 at 2:29 AM, Put_tiMe  wrote:

> I think centerHorizontal centers it w.r.t the parent.

-- 
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] current lat and long

2012-04-09 Thread Justin Anderson
http://lmgtfy.com/?q=android+current+gps+coordinates

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 9, 2012 at 10:07 AM, Mini agrawal  wrote:

> Hi,
>
> Can anybody provide a  link to get latitude and longitude of current
> location?/
>
> Thanks in advance!!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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] current lat and long

2012-04-09 Thread Mini agrawal
Hi,

Can anybody provide a  link to get latitude and longitude of current
location?/

Thanks in advance!!

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

[android-developers] TabWidget with a gap in the middle

2012-04-09 Thread nadam
Due to a special design I need a TabWidget with a four tabs and a gap in 
the middle, i.e. two tabs to the left, then a 31dp space and then two tabs 
to the right.

I've thought about adding a dummy tab, but that doesn't work with ViewPager 
for swiping from the second to the third tab. I've also considered using 
one of the divider children, but those were removed in recent versions.

Seems like I have to sub-class TabWidget and insert an extra view somehow. 
Is this worth a try or is there any better solution?

-- 
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] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread Justin Anderson
Or, depending on how things are set up, you could put your gradient on the
background of the layout for the item, rather than the individual items in
the layout...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 9, 2012 at 9:50 AM, Justin Anderson wrote:

> Use the following attributes on ImageView:
>
> android:background
> android:src
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Mon, Apr 9, 2012 at 8:47 AM, MarkG123  wrote:
>
>> Anyone know it's it's possible to have a XML gradient *AND* an image in
>> a single ImageView? I have an expandable listview, and I want to overlay an
>> expand and collapse arrow over to match the gradient TextView next to it.
>>
>> I have been playing with layer-list and not had much luck.  Is this even
>> possible?  Is there a better way to approach this problem?
>>
>> 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] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread Justin Anderson
Use the following attributes on ImageView:

android:background
android:src

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 9, 2012 at 8:47 AM, MarkG123  wrote:

> Anyone know it's it's possible to have a XML gradient *AND* an image in a
> single ImageView? I have an expandable listview, and I want to overlay an
> expand and collapse arrow over to match the gradient TextView next to it.
>
> I have been playing with layer-list and not had much luck.  Is this even
> possible?  Is there a better way to approach this problem?
>
> 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] retrieve minSdkVersion from manifest file programmatically

2012-04-09 Thread Kamal Kambe
Hi Mark,

Thanks a lot. I interpreted it in a wrong way. 

Kamal

On Friday, April 6, 2012 7:18:16 PM UTC+5:30, Mark Murphy (a Commons Guy) 
wrote:
>
> On Fri, Apr 6, 2012 at 9:42 AM, Kamal Kambe  wrote:
> > I am actually trying to add C2DM ability to the application which is
> > possible only if the application's minSdkVersion is >= 8.
>
> No. It is only possible if the *device* is *running* API Level 8 or
> higher. minSdkVersion has nothing to do with it. Use
> android.os.Build.VERSION.SDK_INT to determine what API level the
> device is running.
>
> -- 
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 4.1 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] Sending GPS coordinates to a server

2012-04-09 Thread barrett
I'd upvote this if it were on SO, fyi. 

On Monday, March 26, 2012 7:48:04 AM UTC-6, TreKing wrote:
>
> On Mon, Mar 26, 2012 at 1:04 AM, Bhuvan Chandra  > wrote:
>
>> I have seen those links, Iam not sure how they can be much of a help to me
>
>
> No?
>  
>
>> , I just want to know How to develop an application(i.e. How to program 
>> in android eclipse)
>
>
> That is covered in link #1.
>  
>
>> which could recieve the Location coordiantes(geo locations- Latitude and 
>> longitude)
>
>
> That is also covered in link #1. 
>
> and send them directly to a server.
>
>
> That has nothing to do with Android Specificially, so you would use link 
> #2 to help find more info on that topic.
>  
>
>> Iam very much new to this android programming
>
>
> Again, covered by #1 and #2. And since your question was so broad, I gave 
> you # 3 so you could form a better question.
>
>
> -
> 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] Can WIFI Direct and 3G Data Session Concurrently Work?

2012-04-09 Thread Jim Graham
On Mon, Apr 09, 2012 at 09:20:01AM -0400, Kristopher Micinski wrote:
> Jim's discussion is (as usual) descriptive and informative,

Thanks!  :-)

> (@Jim) the fact that an app developer thought MACs and IPs were the
> same thing is an unfortunate consequence of the fact that so many app
> developers are people who haven't programmed much before: this seems
> like something that would be mentioned early on in any socket
> programming guide or network class.

As a (former, thanks to cancer) network engineer, I'd rather thought it
was the lack of a background in netork engineering.  :-)   But then, in
one senior-level data communications class, we did implement our own
HDLC protocol in C and had to prove its functionality in the lab, so

That was also where I learned about the (sometimes almost violent)
conflict between those who favor the TCP/IP stack and those who
favor the OSI 7-Layer model.  :-)   I remember one Interop conference
where one speaker started off with a slide that had "OSI" in big letters,
with a circle around it and a slash drawn through it.  :-)

Later,
   --jim

PS:  Brew day was CANXd thanks to a dead burner.  No 200,000 BTU fire,
 no brew day.  Damn...now I have to keep the yeasties alive and
 healthy until I get a new burner.  (Fridge, then do a starter batch
 before brewing---in the fridge for up to a maximum of a week).

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| "> There it was, right in the title bar:
spooky1...@gmail.com|  > Microsoft Operations POS."
< Running FreeBSD 7.0 > | 
ICBM / Hurricane:   | "Never before has a TLA been so appropriately
   30.44406N 86.59909W  |  mis-parsed." (alt.sysadmin.recovery)

Android Apps Listing at http://www.jstrack.org/barcodes.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] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread MarkG123
Anyone know it's it's possible to have a XML gradient *AND* an image in a 
single ImageView? I have an expandable listview, and I want to overlay an 
expand and collapse arrow over to match the gradient TextView next to it.

I have been playing with layer-list and not had much luck.  Is this even 
possible?  Is there a better way to approach this problem?

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] Can WIFI Direct and 3G Data Session Concurrently Work?

2012-04-09 Thread Kristopher Micinski
2012/4/9 Kostya Vasilyev :
>
> 9 апреля 2012 г. 17:20 пользователь Kristopher Micinski
>  написал:
>
>> Jim's discussion is (as usual) descriptive and informative,
>>
>> But arguing by analogy, why would it be hard to believe this is
>> possible?  Your linux box can have multiple connections..
>
>
> Android is not exactly a "regular" Linux box, and its extra code layers
> sometimes change things a bit.
>

That's a fair point, and why it wasn't the greatest analogy..

> Using the mobile data network interface at the same time as the old-style
> (not Direct) WiFi interface is, AFAIK, not possible.
>
> Good thing it's now possible with WiFi Direct (and thank you, Irfan, for
> clarifying).

But that was the one I was talking about..

Anyway, I suppose that Kostya would know this fairly well, given your app :-)

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] How to Configure WPA2 Enterprise in Wifi

2012-04-09 Thread Kostya Vasilyev
For debugging, you might want to set up a test network with freeradius, and
watch the logs.

Also, configuring and connecting to 802.1x secured networks, is, AFAIK, not
something third party applications have access to.

There are undocumented functions, somewhat varying with platform versions,
but they are 1) undocumented 2) inaccessible without reflection.

Besides configuring the WiFi side of things, you also need to make sure the
device's certificate store is unlocked before you try to connect (at least
prior to Android 4.0).

In short, if you really really really needed this, it could be implemented
but there are limitations and the result would be somewhat fragile.

-- K

9 апреля 2012 г. 16:43 пользователь Raj Chinna
написал:

> Hi,
>
> I am programmatically trying to configure our organization WiFi access
> point which requires the following settings,
>
> *Sec.Type  : *WPA2-Enterprise
> *Enc.Type  : *AES
> *Net.Auth.Method : *PEAP
>
> Also it requires the org Active Directory user name and password for
> authentication.
>
> *In iPhone I could easily able to configure this with the WPA2-Enterprise
> security type with AD user name and password. *
>
> But, in Android I could configured the same access point with the
> following details.
>
> *Security : *802.1x EAP.
> *EAP Method :* PEAP
> *Phase 2 authentication : *None.
> *CA Certificate : *Unspecified.
> *user certificate :* Unspecified.
> *Identity : *ad user name.
> *password :* ad password.
>
> Once I configure the about network it authenticates and connects to the
> network with valid ip.
>
> But, the trouble comes here, even after connecting to the network am not
> able to browse anything also not even able to ping laptops which all
> are connected in the same WiFi network.
>
> Any pointers or suggestions needed.
>
> Regards,
> Rajendra
>
> --
> 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] Can WIFI Direct and 3G Data Session Concurrently Work?

2012-04-09 Thread Kostya Vasilyev
9 апреля 2012 г. 17:20 пользователь Kristopher Micinski <
krismicin...@gmail.com> написал:

> Jim's discussion is (as usual) descriptive and informative,
>
> But arguing by analogy, why would it be hard to believe this is
> possible?  Your linux box can have multiple connections..
>

Android is not exactly a "regular" Linux box, and its extra code layers
sometimes change things a bit.

Using the mobile data network interface at the same time as the old-style
(not Direct) WiFi interface is, AFAIK, not possible.

Good thing it's now possible with WiFi Direct (and thank you, Irfan, for
clarifying).

-- K


>
> (@Jim) the fact that an app developer thought MACs and IPs were the
> same thing is an unfortunate consequence of the fact that so many app
> developers are people who haven't programmed much before: this seems
> like something that would be mentioned early on in any socket
> programming guide or network class.
>
> 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
>

-- 
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] Can WIFI Direct and 3G Data Session Concurrently Work?

2012-04-09 Thread Kristopher Micinski
Jim's discussion is (as usual) descriptive and informative,

But arguing by analogy, why would it be hard to believe this is
possible?  Your linux box can have multiple connections..

(@Jim) the fact that an app developer thought MACs and IPs were the
same thing is an unfortunate consequence of the fact that so many app
developers are people who haven't programmed much before: this seems
like something that would be mentioned early on in any socket
programming guide or network class.

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] Can WIFI Direct and 3G Data Session Concurrently Work?

2012-04-09 Thread Jim Graham
On Sun, Apr 08, 2012 at 08:40:49PM +0530, Raghav Sood wrote:
> AFAIK, Android does not allows 2 internet connections, 2G, 3G or WiFi to be
> active at the same time. In my experience, connecting to the WiFi disables
> the mobile data.

Just to clarify.  While it may be true that the Android OS might
restrict itself to only using one network device at a time, it is not
limited to only one CONNECTION at a time (see my other post in this
thread).

But it does make sense to prefer WiFi over 3G or 4G ... after all, a WiFi
connection is generally free, whereas data over 3/4G isn't (unless you
have an unlimited data plan with your carrier).

The only way I can test this here is to take my cable modem offline
and connect to both one of my internal web servers and to an external
site ... and I'm not taking my cable modem offline to do that.  Perhaps
someone else might want to do that test, though.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

 No, I'm not going to explain it.  If you can't figure it
 out, you didn't want to know anyway...  --Larry Wall

Android Apps Listing at http://www.jstrack.org/barcodes.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] How to Configure WPA2 Enterprise in Wifi

2012-04-09 Thread Raj Chinna
Hi,

I am programmatically trying to configure our organization WiFi access 
point which requires the following settings, 

*Sec.Type  : *WPA2-Enterprise 
*Enc.Type  : *AES
*Net.Auth.Method : *PEAP

Also it requires the org Active Directory user name and password for 
authentication. 

*In iPhone I could easily able to configure this with the WPA2-Enterprise 
security type with AD user name and password. *

But, in Android I could configured the same access point with the following 
details. 

*Security : *802.1x EAP.
*EAP Method :* PEAP
*Phase 2 authentication : *None.
*CA Certificate : *Unspecified.
*user certificate :* Unspecified.
*Identity : *ad user name.
*password :* ad password.

Once I configure the about network it authenticates and connects to the 
network with valid ip. 

But, the trouble comes here, even after connecting to the network am not 
able to browse anything also not even able to ping laptops which all 
are connected in the same WiFi network.

Any pointers or suggestions needed.

Regards,
Rajendra

-- 
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: Android 3.2 emulator display freezes as soon as I click apps or + in the home screen

2012-04-09 Thread Flying Coder
Did you ever find a solution to this?  I'm having exactly the same problem 
with the latest tools (r17).

Thanks,
Steve


On Tuesday, October 11, 2011 1:37:21 PM UTC-4, Michael Diener wrote:
>
> When running the 3.2 emulator and pressing "apps" or "+" in the home 
> screen, the screen starts to move a bit and then freezes. This happens 
> on a x64 Linux as well as a x64 Windows 7. Sometimes it gets so far 
> that apps are displayed, but only the top half of the screen is used 
> For 3.1 the same thing happens and for 3.0 it works sometimes. 
>
> Anybody else experiencing this or knows a way around this? 
>
> /Michael

-- 
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] Can WIFI Direct and 3G Data Session Concurrently Work?

2012-04-09 Thread Jim Graham
On Sun, Apr 08, 2012 at 11:36:44AM -0700, Irfan Sheriff wrote:
> On Sun, Apr 8, 2012 at 5:08 AM, mxd  wrote:
> 
> >   Can 3G Data Session and WIFI Direct concurrently work?? if so, then two
> > IPaddress Exist, will it cause confusion? one example:
> 
> Yes, Wi-Fi direct uses a local IP that will not conflict with 3g
> connectivity.

Even if it didn't use two different IP addresses (along with two
different MAC addresses), it would still work.

Consider an average tablet that doesn't have 3G.  It's got ONE physical
(MAC) address and ONE IP address.  Does that prevent you from having two
connecctions?  Of course not.

As a side note, do not confuse the MAC address and IP address.  The MAC
(Media Access Control) address is unique to each physical network device,
i.e., the hardware address.  It does not change from the time that
network adapter is made until it's retired.  The IP address works at a
higher level, and it can be changed (obviously).  I know of at least one
Android developer who made this mistake in his app (he listed the
device's MAC address and called it the IP address).  That's bad enough,
but when I pointed it out, he even went so far as to say that they're
the same thing  Sigh.  That's like saying that in a car, the tires
and the engine are the exact same thing.  They are both part of the car,
but.

Ok, back to the real topic.  Note that this example is leaving out most
of the details at the low level.

Consider sites A, B, and C.  These can be on the same LAN or spread
across the world.  A is busy receiving data from B.  This data is coming
in in blocks.  Each block contains chunks of data, along with some
framing, addressing, error control, etc.  These blocks are not even
required to arrive in order.  Each block contains information as to
where its data fits in with the other blocks' data.  This is called an
asynchronous connection.

Here's where the confusion comes into play:  On a given physical
network (and this includes wireless), there can only be ONE data
packet present at a time.  More than one site on a LAN trying to
transmit at the same time is known as a collision.  If A is sending
data, data blocks from B and C have to wait.  Note that this does
not impact B and C directly, unless they are on the same physical
network.  Otherwise, it's the local router (or bridge in some
cases) and other devices on the same LAN that must wait.  But they
only have to wait for that one data block...not the whole file
transfer, as in the example given in this thread.  As soon as A's
packet is clear, each MAC device will wait for a random period
(collision avoidance) and then transmit.  If a collision is
detected, it starts over with another random delay on each device
on the network with data to send.

Does that make sense?  It's hard for me to describe this without going
into the real low-level protocols.

Even a dial-up modem using SLIP can have multiple connections.  SLIP
is a case of an async connection running over a synchronous physical
layer.  The SLIP connection only connects to the other modem, but
the IP connection is not limited by this.

Hope that clears things up.  With that, it's time to feed my little
monsters and get ready to brew today.  I don't crank up the burner
until 0900 as a courtesy to the neighbors, but I want to be ready
to fire it up at 0900 and hopefully mash in by 0930  :-)

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

   My policy on spammers:
  "Castrate first, ask questions later."

Android Apps Listing at http://www.jstrack.org/barcodes.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


Re: [android-developers] Re: How to insert MS Office word table into Edittext

2012-04-09 Thread Mark Murphy
On Mon, Apr 9, 2012 at 5:29 AM, cybersun  wrote:
> because I dont know how to insert any View into Edittext.

EditText is not a ViewGroup; you cannot "insert any View into Edittext".

> May I custom
> that edittext and them draw some vertical, horizontal line to describe
> tha table?

In theory, yes. In practice, this will be exceptionally difficult
(perhaps impossible) outside of firmware changes, due to the way
EditText is implemented.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] List view row background.

2012-04-09 Thread Put_tiMe
I have another issue that I'm facing.
 
I have registered for a callback on item click.
Whenever I click on a row, it remains selected.
I want to clear the selection. How do I do it?
 
I tried various functions, but none of them worked.
 
 

On Monday, April 9, 2012 4:01:43 PM UTC+5:30, Put_tiMe wrote:

> Ok, I kind of got it together.
>  
> For the row, I'm setting the background to my bitmap image.
> For selection, I'm setting the ListView attribute:
> android:listSelector="@drawable/xxx"
>  
>  
> It kind of works. But I can't see the selection.
> i.e. when a row is selected (or clicked) I don't see the color change.
> This happens when I set the background for the rows.
>  
> To counter that I tried setting this attr: android:drawSelectorOnTop="true"
>  
> But the problem with that is that the row contents are completely hidden.
>  
> What should I do in this case?
>  
>  
>
> On Monday, April 9, 2012 3:39:13 PM UTC+5:30, Put_tiMe wrote:
>
>> I also need to change the drawable when a listview item is selected.
>>  
>> How can I achieve this?
>>
>> On Monday, April 9, 2012 2:19:39 PM UTC+5:30, bin yang wrote:
>>
>>> Define common list item layout file. 
>>> Using  LayoutInflater to create view of Adpater.
>>>
>>> 在 2012年4月9日 下午4:30,Put_tiMe 写道:
>>>
 I want to add a background image for each row of a list-view control.
 I have written a custom adapter for the list view.
  
 What is the best way of doing it?
  

 -- 
 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] Which HTML5 feature to avoid on Android tablets\mobiles?

2012-04-09 Thread James Black
You may want to check on HTTP://caniuse.com and see whether the features
you want are supported.
On Apr 9, 2012 6:36 AM, "smoogli"  wrote:

> Hi,
> I'm going to create a web app which is based on HTML.
>
> As far as I know, Android does not support the full set of HTML5
> features.
>
> Made a quick and simple decision: avoid any HTML5 feature which is not
> supported on the Majority of Android devices (tablet is primary,
> mobile comes second).
>
> Can anyone please point me to a list of HTML5 features which are not
> supported on most Android devices?
>
> 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

[android-developers] Which HTML5 feature to avoid on Android tablets\mobiles?

2012-04-09 Thread smoogli
Hi,
I'm going to create a web app which is based on HTML.

As far as I know, Android does not support the full set of HTML5
features.

Made a quick and simple decision: avoid any HTML5 feature which is not
supported on the Majority of Android devices (tablet is primary,
mobile comes second).

Can anyone please point me to a list of HTML5 features which are not
supported on most Android devices?

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] List view row background.

2012-04-09 Thread Put_tiMe
Ok, I kind of got it together.
 
For the row, I'm setting the background to my bitmap image.
For selection, I'm setting the ListView attribute:
android:listSelector="@drawable/xxx"
 
 
It kind of works. But I can't see the selection.
i.e. when a row is selected (or clicked) I don't see the color change.
This happens when I set the background for the rows.
 
To counter that I tried setting this attr: android:drawSelectorOnTop="true"
 
But the problem with that is that the row contents are completely hidden.
 
What should I do in this case?
 
 

On Monday, April 9, 2012 3:39:13 PM UTC+5:30, Put_tiMe wrote:

> I also need to change the drawable when a listview item is selected.
>  
> How can I achieve this?
>
> On Monday, April 9, 2012 2:19:39 PM UTC+5:30, bin yang wrote:
>
>> Define common list item layout file. 
>> Using  LayoutInflater to create view of Adpater.
>>
>> 在 2012年4月9日 下午4:30,Put_tiMe 写道:
>>
>>> I want to add a background image for each row of a list-view control.
>>> I have written a custom adapter for the list view.
>>>  
>>> What is the best way of doing it?
>>>  
>>>
>>> -- 
>>> 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] how to add G729 codec in Android application?

2012-04-09 Thread Juned Khan
 
   
i am developing a SIP application for making and receiving a call and i 
want to add the G729 codec in my application.

currently i am doing analysis on open source project 
SipDroid. 
if i want to make that application to support G729 codec how to do that?

there is a different codecs configuration file in 
org.sipdroid.codecspackage.how
 do create the this kind of .java file for G729 codec?

Any suggestion and response will be appreciated.

please see my stackoveflow question click 
here

-- 
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] List view row background.

2012-04-09 Thread Put_tiMe
I also need to change the drawable when a listview item is selected.
 
How can I achieve this?

On Monday, April 9, 2012 2:19:39 PM UTC+5:30, bin yang wrote:

> Define common list item layout file. 
> Using  LayoutInflater to create view of Adpater.
>
> 在 2012年4月9日 下午4:30,Put_tiMe 写道:
>
>> I want to add a background image for each row of a list-view control.
>> I have written a custom adapter for the list view.
>>  
>> What is the best way of doing it?
>>  
>>
>> -- 
>> 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 to insert MS Office word table into Edittext

2012-04-09 Thread cybersun
Thanks,
because I dont know how to insert any View into Edittext. May I custom
that edittext and them draw some vertical, horizontal line to describe
tha table? If yes, how to know the expected location that I want to
draw table?

On 9 Tháng Tư, 16:10, Michael Banzon  wrote:
> That is really not a problem - until now its just a fantastic creative idea.
>
>
>
>
>
>
>
>
>
> On Mon, Apr 9, 2012 at 11:06 AM, cybersun  wrote:
> > Hi all,
> > I want to draw atablecontains some texts into myEdittext. I have a
> > screen to input data at every row, now I need draw thattable. Before
> > insertingtable, myEdittextcontains some text paragraphs.
> > Pls give me the answer for this problem.
> > 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
>
> --
> 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] How to insert MS Office word table into Edittext

2012-04-09 Thread Michael Banzon
That is really not a problem - until now its just a fantastic creative idea.

On Mon, Apr 9, 2012 at 11:06 AM, cybersun  wrote:
> Hi all,
> I want to draw a table contains some texts into my Edittext. I have a
> screen to input data at every row, now I need draw that table. Before
> inserting table, my Edittext contains some text paragraphs.
> Pls give me the answer for this problem.
> 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



-- 
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] How to insert MS Office word table into Edittext

2012-04-09 Thread cybersun
Hi all,
I want to draw a table contains some texts into my Edittext. I have a
screen to input data at every row, now I need draw that table. Before
inserting table, my Edittext contains some text paragraphs.
Pls give me the answer for this problem.
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] List view row background.

2012-04-09 Thread Farhan Tariq
In the getView method of the adapter, use the index of the row to set
background to. Suppose every row is a textView, then
textView.setBackgroundColor(Color.BLACK) would do the trick.
For different indices, you could do this...

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

textView.setText()
...
...

if(index %2 == 0){
textView.setBackgroundColor(Color.BLACK);
}else{
textView.setBackgroundColor(Color.BLUE);
}

return textView;
}

Something like that I guess is what you are looking for. Hope that helps
On Mon, Apr 9, 2012 at 1:30 PM, Put_tiMe  wrote:

> I want to add a background image for each row of a list-view control.
> I have written a custom adapter for the list view.
>
> What is the best way of doing it?
>
>
> --
> 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] List view row background.

2012-04-09 Thread Bin Yang
Define common list item layout file.
Using  LayoutInflater to create view of Adpater.

在 2012年4月9日 下午4:30,Put_tiMe 写道:

> I want to add a background image for each row of a list-view control.
> I have written a custom adapter for the list view.
>
> What is the best way of doing it?
>
>
> --
> 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] List view row background.

2012-04-09 Thread Put_tiMe
I want to add a background image for each row of a list-view control.
I have written a custom adapter for the list view.
 
What is the best way of doing it?
 

-- 
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] Relative layout : how to horizontally center align 2 children.

2012-04-09 Thread Put_tiMe
My layout is a little bit complex. 
I think centerHorizontal centers it w.r.t the parent.
 
But my UI elements parent is the layout itself.
And I did try "centerHorizontal" on the 2 UI child elements that I want to 
center align, and it didn't work.
 
Maybe because those controls already have a horizontal-align flag set???
 

On Monday, April 9, 2012 9:33:52 AM UTC+5:30, jason zhu wrote:

> Both of them are set to "android:layout_centerHorizontal="true""
>
> 在 2012年4月9日 上午11:56,Put_tiMe 写道:
>
>> In a relative layout, how do I center align two *child* elements.
>> The two elements could be of different widths.
>>  
>> They appear one below the other and are horizontally center aligned.
>>  
>>  
>>
>> -- 
>> 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] Image to Video Converter In android

2012-04-09 Thread nagaraj attimani
Dear Arun,

First you need to convert Image to YUV format using Image Decoder.
Then you can feed each YUV Image as a Video Input to Media Recorder Engine.

Go through the Media Recorder Source Code to get more info.

On Mon, Apr 9, 2012 at 1:22 PM, Arun  wrote:
> hello all,
>
> I want to convert a sequence of images in to video file in android.
> and wants to share the file on facebook.  i had done lots of R&D and
> uses FFmpeg library for the same, But no success.
>
> please help me.
> and id anyone have working code please provide me.. i am in deep
> trouble.
>
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Warm Regards,
Nagaraj

-- 
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] Image to Video Converter In android

2012-04-09 Thread Arun
hello all,

I want to convert a sequence of images in to video file in android.
and wants to share the file on facebook.  i had done lots of R&D and
uses FFmpeg library for the same, But no success.

please help me.
and id anyone have working code please provide me.. i am in deep
trouble.

Thanks in advance.

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


[android-developers] Re: icecream emulator can't play video

2012-04-09 Thread extrapedestrian
It seems like Video surface wants to allocate YUV format, and gralloc 
doesn't know how to allocate it. If we change it to RGB_565 it works.

On Saturday, April 7, 2012 9:04:27 AM UTC+2, Yar wrote:
>
> I have the same problem. 
> Google, work on it! 
>

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