[android-developers] How to know if app uses C2DM?

2011-11-08 Thread Quiel
Do you have concrete step to know if an app is a C2DM. According to
c2dm website;

What Does the User See? When mobile device users install an
applications that include C2DM, they will get a permission from
Android Market informing them that the application includes C2DM. They
must approve the use of this feature to install the application.

This is the permission in the Manifest file of the C2DM app;

permission
android:name=com.example.jumpnote.android.permission.C2D_MESSAGE
android:protectionLevel=signature /
uses-permission
android:name=com.example.jumpnote.android.permission.C2D_MESSAGE /
uses-permission
android:name=com.google.android.c2dm.permission.RECEIVE /

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Customize Android Source Code to run multiple Application on same Screen.

2011-11-08 Thread Pawan Singh Rathore
Hi Hackborn,
You mean to say that they have modified the platform.
Was honeycom source ever be available to download?

Thanks  BR,
Pawan Rathore




On Tue, Nov 8, 2011 at 1:22 PM, Dianne Hackborn hack...@android.com wrote:

 On Mon, Nov 7, 2011 at 9:25 PM, Pawan Singh Rathore 
 pawan.s.rath...@gmail.com wrote:

 Have you gone through this link http://www.onskreen.com/cornerstone/,
 I don't think they modified Platform.


 Well you are wrong, because that is what they did.

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

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

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Incorrect output values with gluUnProject… why?

2011-11-08 Thread saex
I'm checking your code, but i still have the same problem with your
code żwich winZ value i have to pass to your function? how to get
that Z value?

Please answer :/

On Nov 8, 1:39 am, Streets Of Boston flyingdutc...@gmail.com wrote:
 I experienced similar issues with gluUnProject. I wrote my own
 implementation. I posted it on this board a few years 
 ago:https://groups.google.com/d/msg/android-developers/nSv1Pjp5jLY/wX9QEe...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Incorrect output values with gluUnProject… why?

2011-11-08 Thread saex
also, your function is giving me NaN allways :S

01-04 17:18:11.334: DEBUG/X(2887): X: NaN
01-04 17:18:11.334: DEBUG/X(2887): Y: NaN
01-04 17:18:11.334: DEBUG/X(2887): Z: NaN


On Nov 8, 1:39 am, Streets Of Boston flyingdutc...@gmail.com wrote:
 I experienced similar issues with gluUnProject. I wrote my own
 implementation. I posted it on this board a few years 
 ago:https://groups.google.com/d/msg/android-developers/nSv1Pjp5jLY/wX9QEe...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Process has died when ran an app instrumented with emma

2011-11-08 Thread Tony Lee
I am working on an android program. Everything goes well without emma
instrumented. But, after emma instruments the .class files, when I
run the program, I got the following error:

Process com.baidu.input (pid 16227) has died.

And I got the stack infomation by the logcat:

I/DEBUG   (   56): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   (   56): Build fingerprint: 'google/passion/passion/mahimahi:
2.2.1/FRG83/60505:user/release-keys'
I/DEBUG   (   56): pid: 16227, tid: 16227   com.baidu.input 
I/DEBUG   (   56): signal 11 (SIGSEGV), fault addr 46b14458
I/DEBUG   (   56):  r0 449c5900  r1 0045  r2   r3 0004
I/DEBUG   (   56):  r4 46b14454  r5 4186b450  r6 bebbb5c0  r7 0601062d
I/DEBUG   (   56):  r8 0001  r9 46b1  10 ccc8  fp bebbb868
I/DEBUG   (   56):  ip 00241688  sp bebbb578  lr   pc
46df3468  cpsr 8030
I/DEBUG   (   56):  d0  6472656767756265  d1  428a4274
I/DEBUG   (   56):  d2  0045  d3  42743f80
I/DEBUG   (   56):  d4  c3cf  d5  49a8
I/DEBUG   (   56):  d6  3f803f80  d7  41a8
I/DEBUG   (   56):  d8  428a41a8  d9  440e8000449b7570
I/DEBUG   (   56):  d10 439c0138  d11 421692a8
I/DEBUG   (   56):  d12   d13 
I/DEBUG   (   56):  d14   d15 
I/DEBUG   (   56):  d16 c04e  d17 c04e
I/DEBUG   (   56):  d18   d19 
I/DEBUG   (   56):  d20 3ff0  d21 8000
I/DEBUG   (   56):  d22   d23 00ff
I/DEBUG   (   56):  d24 00ff  d25 00ff
I/DEBUG   (   56):  d26 0001000100010001  d27 0001000100010001
I/DEBUG   (   56):  d28 0001000100010001  d29 3ff0
I/DEBUG   (   56):  d30   d31 3ff0
I/DEBUG   (   56):  scr 8012
I/DEBUG   (   56):
I/DEBUG   (   56):  #00  pc 46df3468  /dev/ashmem/dalvik-jit-
code-cache (deleted)
I/DEBUG   (   56):  #01  lr   unknown
I/DEBUG   (   56):
I/DEBUG   (   56): code around pc:
I/DEBUG   (   56): 46df3448 0201f04f 68acbf08 23042200 61aa2c00
I/DEBUG   (   56): 46df3458 d00c61eb 341068a7 d20842bb 8020f8d5
I/DEBUG   (   56): 46df3468 8003f804 dd092a00 480be004 4809e000
I/DEBUG   (   56): 46df3478 47886df1 47806d70 46b1445a 47806d70
I/DEBUG   (   56): 46df3488 46b144d6 0002 0024 41aa7d14
I/DEBUG   (   56):
I/DEBUG   (   56): code around lr:
I/DEBUG   (   56):
I/DEBUG   (   56): stack:
I/DEBUG   (   56): bebbb538  
I/DEBUG   (   56): bebbb53c  808452e7  /system/lib/libdvm.so
I/DEBUG   (   56): bebbb540  4186b40c
I/DEBUG   (   56): bebbb544  4278db5e  /system/framework/
framework.odex
I/DEBUG   (   56): bebbb548  ad351689  /system/lib/
libandroid_runtime.so
I/DEBUG   (   56): bebbb54c  bebbb5c8  [stack]
I/DEBUG   (   56): bebbb550  ad3510dd  /system/lib/
libandroid_runtime.so
I/DEBUG   (   56): bebbb554  4186b40c
I/DEBUG   (   56): bebbb558  0001
I/DEBUG   (   56): bebbb55c  bebbb5c8  [stack]
I/DEBUG   (   56): bebbb560  
I/DEBUG   (   56): bebbb564  4255a8e0  /system/framework/
framework.odex
I/DEBUG   (   56): bebbb568  46b1  /data/dalvik-cache/
data@a...@com.baidu.input-2.apk@classes.dex
I/DEBUG   (   56): bebbb56c  4186b450
I/DEBUG   (   56): bebbb570  df002777
I/DEBUG   (   56): bebbb574  e3a070ad
I/DEBUG   (   56): #00 bebbb578  3f80
I/DEBUG   (   56): bebbb57c  bebbb5c0  [stack]
I/DEBUG   (   56): bebbb580  0024d690  [heap]
I/DEBUG   (   56): bebbb584  ccd0  [heap]
I/DEBUG   (   56): bebbb588  00035fa8  [heap]
I/DEBUG   (   56): bebbb58c  039c
I/DEBUG   (   56): bebbb590  808a12e0  /system/lib/libdvm.so
I/DEBUG   (   56): bebbb594  808a5ed8  /system/lib/libdvm.so
I/DEBUG   (   56): bebbb598  bebbb868  [stack]
I/DEBUG   (   56): bebbb59c  80822758  /system/lib/libdvm.so
I/DEBUG   (   56): bebbb5a0  ccc8  [heap]
I/DEBUG   (   56): bebbb5a4  bebbb5c0  [stack]
I/DEBUG   (   56): bebbb5a8  808226dc  /system/lib/libdvm.so
I/DEBUG   (   56): bebbb5ac  
I/DEBUG   (   56): bebbb5b0  039c
I/DEBUG   (   56): bebbb5b4  808215f8  /system/lib/libdvm.so
I/DEBUG   (   56): bebbb5b8  00056000  [heap]
I/DEBUG   (   56): bebbb5bc  bebbb5bc  [stack]

Wish helps! :(
Tony

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Receive implicit intent of view downloads

2011-11-08 Thread kapnkore
I have my own activity to show download folder.When user press view
downloads from browser it opens download manager activity so i want to open
mine.
So what intent filter i need to add in my activity to listen intents of
download manager

Intent intent = new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS);

thank you

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 while updating UI from non-ui thread?

2011-11-08 Thread Hitendrasinh Gohil
Hi,

I am updating my UI from background thread.

If i go to other activity while the request has already been sent to
server then it creates problem for me.

Activity1 and Activity2 are there.

I am on activity1  and it refreshes every 10sec.now suppose the
request has been sent to server but didnt  get response in between i
just moved to activity2 and finishing activity1.
So the background thread try to update the UI of an activity that has
already finished.

I can set boolean flag for it.But apart from this patch is there any
good idea to prevent this.


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


Re: [android-developers] Fragments

2011-11-08 Thread Pawan Singh Rathore
Ok I understood, But can you please give me some direction from where can I
start.
We have our own hardware. So I can change work on platform level also.
But don't know  that from which part I should start. I have also posted
this question on android-porting
group, But no luck yet.

Thanks  BR,
Pawan Rathore




On Tue, Nov 8, 2011 at 1:21 PM, Dianne Hackborn hack...@android.com wrote:

 You can't.  That is not what fragments are for.  And please stop posting
 that link.  That is someone's hack on Android to add features that are not
 in the current platform, so not a topic for discussion on this list.

 On Mon, Nov 7, 2011 at 9:41 PM, Pawan Singh Rathore 
 pawan.s.rath...@gmail.com wrote:

 Hi All,
 I want to know that, how can we launch any app present in the device
 inside a fragment.
 For better idea about question you can check out this 
 linkhttp://www.onskreen.com/cornerstone/
 .

 Hope anyone can help me in figure out this situation, and can give me
 some directions.

 Thanks  BR,
 Pawan Rathore


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




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

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

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Listviewitem height does not update to wrap the content

2011-11-08 Thread yoav bbb
I have a list activity with listviewitem layout. The listviewitem
contains a textview, the porblem is that if the string in the textview
is too long - e.g. 3 lines, then the listviewitem height does not
change to wrap the content. I am using adapter for the listview.

The problem happens only when inserting new items using the
adapter!!

Here are the layout and the adapter:

public class RecipeInstructionsListViewAdapter extends
ArrayAdapterInstruction
{
private Context mContext;
private ArrayListInstruction mItems;
private LayoutInflater mInflater;

public RecipeInstructionsListViewAdapter(Context context, int
textViewResourceId,ArrayListInstruction items)
{
super(context,textViewResourceId,items);

mContext=context;
mItems=items;

 
mInflater=(LayoutInflater)mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

@Override
public View getView(int position,View convertView,ViewGroup
parent)
{
ViewHolder holder = new ViewHolder();

if(convertView == null)
{
convertView
=mInflater.inflate(R.layout.recipes_instruction_list_single_view_entry,
null);
}

  if( super.getItem(position) != null )
  {
  holder.instructionIndex   = (TextView)
convertView.findViewById( R.id.listUp_RecipeInstructionNumberTextBoxId );
  holder.instructionText= (TextView)
convertView.findViewById( R.id.listUp_RecipeInstructioTextTextBoxId );
  holder.instructionImage   =
(ImageView)convertView.findViewById( R.id.listUp_RecipeInstructionImageViewId );

  Typeface tf =
Typeface.createFromAsset(mContext.getAssets(), Eras_Bold.ttf);
  holder.instructionIndex.setTypeface(tf);
  holder.instructionIndex.setTextSize(30);
 
holder.instructionIndex.setTextColor( GlobalDefs.GetHeadlineColor() );
 
holder.instructionIndex.setText( 
Integer.toString(mItems.get(position).getIndex() ) );

  tf = Typeface.createFromAsset(mContext.getAssets(),
Arial.ttf);
  holder.instructionText.setTypeface(tf);
  holder.instructionText.setTextSize(14);
  holder.instructionText.setTextColor( Color.BLACK );
 
holder.instructionText.setText( mItems.get(position).getText() );

  String imageLocation =
mItems.get(position).GetInstructionImageLocation();
  if( imageLocation != null )
  {
 
holder.instructionImage.setImageURI( Uri.parse( imageLocation ) );
 
holder.instructionImage.setVisibility( View.VISIBLE );
  }
  else
  {
  holder.instructionImage.setVisibility( View.GONE );
  }

  convertView.setTag(holder);
  convertView.setLayoutParams( new
ListView.LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));
  }
  else
  {
  }

  return convertView;
}

@Override
public boolean isEnabled(int position)
{
return true;
}

static class ViewHolder
{
  TextView  instructionIndex;
  TextView  instructionText;
  ImageView instructionImage;
}
}
xml:

?xml version=1.0 encoding=utf-8?
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=horizontal
android:layout_width=fill_parent
android:layout_height=fill_parent
android:background=@drawable/list_up 

TextView
android:id=@+id/listUp_RecipeInstructionNumberTextBoxId
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentTop=true
android:layout_alignParentLeft=true
android:textSize=30dip /

ImageView
android:layout_height=19dp
android:layout_width=19dp
android:id=@+id/listUp_RecipeInstructionImageViewId
android:layout_alignParentTop=true
android:layout_alignParentRight=true
android:layout_marginRight=19dp /

TextView
android:id=@+id/listUp_RecipeInstructioTextTextBoxId
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentTop=true
android:layout_toRightOf=@+id/
listUp_RecipeInstructionNumberTextBoxId
android:layout_marginLeft=15dp
android:textSize=14dip /

/LinearLayout

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] pppd chat program failed on android

2011-11-08 Thread androx
Hi,
I am running pppd  chat program with following script for mts usb
modem,

pppd debug modem crtscts /dev/ttyUSB0 9600 asyncmap 0 noauth
noipdefault 0.0.0.0:0.0.0.0 netmask 255.255.255.0 defaultroute connect
'chat -v   ATZ OK ATI OK  ATQ0 V1 E1 S0=0 C1 D2
+FCLASS=0 OK AT+CGDCONT=1,IP,inter...@internet.mtsindia.in
OK ATDT#777 CONNECT'

But it failes with chat script failed error.
Looking for help.
Thnx in advanced.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Customize Android Source Code to run multiple Application on same Screen.

2011-11-08 Thread Francisco Dalla Rosa soares
That means they have a partnership with google or some company who has a
partnership with google, who gave them access to the source code.

2011/11/8 Pawan Singh Rathore pawan.s.rath...@gmail.com

 Hi Hackborn,
 You mean to say that they have modified the platform.
 Was honeycom source ever be available to download?

 Thanks  BR,
 Pawan Rathore




 On Tue, Nov 8, 2011 at 1:22 PM, Dianne Hackborn hack...@android.comwrote:

 On Mon, Nov 7, 2011 at 9:25 PM, Pawan Singh Rathore 
 pawan.s.rath...@gmail.com wrote:

 Have you gone through this link http://www.onskreen.com/cornerstone/,
 I don't think they modified Platform.


 Well you are wrong, because that is what they did.

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

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

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


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




-- 
株式会社アルゴ ARGO Inc.
〒130-0012
東京都墨田区太平3-11-10
NTKオオノビル8階

ソアレス フランシスコ ( Soares Francisco )
Mail : soa...@argo.bz HP : http://www.argo.bz/
TEL:03-5619-4511 FAX:03-5619-4512

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

2011-11-08 Thread kapnkore
I want to listen to the intent
 android.intent.action.VIEW_DOWNLOADS
Which basically opens the all downloads when we press view downloads from
browser.

but i want to open my activity how should i implement the intent filter for
this?

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

[android-developers] Marge to listview when after one list finished

2011-11-08 Thread Naveen
Hello Sir,


I have a two listview one is lv1 and second is lv2 ,

want to load listview2 data after listview1 loaded ,

Please help me

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


[android-developers] Marge to listview when after one list finished

2011-11-08 Thread Naveen
Hello Sir,


I have a two listview one is lv1 and second is lv2 ,

want to load listview2 data after listview1 loaded ,

Please help me

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


[android-developers] Re: Marge to listview when after one list finished

2011-11-08 Thread skink


On Nov 8, 11:39 am, Naveen kumarnaveen.si...@gmail.com wrote:
 Hello Sir,

 I have a two listview one is lv1 and second is lv2 ,

 want to load listview2 data after listview1 loaded ,

 Please help me

just create an adaptee that merges lv1's and lv2's adapters

pskink

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


Re: [android-developers] Re: Marge to listview when after one list finished

2011-11-08 Thread NaveenShrivastva
How to manage here adapter android, i am trying for long time when i
am fixing listview1, and listview2 height then it's work fine, but
here i want to when one list loaded then after that this list2 load.



On Tue, Nov 8, 2011 at 4:18 PM, skink psk...@gmail.com wrote:


 On Nov 8, 11:39 am, Naveen kumarnaveen.si...@gmail.com wrote:
 Hello Sir,

 I have a two listview one is lv1 and second is lv2 ,

 want to load listview2 data after listview1 loaded ,

 Please help me

 just create an adaptee that merges lv1's and lv2's adapters

 pskink

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 do i implement web services application in Android?

2011-11-08 Thread venugopal reddy
Hi friends,

How do i implement web services application in Android?

Pls Help me

Thnks 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: Marge to listview when after one list finished

2011-11-08 Thread skink


On Nov 8, 11:57 am, NaveenShrivastva kumarnaveen.si...@gmail.com
wrote:
 How to manage here adapter android, i am trying for long time when i
 am fixing listview1, and listview2 height then it's work fine, but
 here i want to when one list loaded then after that this list2 load.



 On Tue, Nov 8, 2011 at 4:18 PM, skink psk...@gmail.com wrote:

  On Nov 8, 11:39 am, Naveen kumarnaveen.si...@gmail.com wrote:
  Hello Sir,

  I have a two listview one is lv1 and second is lv2 ,

  want to load listview2 data after listview1 loaded ,

  Please help me

  just create an adaptee that merges lv1's and lv2's adapters

  pskink

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

extend BaseAdapter

http://developer.android.com/reference/android/widget/BaseAdapter.html

pskink

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


[android-developers] checkbox checked in listview

2011-11-08 Thread vani reddy
Hi,

I have created a custom listview of text and checkbox.
When i click on a particular checkbox the other checkboxes in the rows also
gets  checked. How to avoid this??

-- 
Regards,
Vani Reddy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Error in installing dynamically downloaded apk from custom android application programmatically

2011-11-08 Thread chamith weerasinghe
Hi,

onna mama reply kala.

Chamith.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get all media info(metadata) of video source??

2011-11-08 Thread ranjit R
hi i need to get media info of all video source .i used
mediastore.video.videocolumns to get some media info but not all able
to get all meta data information like reolution bitrate duration.i
refered data/data/com.android.providers.media/databases to check
media  metainfo but not all information is loaded in databases ..
Is there any other file from where i can extract all metadata
information of video.??..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Directing user to webpage, then back to app

2011-11-08 Thread Neilz
Ok, I have a related, but unrelated, question about this! More about
managing Activities and Intents, but within the above scenario.

Let's say my app has started ActivityA, ActivityB, and ActivityC. This
last activity opens the browser, which does its stuff until the user
clicks the link (discussed above) which returns the user to my app,
but in the case a new ActivityD.

The small issue I have here is that the browser activity remains in
the stack. Ideally I want it finished somehow. Even if I go from
ActivityD back to ActivityC (setting
Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP), the browser activity is still
next in line. Once I've returned to C, I want to be able to continue
as if the browser had never opened, back to B and then A etc.

Can this be achieved?

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

2011-11-08 Thread Júlio Cesar Bueno Cotta
Dianne, thank you very much!

2011/11/8 Dianne Hackborn hack...@android.com

 If you are closing the cursor yourself, you really shouldn't be having the
 framework manage the cursor at all.  I mean...  the point of having the
 framework manage the cursor is for it to close it (and otherwise manage it)
 for you.  If you are then going to try to close it yourself, you then get
 to fight with the framework about who owns it.

 Also, loaders are not tied to content providers.  If you have something
 else to load, you can make your own subclass of AsyncTaskLoader.


That said, the framework is really oriented around accessing data through
 content providers.  I think you'll find it simpler to just go with that
 rather than having to build up the various conveniences it already provides
 for them.


 2011/11/7 Júlio Cesar Bueno Cotta juliocbco...@gmail.com

 Can someone try to help me please? I really preciate if it happen.
 I am stuck with the Android documentation.
 Should I convert all my SQLite methods to use Content Providers?
 Thanks in advance.


 2011/11/5 Júlio Cesar Bueno Cotta juliocbco...@gmail.com

 Hi people,
 I think I need some help here.
 I did some search in the group and found this few 
 topicshttps://groups.google.com/forum/#%21searchin/android-developers/startManagingCursor$20deprecatedabout
  my questions, so sorry if I am being silly.

 First, When should I close my Cursors? I always close them in the
 onPause method of an Activity (with the code bellow), and due a HoneyComb
 issue before open the Cursor I check if it's not null and opened to
 avoid the error described 
 herehttps://groups.google.com/forum/#%21searchin/android-developers/startManagingCursor$20deprecated/android-developers/BlgTO-yQHX4/whQZ345ITb0J
 :

 protected void onResume () {
if(cursor != null  !cursor.isClosed()){
   stopManagingCursor(cursor);
   cursor.close();
}
cursor = getCursorFromMySQLiteDataBase();
startManagingCursor(cursor);

//use cursor to fill a ListView ou Spinner
 }

 protected void onPause () {

   if(cursor != null  !cursor.isClosed()){
   stopManagingCursor(cursor);
cursor.close();
  }
 }

 }

 Stop the cursor in onPause method seems to be a good thing because, when
 I call another Activity from this, the father Activity is paused, right? I
 also because when I close the app, onPause is also performed, right again?

 I know the startManagingCursor and StopManagingCursor is deprecated
 (this 
 pagehttp://developer.android.com/reference/android/app/Activity.html#startManagingCursor%28android.database.Cursor%29says
  it):

 Use the new 
 CursorLoaderhttp://developer.android.com/reference/android/content/CursorLoader.htmlclass
  with
 LoaderManagerhttp://developer.android.com/reference/android/app/LoaderManager.htmlinstead;
  this is also available on older platforms through the Android
 compatibility package. 

 But CursorLoader and LoaderManager works just with ContentProviders,
 right? That I am doing (above code) it's a bad thing? I need to get a away
 to change all my databases methods to use only ContentProviders?

 The documentation is not very clear about it. 
 Herehttp://developer.android.com/reference/android/content/ContentProvider.htmlsay:

 If you don't need to share data amongst multiple applications you can
 use a database directly via 
 SQLiteDatabasehttp://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html.
 

 but how to keep managing my Cursors from SQLiteDatabase without use
 [start,stop]ManagingCursor (since it's deprecated and probably soon it will
 not be there)?

 Well, I made a lot of questions in this topic, I don't want to mess
 around, I am just lost in those questions.

 Sorry again if I am being not clear enough about, I tried to, English is
 not my first lang.
 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




 --
  Júlio Cesar Bueno Cotta
 Bacharel em Ciência da Computação pela UFV
 Mestrando em Ciência da Computação pela UFABC

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




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

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

Re: [android-developers] Re: Directing user to webpage, then back to app

2011-11-08 Thread Mark Murphy
On Tue, Nov 8, 2011 at 8:00 AM, Neilz neilhorn...@gmail.com wrote:
 Ok, I have a related, but unrelated, question about this! More about
 managing Activities and Intents, but within the above scenario.

 Let's say my app has started ActivityA, ActivityB, and ActivityC. This
 last activity opens the browser, which does its stuff until the user
 clicks the link (discussed above) which returns the user to my app,
 but in the case a new ActivityD.

 The small issue I have here is that the browser activity remains in
 the stack. Ideally I want it finished somehow. Even if I go from
 ActivityD back to ActivityC (setting
 Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP), the browser activity is still
 next in line. Once I've returned to C, I want to be able to continue
 as if the browser had never opened, back to B and then A etc.

 Can this be achieved?

Not that I am aware of. You have no right to get rid of the browser,
any more than the browser has the right to get rid of you.

If you need that level of control, you'll probably need to use a
WebView in your own activity rather than the browser. Or consolidate
your app such that there is simply one Activity ABCD where you are
handling your own back stack (e.g., using dynamic fragments), with an
Intent triggered by the browser that includes
FLAG_ACTIVITY_REORDER_TO_FRONT, so the existing ABCD instance is
reused and you get the Intent in onNewIntent().

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] How do i implement web services application in Android?

2011-11-08 Thread Júlio Cesar Bueno Cotta
You can try KSOUP2 for Android as client side.
http://code.google.com/p/ksoap2-android/
Google it and you will find a lot of tutorials.

Good Luck.

2011/11/8 venugopal reddy venugopal.re...@tspl.com

 Hi friends,

 How do i implement web services application in Android?

 Pls Help me

 Thnks 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




-- 
Júlio Cesar Bueno Cotta
Bacharel em Ciência da Computação pela UFV
Mestrando em Ciência da Computação pela UFABC

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 while updating UI from non-ui thread?

2011-11-08 Thread Hitendrasinh Gohil
is there anyone?

On Tue, Nov 8, 2011 at 2:52 PM, Hitendrasinh Gohil hitendrasin...@gmail.com
 wrote:

 Hi,

 I am updating my UI from background thread.

 If i go to other activity while the request has already been sent to
 server then it creates problem for me.

 Activity1 and Activity2 are there.

 I am on activity1  and it refreshes every 10sec.now suppose the
 request has been sent to server but didnt  get response in between i
 just moved to activity2 and finishing activity1.
 So the background thread try to update the UI of an activity that has
 already finished.

 I can set boolean flag for it.But apart from this patch is there any
 good idea to prevent this.


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




-- 
regards,
Hitendrasinh Gohil

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

[android-developers]

2011-11-08 Thread kirti waykole
hello friends,
  I am designing new application in that application i want to connect
two android pad via WiFi.
Please guide me
can implement video calling with in network. i want to access another
device camera for video calling.

Please help me..

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: Directing user to webpage, then back to app

2011-11-08 Thread Neilz
Yes I rather thought that would be the case. Unfortunately I don't
think the 'intent' link works from within a WebView, so I'm stuck with
the browser, which would probably be the client's preference anyway.

I don't want to actually 'get rid' of the browser as such, rather just
move it to the other end of the stack. I assume you can't get hold of
the stack and manipulate it like a pack of cards?!

On Nov 8, 1:09 pm, Mark Murphy mmur...@commonsware.com wrote:
ved?

 Not that I am aware of. You have no right to get rid of the browser,
 any more than the browser has the right to get rid of you.

 If you need that level of control, you'll probably need to use a
 WebView in your own activity rather than the browser. Or consolidate
 your app such that there is simply one Activity ABCD where you are
 handling your own back stack (e.g., using dynamic fragments), with an
 Intent triggered by the browser that includes
 FLAG_ACTIVITY_REORDER_TO_FRONT, so the existing ABCD instance is
 reused and you get the Intent in onNewIntent().

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

 _Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] Audio Transmission over Bluetooth.

2011-11-08 Thread Aditya Singal
Hi,
I wish to know how Audio data is transmitted over Bluetooth channel.
What I mean to ask is, if I have a stream of bytes of audio data, what
kind of conversion or encoding is required before transmission.
Aditya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 while updating UI from non-ui thread?

2011-11-08 Thread TreKing
On Tue, Nov 8, 2011 at 3:22 AM, Hitendrasinh Gohil hitendrasin...@gmail.com
 wrote:

 I can set boolean flag for it.But apart from this patch is there any good
 idea to prevent this.


Stop the background thread or preferably cancel the AsyncTask that's
running.

-
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: Android and WinXP: look for some tips

2011-11-08 Thread SL@maxis



Customers will have to start usb debug mode to get the connection to
work.
But how can a socket connection via usb cable without usb debugging
mode be established?



Interesting question, but I don't know. But since someone points to DDMS  
in answering my first post, I post further to ask.


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Directing user to webpage, then back to app

2011-11-08 Thread Mark Murphy
On Tue, Nov 8, 2011 at 8:58 AM, Neilz neilhorn...@gmail.com wrote:
 Yes I rather thought that would be the case. Unfortunately I don't
 think the 'intent' link works from within a WebView, so I'm stuck with
 the browser, which would probably be the client's preference anyway.

Well, if you're using WebView, you wouldn't need the 'intent' link.
Use any link, and attach a WebViewClient to the WebView, overriding
shouldOverrideUrlLoading(), routing some stuff back to the WebView and
some stuff to your app proper.

 I don't want to actually 'get rid' of the browser as such, rather just
 move it to the other end of the stack. I assume you can't get hold of
 the stack and manipulate it like a pack of cards?!

Not really. You have minor control over the stack via Intent flags
included with startActivity() (e.g.,
FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP to nuke all else on
the back stack besides the activity you specify). You could also
attempt to manage this by overriding onBackPressed() and launching
activities yourself, but that can get messy quick.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] problem while updating UI from non-ui thread?

2011-11-08 Thread Hitendrasinh Gohil
Hey Treking,

please read my question carefully.

I am cancelling asynctask. It happens rarely.

Scenario:-
Request has been sent to server but the response has not came yet.
In between this time if i  do something that finishes my activity (i am
also cancelling my asynctask.) then the method is called and trying to
update the UI.
I have implemeted one interface to parse the json stuff.so every time i
make request the method is called.(No matter activity is running or not)

so please suggest me better way.







On Tue, Nov 8, 2011 at 7:30 PM, TreKing treking...@gmail.com wrote:

 On Tue, Nov 8, 2011 at 3:22 AM, Hitendrasinh Gohil 
 hitendrasin...@gmail.com wrote:

 I can set boolean flag for it.But apart from this patch is there any good
 idea to prevent this.


 Stop the background thread or preferably cancel the AsyncTask that's
 running.


 -
 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




-- 
regards,
Hitendrasinh Gohil

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Unix socket name

2011-11-08 Thread ch
hi,

I have 2 applications and i try co communicate between them with a
Unix socket!
But i do not know where to place the socket that both applications
have access to it (i use FILESYSTEM namespace).

Sorry for my bad English.

Andrei

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Incorrect output values with gluUnProject… why?

2011-11-08 Thread Streets Of Boston
In your 3D model, you have two Z values (for depth). Z-near (the 'location' 
of your screen) and Z-far (the furthest z-plane of your 3D model).
The user touches the screen and Xs, Ys.

Now call gluUnProject twice:
gluUnProject(xWin, ((float)screenH)-yWin, *zNear*, modelMatrix,  0, 
projMatrix, 0, mView, 0, *outputCoordsNear*, 0); 
gluUnProject(xWin, ((float)screenH)-yWin, *zFar*, modelMatrix,  0, 
projMatrix, 0, mView, 0, *outputCoordsFar*, 0); 

Now you have a *line *in your 3D model that starts at your screen 
'outputCoordsNear' and ends at 'outputCoordsFar'
Dust off your geometry-class' books and figure out how to move your Square 
so that (the center of) it will intersect with this line. 






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

[android-developers] List reload fails

2011-11-08 Thread dginzbourg
Hi,

I'm doing a salary calculator application, and i'm using ListView.
When i add my first task it shows up like i want it to, but when i go
for the second one, it does not appear on the screen. I'm using tabs,
so the left tab is to add a shift, and the middle one is to see the
list. Sometimes when i switch back (after adding the second shift and
not seeing it on the list) the program crashes. Here are the codes
that i'm using:


package com.dg.android.salarycalculator;

import java.util.ArrayList;

import com.dg.android.salarycalculator.adapter.ShiftListAdapter;
import com.dg.android.salarycalculator.custom.CustomDigitalClock;

import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.DigitalClock;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.widget.TextView;
import android.widget.TimePicker;

public class ViewSalaryActivity extends ListActivity {

private boolean switcher;
private Button timer;
private TextView cashView;
private SalaryApplication app;
private DigitalClock stopWatch;
private TimePicker startTimePicker;
private ShiftListAdapter adapter;

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

switcher = false;
app = (SalaryApplication) getApplication();

TabHost th = (TabHost) findViewById(R.id.th);

th.setup();

TabSpec ts = th.newTabSpec(stopperView);

ts.setContent(R.id.stopperView);
ts.setIndicator(Stopper);
th.addTab(ts);

ts = th.newTabSpec(manualInput);
ts.setContent(R.id.manualInput);
ts.setIndicator(Manual  Input);
th.addTab(ts);


ts = th.newTabSpec(settings);
ts.setContent(R.id.settings);
ts.setIndicator(Settings);
th.addTab(ts);

setUpButtons();

adapter = new ShiftListAdapter(app.getSalaries(), this);

setListAdapter(adapter);

}

@Override
protected void onResume()
{
 super.onResume();

 adapter.forceReload(app.getSalaries());
}

private void setUpButtons() {
stopWatch = (DigitalClock) findViewById(R.id.clock);
timer = (Button) findViewById(R.id.stopper);
cashView = (TextView) findViewById(R.id.cashView);

timer.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
if(!switcher)
{
app.StartTimer();
} else {
app.StopTimer();
ArrayListSalary tmp = 
app.getSalaries();
cashView.setText( ILS =  + 
tmp.get(tmp.size()-1).getCash());
}

switcher = !switcher;

if(switcher) {
timer.setText( End );
} else {
timer.setText(Start);
}
}
});
}



}




package com.dg.android.salarycalculator;


import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

import android.app.Application;

public class SalaryApplication extends Application {

private Stopper timer;
private double mainPayRate;
private ArrayListSalary salaries;
private ArrayListSpecialDay spcShift;

@Override
public void onCreate() {
super.onCreate();

timer = new Stopper();
salaries = new ArrayListSalary();
spcShift = new ArrayListSpecialDay(7);
mainPayRate = 20.7;

setUpSpcShift();
}

private void setUpSpcShift() {
Calendar friday = new GregorianCalendar(),
saturday = new GregorianCalendar(),
ntrl = new GregorianCalendar();

friday.setTime(new Date(0,0,0,20,0,0));
saturday.setTime(new Date(0,0,0,20,0,0));
ntrl.setTime(new Date(0,0,0,0,0,0));

SpecialDay tmp;

for(int i = 0; i  7; i++)
{
spcShift.add(new SpecialDay());
}

tmp = new SpecialDay(friday, ntrl, mainPayRate);

spcShift.set(5, tmp);

tmp = new SpecialDay(ntrl, saturday, mainPayRate);

spcShift.set(6, tmp);

}

public void StartTimer() {

[android-developers] Bitmaps, i am doing something wrong (NDK + alpha) but what?

2011-11-08 Thread Willy Gardiol
Hi guys! I come from the Qt world and i am porting an application to 
Android. I am bit confused, i am banging my head for a few days now on 
something that must be so trivial that i cannot find why it's not working.

Some background: i have a C++ engine which i use trough NDK and JNI. This 
engine creates some bitmaps and passes them to the Java side, the Java side 
must display them on a View and let the user interact with them (drag and 
such).

The engine works properly, because i use it under Qt with full success. 
This is the workflow:

1- Java loads a big Bitmap from a custom data file (the C++ engine expects 
it to be in ARGB format, but it's compressed JPG data)

Bitmap.Config fmt = Bitmap.Config.ARGB_;
Bitmap bitmap = BitmapFactory.decodeByteArray(buffer, 0, 
size).copy( fmt , false);

2- initialize the C++ engine passing the bitmap. The C++ engine breaks 
the bitmap in smaller tiles. For tile it builds a rather complex alpha mask 
and stores it into the first byte of the bitmap (the a byte). This alpha 
mask only uses two values: 0xFF for opaque and 0x00 for transparent.

init_C_engine( this.fullImage );

3- The Java side then allocates all the tiles bitmaps, i do in two steps 
because before init i dont know which size will the tiles be. The engine 
will populate the tile_width and tile_height arrays:

Bitmap.Config fmt = Bitmap.Config.ARGB_;
for (int t = 0; t  this.puzzle_size; t++ ){
tile_data[ t ] = Bitmap.createBitmap(  tile_width[t], 
tile_height[t],   
fmt);

4- Last step,inside the C++ engine, all the tiles bitmaps are filled:

for ( int n = 0; n  nBitmaps; n++ )
{
jobject bitmap = env-GetObjectArrayElement( bitmaps, n );
AndroidBitmap_getInfo(env, bitmap, info);
AndroidBitmap_lockPixels(env, bitmap, reinterpret_castvoid 
**(pixels));
game-getTileBitmap( n, (unsigned char*)pixels );
AndroidBitmap_unlockPixels(env, bitmap);
env-SetObjectArrayElement( bitmaps, n, bitmap );
}
}

Now, in my custom View:

protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
canvas.drawColor(Color.BLACK);
for ( int t = 0; t  board.nTiles; t++ ){
canvas.drawBitmap( tile_data[tile], 
   tile_x[tile],
   tile_y[tile], paint);
}
}

What i expect is that on my View i see my tiles with transparent areas. 
what i get instead is a weird behaviour so that on the black background i 
see the ENTIRE tile like the alpha bytes are all set to opaque, but when i 
move the tiles one of top of the other, the transparent areas get 
combined in some strange way, like colors are xored or multiplied in some 
way! When i move one tile on the other i can see the areas where the alpha 
bytes are set to transparent but colors gets mangled instead of being 
transparend!

Basically i expect that pixels having alpha set to 0 are drawn as 
transparent... i looked on internet but i could not find anything usefull 
to help me out

Does somebody have ideas? Anything will be appreciated!
thanks.

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

[android-developers] How to show the “add to home screen” popup window in customize home screen?

2011-11-08 Thread Saurabh Patel
Hi all

The Home sample in the android sdk doesn't implement the Add item, which
bring up the Add to home screen popup window, and Notifivcations item in
onCreateOptionsMenu and onOptionsItemSelected.

How to do that like the default home?

Thanks!

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

[android-developers] Need some help for right implementation of a method in KeyEvent.Callback interface

2011-11-08 Thread kerpie
Hi Everybody!

I was looking to get a message( Toast ) when a key is pressed multiple
times, I found the onKeyMultiple(int keyCode, int repeatCount,
KeyEvent event) method is able to do that, but it looks like I'm not
implementing it right, do you have an example about it? or did you do
this before?

I need to implement this to improve the interaction with my app, I
need the physical keys on my app customized according to the times
they are pressed.

Thanks in advance,

Kerry

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


[android-developers] System account.

2011-11-08 Thread xueting
I want to create a system account by
AccountManager.addAccountExplicitly(..);

What i want to know is how to prevent user from removing the account
from Settings-AccountsSync.

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


[android-developers] How to add extra window in customize home screen launcher

2011-11-08 Thread Saurabh Patel
Hi all

here i want to know about how to add extra window in customize home screen
launcher.

i want to add two and three extra window in my customize home screen.

So any body have idea. please share your ideas and tell me how to achieve
this things

Thanks to all

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SDK(Android 4.0) launch fail when GPU emulation is activated from the SDK config window

2011-11-08 Thread Ramaraj Bijur
Dear fellows

Please help me to launch the Android 4.0 emulator on MS-Windows-
XP(SP-3) OS.
As of now i am getting below error when GPU emulation  of the SDK is
enabled

Note:i coulde able to run the SDK sucessfully without GPU emulation
enabled

In conclose i am getting below error

netPipe_initTcp: Port is '22468'
Creating TCP OpenGLES pipe for GPU emulation!
development/tools/emulator/opengl/host/libs/Translator/GLES_CM/
GLEScmImp.cpp:glBindTexture:309 error
 0x500
development/tools/emulator/opengl/host/libs/Translator/GLES_CM/
GLEScmImp.cpp:glBindTexture:309 error
 0x500
development/tools/emulator/opengl/host/libs/Translator/GLES_CM/
GLEScmImp.cpp:glBindTexture:309 error
 0x500
development/tools/emulator/opengl/host/libs/Translator/GLES_CM/
GLEScmImp.cpp:glBindTexture:309 error
 0x500
client shutdown

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 this Google git website to see the code

2011-11-08 Thread Saurabh Patel
here i want use google git for see source code of different different things

but when i open this link i have two options like

Generate New Password Revoke Prior Passwords

So how can i proceed further for this.

when i generate new password so how can i use this credentials on google git

link is here http://android.git.kernel.org

second link 
link.http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=blob;f=src/com/android/launcher/Launcher.java#l1042

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SDL init failure, reason is: No available video device IS KILLING ME!

2011-11-08 Thread swami
SDL init failure, reason is: No available video device IS KILLING ME!

I have no clue why I am getting this when I try and launch the
emulator for a generic froyo build!

I tried all what I could find on the net, but in vain :(

1. I have no SDL_VIDEODRIVER or SDL_VIDEO env variables set, atleast
the env shows nothing. I still did an unset for both
2. I am running all this on a 32bit so I dont know if there is any 64
bit mix up
3. export DISPLAY=:0 did not help either
4. I am not able to make much out of strace emulator. I have
attached the output here if any can help with that

But there is one thing I did around the this happend. I wanted to do
some image conversion so in installed ffmpeg. I am not sure if this
messed up anything. I since uninstalled it.

Please Help!

Truely appeciate any suggestions.

Thanks,
Swami

P.S: Prior to this ERROR I was able to successfully launched the
emulator.

The strace emulator :
---


root@swami-OptiPlex-745:/home/swami/nfroyoBuild# emulator
No protocol specified
SDL init failure, reason is: No available video device
root@swami-OptiPlex-745:/home/swami/nfroyoBuild# strace emulator
execve(/home/swami/myTools/android-sdk-linux/tools/emulator,
[emulator], [/* 60 vars */]) = 0
brk(0)  = 0x9ecb000
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or
directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7753000
readlink(/proc/self/exe, /home/swami/myTools/android-sdk-linux/
tools/emulator, 4096) = 52
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or
directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/i686/sse2/
cmov/libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/i686/
sse2/cmov, 0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/i686/sse2/
libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/i686/
sse2, 0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/i686/cmov/
libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/i686/
cmov, 0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/i686/
libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/i686,
0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/sse2/cmov/
libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/sse2/
cmov, 0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/sse2/
libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/sse2,
0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/cmov/
libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/cmov,
0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/tls/
libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/tls,
0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/i686/sse2/
cmov/libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/i686/sse2/
cmov, 0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/i686/sse2/
libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/i686/sse2,
0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/i686/cmov/
libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/i686/cmov,
0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/i686/
libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/i686,
0xbfd8f89c) = -1 ENOENT (No such file or directory)
open(/home/swami/myTools/android-sdk-linux/tools/../lib/sse2/cmov/
libutil.so.1, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(/home/swami/myTools/android-sdk-linux/tools/../lib/sse2/cmov,
0xbfd8f89c) = -1 ENOENT (No such file or directory)

[android-developers] Re: startActivity() in monkeyrunnner doesn't work

2011-11-08 Thread pinknoiz
There's a further wrinkle, I discovered. I was able to launch my main 
Activity (the one with action=MAIN, category=LAUNCHER) but none of the 
other ones would activate. Once I altered the AndroidManifest.xml to 
include the intent filter with those settings, the other activities would 
launch. I don't know if just one of action/category is needed or if both 
tags are necessary.

(Don't get me started about Google's documentation...)

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

2011-11-08 Thread kouz
hi,

I try to create a php server to send message with c2dn.
The process is very slow, It take more than 10 min to send 5000
messages.

the code is very simple:
First I connect to google:
$this-ch = curl_init();
 $post_fields = accountType= . urlencode('GOOGLE') .
Email= . urlencode($username) . Passwd= . urlencode($password) .
source= . urlencode($source) . service= . urlencode($service);

curl_setopt($this-ch, CURLOPT_URL, https://www.google.com/
accounts/ClientLogin);
curl_setopt($this-ch, CURLOPT_HEADER, true);
curl_setopt($this-ch, CURLOPT_POST, true);
curl_setopt($this-ch, CURLOPT_POSTFIELDS, $post_fields);
curl_setopt($this-ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this-ch, CURLOPT_FRESH_CONNECT, true);

curl_setopt($this-ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($this-ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($this-ch, CURLOPT_TIMEOUT, 10);
curl_setopt($this-ch, CURLOPT_CONNECTTIMEOUT, 10);

$response = curl_exec($this-ch);


After login, I send the message to each users with the same
connection :

while($deviceToken){
$post_fields = xxcollapse_key=  .
data.message= . urlencode($message);
curl_setopt($this-ch, CURLOPT_URL, http://
android.apis.google.com/c2dm/send);
curl_setopt($this-ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($this-ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($this-ch, CURLOPT_POST, true);
curl_setopt($this-ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this-ch, CURLOPT_POSTFIELDS,
registration_id= . $deviceToken.$post_fields);
$result=curl_exec($this-ch);
}

Somebody know a better (faster) way to do the job?


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

2011-11-08 Thread New Developer

Hi All

I'm trying to expand the concept of the Finger Paint  Example

I have where I can draw with the finger and a line is left

I thought, if I just change the paint  Color  from 0x which is 
red  to

0x  which is Transparent   it would erase ?  No Joy

Any ideas  on how I can  set up the Paint (or whatever) to be able to 
act like an eraser

and erase parts of the Path that has just been drawn ?

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: problem while updating UI from non-ui thread?

2011-11-08 Thread Streets Of Boston
And what about when the user rotates his or her device...?

In short:
Create an object that your will return in your 
activity's onRetainNonConfigurationInstance method.
This object can be gotten in the onCreate, by 
calling getLastNonConfigurationInstance. Store this object in a 
field/reference of your activity.
If getLastNonConfigurationInstance returns null, create a brand-new 
instance of this object instead.

This object should be class that is static/global (i.e. it is not a 
non-static inner-class of your activity; if it were a non-static inner 
class, you will leak activity-references).
This object should hold a field/reference to your AsyncTask.
This object should hold a field/reference to your *current activity*: You 
set it in your activity's onCreate. You set it to 'null' in your activity's 
onDestroy.
In your AsyncTask's onPostExecute, you first get the value of the 
field/reference of the* current activity*. If this is 'null', you don't do 
anything, because the onDestroy has been called just before. If this is not 
null, then use the field/reference to update your current activity with the 
result of the AsyncTask.

Don't worry if Activity2 is on top of your Activity1 and Activity1 gets 
updated by the onPostExecute of the AsyncTask. That's fine if that happens. 
When you return from Activity2 back to Activity1, the screen will have been 
update properly.

If you really want to cancel the AsyncTask, do this in the onStop of your 
Activity1.


public class Activity1 extends Activity {
  ...
  private MyState myState;
  ...
 
  public void onCreate(Bundle savedInstanceState) {
...
...
myState = (MyState)getLastNonConfigurationInstance();
if (myState == null) {
myState = new MyState();
}
myState.currentActivity = this;
...
...
  }

  public void onDestroy() {
...
myState.currentActivity = null;
...
  }

  public void onStop() {
...
myState.myTask.cancel();
...
  }
  
  public Object onRetainNonConfigurationInstance() {
return myState;
  }
  
  private void updateWithSomeResult(...) { ... }

  private *static *class MyState {
Activity1 currentActivity;
MyAsyncTask myTask;
...

private class MyAsyncTask extends AsyncTask {
  ...
  protected void onPostExecute(...) {
if (currentActivity != null) { 
  currentActivity.updateWithSomeResult(...);
}
  }
}

  }

}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 and WinXP: look for some tips

2011-11-08 Thread SL@maxis



Customers will have to start usb debug mode to get the connection to
work.
But how can a socket connection via usb cable without usb debugging
mode be established?



I think there is a need to clarify since some insinuates there be some  
ulterior motives, that the programs I mentioned in my frist post are for  
my own use, ie not to be distributed.



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Display battery status of my application

2011-11-08 Thread Manikandan M
Hi All,

How to display battery usage of my app. In Settings-Application-
Battery Use it display the battery usage of some applications. How to
add my application over there?



Thanks in Advance
Mani.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Incorrect output values with gluUnProject… why?

2011-11-08 Thread saex
isn't exist a easiest way to do it...? i think i need a little help
with that algorithm

On Nov 8, 4:03 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 In your 3D model, you have two Z values (for depth). Z-near (the 'location'
 of your screen) and Z-far (the furthest z-plane of your 3D model).
 The user touches the screen and Xs, Ys.

 Now call gluUnProject twice:
 gluUnProject(xWin, ((float)screenH)-yWin, *zNear*, modelMatrix,  0,
 projMatrix, 0, mView, 0, *outputCoordsNear*, 0);
 gluUnProject(xWin, ((float)screenH)-yWin, *zFar*, modelMatrix,  0,
 projMatrix, 0, mView, 0, *outputCoordsFar*, 0);

 Now you have a *line *in your 3D model that starts at your screen
 'outputCoordsNear' and ends at 'outputCoordsFar'
 Dust off your geometry-class' books and figure out how to move your Square
 so that (the center of) it will intersect with this line.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Incorrect output values with gluUnProject… why?

2011-11-08 Thread Streets Of Boston
Nothing comes easy. :-)
Google it. Open up your geometry books. Do whatever is necessary to make it 
happen. The information is out there and you can learn it and apply it to 
your app.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] RegisterBroadcastReceiver in Manifest.xml

2011-11-08 Thread Priyank
Hi,
I am trying to register a callback when a get a call on my phone.
Here is what I am doing:

public class BroadcastActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}

public class Receiver1 extends BroadcastReceiver
{
public void onReceive(Context context,Intent intent)
{
System.out.println(this + :GOT-THE-INTENT);
//-emulator-doesn't-support-vibration-
Vibrator v =
(Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE);
v.vibrate(500);
}
}
}


This is my Manifest file:
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.BroadcastActivity
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

receiver
android:name=com.broadcast.BroadcastActivity.Receiver1
android:enabled=true android:exported=true
intent-filter
action 
android:name=android.intent.action.PHONE_STATE/action
/intent-filter
/receiver

/application

I am getting
Unable to instantiate receiver
com.broadcast.BroadcastActivity.Receiver1:
java.lang.ClassNotFoundException:
com.broadcast.BroadcastActivity.Receiver1 in loader
dalvik.system.PathClassLoader[/data/app/com.broadcast-2.apk] error.

I would like to receive a callback even when the application is not
open.

Thanks,
Priyank

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

2011-11-08 Thread Philipp Comans
Never mind, I found the solution in an older reply by Romain Guy: 
http://groups.google.com/group/android-developers/browse_thread/thread/d15edc816a0b436c/92ec68238acd1c62

You have to override either Activity.dispatchTouchEvent(MotionEvent) or 
ViewGroup.onInterceptTouchEvent(MotionEvent)
See: http://developer.android.com/guide/topics/ui/ui-events.html#EventHandlers 
for more information.



Am Montag, 7. November 2011 um 16:22 schrieb Philipp:

 Hi, I have a problem:
  
 I have a ViewGroup (LinearLayout) that holds one or more Fragments,
 each containing a WebView.
 I have a custom OnTouchListener for my ViewGroup that will react to
 special events like touches on the screen borders. If none of these
 special events is detected, the touch event should be passed to the
 WebView.
 The problem is that the WebView is the first element to get the touch
 event and there does not seem to be a way to delegate the touch event
 to the underlying View.
 How can I modify the touch hierarchy in a way that the ViewGroup
 receives the TouchEvent first and only if it doesn’t consume the event
 it is passed to the WebView?
  
 I made an example project to illustrate my problem at
 https://github.com/pcomans/WebViewTouchTest
  
 I have chosen to add two fragments containing a WebView in order to
 make clear that it is not enough to just override the
 setOnTouchListener of the WebView instead. I am interested in the
 absolute position of the touch. Sure I could probably calculate the
 absolute position from the relative position but this is not an
 elegant solution.
  
 I would really appreciate any help!
  
 Best,
  
 Philipp  


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 while updating UI from non-ui thread?

2011-11-08 Thread TreKing
On Tue, Nov 8, 2011 at 8:25 AM, Hitendrasinh Gohil hitendrasin...@gmail.com
 wrote:

 Hey Treking,

 please read my question carefully.

 I am cancelling asynctask.


I read your question. Unless I'm blind or illiterate (very possible!), your
original post has no mention of either AsyncTask or canceling anything. You
said you had a background thread and a boolean flag.

Scenario:-
 Request has been sent to server but the response has not came yet.
 In between this time if i  do something that finishes my activity (i am
 also cancelling my asynctask.) then the method is called and trying to
 update the UI.


You should not calling any methods or updating the UI if the AsyncTask has
been canceled.


 I have implemeted one interface to parse the json stuff.so every time i
 make request the method is called.(No matter activity is running or not)

 so please suggest me better way.


Cancel the AsyncTask - then actually check if it's canceled or not before
doing anything.

Also, everything Streets said.

-
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: System account.

2011-11-08 Thread Oli Wright
Why do you need to stop the user removing the account?  Sounds nefarious. 
 If you need an account to be set up then surely the apporach would be to 
verify whether one exists and, if necessary, offer to create a new one - 
whether one has existed before or not is completely irrelevant.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: RegisterBroadcastReceiver in Manifest.xml

2011-11-08 Thread Streets Of Boston
Then you'd have to do two things:

   - Make Receiver1 a static class: public *static *class Receiver1 extends 
   BroadcastReceiver
   If not, instances of Receiver1 cannot be instantiated without an 
   enclosing BroadcastActivity instance.
   - Change the name in your manifest to com.broadcast.BroadcastActivity*$*
   Receiver1 
   
   
I would put Receiver1 in its own java file, though... then you won't have 
to worry about the bullet-points mentioned above.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 4, R15, where is the navigation button?

2011-11-08 Thread sblantipodi
bump

On Nov 1, 3:17 pm, sblantipodi perini.dav...@dpsoftware.org wrote:
 Bumping the question until I'll get an answer.

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


[android-developers] Re: SDK 4, R15, where is the navigation button?

2011-11-08 Thread Kumar Bibek
What do you mean by the navigation button?

On Nov 8, 11:54 pm, sblantipodi perini.dav...@dpsoftware.org wrote:
 bump

 On Nov 1, 3:17 pm, sblantipodi perini.dav...@dpsoftware.org wrote:







  Bumping the question until I'll get an answer.

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


[android-developers] Re: RegisterBroadcastReceiver in Manifest.xml

2011-11-08 Thread Priyank
Thanks for the reply. The 2 changes you mentioned made it work.
But the problem now I am facing is that, I cannot call a method which
belongs to the main class(BroadcastActivity ) from onReceive() since
the Receiver1 class is static. Is there any way to deal with this.

The reason I can not put the Receiver1 class in a different java file
is that there are many UI changes I do when I receive the broadcast.

Thanks again.
Priyank

On Nov 8, 1:52 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 Then you'd have to do two things:

    - Make Receiver1 a static class: public *static *class Receiver1 extends
    BroadcastReceiver
    If not, instances of Receiver1 cannot be instantiated without an
    enclosing BroadcastActivity instance.
    - Change the name in your manifest to com.broadcast.BroadcastActivity*$*
    Receiver1

 I would put Receiver1 in its own java file, though... then you won't have
 to worry about the bullet-points mentioned above.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 this Google git website to see the code

2011-11-08 Thread s.rawat
if u have the link to the source code u can install git and issue

 git clone git.link.for.your.sourcecode. on the terminal


..pain is temporary.quitting lasts forever..



On Tue, Nov 8, 2011 at 12:43 PM, Saurabh Patel saurbh...@gmail.com wrote:

  here i want use google git for see source code of different different
 things

 but when i open this link i have two options like

 Generate New Password Revoke Prior Passwords

 So how can i proceed further for this.

 when i generate new password so how can i use this credentials on google
 git

 link is here http://android.git.kernel.org

 second link 
 link.http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=blob;f=src/com/android/launcher/Launcher.java#l1042

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

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

Re: [android-developers] Re: RegisterBroadcastReceiver in Manifest.xml

2011-11-08 Thread Mark Murphy
On Tue, Nov 8, 2011 at 2:45 PM, Priyank priyankvma...@gmail.com wrote:
 Thanks for the reply. The 2 changes you mentioned made it work.
 But the problem now I am facing is that, I cannot call a method which
 belongs to the main class(BroadcastActivity ) from onReceive() since
 the Receiver1 class is static. Is there any way to deal with this.

Not the way you're going about the problem.

 The reason I can not put the Receiver1 class in a different java file
 is that there are many UI changes I do when I receive the broadcast.

You will not be doing any changes to the UI when you receive the
broadcast. If you wanted to do that, you would not be using a
manifest-registered receiver. Use registerReceiver() in the activity
to register a BroadcastReceiver dynamically; that receiver can then
work with the activity to update the UI.

For example, here is an application that uses ACTION_BATTERY_CHANGED this way:

https://github.com/commonsguy/cw-advandroid/tree/master/SystemEvents/OnBattery

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

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

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


Re: [android-developers] Display battery status of my application

2011-11-08 Thread Mark Murphy
On Tue, Nov 8, 2011 at 10:43 AM, Manikandan M c2dmdevelo...@gmail.com wrote:
 How to display battery usage of my app. In Settings-Application-
Battery Use it display the battery usage of some applications. How to
 add my application over there?

That screen shows the top battery consumers. You don't want to appear
in that screen -- if you are on that screen, you are consuming too
much battery.

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

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

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


[android-developers] Re: RegisterBroadcastReceiver in Manifest.xml

2011-11-08 Thread Priyank
Hi,
I had tried initially by dynamically using registering the receivers
using the registerReceiver(). I get the callback when I the
application is in the foreground. The problem I faced was that, when I
exit the application, I never got a callback on the receiver when I
try to trigger it from my service class.
From my service, I call:

Intent intent=new Intent(Consts.INTENT_UPDATE);
this.sendBroadcast(intent);

My receiver in my Activity class looks like this:

private BroadcastReceiver updateReceiver=new BroadcastReceiver() {

@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
if(Consts.INTENT_UPDATE.equals(intent.getAction()))
{
update();
}
}
};

I do not unregister my receivers at onDestroy() and register during
onCreate().
Is there something I am missing.

Thanks,
Priyank


On Nov 8, 3:13 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Nov 8, 2011 at 2:45 PM, Priyank priyankvma...@gmail.com wrote:
  Thanks for the reply. The 2 changes you mentioned made it work.
  But the problem now I am facing is that, I cannot call a method which
  belongs to the main class(BroadcastActivity ) from onReceive() since
  the Receiver1 class is static. Is there any way to deal with this.

 Not the way you're going about the problem.

  The reason I can not put the Receiver1 class in a different java file
  is that there are many UI changes I do when I receive the broadcast.

 You will not be doing any changes to the UI when you receive the
 broadcast. If you wanted to do that, you would not be using a
 manifest-registered receiver. Use registerReceiver() in the activity
 to register a BroadcastReceiver dynamically; that receiver can then
 work with the activity to update the UI.

 For example, here is an application that uses ACTION_BATTERY_CHANGED this way:

 https://github.com/commonsguy/cw-advandroid/tree/master/SystemEvents/...

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

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

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


[android-developers] Understanding the lifecycle of ViewPager

2011-11-08 Thread Chris Stewart
I'm working on implementing ViewPager and I want to let the host activity
load the background data (from the Internet) instead of each fragment doing
an independent I/O request.  The reason why is because the same data is
being loaded into two fragments, with the only difference being a category.
 I have two instances of ViewPager in my app, where this scenario holds
true (two different types of data, but each being split by only a
category).  If I can let the host activity fetch the data in the
background, I'll be saving 2 API calls every time the app is used.

I want to let the ViewPager and it's fragments know when to update
themselves when the background load is finished so I can fetch the data
once and pass it down into the fragments.  However, I can't seem to find
any examples of this.  I've tried getting the fragments from the adapter
when the data load is complete, but I'm running into various
synchronization problems.  I've tried calling notifyDataSetChanged on the
adapter (subclass of FragmentPagerAdapter), but it doesn't appear to do
anything.

Another piece to this puzzle is that I'm using ViewPagerIndicator to get
the title effect seen in the Android Market and Google+ apps.  I've tried
not initializing the FragmentPagerAdapter, ViewPager,
and TitlePageIndicator until after the data load is complete, but I'm
seeing the TitlePageIndicator attempt to be drawn anyway and failing when
calculating the bounds since it hasn't been given a ViewPager instance just
yet.

Has anyone else tried to use the ViewPager is this scenario?  I think if I
found a nice outline of how the ViewPager's lifecycle works, I would have
better luck in figuring this workflow out.  Every example I can find lets
the fragments self contain everything, which I completely understand the
reasoning behind and will go that route if necessary but would love to cut
the required network I/O requests if possible.

--
Chris Stewart

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Re: Android and WinXP: look for some tips

2011-11-08 Thread Kostya Vasilyev

It is.

It enables not only debugging, but also other adb - based features, 
and does no harm.


If you need some of those features to support a PC-side application, 
just leave it on.


-- Kostya

09.11.2011 1:52, SL пишет:
I am just wondering whether it is appropriate to let the phone on 
debug-mode all the time (because my program is no longer debugging). 


--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SDK 4, R15, where is the navigation button?

2011-11-08 Thread Chris Stewart
I suspect you mean the menu button.  I believe, and could be very wrong,
but if you're using Android 4.0 and on a display of 720p or better (e.g.,
Galaxy Nexus), you won't see that button.

--
Chris Stewart
http://chriswstewart.com



On Tue, Nov 8, 2011 at 1:56 PM, Kumar Bibek coomar@gmail.com wrote:

 What do you mean by the navigation button?

 On Nov 8, 11:54 pm, sblantipodi perini.dav...@dpsoftware.org wrote:
  bump
 
  On Nov 1, 3:17 pm, sblantipodi perini.dav...@dpsoftware.org wrote:
 
 
 
 
 
 
 
   Bumping the question until I'll get an answer.

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


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

[android-developers] android statistics (android versions and their market share)

2011-11-08 Thread John Goche
Hello,

I wonder if anyone could tell me how long the latest version
of android (2.3.3) has been out. Where can I find a web page
with a pie chart of the relative number of phones which have
been produced for each android version?

Thanks a lot,

Many thanks,

John Goche

P.S. I am considering making my app available on lower
versions so as to increase sales but as of now I am unsure
about how much benefit I could reap from such an increase
in number of supported phones as I don't have the figures of
what's out there.

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


Re: [android-developers] android statistics (android versions and their market share)

2011-11-08 Thread Chris Stewart
http://developer.android.com/resources/dashboard/platform-versions.html

--
Chris Stewart
http://chriswstewart.com



On Tue, Nov 8, 2011 at 4:09 PM, John Goche johngoch...@googlemail.comwrote:

 Hello,

 I wonder if anyone could tell me how long the latest version
 of android (2.3.3) has been out. Where can I find a web page
 with a pie chart of the relative number of phones which have
 been produced for each android version?

 Thanks a lot,

 Many thanks,

 John Goche

 P.S. I am considering making my app available on lower
 versions so as to increase sales but as of now I am unsure
 about how much benefit I could reap from such an increase
 in number of supported phones as I don't have the figures of
 what's out there.

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

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

Re: [android-developers] android statistics (android versions and their market share)

2011-11-08 Thread Kostya Vasilyev

You might want to study platform highlights by version, as well:

http://developer.android.com/sdk/android-2.3.3.html

... the links for other versions are on the left.

Unless you need specific features that were introduced relatively 
recently, like NFC or VoIP, I'd go with 2.0 or aybe 2.2 as the 
minimum requirement.


( A side note on that version stats page posted by Chris: there are 
fewer devices running 3.* than 1.5+1.6 )


-- Kostya

09.11.2011 1:09, John Goche пишет:

Hello,

I wonder if anyone could tell me how long the latest version
of android (2.3.3) has been out. Where can I find a web page
with a pie chart of the relative number of phones which have
been produced for each android version?

Thanks a lot,

Many thanks,

John Goche

P.S. I am considering making my app available on lower
versions so as to increase sales but as of now I am unsure
about how much benefit I could reap from such an increase
in number of supported phones as I don't have the figures of
what's out there.



--
Kostya Vasilyev

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


[android-developers] Android with Blue tooth Printer

2011-11-08 Thread fthusa
I am trying to write simple programme to connect my bluetooth printer
and print a text
ex: simply My profile like wise ,

Please help me to do this

I have already connect with my bluetooth printer with android phone

please send me sample codes .


Thanks all,

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

2011-11-08 Thread Alexander Turda
I'm looking for a tester,and a person to help me add content to my
games.No knowledge in programming/design or anything required. I'm
also planning to make a team,to release a new game every 2 months(paid
game).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: C2DM Message fails

2011-11-08 Thread trebonius
I'm having the same problem. Multiple users report that after
upgrading their DroidX to Gingerbread, my app is no longer receiving
C2DM messages. I had them re-register, make sure they're logged into
GTalk, etc. The messages just aren't being delivered as far as i can
tell. I even had a user send me his logs, and there is no exception or
anything.

On Nov 2, 8:03 am, Manikandan M c2dmdevelo...@gmail.com wrote:
 Hi All,

 I usedc2dmto get messages for my application. it is working fine but
 in droid x i am unable to get messages.

 Registration is fine i got the registration id even i too got the
 valid response from thec2dmserver while sending message but  i am
 unable to get the message in the device this is happen only in droid
 x. other devices are fine.

 response from thec2dmserver after sending message :
 id=0:1319892812710374%3421e3b10030

 Please help me,

 Thanks in Advance,
 Mani

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Transfer medical images to galaxy tab(android)

2011-11-08 Thread inn
Hi everyone.
I need your help.
Anyway,i need to make android application for transfer from medical
images from ultrasound to my galaxy tab(7 inches)
The image maybe in DICOM format.
The application in my tablet will be used by specialist to view images
from ultrasound in long distance and real time.
But I don't know how to transfer the images from ultrasound machine to
my tablet?
Is there anyone could help me?;(

Kindly regards,
Inn.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Auto accept Bluetooth pairing request

2011-11-08 Thread monkeyscanfly
I've been thinking the same problem,
may be you can listen to ACTION_PAIRING_REQUEST from BluetoothAdapter,
and then setPin() in BluetoothDevice ?


On 9月22日, 下午11时42分, Ricky sc.richard.t...@gmail.com wrote:
 In the Android 2.3.3 BluetoothChat example with with
 createInsecureRfcommSocketToServiceRecord() API, users are still
 prompted to accept the pairing request. Even though no PIN code was
 presented.

 Is there a way to automate Bluetooth pairing request without user
 intervention? Or is this never possible due to security concerns?

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


[android-developers] using ZXING API in a application

2011-11-08 Thread melakamc
i need to use ZXING API in my own application without forwarding it to
the ZXING barcode scanning application. anyone could help me on that?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] change input method

2011-11-08 Thread Willy Estrada
hi people! I have a question I've been trying to find  a solution but
i cant , the question is I want to change the type of my default
keyboard for one i made, I do not know if anyone have any idea,  I was
trying to do that with an instance of InputMethodManager and there, I
got the process name and name of the class of service of the new
keyboard, but when i create an instance of InputMethodService and i
executed the method sendBinder to run the switchInputMethod (ID oF THE
KEYBOARD) I got an error q SecurityException despite than the manifest
had the permission,  if someone could get an idea

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


[android-developers] sqlite database

2011-11-08 Thread Narendra Singh Rathore
hi frnds, I actually want to show my database table in tabular form in
my avd. Is there any simple way to achieve that.
I am currently using single class for database (no sqliteDBHelper),
with the help of cursor object.

Cursor cur;
tv.setText(cur.getString(0)+  +cur.getString(1));  //tv
is textView here

sry if its a silly question
Any help will be 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] Android with Blue tooth Printer

2011-11-08 Thread fthusa
If some one code to print a text through  blue tooth printer please
send me code

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

2011-11-08 Thread bob
I'm converting an app from iPhone to android.  On iPhone, there's a UI
element called a UIActionSheet that slides up from the bottom.

Here's an example:

http://www.youtube.com/watch?v=tDHaQoApgxw

Anyone know what the Android counterpart is?

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] UIActionSheet Android counterpart

2011-11-08 Thread Kostya Vasilyev
Um, PopupWindow or just a view with animation...

--
Kostya Vasilyev
09.11.2011 1:55 пользователь bob b...@coolgroups.com написал:

 I'm converting an app from iPhone to android.  On iPhone, there's a UI
 element called a UIActionSheet that slides up from the bottom.

 Here's an example:

 http://www.youtube.com/watch?v=tDHaQoApgxw

 Anyone know what the Android counterpart is?

 Thanks.

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


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

Re: [android-developers] UIActionSheet Android counterpart

2011-11-08 Thread Miguel Morales
AlertDialogBuilder.

You're welcome.

On Tue, Nov 8, 2011 at 1:53 PM, bob b...@coolgroups.com wrote:

 I'm converting an app from iPhone to android.  On iPhone, there's a UI
 element called a UIActionSheet that slides up from the bottom.

 Here's an example:

 http://www.youtube.com/watch?v=tDHaQoApgxw

 Anyone know what the Android counterpart is?

 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




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

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

[android-developers] Re: SDK 4, R15, where is the navigation button?

2011-11-08 Thread sblantipodi
I mean the three button we see in ICS, the back, the home and the
recent.

On Nov 8, 10:08 pm, Chris Stewart cstewart...@gmail.com wrote:
 I suspect you mean the menu button.  I believe, and could be very wrong,
 but if you're using Android 4.0 and on a display of 720p or better (e.g.,
 Galaxy Nexus), you won't see that button.

 --
 Chris Stewarthttp://chriswstewart.com







 On Tue, Nov 8, 2011 at 1:56 PM, Kumar Bibek coomar@gmail.com wrote:
  What do you mean by the navigation button?

  On Nov 8, 11:54 pm, sblantipodi perini.dav...@dpsoftware.org wrote:
   bump

   On Nov 1, 3:17 pm, sblantipodi perini.dav...@dpsoftware.org wrote:

Bumping the question until I'll get an answer.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] change input method

2011-11-08 Thread Mark Murphy
Users can elect to use your I out method editor. However, you cannot force
the user to use your input method editor.

Mark Murphy
mmur...@commonsware.com

On Nov 8, 2011 1:35 PM, Willy Estrada willyestrada1...@gmail.com wrote:

 hi people! I have a question I've been trying to find  a solution but
 i cant , the question is I want to change the type of my default
 keyboard for one i made, I do not know if anyone have any idea,  I was
 trying to do that with an instance of InputMethodManager and there, I
 got the process name and name of the class of service of the new
 keyboard, but when i create an instance of InputMethodService and i
 executed the method sendBinder to run the switchInputMethod (ID oF THE
 KEYBOARD) I got an error q SecurityException despite than the manifest
 had the permission,  if someone could get an idea

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Understanding the lifecycle of ViewPager

2011-11-08 Thread Dianne Hackborn
Off-hand, I think it would be easier to implement a custom loader that
knows how to load the data once and share it across all requests.

On Tue, Nov 8, 2011 at 1:06 PM, Chris Stewart cstewart...@gmail.com wrote:

 I'm working on implementing ViewPager and I want to let the host activity
 load the background data (from the Internet) instead of each fragment doing
 an independent I/O request.  The reason why is because the same data is
 being loaded into two fragments, with the only difference being a category.
  I have two instances of ViewPager in my app, where this scenario holds
 true (two different types of data, but each being split by only a
 category).  If I can let the host activity fetch the data in the
 background, I'll be saving 2 API calls every time the app is used.

 I want to let the ViewPager and it's fragments know when to update
 themselves when the background load is finished so I can fetch the data
 once and pass it down into the fragments.  However, I can't seem to find
 any examples of this.  I've tried getting the fragments from the adapter
 when the data load is complete, but I'm running into various
 synchronization problems.  I've tried calling notifyDataSetChanged on the
 adapter (subclass of FragmentPagerAdapter), but it doesn't appear to do
 anything.

 Another piece to this puzzle is that I'm using ViewPagerIndicator to get
 the title effect seen in the Android Market and Google+ apps.  I've tried
 not initializing the FragmentPagerAdapter, ViewPager,
 and TitlePageIndicator until after the data load is complete, but I'm
 seeing the TitlePageIndicator attempt to be drawn anyway and failing when
 calculating the bounds since it hasn't been given a ViewPager instance just
 yet.

 Has anyone else tried to use the ViewPager is this scenario?  I think if I
 found a nice outline of how the ViewPager's lifecycle works, I would have
 better luck in figuring this workflow out.  Every example I can find lets
 the fragments self contain everything, which I completely understand the
 reasoning behind and will go that route if necessary but would love to cut
 the required network I/O requests if possible.

 --
 Chris Stewart

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




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

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

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

Re: [android-developers] Transfer medical images to galaxy tab(android)

2011-11-08 Thread J Handal
What about a server in between?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Library Projects with Resources to Jar using r14

2011-11-08 Thread joebowbeer
I'm also wondering about this.  What is temporary about the jar that
is currently created by the r15 tools?  Are there any snags involved
in just zipping the bin folder of the lib project and distributing
that?

http://android-developers.blogspot.com/2011/10/changes-to-library-projects-in-android.html

On Oct 26, 11:02 am, drasticp drast...@gmail.com wrote:
 When I saw the update notes for r14 regardinglibraryprojects, I was
 ecstatic. It's a dream come true to be able to export alibraryprojectas 
 aJARfile! From the latest release notes, it looks like
 things are coming along, however it appears that resources are still
 not bundled in the newJarfiles created in Eclipse.

 In the Android Developers Blog, Xavier Ducrohet wrote:
 This solves the implementation fragility in Eclipse and will allow us
 to, later, enable distribution of libraries as a singlejarfile.

 Does anyone know what parts are still missing? Is there any way to
 hack the resources in? With the new resource indexes in R14 it seems
 there might be a manual way to get it done now.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Re: Re: Android and WinXP: look for some tips

2011-11-08 Thread SL@maxis



It is.

It enables not only debugging, but also other adb - based features,  
and does no harm.


If you need some of those features to support a PC-side application,  
just leave it on.




Thanks.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Understanding the lifecycle of ViewPager

2011-11-08 Thread Chris Stewart
Thanks for the reply Dianne.  I'm not completely sure what you mean by
custom loader, are you referring to what was introduced in 3.2?  If so, is
it available in the support library for pre-3.2?

I'm looking for similar functionality found, or at least perceived to be,
in the Google+ app.  You can see the loading image working in the Action
Bar, seemingly showing overall progress for the fragments inside the
ViewPager.

Chris Stewart
http://locomolabs.com
On Nov 8, 2011 6:43 PM, Dianne Hackborn hack...@android.com wrote:

 Off-hand, I think it would be easier to implement a custom loader that
 knows how to load the data once and share it across all requests.

 On Tue, Nov 8, 2011 at 1:06 PM, Chris Stewart cstewart...@gmail.comwrote:

 I'm working on implementing ViewPager and I want to let the host activity
 load the background data (from the Internet) instead of each fragment doing
 an independent I/O request.  The reason why is because the same data is
 being loaded into two fragments, with the only difference being a category.
  I have two instances of ViewPager in my app, where this scenario holds
 true (two different types of data, but each being split by only a
 category).  If I can let the host activity fetch the data in the
 background, I'll be saving 2 API calls every time the app is used.

 I want to let the ViewPager and it's fragments know when to update
 themselves when the background load is finished so I can fetch the data
 once and pass it down into the fragments.  However, I can't seem to find
 any examples of this.  I've tried getting the fragments from the adapter
 when the data load is complete, but I'm running into various
 synchronization problems.  I've tried calling notifyDataSetChanged on the
 adapter (subclass of FragmentPagerAdapter), but it doesn't appear to do
 anything.

 Another piece to this puzzle is that I'm using ViewPagerIndicator to get
 the title effect seen in the Android Market and Google+ apps.  I've tried
 not initializing the FragmentPagerAdapter, ViewPager,
 and TitlePageIndicator until after the data load is complete, but I'm
 seeing the TitlePageIndicator attempt to be drawn anyway and failing when
 calculating the bounds since it hasn't been given a ViewPager instance just
 yet.

 Has anyone else tried to use the ViewPager is this scenario?  I think if
 I found a nice outline of how the ViewPager's lifecycle works, I would have
 better luck in figuring this workflow out.  Every example I can find lets
 the fragments self contain everything, which I completely understand the
 reasoning behind and will go that route if necessary but would love to cut
 the required network I/O requests if possible.

 --
 Chris Stewart

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




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

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

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] StackWidget - StackView Widget sample download

2011-11-08 Thread John
How do I download the sample the StackWidget - StackView Widget sample
for the Windows SDK? It, apparently, is supposed to be found here:

The file containing the source code shown below is located in the
corresponding directory in sdk/samples/android-version/...

I have downloaded the samples for versions android-10, android-11,
android-12, android-13, android-14 and it is not found in any of them,
while all the other samples found here:
http://developer.android.com/resources/browser.html?tag=sample
seems to be there.

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

2011-11-08 Thread Pawan Singh Rathore
Try with table layout,
And fill different colors for Table and Table row,
set margins so that it will show like table with lines.
You can easily google it.

Thanks  BR,
Pawan Rathore




On Tue, Nov 8, 2011 at 11:42 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:

 hi frnds, I actually want to show my database table in tabular form in
 my avd. Is there any simple way to achieve that.
 I am currently using single class for database (no sqliteDBHelper),
 with the help of cursor object.

 Cursor cur;
 tv.setText(cur.getString(0)+  +cur.getString(1));  //tv
 is textView here

 sry if its a silly question
 Any help will be 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ManagedQuery for Images returns null

2011-11-08 Thread Ankur Avlani
Hi,

The following code returns a null Cursor to me

String[] projection = {MediaStore.Images.Media._ID};
// Create the cursor pointing to the SDCard
Cursor cursor = managedQuery( MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
projection, // Which columns to return
null,   // Return all rows
null,
null);

I have tried the code on 3 devices, 2 devices it works fine, 1 devices it
returns null.  Can someone guide me a better way to get image details from
android SQL Lite, so that it works on all devices. (These devices are
android 2.3).

Also, I am not able to query using where clause, basically I want to just
get incremental cursor of 10 records on each user interaction.

Any pointers is appreciated.


Thanks,
Ankur

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Transfer medical images to galaxy tab(android)

2011-11-08 Thread John Coryat
You might try to rephrase your problem into one like:

How can I view ultrasound images in a browser?

If you can do this, then you've solved 90% of the issues and the rest is 
trivial. Check the documentation of your machine to see what it has in 
terms of internet capabilities. If you can't get the images into a browser, 
then you're really going to have difficulties getting them to view on any 
outside device.

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] attachment through mail

2011-11-08 Thread LaxmiRamGanesh


Hi,
i have issue on my application , coding sucessfully executed , but
file not attach in my email , its only shows filename , but not
image .

code:
Intent emailintent = new Intent(Intent.ACTION_SEND);


emailintent.setType(image/jpg);
 
emailintent.putExtra(android.content.Intent.EXTRA_EMAIL,Uri.fromParts(mailto,
cta...@gmail.com, null));

emailintent.putExtra(Intent.EXTRA_SUBJECT, Note Taker 
Image);
emailintent.putExtra(Intent.EXTRA_TEXT, Image Sent 
from Android
Phone);
emailintent.putExtra(Intent.EXTRA_STREAM, 
Uri.parse(file://mnt/
sdcard/e-Diary/image7115332.jpg));

//emailintent.putExtra(Intent.EXTRA_STREAM, );
startActivity(emailintent);


regards,
Ganez

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ManagedQuery for Images returns null

2011-11-08 Thread Pawan Singh Rathore
Have you set permission to access SDCard in manifest file ?
These silly mistakes I often do.
Thanks  BR,
Pawan Rathore




On Wed, Nov 9, 2011 at 10:09 AM, Ankur Avlani ankuravl...@gmail.com wrote:

 Hi,

 The following code returns a null Cursor to me

 String[] projection = {MediaStore.Images.Media._ID};
  // Create the cursor pointing to the SDCard
 Cursor cursor = managedQuery( MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
  projection, // Which columns to return
 null,   // Return all rows
  null,
 null);

 I have tried the code on 3 devices, 2 devices it works fine, 1 devices it
 returns null.  Can someone guide me a better way to get image details from
 android SQL Lite, so that it works on all devices. (These devices are
 android 2.3).

 Also, I am not able to query using where clause, basically I want to just
 get incremental cursor of 10 records on each user interaction.

 Any pointers is appreciated.


 Thanks,
 Ankur

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

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

[android-developers] How to send DHCPINFORM request

2011-11-08 Thread petr.maza...@mautilus.com
Is it possible to send manually the DHCPINFORM request? I was
searching the SDK and I did not found any class that allows creating
and broadcasting the DHCPINFORM (see RFC 2131) request.

Might be there is some Java implementation, which can be ported to the
Android.

Kind Regards,
STeN

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


Re: [android-developers] Application incompatible when trying to install on Galaxy 10.1

2011-11-08 Thread Jovish P
 Removed the min sdk version tag from Manifest file and added uses-feature
android:name=android.hardware.telephony android:required=false/ to the
manifest file . We are getting following error error: No resource
identifier found for attribute 'required' in package 'android' when
trying  to build the application. Any idea? When we create new Android
project we have to specify the min sdk version. So I don't think if we
remove the min sdk tag from manifest file is not going to make any change
since the android:required=false is present from 2.1.






On Sun, Nov 6, 2011 at 9:24 AM, Dianne Hackborn hack...@android.com wrote:

 You don't need to set your minSdkVersion to anything specific just to
 declare in your manifest that you optionally require a feature.

 On Fri, Nov 4, 2011 at 3:32 AM, Jovish P android.f...@gmail.com wrote:

 In our application ,  we are showing
 details of customer such as phone number , email id , address. When he
 clicks on phone
 number we are initiating call, email means opening the native email
 client  and if it is
 address we are mapping that address in Google maps. supports from 1.6
 We are adding the telephony permission in the manifest file .Users  were
 not able to install
 our app on tabs such as Xoom, Galaxy 10.1 etc since they don't have call
 option in the tab.
 So when they try to install app it is saying incompatible. The call
 functionality is not necessarily
 needed for our app to work. So we thought to use

 uses-feature android:name=android.hardware.telephony
 android:required=false /

 But the problem is , this is supported from 2.1. So we have to raise from
 1.6 to
 2.1. So we don't want to do that because many people are  still using
 1.6. Any solutions for this isssue?
 We want the min version as 1.6 and it should work on Tabs which doesn't
 have call functionality too.
 Is it good idea to give two builds for the same app for this reason ?

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




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

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


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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] prb: Listview Scrolling

2011-11-08 Thread shweta
http://ericharlow.blogspot.com/2010/10/experience-android-drag-and-drop-list.html

I used above link to rearrange item in listview.i am able to drag n
drop the item on touch event. but
there is problem that if the listview has more item on listview. i am
not able to scroll the list item.

Plz tell me how the list item can be scrolled in listview

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] TFTP (Trivial File Transfer Protocol) support

2011-11-08 Thread petr.maza...@mautilus.com
According to my information the SDK does not support directly the
TFTP.

Are the any other ways how to deal with the missing API? Was anybody
tried to use org.apache.commons.net.tftp? Are there any experiences
how difficult is to run this on Android?

Any other GPL solutions for TFTP?

Thanks, STeN

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


[android-developers] hava a drag and drop listview, when doing drag and drop on listview then scroll not working please help me how scroll work when dragging and dropping items on list.

2011-11-08 Thread Naveen
Hello All,


I hava a drag and drop listview, when doing drag and drop on listview
then scroll not working please help me how scroll work when dragging
and dropping  items on list.


Refer this Link:

http://ericharlow.blogspot.com/2010/10/experience-android-drag-and-drop-list.html?showComment=1320819281143#c7590849652991362556


Regards,
Naveen Kumar

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