[android-developers] Re: Please help with an ideea

2010-12-10 Thread Alex Munteanu
It stills obsese me... :))

On Dec 8, 1:46 pm, Alex Munteanu alex.munte...@gmail.com wrote:
 This thing is starting to obsese me... :)
 I admit that I'm a beginer in Java and Android API but I can't imagine
 that nobody has a clear ideea how this damm filter is implemented ... :
 (

 On Dec 7, 6:51 pm, String sterling.ud...@googlemail.com wrote:



  On Dec 7, 4:00 pm, Alex Munteanu alex.munte...@gmail.com wrote:

   Does anyone knows if going with an OpenGL approach would be a solution
   for this ?

  No offense, Alex, but it's pretty clear by this point that nobody
  reading this group has a good idea of how to accomplish this - or at
  the very least, not one that they're willing to share. It probably
  won't matter how many times you ask.

  Strikes me as a case where you need to do the legwork yourself. Read
  up and experiment.

  Good luck with it!

  String- Hide quoted text -

 - Show quoted text -

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


Re: [android-developers] Re: out of memory error

2010-12-10 Thread Brill Pappin
Of course.
Don't load so much data into memory.


i can't actually give you a solution to some code I have no idea what
it does, except that is gets pushed into a buffer.
Whatever your doing with that content, you obviously need to process it
in smaller chunks.


- brill

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: init.d

2010-12-10 Thread FrankG
Out of the scope of this group. Go to android-platform with this type
of questions.



On 8 Dez., 22:54, dlocated dloca...@gmail.com wrote:
 I have created an update.zip to install my cpu overclock script. I
 would also like to start this as a service using the init dir. How
 would I do this? From what  I have read even if I change init.d
 RECOVERY from mtd1 will overwrite it on next boot.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Passing Arguments to service

2010-12-10 Thread Prabagaran Thangavel
Hi all,
 I have an activity from where I need to create a service.
How to pass arguments to the Service which i am creating?


With Regards,
Prabagaran.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Market not updating?

2010-12-10 Thread LeX
 But hey as Google always says, it's free, so be happy you can at least
 post your apps :D

That is not true. It is not free: it costs 30% from your application
sellings...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Again Back button issue

2010-12-10 Thread pramod.deore
Hi all, I am developing one application in that I am reading data from
database and display it in  list using SimpleCursorAdapter class. Last
time when I had not used SimpleCursorAdapter class then that time list
is not update instantly therefore this time I am using
SimpleCursorAdapter.

 But this time is also there is new issue. If suppose there
are 4 list item and suppose using contectMenu I show option to delete
particular item from list. If i delete that item then list is updated
succesfully, but if suppose I want to go back then I want to click on
back button 2 times(instead of one). If I deleted 5 items then I have
to click 6 times to go back.

   How to handle this problem?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Again Back button issue

2010-12-10 Thread YuviDroid
Mmmm...it looks like you are still starting a new activity each time an item
is deleted.
Don't call startActivity().

On Fri, Dec 10, 2010 at 10:11 AM, pramod.deore deore.pramo...@gmail.comwrote:

 Hi all, I am developing one application in that I am reading data from
 database and display it in  list using SimpleCursorAdapter class. Last
 time when I had not used SimpleCursorAdapter class then that time list
 is not update instantly therefore this time I am using
 SimpleCursorAdapter.

 But this time is also there is new issue. If suppose there
 are 4 list item and suppose using contectMenu I show option to delete
 particular item from list. If i delete that item then list is updated
 succesfully, but if suppose I want to go back then I want to click on
 back button 2 times(instead of one). If I deleted 5 items then I have
 to click 6 times to go back.

   How to handle this problem?

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Again Back button issue

2010-12-10 Thread pramod.deore
Hi, Yuvidroid no I had not called startActivity. Here is my code

public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

try
{
System.out.println (Inside try);
//sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
MODE_PRIVATE, null);
sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
MODE_PRIVATE, null);
System.out.println (Inside try...);
Cursor c = sampleDB.rawQuery (SELECT _id,RoomName,
SwitchFullName FROM SwitchTable ,null);
System.out.println (c.getCount()+);
startManagingCursor(c);

System.out.println (After startManagingCursor(c)));
String[] columns = new String[] {RoomName,
SwitchFullName};

int[] names = new int[] {R.id.room, R.id.switch1};

myAdapter = new SimpleCursorAdapter(this,
R.layout.roomswitchlist, c, columns,names);
setListAdapter(myAdapter);


}
catch (SQLiteException se )
{
Log.e(getClass().getSimpleName(), Could not create or Open
the database);
}
finally
{
//sampleDB.close();
}

registerForContextMenu(getListView());
}

public void onCreateContextMenu(ContextMenu menu, View
v,ContextMenuInfo menuInfo)
{
try
{
info = (AdapterView.AdapterContextMenuInfo) menuInfo;
}
catch (ClassCastException e)
{
e.printStackTrace();
}

long id = getListAdapter().getItemId(info.position);
Object obj = getListAdapter().getItem((int) id);
System.out.println (!!!@@@+obj.toString());
str = obj.toString();
System.out.println ($+str);
/*rName = str.substring(0,str.indexOf(-));
sName = str.substring(str.indexOf(-)+1);

test = true;*/

for (int i=0;imenuItems.length;i++)
{
  System.out.println (menuItems[i]);
}

  System.out.println ();
  for (int i = 0; imenuItems.length; i++)
  {
  menu.add(Menu.NONE, i, i, menuItems[i]);
  }

  cursor = (Cursor) myAdapter.getItem((int) id);
  //long phoneId =
cursor.getLong(cursor.getColumnIndex(People.PRIMARY_PHONE_ID));
}

public boolean onContextItemSelected(MenuItem item)
{
AdapterView.AdapterContextMenuInfo info =
(AdapterView.AdapterContextMenuInfo)item.getMenuInfo();
int menuItemIndex = item.getItemId();

menuItemName = menuItems[menuItemIndex];
System.out.println (+menuItemName);

System.out.println (+menuItemName);

if (menuItemName.equalsIgnoreCase(Add Switch))
{
System.out.println (Inside Add Switch);

}

else if (menuItemName.equalsIgnoreCase(Remove Switch))
{
System.out.println (Inside Remove switch);

delRoomName =
cursor.getString(cursor.getColumnIndex(RoomName)-1);
System.out.println (Delete Room  name +delRoomName);
delSwitchName =
cursor.getString(cursor.getColumnIndex(SwitchFullName));
System.out.println (Delete Room  name and switch name
are+delRoomName+:+delSwitchName);

AlertDialog.Builder alt_bld = new 
AlertDialog.Builder(this);
alt_bld.setMessage(Do you want to Delete +delSwitchName
+ ?)
.setCancelable(false)
.setPositiveButton(Yes, new
DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
// Action for 'Yes' Button
System.out.println (User click on Yes button);
deleteSwitchID(delRoomName,delSwitchName);
}
})

.setNegativeButton(No, new
DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
//  Action for 'NO' Button
System.out.println (User click on No button);
//dialog.cancel();
}
});
AlertDialog alert = alt_bld.create();
// Title for AlertDialog

Re: [android-developers] Re: Again Back button issue

2010-12-10 Thread YuviDroid
Ehmwhat's this: ?
startActivity(getIntent()); //Restarts activity for menu refresh


On Fri, Dec 10, 2010 at 10:24 AM, pramod.deore deore.pramo...@gmail.comwrote:

 Hi, Yuvidroid no I had not called startActivity. Here is my code

 public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

try
{
System.out.println (Inside try);
//sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
 MODE_PRIVATE, null);
sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
 MODE_PRIVATE, null);
System.out.println (Inside try...);
Cursor c = sampleDB.rawQuery (SELECT _id,RoomName,
 SwitchFullName FROM SwitchTable ,null);
System.out.println (c.getCount()+);
startManagingCursor(c);

System.out.println (After startManagingCursor(c)));
String[] columns = new String[] {RoomName,
 SwitchFullName};

int[] names = new int[] {R.id.room, R.id.switch1};

myAdapter = new SimpleCursorAdapter(this,
 R.layout.roomswitchlist, c, columns,names);
setListAdapter(myAdapter);


}
catch (SQLiteException se )
{
Log.e(getClass().getSimpleName(), Could not create or Open
 the database);
}
finally
{
//sampleDB.close();
}

registerForContextMenu(getListView());
}

public void onCreateContextMenu(ContextMenu menu, View
 v,ContextMenuInfo menuInfo)
{
try
{
info = (AdapterView.AdapterContextMenuInfo) menuInfo;
}
catch (ClassCastException e)
{
e.printStackTrace();
}

long id = getListAdapter().getItemId(info.position);
Object obj = getListAdapter().getItem((int) id);
System.out.println (!!!@@@+obj.toString());
str = obj.toString();
System.out.println ($+str);
/*rName = str.substring(0,str.indexOf(-));
sName = str.substring(str.indexOf(-)+1);

test = true;*/

for (int i=0;imenuItems.length;i++)
{
  System.out.println (menuItems[i]);
}

  System.out.println ();
  for (int i = 0; imenuItems.length; i++)
  {
  menu.add(Menu.NONE, i, i, menuItems[i]);
  }

  cursor = (Cursor) myAdapter.getItem((int) id);
  //long phoneId =
 cursor.getLong(cursor.getColumnIndex(People.PRIMARY_PHONE_ID));
}

public boolean onContextItemSelected(MenuItem item)
{
AdapterView.AdapterContextMenuInfo info =
 (AdapterView.AdapterContextMenuInfo)item.getMenuInfo();
int menuItemIndex = item.getItemId();

menuItemName = menuItems[menuItemIndex];
System.out.println (+menuItemName);

System.out.println (+menuItemName);

if (menuItemName.equalsIgnoreCase(Add Switch))
{
System.out.println (Inside Add Switch);

}

else if (menuItemName.equalsIgnoreCase(Remove Switch))
{
System.out.println (Inside Remove switch);

delRoomName =
 cursor.getString(cursor.getColumnIndex(RoomName)-1);
System.out.println (Delete Room  name
 +delRoomName);
delSwitchName =
 cursor.getString(cursor.getColumnIndex(SwitchFullName));
System.out.println (Delete Room  name and switch
 name
 are+delRoomName+:+delSwitchName);

AlertDialog.Builder alt_bld = new
 AlertDialog.Builder(this);
alt_bld.setMessage(Do you want to Delete +delSwitchName
 + ?)
.setCancelable(false)
.setPositiveButton(Yes, new
 DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
// Action for 'Yes' Button
System.out.println (User click on Yes
 button);
deleteSwitchID(delRoomName,delSwitchName);
}
})

.setNegativeButton(No, new
 DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
//  Action for 'NO' Button
System.out.println (User click on No
 button);

[android-developers] Re: Passing Arguments to service

2010-12-10 Thread MrChaz
Add it to the Intent that you're using to start the service.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Again Back button issue

2010-12-10 Thread pramod.deore
Ohh!! I just coy and paste that previous code, and by mistake I forgot
to remove that line. But now after removing
startActivity(getIntent());  item is deleted but list is not updated
instantly.
I read somewhere I must have to use notifyDataSetChanged();  How to
use this?

On Dec 10, 2:29 pm, YuviDroid yuvidr...@gmail.com wrote:
 Ehmwhat's this: ?
 startActivity(getIntent()); //Restarts activity for menu refresh

 On Fri, Dec 10, 2010 at 10:24 AM, pramod.deore 
 deore.pramo...@gmail.comwrote:



  Hi, Yuvidroid no I had not called startActivity. Here is my code

  public void onCreate(Bundle savedInstanceState)
     {
         super.onCreate(savedInstanceState);

         try
         {
                 System.out.println (Inside try);
                 //sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
  MODE_PRIVATE, null);
                 sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
  MODE_PRIVATE, null);
                 System.out.println (Inside try...);
                 Cursor c = sampleDB.rawQuery (SELECT _id,RoomName,
  SwitchFullName FROM SwitchTable ,null);
                 System.out.println (c.getCount()+);
                 startManagingCursor(c);

                 System.out.println (After startManagingCursor(c)));
                                 String[] columns = new String[] {RoomName,
  SwitchFullName};

                 int[] names = new int[] {R.id.room, R.id.switch1};

                 myAdapter = new SimpleCursorAdapter(this,
  R.layout.roomswitchlist, c, columns,names);
                 setListAdapter(myAdapter);

         }
         catch (SQLiteException se )
         {
                 Log.e(getClass().getSimpleName(), Could not create or Open
  the database);
         }
         finally
         {
                         //sampleDB.close();
         }

         registerForContextMenu(getListView());
     }

         public void onCreateContextMenu(ContextMenu menu, View
  v,ContextMenuInfo menuInfo)
         {
                 try
                 {
                     info = (AdapterView.AdapterContextMenuInfo) menuInfo;
                 }
                 catch (ClassCastException e)
                 {
                         e.printStackTrace();
                 }

                 long id = getListAdapter().getItemId(info.position);
                 Object obj = getListAdapter().getItem((int) id);
                 System.out.println (!!!@@@+obj.toString());
                 str = obj.toString();
                 System.out.println ($+str);
                 /*rName = str.substring(0,str.indexOf(-));
                 sName = str.substring(str.indexOf(-)+1);

                 test = true;*/

                 for (int i=0;imenuItems.length;i++)
                 {
                           System.out.println (menuItems[i]);
                 }

                   System.out.println ();
                   for (int i = 0; imenuItems.length; i++)
                   {
                           menu.add(Menu.NONE, i, i, menuItems[i]);
                   }

                   cursor = (Cursor) myAdapter.getItem((int) id);
               //long phoneId =
  cursor.getLong(cursor.getColumnIndex(People.PRIMARY_PHONE_ID));
         }

         public boolean onContextItemSelected(MenuItem item)
         {
                 AdapterView.AdapterContextMenuInfo info =
  (AdapterView.AdapterContextMenuInfo)item.getMenuInfo();
                 int menuItemIndex = item.getItemId();

                 menuItemName = menuItems[menuItemIndex];
                 System.out.println (+menuItemName);

                 System.out.println (+menuItemName);

                 if (menuItemName.equalsIgnoreCase(Add Switch))
                 {
                         System.out.println (Inside Add Switch);

                 }

                 else if (menuItemName.equalsIgnoreCase(Remove Switch))
                 {
                         System.out.println (Inside Remove switch);

                         delRoomName =
  cursor.getString(cursor.getColumnIndex(RoomName)-1);
                         System.out.println (Delete Room  name
  +delRoomName);
                         delSwitchName =
  cursor.getString(cursor.getColumnIndex(SwitchFullName));
                         System.out.println (Delete Room  name and switch
  name
  are+delRoomName+:+delSwitchName);

                         AlertDialog.Builder alt_bld = new
  AlertDialog.Builder(this);
                 alt_bld.setMessage(Do you want to Delete +delSwitchName
  + ?)
                 .setCancelable(false)
                 .setPositiveButton(Yes, new
  DialogInterface.OnClickListener()
                 {
                         public void onClick(DialogInterface dialog, int id)
                         {
                                 // Action for 'Yes' Button
                                 System.out.println (User click on Yes
  button);
                                 

[android-developers] Re: Adding buttons to a notification

2010-12-10 Thread MrChaz
From a poke around here:
http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView
it looks like you need to call setOnClickPendingIntent() on the
RemoteViews passing the id of the button and a pending intent to handle
the click.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Market not updating?

2010-12-10 Thread Pent
 There is something weird going on in the market.  Both of my apps'
 total counts went down today.  Active installs can drop but total
 count shouldn't!

So I'm not going crazy. I thought the count had gone down by 1K, but
wrote it of as me remembering the previous number wrongly.

Pent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: SDK 2.3: Get Multiple substitutions specified in non-positional format error

2010-12-10 Thread Ecthelion
On 9 Dez., 14:20, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Dec 9, 2010 at 3:50 AM, Ecthelion ep...@joergjahnke.de wrote:
  Brilliant. But that essentially means that I cannot be 100% sure that
  my changes would not cause undesired side effects.

 You can't be 100% sure of anything with a third-party library.

 How do you ensure that you are passing the proper parameters to
 methods? Testing.

 How do you ensure that you are covering all RuntimeExceptions the
 library might throw? Testing.

 How do you ensure that the third-party library handles edge cases
 (e.g., WiFi failing over to 3G)? Testing.

 And so on.

The obvious difference is that - at least we should hope so when using
other libraries - testing for existing string resources (and other
stuff too) in the library has already been done by the company/person
creating the library, so that if I do not change code of the library I
don't have additional testing effort for checking whether the library
works. This necessity only evolves because of the mentioned change in
the resource compiler forcing me to modify library resources.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Again Back button issue

2010-12-10 Thread pramod.deore
How to use notifyDataSetChanged().

On Dec 10, 2:46 pm, pramod.deore deore.pramo...@gmail.com wrote:
 Ohh!! I just coy and paste that previous code, and by mistake I forgot
 to remove that line. But now after removing
 startActivity(getIntent());  item is deleted but list is not updated
 instantly.
 I read somewhere I must have to use notifyDataSetChanged();  How to
 use this?

 On Dec 10, 2:29 pm, YuviDroid yuvidr...@gmail.com wrote:

  Ehmwhat's this: ?
  startActivity(getIntent()); //Restarts activity for menu refresh

  On Fri, Dec 10, 2010 at 10:24 AM, pramod.deore 
  deore.pramo...@gmail.comwrote:

   Hi, Yuvidroid no I had not called startActivity. Here is my code

   public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);

          try
          {
                  System.out.println (Inside try);
                  //sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
   MODE_PRIVATE, null);
                  sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
   MODE_PRIVATE, null);
                  System.out.println (Inside try...);
                  Cursor c = sampleDB.rawQuery (SELECT _id,RoomName,
   SwitchFullName FROM SwitchTable ,null);
                  System.out.println (c.getCount()+);
                  startManagingCursor(c);

                  System.out.println (After startManagingCursor(c)));
                                  String[] columns = new String[] 
   {RoomName,
   SwitchFullName};

                  int[] names = new int[] {R.id.room, R.id.switch1};

                  myAdapter = new SimpleCursorAdapter(this,
   R.layout.roomswitchlist, c, columns,names);
                  setListAdapter(myAdapter);

          }
          catch (SQLiteException se )
          {
                  Log.e(getClass().getSimpleName(), Could not create or Open
   the database);
          }
          finally
          {
                          //sampleDB.close();
          }

          registerForContextMenu(getListView());
      }

          public void onCreateContextMenu(ContextMenu menu, View
   v,ContextMenuInfo menuInfo)
          {
                  try
                  {
                      info = (AdapterView.AdapterContextMenuInfo) menuInfo;
                  }
                  catch (ClassCastException e)
                  {
                          e.printStackTrace();
                  }

                  long id = getListAdapter().getItemId(info.position);
                  Object obj = getListAdapter().getItem((int) id);
                  System.out.println (!!!@@@+obj.toString());
                  str = obj.toString();
                  System.out.println ($+str);
                  /*rName = str.substring(0,str.indexOf(-));
                  sName = str.substring(str.indexOf(-)+1);

                  test = true;*/

                  for (int i=0;imenuItems.length;i++)
                  {
                            System.out.println (menuItems[i]);
                  }

                    System.out.println ();
                    for (int i = 0; imenuItems.length; i++)
                    {
                            menu.add(Menu.NONE, i, i, menuItems[i]);
                    }

                    cursor = (Cursor) myAdapter.getItem((int) id);
                //long phoneId =
   cursor.getLong(cursor.getColumnIndex(People.PRIMARY_PHONE_ID));
          }

          public boolean onContextItemSelected(MenuItem item)
          {
                  AdapterView.AdapterContextMenuInfo info =
   (AdapterView.AdapterContextMenuInfo)item.getMenuInfo();
                  int menuItemIndex = item.getItemId();

                  menuItemName = menuItems[menuItemIndex];
                  System.out.println (+menuItemName);

                  System.out.println (+menuItemName);

                  if (menuItemName.equalsIgnoreCase(Add Switch))
                  {
                          System.out.println (Inside Add Switch);

                  }

                  else if (menuItemName.equalsIgnoreCase(Remove Switch))
                  {
                          System.out.println (Inside Remove switch);

                          delRoomName =
   cursor.getString(cursor.getColumnIndex(RoomName)-1);
                          System.out.println (Delete Room  name
   +delRoomName);
                          delSwitchName =
   cursor.getString(cursor.getColumnIndex(SwitchFullName));
                          System.out.println (Delete Room  name and switch
   name
   are+delRoomName+:+delSwitchName);

                          AlertDialog.Builder alt_bld = new
   AlertDialog.Builder(this);
                  alt_bld.setMessage(Do you want to Delete +delSwitchName
   + ?)
                  .setCancelable(false)
                  .setPositiveButton(Yes, new
   DialogInterface.OnClickListener()
                  {
                          public void onClick(DialogInterface dialog, int id)
   

[android-developers] Can not find target after updating android 2.3 sdk

2010-12-10 Thread 陈彧堃
Under ubuntu 10.04  Eclipse, after updating to 2.3 sdk using Android SDK
and AVD Manager, target can not display when setting sdk location, does
anybody meet the same problem?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Problems changing the drawable on a Button

2010-12-10 Thread H
I think I tried using the same setCompundDrawables... method but it
didn't work for me either. Here's how I've got two different buttons in
my xml (which you should be able to convert into java easily). The
first is a button with an icon to the left and text in the button as
well, the other button just has an icon on it only.



Button android:drawableLeft=@drawable/arrow_up android:text=up
android:id=@+id/headerButtonUp
android:layout_gravity=left|center_vertical
android:onClick=viewClickButtonUpAFolder
android:layout_width=wrap_content
android:layout_height=wrap_content /

ImageButton android:src=@drawable/house
android:id=@+id/headerButtonHome
android:gravity=center_horizontal|center_vertical
android:minWidth=50dip
android:layout_gravity=right|center_vertical
android:onClick=viewClickButtonHome
android:layout_width=wrap_content
android:layout_height=wrap_content /

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Can not find target after updating android 2.3 sdk

2010-12-10 Thread pramod.deore
target location changes from android-sdk-windows\tools to android-sdk-
windows\platform-tools. And you have to set path to this folder. But
this is in Windows and I think in Ubuntu is also the same.(means only
folder is changed and you have to set this path).

On Dec 10, 3:48 pm, 陈彧堃 chenyuku...@gmail.com wrote:
 Under ubuntu 10.04  Eclipse, after updating to 2.3 sdk using Android SDK
 and AVD Manager, target can not display when setting sdk location, does
 anybody meet the same problem?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Market not updating?

2010-12-10 Thread David Erosa García
 But hey as Google always says, it's free, so be happy you can at least
 post your apps :D

Well, I had to pay $25 to be able to post and 30% of my sellings... ;)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] problem creating surface

2010-12-10 Thread Aswini Kumar Sahoo
Hello,
I am trying to create surface object directly from native
using following method:

1First i am creating a SurfaceComposerClient

2Then calling the createSurface() of the SurfaceComposerClient  to
get SurfaceControl.

3Then i am calling getSurface() of  SurfaceControl to get the
surface.

4From this surface i am getting the ISurface handle.

5Using this ISurface handle, I am trying to register buffers. So, as
to be able to render directly from native.

6But I am getting an error in ISurface::registerBuffer() with error
code 38.

My Queries:

1Is it feasible to achieve what i am trying to do ? ie. directly
instantiate surface from native and render data onto it using push
buffer mechanism.

2can somebody throw light on, what does this error code 38
indicates .

Any short of help is appreciated.

Regards
AKS

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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 use notifyDataSetChanged

2010-12-10 Thread pramod.deore
Hi I am reading data from database and displaying it in list. But this
list is not update instantly so I had used SimpleCursorAdapter. But
still it is not updated instantly. In documents I read that
notifyDataSetChanged() is used for this pupose.But when I write this
in my code still list is not  updated . I want to know how to use this
method?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] 3d flip between two views

2010-12-10 Thread ping
Hello,
Is there an easy way to perform a 3d flip animation (on the x-axis)
between two views?
So i have a view ( actually a viewgroup) and an ImageView... By
tapping on the Image the image should flip 180* and the other view
should be desplayed.

I looked through this code
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/animation/Rotate3dAnimation.html
which shows how a 3d rotate animation on a view can be performed...
How should I adapt this code so that it flips between 2 views?

or is there an easier way to do this?

greets

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Problem with toggleSoftInput() doing nothing after a third-party startActivityForResult()

2010-12-10 Thread Peter Meijer
As an alternative to my posted code, I tried as a test example instead

InputMethodManager imm = (InputMethodManager)
getSystemService(INPUT_METHOD_SERVICE);
CheckBox c = new CheckBox(this);
addContentView(c,new
ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,ViewGroup.LayoutParams.FILL_PARENT));
imm.showSoftInput(c.getRootView(), InputMethodManager.SHOW_FORCED);

Again, I get the soft keyboard and associated proper key events with
this code as I run my program. Moreover, even after launching a
third-party activity via startActivityForResult() as described in my
previous message I now get the soft keyboard popup, *BUT* it does not
generate any key events that my app sees. The dummy checkbox shows up
alright, but it is as if c.getRootView() somehow no longer belongs to
my app despite it defining the checkbox.

I should note that there seems to be a timing issue, in that the
problem always occurs after running the third-party activity for only
a few seconds, and the problem often does not occur if I let the
third-party activity run a bit longer. Maybe the issue is in part that
Android has not quite finished stopping my app before returning to it?
Still, I cannot figure out how to properly fix this problem myself, or
where to add semaphores for better stability. In all other respects my
app runs fine after the third-party activity excursion, e.g., all
other touch events on the screen continue to work fine. It is only the
soft keyboard of InputMethodManager that is here causing me problems.
Is it a known issue with InputMethodManager? I'm running Android 2.2
(Froyo) on HTC Desire.

Thanks!


On Thu, Dec 9, 2010 at 7:14 PM, blindfold seeingwithso...@gmail.com wrote:
 I have a problem with the soft keyboard after launching another
 activity. Upon a touch event I use

 InputMethodManager imm = (InputMethodManager)
 getSystemService(INPUT_METHOD_SERVICE);
 imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

 to pop up the soft keyboard, which works just fine.

 However, after launching and returning from another (third-party)
 activity via startActivityForResult(), the touch events again work
 fine but the soft keyboard no longer shows up with the above lines. I
 have this problem after launching the phone's browser, after launching
 ZXing as well as after launching an Admob test ad. Apparently
 something about the launched activity still lingers after returning
 from these third-party activities. What must one do to restore a
 proper state to get the soft keyboard to pop up again, or is this an
 Android bug?

 Curiously, the problem is cured after doing yet another
 startActivityForResult() but then for one of my own activities. The
 question is what exactly it is that I need to reset to regain proper
 toggleSoftInput() behavior.

 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] 3d flip between two views

2010-12-10 Thread Kumar Bibek
http://www.inter-fuser.com/2009/08/android-animations-3d-flip.html

Try this.


Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Fri, Dec 10, 2010 at 5:04 PM, ping bernd.warm...@gmail.com wrote:

 Hello,
 Is there an easy way to perform a 3d flip animation (on the x-axis)
 between two views?
 So i have a view ( actually a viewgroup) and an ImageView... By
 tapping on the Image the image should flip 180* and the other view
 should be desplayed.

 I looked through this code

 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/animation/Rotate3dAnimation.html
 which shows how a 3d rotate animation on a view can be performed...
 How should I adapt this code so that it flips between 2 views?

 or is there an easier way to do this?

 greets

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

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

[android-developers] CTS Error

2010-12-10 Thread KVR
Hi ,
How to kill a running CTS instance.Suppose one CTS instance is running
on a terminal and if we abruptly close that terminal, that CTS
instance will not be closed and when we try to start CTS again in a
fresh terminal,we get this error[CTS_ERROR  Error: CTS is being
used at the moment. No more than one CTS instance is allowed
simultaneously] so how to go to CTS Host this time or kill this
running instance.

Thanks,
KVR

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


[android-developers] WebView request monitoring

2010-12-10 Thread Neilz
Hi all.

I open up an Activity with a WebView, and load up a URL which allows
the user to fill in a form, going through a series of pages.

I need to monitor the requests, to look at what stage of the process
they're at, then act at a certain point.

How can I get hold of the requests made by the WebView please?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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 control the width and height of Alert dialog.

2010-12-10 Thread sat
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(Title);
builder.setItems(items, new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int item)
{
Toast.makeText(getApplicationContext(),
items[item], Toast.LENGTH_SHORT).show();
}
});
AlertDialog alert = builder.create();

I am using above code to show alert dialog , By default it fills the
screen in width and wrap_content in height.
How to control the width and height of default alert dialog ?
I tried , alert.getWindow().setLayout(100,100); // It dint work.
How to get the layout params on the alert window and set manually the
width and height ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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 2.3 SDK Emulator is very slow

2010-12-10 Thread George Moschovitis
Yeap, the emulator (and the whole plugin) run slower after the updated
to the latest SDK.


-g.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Porting Javascript Application to Andriod

2010-12-10 Thread sat
Hi,
You can check
Binding JavaScript code to Android code in Android documentation.
After Binding you can call Javascript function from Android code and
vice versa.

On Dec 9, 2:26 pm, cuil yahoo cuilya...@gmail.com wrote:
 Hey,

 We have an application written in Javascript. We want to port it to android
 .We are using webview and webviewclient to load a url which is the index
 html for that javascript application. To save data  we need to  call a
 Javascript function that returns a value and we need to store that value in
 Java in Android.

 Could you please provide some pointers on its implementation ?

 We tried using addjavascriptinterface() but it does not return a value.

 Thank You

 Cuil

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Bring the app to foreground

2010-12-10 Thread Colin W
I don't believe that android allows this.
It is rather naughty of an app to force itself to the front.
It should put a notification into the status bar and let the user
decide - he/she may be dialling a number when it happens, very annoying!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Maximum number of touch events Android can handle

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 1:05 AM, Paul pmmen...@gmail.com wrote:

 Any suggestions where to start digging through source?


Haven't looked through it myself, but I would assume you can search through
it. So I would start with multi touch and other variations.

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

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

[android-developers] how to play yuv file using surfaceflinger

2010-12-10 Thread venu
Hi all,

I want to play yuv file in my android hardware using native code.How
to develop the native code that directly talks to surfaceflinger to
display yuv/rgb data. Actually it is the data comming from my camera
which is stored in a file.I want to play the data using that file.My
camera sensor give yuv422 data.



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: how to play yuv file using surfaceflinger

2010-12-10 Thread venu
I forgot to put in my last post that i am using froyo 2.2.

On Dec 10, 6:18 pm, venu venuthepo...@gmail.com wrote:
 Hi all,

 I want to play yuv file in my android hardware using native code.How
 to develop the native code that directly talks to surfaceflinger to
 display yuv/rgb data. Actually it is the data comming from my camera
 which is stored in a file.I want to play the data using that file.My
 camera sensor give yuv422 data.

 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


Re: [android-developers] WebView request monitoring

2010-12-10 Thread Mark Murphy
WebViewClient and shouldOverrideUrlLoading().

On Fri, Dec 10, 2010 at 7:31 AM, Neilz neilhorn...@gmail.com wrote:
 Hi all.

 I open up an Activity with a WebView, and load up a URL which allows
 the user to fill in a form, going through a series of pages.

 I need to monitor the requests, to look at what stage of the process
 they're at, then act at a certain point.

 How can I get hold of the requests made by the WebView please?

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




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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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 use notifyDataSetChanged

2010-12-10 Thread Mark Murphy
In your case, call requery() on the Cursor. The SimpleCursorAdapter
and whatever it is attached to (e.g., ListView) will be updated
automatically.

On Fri, Dec 10, 2010 at 6:24 AM, pramod.deore deore.pramo...@gmail.com wrote:
 Hi I am reading data from database and displaying it in list. But this
 list is not update instantly so I had used SimpleCursorAdapter. But
 still it is not updated instantly. In documents I read that
 notifyDataSetChanged() is used for this pupose.But when I write this
 in my code still list is not  updated . I want to know how to use this
 method?

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Bring the app to foreground

2010-12-10 Thread Gergely Juhász
maybe try to send a startActivity intent for your acitivty

On 10 December 2010 14:14, Colin W cpwern...@googlemail.com wrote:

 I don't believe that android allows this.
 It is rather naughty of an app to force itself to the front.
 It should put a notification into the status bar and let the user decide -
 he/she may be dialling a number when it happens, very annoying!

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


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

[android-developers] Re: Android 2.3 SDK Emulator is very slow

2010-12-10 Thread Alexei 'keyhell' Zhurba
My application is quite simple and small. Unlikely I will follow your
way of doing things.
Anyway, Thank you!


Since emulator is very slow, I use my phone (Android 2.2) to debug my
changes. It's enough for simple changes (those I don't expect
differences between Android 2.1, 2.2 and 2.3).
For complex cases I anyway start emulator (at least one of 2.1 or 2.3).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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 2.3 SDK Emulator is very slow

2010-12-10 Thread Alexei 'keyhell' Zhurba
Right.
I also have my personal Android phone, which now saves me time.


But I want to be able to use emulator. To debug without using my phone,
to be sure my software runs everywhere (2.1, 2.2, 2.3).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Can you trust the Android OS that comes from a Chinese Manufactures?

2010-12-10 Thread JP


On Dec 9, 3:29 pm, Dianne Hackborn hack...@android.com wrote:
 On Wed, Dec 8, 2010 at 11:51 AM, JP joachim.pfeif...@gmail.com wrote:
  3. That also put the nail in the coffin of me using Android as a
  personal device. At long last, I went back to Symbian (I continue to
  develop on Android, of course). Don't get me wrong, I like Android,
  and Gingerbread looks really good, but I just can't seem to be able to
  get over certain things related to Android and Google, in particular
  the eagerness to wanting to share my location... Call me paranoid,
  but I just like things certain ways.

 If you are that paranoid, you can make your own build of Android with
 whatever restrictions you want (for example not allow certain apps to ever
 get location information) and run that.
Interesting project but no time for that right now


 Google's privacy policy is to never share your location with them unless you
 explicitly approve.  
To me, Google is not nearly transparent enough to make this a
compelling argument. You hit the problem right on the head: Why go
down the policy bunny trail, when there's a solution that organically
meets expectations? There's plenty of examples where the policy-and-
processes approach just didn't pan out over the long run. Right off,
PFC Manning and the near fiasco at Clear (the registered traveler
program) come to mind.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Eclipse: Export signed application log

2010-12-10 Thread George Moschovitis
When trying to export a signed application using the latest SDK and
Proguard I get an 'Export failed' message.
Is there a way to see some kind of log file with a more detailed error
message so that I can fix the problem?


thanks,
-g.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Authorizing Purchase problem

2010-12-10 Thread Pedro Duque
I just posted a application to Android Market: Live Gallery Gold. It's a
paid live wallpaper that is using LVL to authenticate users.

Now, when I try to buy my own application I get a server error at
Authorizing Purchase. Is this normal? Can't I buy my own apps? Is it a
problem related to LVL? I don't have any problem buying other
applications...

Please any suggestion will be welcome.

Thank you,
Pedro Duque

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Dex not working with spaces in path on the new android platform tools (V8)

2010-12-10 Thread Omri
Hi, Anyone have any idea why this is happening and how to fix this?

On Dec 8, 10:07 am, Omri omri.bau...@gmail.com wrote:
 On the new android platform tools (v8) released with the 2.3 SDK, I
 get an error while running dex from the ant script

 I typed the usual ant release, and got an error in the dex stage

 -dex:
      [echo] Converting compiled files and external libraries into C:
 \Documents a
 nd Settings\omri\My Documents\my app\builddir\classes.dex...
     [apply] =C:\Documents was unexpected at this time.

 BUILD FAILED
 C:\Android\tools\ant\main_rules.xml:449: The following error occurred
 while exec
 uting this line:
 C:\Android\tools\ant\main_rules.xml:199: apply returned: 255

 I know its because of the spaces in the path, but I'm not sure as to
 how to fix this.
 any help would be very appreciated.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: What Tablet would you get

2010-12-10 Thread Phil Endecott
On Dec 9, 10:33 pm, Howard M. Harte hhar...@gmail.com wrote:
 Last, I bought the Vewsonic gTablet to debug some native code that was
 segfaulting on tegra2.  The CPU is great, and I love that it has a USB
 host port, but now I'm convinced I'm not a fan of the 10 form
 factor.  The biggest drawback is easily the display, which has a weird
 viewing angle.

I guess it's the same as the Toshiba Folio 100 (which I've played
with) and the AC100 (which I own).  The viewing angle is quite poor
compared to the Galaxy Tab or the iPad, though not as bad as the even-
cheaper tablets.  But that's not an inevitable consequence of the 10
form-factor, as the iPad demonstrates.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Dex not working with spaces in path on the new android platform tools (V8)

2010-12-10 Thread Mark Murphy
Move your project into a directory with no spaces in its path.

I have run into this sort of problem a few times with Android, and
with other tools, so I pretty much avoid any path with spaces in it
for as much as possible.

On Fri, Dec 10, 2010 at 8:57 AM, Omri omri.bau...@gmail.com wrote:
 Hi, Anyone have any idea why this is happening and how to fix this?

 On Dec 8, 10:07 am, Omri omri.bau...@gmail.com wrote:
 On the new android platform tools (v8) released with the 2.3 SDK, I
 get an error while running dex from the ant script

 I typed the usual ant release, and got an error in the dex stage

 -dex:
      [echo] Converting compiled files and external libraries into C:
 \Documents a
 nd Settings\omri\My Documents\my app\builddir\classes.dex...
     [apply] =C:\Documents was unexpected at this time.

 BUILD FAILED
 C:\Android\tools\ant\main_rules.xml:449: The following error occurred
 while exec
 uting this line:
 C:\Android\tools\ant\main_rules.xml:199: apply returned: 255

 I know its because of the spaces in the path, but I'm not sure as to
 how to fix this.
 any help would be very appreciated.

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




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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Authorizing Purchase problem

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 7:55 AM, Pedro Duque pmdu...@gmail.com wrote:

 Is this normal?


Yes.


 Can't I buy my own apps?


Nope.


 Is it a problem related to LVL?


Nope.

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

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

Re: [android-developers] Authorizing Purchase problem

2010-12-10 Thread YuviDroid
AFAIK, you can't buy your own appsto do so use a different phone (and
account..).

On Fri, Dec 10, 2010 at 2:55 PM, Pedro Duque pmdu...@gmail.com wrote:

 I just posted a application to Android Market: Live Gallery Gold. It's a
 paid live wallpaper that is using LVL to authenticate users.

 Now, when I try to buy my own application I get a server error at
 Authorizing Purchase. Is this normal? Can't I buy my own apps? Is it a
 problem related to LVL? I don't have any problem buying other
 applications...

 Please any suggestion will be welcome.

 Thank you,
 Pedro Duque

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Authorizing Purchase problem

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 7:55 AM, Pedro Duque pmdu...@gmail.com wrote:

 I just posted a application to Android Market: Live Gallery Gold. It's a
 paid live wallpaper that is using LVL to authenticate users.


Also, if this is your first app or you haven't already, spend some time
here:
http://market.android.com/support/bin/topic.py?topic=15865

Which would eventually lead you to here:
http://market.android.com/support/bin/answer.py?hl=enanswer=141659
 http://market.android.com/support/bin/answer.py?hl=enanswer=141659
-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Can not find target after updating android 2.3 sdk

2010-12-10 Thread Gulfam
Hi,

I have also faced the same issue, but after updating the ADT plugins,
my issue has been resolved automatically:)
Update your ADT plugins hope your prolem will be solved.

Thanks,
Gulfam

On Dec 10, 3:55 pm, pramod.deore deore.pramo...@gmail.com wrote:
 target location changes from android-sdk-windows\tools to android-sdk-
 windows\platform-tools. And you have to set path to this folder. But
 this is in Windows and I think in Ubuntu is also the same.(means only
 folder is changed and you have to set this path).

 On Dec 10, 3:48 pm, 陈彧堃 chenyuku...@gmail.com wrote:

  Under ubuntu 10.04  Eclipse, after updating to 2.3 sdk using Android SDK
  and AVD Manager, target can not display when setting sdk location, does
  anybody meet the same problem?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Repeating background does not repeat

2010-12-10 Thread Kwisatz
I have exactly the same problem as you. It happens in the emulator and
on devices, from 1.6 to 2.2.
I was searching the web for a solution, but found nothing so far.
But it's nice to know that programmatically we can get an accurate
effect. It will get ugly implementing this in the app, but thanks for
your findings.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Eclipse: Export signed application log

2010-12-10 Thread H
Are you using windows..? If so, check to see if there is any space in
the location of your workspace OR the temp folder. If either of these
has a space in the full path then the call to proguard will fail.
either move the workspace and your temp folder, or call the proguard
manually or wait for google to fix it. Grrr.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Dex not working with spaces in path on the new android platform tools (V8)

2010-12-10 Thread Omri Baumer
Yeah, thats +- what I'm doing as a work around.
I used SysInternals junction to create a softlink to my building directory,
but this seems a bit off,
But this worked fine with the older SDK, just stoped now with V8, so I'm
wondering if someone knows where its coming from, maybe theres an easy fix
to the ant script.



On Fri, Dec 10, 2010 at 4:03 PM, Mark Murphy mmur...@commonsware.comwrote:

 Move your project into a directory with no spaces in its path.

 I have run into this sort of problem a few times with Android, and
 with other tools, so I pretty much avoid any path with spaces in it
 for as much as possible.

 On Fri, Dec 10, 2010 at 8:57 AM, Omri omri.bau...@gmail.com wrote:
  Hi, Anyone have any idea why this is happening and how to fix this?
 
  On Dec 8, 10:07 am, Omri omri.bau...@gmail.com wrote:
  On the new android platform tools (v8) released with the 2.3 SDK, I
  get an error while running dex from the ant script
 
  I typed the usual ant release, and got an error in the dex stage
 
  -dex:
   [echo] Converting compiled files and external libraries into C:
  \Documents a
  nd Settings\omri\My Documents\my app\builddir\classes.dex...
  [apply] =C:\Documents was unexpected at this time.
 
  BUILD FAILED
  C:\Android\tools\ant\main_rules.xml:449: The following error occurred
  while exec
  uting this line:
  C:\Android\tools\ant\main_rules.xml:199: apply returned: 255
 
  I know its because of the spaces in the path, but I'm not sure as to
  how to fix this.
  any help would be very appreciated.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 



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

 Android App Developer Books: http://commonsware.com/books

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




-- 
Omri Baumer.
All Natural for the Original Omri

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

[android-developers] Re: WebView request monitoring

2010-12-10 Thread Neilz
Thanks Mark.

I notice this call works when I use loadData() but not when I use
loadUrl(). In this case, it never gets called.

I've searched a number of posts with people asking this, but haven't
found a solution. Any ideas?

On Dec 10, 1:24 pm, Mark Murphy mmur...@commonsware.com wrote:
 WebViewClient and shouldOverrideUrlLoading().



 On Fri, Dec 10, 2010 at 7:31 AM, Neilz neilhorn...@gmail.com wrote:
  Hi all.

  I open up an Activity with a WebView, and load up a URL which allows
  the user to fill in a form, going through a series of pages.

  I need to monitor the requests, to look at what stage of the process
  they're at, then act at a certain point.

  How can I get hold of the requests made by the WebView please?

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

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

 Android App Developer Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: WebView request monitoring

2010-12-10 Thread Mark Murphy
On Fri, Dec 10, 2010 at 9:28 AM, Neilz neilhorn...@gmail.com wrote:
 I notice this call works when I use loadData() but not when I use
 loadUrl(). In this case, it never gets called.

It does not get called for the initial URL. I suppose they assume that
if you are telling Android to load the URL, you don't need to be
notified about it again.

But it most certainly gets called for any normal links you click on. I
just tested this to confirm.

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

Android App Developer Books: http://commonsware.com/books

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


[android-developers] Re: WebView request monitoring

2010-12-10 Thread Neilz
Hmm. You're right, of course, at least for some normal URL.

But it doesn't work for mine. The URL I'm using is https... would that
make a difference?

On Dec 10, 2:42 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Dec 10, 2010 at 9:28 AM, Neilz neilhorn...@gmail.com wrote:
  I notice this call works when I use loadData() but not when I use
  loadUrl(). In this case, it never gets called.

 It does not get called for the initial URL. I suppose they assume that
 if you are telling Android to load the URL, you don't need to be
 notified about it again.

 But it most certainly gets called for any normal links you click on. I
 just tested this to confirm.

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

 Android App Developer Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: WebView request monitoring

2010-12-10 Thread Mark Murphy
On Fri, Dec 10, 2010 at 9:57 AM, Neilz neilhorn...@gmail.com wrote:
 Hmm. You're right, of course, at least for some normal URL.

 But it doesn't work for mine. The URL I'm using is https... would that
 make a difference?

Conceivably. I haven't tried that combination.

Also, I think shouldOverrideUrlLoading() only works for GET requests.
POSTing a form may not trigger it. I seem to recall running into the a
loong time ago, so I do not know if things changed since then.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Combining an image

2010-12-10 Thread TreKing
On Thu, Dec 9, 2010 at 10:34 PM, darrinps darri...@gmail.com wrote:

 Anyone know how to set them to where they butt up against one another in
 the middle to form one big photo?


Try playing with padding and margins.

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

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

[android-developers] Re: WebView request monitoring

2010-12-10 Thread Neilz
Ah... that would be it then. This form is definitely posting data.

Sooo... where do I go from here!

On Dec 10, 3:08 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Dec 10, 2010 at 9:57 AM, Neilz neilhorn...@gmail.com wrote:
  Hmm. You're right, of course, at least for some normal URL.

  But it doesn't work for mine. The URL I'm using is https... would that
  make a difference?

 Conceivably. I haven't tried that combination.

 Also, I think shouldOverrideUrlLoading() only works for GET requests.
 POSTing a form may not trigger it. I seem to recall running into the a
 loong time ago, so I do not know if things changed since then.

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

 Android App Developer Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: WebView request monitoring

2010-12-10 Thread Mark Murphy
On Fri, Dec 10, 2010 at 10:20 AM, Neilz neilhorn...@gmail.com wrote:
 Ah... that would be it then. This form is definitely posting data.

 Sooo... where do I go from here!

If you have control over the Web content, you could use
addJavascriptInterface() and arrange for communications that way. Note
that addJavascriptInterface() is broken in the 2.3 emulator, though
apparently not on the Nexus S.

Or, switch to using GET on your forms.

Beyond that, I have no ideas off the top o' my head.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Authorizing Purchase problem

2010-12-10 Thread Brill Pappin
It's a policy limitation from Google Checkout (I just went through the
same issue).
If your like me, you want to be able to use your app so that you get a
feel for what needs changing/fixing.


What I ended up doing was to create a special flag that will disable
the license check for private use.
This also allows me to distribute a copy to my testers manually.


- Brill

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Highlighting an icon in a Gallery widget

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 1:07 AM, FractalBob ruom...@gmail.com wrote:

 How do I change the color?


http://developer.android.com/reference/android/graphics/drawable/StateListDrawable.html

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

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

Re: [android-developers] Re: Please help with an ideea

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 2:16 AM, Alex Munteanu alex.munte...@gmail.comwrote:

 It stills obsese me... :))


Well, sorry, but it doesn't obsese anyone else, apparently. Reread
String's post. It still applies.

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

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

[android-developers] disable log messages dataCallback(16, 0x11af10) when using mCamera.setPreviewCallback(this);

2010-12-10 Thread andev
Im using Camera.setPreviewCallback method to retrieve all the camera
frames on the onPreviewFrame on a 2.0.1 device.
Im aware about the issue of GC interrupting on each frame on  2.2
platforms (http://code.google.com/p/android/issues/detail?id=2794) and
I'm using the suggested work-around.
However, there is also a log message dataCallback(16, 0x11af10)
being print on logcat on each frame like this:
...
D/Camera-JNI( 1795): dataCallback(16, 0x11af10)
D/Camera-JNI( 1795): dataCallback(16, 0x11af10)
D/Camera-JNI( 1795): dataCallback(16, 0x11af10)
D/Camera-JNI( 1795): dataCallback(16, 0x11af10)
...

These messages are very annoying because they make it harder to find
my other log messages among them.
My question is:
Is it possible to disable the dataCallback(16, 0x11af10) log messages?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Include .jar file in my project?

2010-12-10 Thread Hal
The following link may be useful

http://developer.android.com/guide/appendix/faq/commontasks.html#addexternallibrary


Hal - An intelligent Android - Jt framework application

On Dec 9, 2:53 pm, Tobiah t...@tobiah.org wrote:
 If I have a .jar file that contains libraries that I want to
 use in my android application, how can I make them available
 to my main code?

 Thanks,

 Toby

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


[android-developers] Re: WebView request monitoring

2010-12-10 Thread Neilz
No, unfortunately I have no control over the web content. Hmm!

On Dec 10, 3:25 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Dec 10, 2010 at 10:20 AM, Neilz neilhorn...@gmail.com wrote:
  Ah... that would be it then. This form is definitely posting data.

  Sooo... where do I go from here!

 If you have control over the Web content, you could use
 addJavascriptInterface() and arrange for communications that way. Note
 that addJavascriptInterface() is broken in the 2.3 emulator, though
 apparently not on the Nexus S.

 Or, switch to using GET on your forms.

 Beyond that, I have no ideas off the top o' my head.

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

 Android App Developer Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Not receiving webview's onClick and onLongClick events

2010-12-10 Thread John
I'm trying to do the same thing.   I have a webview to display some
text formatted with html markup including bold, italics, and line
breaks.But I need to know when a user clicks on this text.   I
suppose I could add javascript to get the click and then have the
javascript call back to the native app code; but that seems like too
much overkill.

On Nov 9, 7:28 am, Rajesh nyamgouda rajesh.m.nyamag...@gmail.com
wrote:
 Trying to receive the onClick and onLongClick event on webview using
 below code but it failed to receive the event. Please help me out if
 anything is missing  or wrongly implemented to achieve the expected
 result.

 main.xml
 ==

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
     android:orientation=vertical
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     

      WebView
         android:id=@+id/webview
         android:layout_width=100px
         android:layout_height=100px
     /

 /LinearLayout

 

 HelloTest.java

 public class HelloTest extends Activity {

     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
         WebView webview;

         OnClickListener clickListen = new OnClickListener() {
             public void onClick(View v) {
                 System.out.println(## Inside
 CLICK LISTERNAER);
             }
         };

         OnLongClickListener longclickListen = new
 OnLongClickListener() {
             public boolean onLongClick(View v) {
                 System.out.println(## Inside
 CLICK LISTERNAER);
                 return true;
             }
         };

         webview = (WebView) findViewById(R.id.webview);
         webview.getSettings().setJavaScriptEnabled(true);
         webview.setClickable(true);
         webview.setLongClickable(true);
         webview.setOnClickListener(clickListen);
         webview.setOnLongClickListener(longclickListen);
         webview.loadUrl(http://www.google.com;);
    }

 }

 === =

 Manifest file

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=com.agy.wrt.hellotest
       android:versionCode=1
       android:versionName=1.0
     application android:icon=@drawable/icon android:label=@string/
 app_name
         activity android:name=.HelloTest
                   android:label=@string/app_name
             intent-filter
                 action android:name=android.intent.action.MAIN /
                 category
 android:name=android.intent.category.LAUNCHER /
             /intent-filter
         /activity

     /application
     uses-sdk android:minSdkVersion=8 /
         uses-permission android:name=android.permission.INTERNET /

 /manifest
 ===

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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-porting] can't access SurfaceFlinger

2010-12-10 Thread Deva R
still the permission is failing on Permission.check()
http://git.omapzoom.org/?p=platform/frameworks/base.git;a=blob;f=libs/surfaceflinger/SurfaceFlinger.cpp;h=6079a628f00762ed665205986aa6756617271422;hb=refs/heads/p-froyo#l1637

is this apk built separtely outside system build??
from past threads
http://groups.google.com/group/android-porting/browse_thread/thread/6f649c42d30f7572
,

This is a system permission - you cannot access it from an application
unless it is signed with the system keys. It's a bad idea to be
messing around with SurfaceFlinger low-levels from an application.


On Fri, Dec 10, 2010 at 8:14 AM, 袁堂夫 yuantangf...@gmail.com wrote:

 I have used permission
 android:name=android.permission.ACCESS_SURFACE_FLINGER / in the
 AndroidMenifest.xml.
 But the error is still there. How to fix this error?
 -
 12-10 03:05:57.975: WARN/ServiceManager(1002): Permission failure:
 android.permission.ACCESS_SURFACE_FLINGER from uid=10056 pid=2250

 12-10 03:05:57.975: ERROR/SurfaceFlinger(1002): Permission Denial:
 can't access SurfaceFlinger pid=2250, uid=10056

 --
 unsubscribe: 
 android-porting+unsubscr...@googlegroups.comandroid-porting%2bunsubscr...@googlegroups.com
 website: http://groups.google.com/group/android-porting




-- 
Regards,
Deva
www.bittoggler.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] Highlighting an icon in a Gallery widget

2010-12-10 Thread FractalBob
Simple and elegant; thanks, TreKing.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Looking for intents to control a media player

2010-12-10 Thread neuromit
I'm trying to write a universal music widget, and struggline to figure
out the best way to control the user specified music player without
having to explicitly include coded dedicated to each media player in
code. I'm hoping that there are generic intents that get passed on to
the user specified music player, however I haven't been able to figure
out what they are.

Do I need to figure out the intents for each individual player?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Looking for intents to control a media player

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 10:15 AM, neuromit stuart.lay...@gmail.com wrote:

 I'm hoping that there are generic intents that get passed on to the user
 specified music player, however I haven't been able to figure out what they
 are.


What you're describing doesn't really seem feasible. Anyone can make a media
playing app without any standard or public intents. There's no way for you
to know how to control any one of them (if you even could using intents),
let alone ALL of them out there now and that will come out in the future.

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

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

[android-developers] Re: Problems changing the drawable on a Button

2010-12-10 Thread neuromit
hmm... I'm not looking to create two seperate buttons, rather I would
prefer to have a single button and change the drawable every time the
button is clicked.

On Dec 10, 5:50 am, H m...@howardb.com wrote:
 I think I tried using the same setCompundDrawables... method but it
 didn't work for me either. Here's how I've got two different buttons in
 my xml (which you should be able to convert into java easily). The
 first is a button with an icon to the left and text in the button as
 well, the other button just has an icon on it only.

 Button android:drawableLeft=@drawable/arrow_up android:text=up
 android:id=@+id/headerButtonUp
 android:layout_gravity=left|center_vertical
 android:onClick=viewClickButtonUpAFolder
 android:layout_width=wrap_content
 android:layout_height=wrap_content /

 ImageButton android:src=@drawable/house
 android:id=@+id/headerButtonHome
 android:gravity=center_horizontal|center_vertical
 android:minWidth=50dip
 android:layout_gravity=right|center_vertical
 android:onClick=viewClickButtonHome
 android:layout_width=wrap_content
 android:layout_height=wrap_content /

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Problems changing the drawable on a Button

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 10:19 AM, neuromit stuart.lay...@gmail.com wrote:

 I would prefer to have a single button and change the drawable every time
 the button is clicked.


Deja Vu
http://developer.android.com/reference/android/graphics/drawable/StateListDrawable.html

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

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

[android-developers] MediaPlayer is Hanging in reset call

2010-12-10 Thread John
VideoPlayerView = new VideoView(this);
VideoPlayerView.setOnPreparedListener(VideoPrepared);
VideoPlayerView.setOnCompletionListener(VideoFinished);
VideoPlayerView.setOnErrorListener(VideoError);

String VideoResourcePath =
getResources().getResourceName(R.raw.myVideo);
VideoResourcePath = VideoResourcePath.replace(':', '/');
VideoPlayerView.setVideoPath(android.resource:// +
VideoResourcePath);

public boolean onError(MediaPlayer mp, int what, int extra) {
FailTimer.cancel();
finish();
return true;
}

Hi,
  I am getting a hang in a MediaPlayer when there is an error.

  I have a separate Activity that I launch to play the MediaPlayer in
full screen mode. The relevant code from onCreate is posted above.

  I have set a Timer to time out in 15 seconds, so that if the video
fails to play the activity will exit. However, an error happens, so
onError is called, and the debugger shows me that I am hung in the
MediaPlayer.release() / MediaPlayer.reset() call.

  I'm not so interested in discovering why the error happens, as the
phone I am testing on seems to have issues with running videos. But I
do want to figure out why the MediaPlayer is hanging.

Any help?

Thanks,
John

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] HeaderView in ListView causing ClassCastException

2010-12-10 Thread bobetko
I have added a view to the header of my ListView by following way:

ListView lv = (ListView)getListView();
View TopSearch =  (View) View.inflate(this, R.layout.search,
null);
lv.addHeaderView(TopSearch, null, false);

And everything is fine until I make changes to data adapter and then
try to execute:

   adapter.notifyDataSetChanged();

This always crashes my application giving me following error:

java.lang.ClassCastException: android.widget.HeaderViewListAdapter

If I don't add header view to my list view, then everything works fine
with no errors
Any suggestions?

Thanks.

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


Re: [android-developers] Detecting the result of the enter key

2010-12-10 Thread Brill Pappin
Success!


I was able to determine if I was in the SMS app and manually sent the
shifted state, which allows the iuser to actually input a newline
instead of sending the SMS message.


- Brill Pappin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Edditing cache xml file

2010-12-10 Thread Serdel
Hello,

I am trying to write sth that is similar to a 'contact book'
functionality. And I am wondering how to store the information data on
the phone's hdd. The first thing that came to my mind is creating an
xml file for this: I can add following elements like that:

person number=01
nameJohn/name
lastnameSmith/lastname
addressSomething/address
/person

I can use SAX parser to read the file and get every information and
that would correspond great with my listview. However I am having one
problem - how to edit and xml file in Android? Off course I would like
to have a functionality of adding, deleting and editing single
contacts. It seems very dumb to load the whole xml file to the memory,
clean it  make some changes in the code and then create the xml file
again. I think java usually uses javax.xml.transform for that but
Android seems to be missing this. Does any one have any other
solutions?

Please respond.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Detecting the result of the enter key

2010-12-10 Thread Brill Pappin
Ahh, except that other editors that use the IME option
EditorInfo.TYPE_TEXT_VARIATION_SHORT_MESSAGE do not always work the
same way, so for instance, it he GTalk client the message gets sent
instead of adding a newline.
So, I think the real problem here is that the apps themselves take
liberties with how they handle the the enter key, creating
inconsistencies with for the user (and for people writing keyboards)


I'm going to leave the code in, but give the user the option to turn it
off and on. Those that really want it can use it, and those that don't
will have things work as expected.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] HeaderView in ListView causing ClassCastException

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 10:37 AM, bobetko bobe...@gmail.com wrote:

 Any suggestions?


Post the full stack trace?

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

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

Re: [android-developers] Edditing cache xml file

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 10:38 AM, Serdel adam.lichwierow...@gmail.comwrote:

 Does any one have any other solutions?


Use a database.

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

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

[android-developers] ArrayList example

2010-12-10 Thread abhishek
please can any one please send asimple arraylist example ??

not from apis please send it fast ,it is urgent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Detecting the result of the enter key

2010-12-10 Thread John
In my opinion the problem is the difficulty in programming for the
soft keyboard. What developers would like, is to be able to program
the soft keyboard as a nearly drop-in replacement for a hardware
keyboard. Instead, the handling for the soft keyboard is quite
different than a hardware keyboard. You can't capture keypresses like
you would expect.

I'm guessing that the differences in the base apps are not
intentional, but simply the result of people not understanding the
complicated system that is the IME. And that's not a problem with the
app developers.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Highlighting an icon in a Gallery widget

2010-12-10 Thread viktor
I propose to you use an animation.

On 10 Грд, 18:15, FractalBob ruom...@gmail.com wrote:
 Simple and elegant; thanks, TreKing.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] ArrayList example

2010-12-10 Thread Kumar Bibek
This is not the right place to ask this. Do a simple Google search, and you
will find loads of them. Sorry.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Fri, Dec 10, 2010 at 10:55 PM, abhishek abhishek.patil.1...@gmail.comwrote:

 please can any one please send asimple arraylist example ??

 not from apis please send it fast ,it is urgent

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

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

Re: [android-developers] problem in displaying the google maps

2010-12-10 Thread Rahul Garg
yeah Mark is right. Check whether there is connectivity available or
not. Because I faced the same problem which sorted out after I put
proper proxy setting as my PC was behind Proxy.


--
Rahul

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: ArrayList example

2010-12-10 Thread abhishek


On Dec 10, 10:27 pm, Kumar Bibek coomar@gmail.com wrote:
 This is not the right place to ask this. Do a simple Google search, and you
 will find loads of them. Sorry.

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

 On Fri, Dec 10, 2010 at 10:55 PM, abhishek 
 abhishek.patil.1...@gmail.comwrote:



  please can any one please send asimple arraylist example ??

  not from apis please send it fast ,it is urgent

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

 - Show quoted text -



can we take google contacts in array list???
reply fast it is urgent!!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Edditing cache xml file

2010-12-10 Thread viktor

TreKing is right, database is the fastest of your cases. Or, if you
will use less objects you can use SharedPreferences.

On 10 Грд, 19:19, TreKing treking...@gmail.com wrote:
 On Fri, Dec 10, 2010 at 10:38 AM, Serdel adam.lichwierow...@gmail.comwrote:

  Does any one have any other solutions?

 Use a database.

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

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


Re: [android-developers] Eclipse: Export signed application log

2010-12-10 Thread George Moschovitis
No, I am using Ubuntu. Only a specific app fails, this isnt a general
problem. But I need some kind of log to debug this. Anyone has an
idea?

On Friday, December 10, 2010, H m...@howardb.com wrote:
 Are you using windows..? If so, check to see if there is any space in the 
 location of your workspace OR the temp folder. If either of these has a space 
 in the full path then the call to proguard will fail. either move the 
 workspace and your temp folder, or call the proguard manually or wait for 
 google to fix it. Grrr.



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

-- 
http://www.gmosx.com/blog

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: ArrayList example

2010-12-10 Thread Kumar Bibek
What exactly do you mean by that? Anything can be taken into an ArrayList.
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Fri, Dec 10, 2010 at 11:02 PM, abhishek abhishek.patil.1...@gmail.comwrote:



 On Dec 10, 10:27 pm, Kumar Bibek coomar@gmail.com wrote:
  This is not the right place to ask this. Do a simple Google search, and
 you
  will find loads of them. Sorry.
 
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
  On Fri, Dec 10, 2010 at 10:55 PM, abhishek 
 abhishek.patil.1...@gmail.comwrote:
 
 
 
   please can any one please send asimple arraylist example ??
 
   not from apis please send it fast ,it is urgent
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubs­cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en- Hide quoted
 text -
 
  - Show quoted text -



 can we take google contacts in array list???
 reply fast it is urgent!!

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


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

[android-developers] Re: HeaderView in ListView causing ClassCastException

2010-12-10 Thread bobetko
Here it is:

12-10 11:35:28.111: ERROR/AndroidRuntime(25364): FATAL EXCEPTION: main
12-10 11:35:28.111: ERROR/AndroidRuntime(25364):
java.lang.ClassCastException: android.widget.HeaderViewListAdapter
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
com.sanantonio.cvb.PropertyList$1.onTextChanged(PropertyList.java:130)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.widget.TextView.sendOnTextChanged(TextView.java:6131)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.widget.TextView.handleTextChanged(TextView.java:6172)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.widget.TextView$ChangeWatcher.onTextChanged(TextView.java:
6316)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.text.SpannableStringBuilder.sendTextChange(SpannableStringBuilder.java:
889)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:
502)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:
409)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:
28)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.view.inputmethod.BaseInputConnection.replaceText(BaseInputConnection.java:
583)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.view.inputmethod.BaseInputConnection.setComposingText(BaseInputConnection.java:
384)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:
292)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
com.android.internal.view.IInputConnectionWrapper
$MyHandler.handleMessage(IInputConnectionWrapper.java:73)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.os.Handler.dispatchMessage(Handler.java:99)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.os.Looper.loop(Looper.java:123)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
android.app.ActivityThread.main(ActivityThread.java:4627)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
java.lang.reflect.Method.invokeNative(Native Method)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
java.lang.reflect.Method.invoke(Method.java:521)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:858)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
12-10 11:35:28.111: ERROR/AndroidRuntime(25364): at
dalvik.system.NativeStart.main(Native Method)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: ArrayList example

2010-12-10 Thread Abhishek Patil
On Fri, Dec 10, 2010 at 11:05 PM, Kumar Bibek coomar@gmail.com wrote:

 What exactly do you mean by that? Anything can be taken into an ArrayList.

 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com




 On Fri, Dec 10, 2010 at 11:02 PM, abhishek 
 abhishek.patil.1...@gmail.comwrote:



 On Dec 10, 10:27 pm, Kumar Bibek coomar@gmail.com wrote:
  This is not the right place to ask this. Do a simple Google search, and
 you
  will find loads of them. Sorry.
 
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
  On Fri, Dec 10, 2010 at 10:55 PM, abhishek 
 abhishek.patil.1...@gmail.comwrote:
 
 
 
   please can any one please send asimple arraylist example ??
 
   not from apis please send it fast ,it is urgent
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubs­cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en- Hide quoted
 text -
 
  - Show quoted text -



 can we take google contacts in array list???
 reply fast it is urgent!!

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


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




i want to take name and mobile no   and store it before displaying it on
map!!
can this be done??how??please reply

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] HeaderView in ListView causing ClassCastException

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 10:37 AM, bobetko bobe...@gmail.com wrote:

 Any suggestions?


When do you set your adapter?

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

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

[android-developers] Re: How to control the width and height of Alert dialog.

2010-12-10 Thread viktor
Did you set layout after setting content view?

It works for me, but I extend the Dialog.

On 10 Грд, 14:39, sat sathvikm...@gmail.com wrote:
 AlertDialog.Builder builder = new AlertDialog.Builder(this);
             builder.setTitle(Title);
             builder.setItems(items, new
 DialogInterface.OnClickListener() {
                 public void onClick(DialogInterface dialog, int item)
 {
                     Toast.makeText(getApplicationContext(),
 items[item], Toast.LENGTH_SHORT).show();
                 }
             });
             AlertDialog alert = builder.create();

 I am using above code to show alert dialog , By default it fills the
 screen in width and wrap_content in height.
 How to control the width and height of default alert dialog ?
 I tried , alert.getWindow().setLayout(100,100); // It dint work.
 How to get the layout params on the alert window and set manually the
 width and height ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Eclipse: Export signed application log

2010-12-10 Thread H
I couldn't find any log file either.


I looked in the source for the adt BuildHelper (
http://android.git.kernel.org/?p=platform/sdk.git;a=blob_plain;f=eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/BuildHelper.java;hb=c4f085bac7258e3daccfe79e40fe16f306bfcbf9
 )
and worked out exactly what it was trying to do (see runProguard()
method) and then run it manually from the command line. That was how I
spotted the issue with the spaces in the filenames as proguard was
responding with appropriate error messages.


I don't think the eclipse builder can trap errors and report them back.

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

[android-developers] invoking of native application by using intents

2010-12-10 Thread Arjun
Greetings,

how to invoke application when user presses a link while he is
browsing.

For example: whenever user clicks on http://microsoft.com I want to
launch my application.

I have a intent filter with the following data scheme

data scheme:http android:host:microsoft.com /, this is not
redirecting to my applications, instead browser navigates to microsoft
homepage.

please suggest.

Thanks,
Arjun.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: HeaderView in ListView causing ClassCastException

2010-12-10 Thread bobetko
I set it in activity's OnCreate method with

myAdapter = new myBaseAdapter(this);
lv.setAdapter(myAdapter);

and myAdapter is declared as
private myBaseAdapter myAdapter;
and visible in all activity methods.

Then (maybe important)
I have text watcher, which onTextChanged execute:

final BaseAdapter adapter = (BaseAdapter)
lv.getAdapter();
((Filterable) adapter).getFilter().filter(s);  //
s is a search string

myBaseAdapter implements Filterable which execute
notifyDataSetChanged() when new filter is applied.

As I said before, the code doesn't produce any error if I comment 2
lines where I add header view.

Thanks,

On Dec 10, 11:42 am, TreKing treking...@gmail.com wrote:
 On Fri, Dec 10, 2010 at 10:37 AM, bobetko bobe...@gmail.com wrote:
  Any suggestions?

 When do you set your adapter?

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

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


Re: [android-developers] Re: HeaderView in ListView causing ClassCastException

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 12:01 PM, bobetko bobe...@gmail.com wrote:

 I set it in activity's OnCreate method with

myAdapter = new myBaseAdapter(this);
lv.setAdapter(myAdapter);


And where do you call setHeaderView in relation to this?

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

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

[android-developers] Re: HeaderView in ListView causing ClassCastException

2010-12-10 Thread John
This looks like the problem here. Is that your code? What is line 130?

On Dec 10, 10:37 am, bobetko bobe...@gmail.com wrote:
 com.sanantonio.cvb.PropertyList$1.onTextChanged(PropertyList.java:130)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Detecting the result of the enter key

2010-12-10 Thread Brill Pappin

I only partially agree with that. In this case I think the person who
wrote the SMS app wanted it to work in a certain way, and did the most
expedient thing, but still allowed a hard keyboard to enter the
newline using the shift method.

That's fine I guess and I can't really fault the developer (who of us
thinks of every angle?) but it also makes things inconsistent across
apps.

Essentially I'm saying that the app can tell me what the field is used
for, but if a particular keyboard implementation is designed to work
with that input in a certain way, then it needs to be allowed to (kind
of the point of an IM imo) so that it works consistently across the
system.

Now really this is a relative problem. People writing a keyboard want
to be able to do special things and people writing an app want a
keyboard to work the same way every time.
So I think the is a happy median or set of rules when modifying the
interaction between the two.

In this case the app told the ime I'm supposed to be a short
message... which is a fine... Only now the keyboard decides that for
short messages it will allow the user to enter newlines... Except that
the app now made assumptions about what the ime wanted that were not
correct (this first came up because the impl on another made opposite
assumptions).

I think. What is needed is a method for the app to tell the keyboard
it has certain actions it would like to happen for a key. Now I
noticed something I the ime API that might actually be for that, but I
haven't had time to investigate yet.

Btw- ime's do get hard keyboard events and can swallow them if they
like or not.

- brill


On Dec 10, 12:27 pm, John jo-d...@hotmail.com wrote:
 In my opinion the problem is the difficulty in programming for the
 soft keyboard. What developers would like, is to be able to program
 the soft keyboard as a nearly drop-in replacement for a hardware
 keyboard. Instead, the handling for the soft keyboard is quite
 different than a hardware keyboard. You can't capture keypresses like
 you would expect.

 I'm guessing that the differences in the base apps are not
 intentional, but simply the result of people not understanding the
 complicated system that is the IME. And that's not a problem with the
 app developers.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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: Authorizing Purchase problem

2010-12-10 Thread Pedro Duque
YuviDroid, Brill Pappin and TreKing

thank you for your answers. It was really really helpful. I was worrying to
have wasted all that develoment and testing time.

Meanwhile the app is not showing in some devices, but I'll send another
post.

Thank you!
Pedro Duque

On 10 December 2010 15:37, Brill Pappin br...@pappin.ca wrote:

 It's a policy limitation from Google Checkout (I just went through the same
 issue).
 If your like me, you want to be able to use your app so that you get a feel
 for what needs changing/fixing.

 What I ended up doing was to create a special flag that will disable the
 license check for private use.
 This also allows me to distribute a copy to my testers manually.

 - Brill

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


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

[android-developers] Re: HeaderView in ListView causing ClassCastException

2010-12-10 Thread bobetko
line 130 is this:

((Filterable) adapter).getFilter().filter(s);

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


[android-developers] Application unavailable in Android Market

2010-12-10 Thread Pedro Duque
Hi,

I've two applications in Android Market, Live Gallery
(com.portugalemgrande.LiveGallery) which is a free application and Live
Gallery Gold (com.portugalemgrande.LiveGalleryGold) which is the paid
version.

Although I can see both of them in my phone (in Portugal) if I use a similar
friend's phone the app doesn't appear. Shouldn't it be available on all
Android Markets? Is there anything we should do to make it available
worldwide?

Can you search for it in your market just to see if you can find this apps?
Please report here with country please.

Thank you!
Pedro Duque

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

  1   2   3   >