Re: [android-developers] How to add a OnClick Listiner to a imageview in a simpleadapter

2012-05-15 Thread Justin Anderson

 with this code ,i get the toast.but the other textviews in the list does
 not appear.

What do you mean by the other textviews in the list does not appear?

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


On Mon, May 14, 2012 at 11:47 PM, Ibrahim Sada ibrahim.in...@gmail.comwrote:

 after the brace closes just show that text view it may work just try
 it once


 On 15 May 2012 10:55, shruthi santosh shruthi.shr...@gmail.com wrote:

  I have a imageview in the simpleadapter and on click of that image i
 want to display more information on that image.
 I tried the getView() method,

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

 LayoutInflater inflater = (LayoutInflater)
 context.getSystemService(
 Context.LAYOUT_INFLATER_SERVICE );
 View v = inflater.inflate(R.layout.feedslist, parent,
 false );

 ImageView iv = (ImageView)v.findViewById(R.id.player);

 iv.setOnClickListener( new OnClickListener()
 {

 @Override
 public void onClick( View v )
 {
 Toast.makeText( context,
 String.format( Image clicked: ),
 Toast.LENGTH_SHORT ).show();
 }
 } );
 return v;
 }

 with this code ,i get the toast.but the other textviews in the list does
 not appear.
 Pl help me.


 shruthi

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


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


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

[android-developers] Re: What can't boot, which delete .git in kernel?

2012-05-15 Thread wang nungchao
I don't know. I follow TI website to build kernel and generate
boot.img.

make ARCH=arm uImage

mkbootimg --kernel kernel --ramdisk ramdisk.img --base

I think maybe Makefile of kernel relate with .git, but I can't find.

On 5月15日, 下午12時09分, chengdong diao diaochengd...@gmail.com wrote:
 after deleted .git,what command have you used?
 maybe some commands related with .git changed the source code.

 2012/5/15 wang nungchao nungc...@gmail.com







  Because I will commit our svn server, our partners will modify source
  code in our project.

  On 5月15日, 上午10時50分, chengdong diao diaochengd...@gmail.com wrote:
   why you delete .git?

   2012/5/15 wang nungchao nungc...@gmail.com

Hi All
I use TI platform, and check out source code form TI website.(http://
omappedia.org/wiki/4AI.1.2_OMAP4_Icecream_Sandwich_Release_Notes)

If I delete .git file in kernel and build, I can't booting Android.

I trace Makefile in Kernel ,but I haven't search anything about git
key word. So How can I find root cause?

I know if I don't delete .git file, the Kernel Image Name :
Linux-3.0.21-2-OMAP-Android+ .

If I delete .git file, the Kernel Image Name : Linux-3.0.21-2-
OMAP-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

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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: What can't boot, which delete .git in kernel?

2012-05-15 Thread James W.
你可以下载,菲git版
或者将git,导出城tar版

On Tue, May 15, 2012 at 2:20 PM, wang nungchao nungc...@gmail.com wrote:
 I don't know. I follow TI website to build kernel and generate
 boot.img.

 make ARCH=arm uImage

 mkbootimg --kernel kernel --ramdisk ramdisk.img --base

 I think maybe Makefile of kernel relate with .git, but I can't find.

 On 5月15日, 下午12時09分, chengdong diao diaochengd...@gmail.com wrote:
 after deleted .git,what command have you used?
 maybe some commands related with .git changed the source code.

 2012/5/15 wang nungchao nungc...@gmail.com







  Because I will commit our svn server, our partners will modify source
  code in our project.

  On 5月15日, 上午10時50分, chengdong diao diaochengd...@gmail.com wrote:
   why you delete .git?

   2012/5/15 wang nungchao nungc...@gmail.com

Hi All
I use TI platform, and check out source code form TI website.(http://
omappedia.org/wiki/4AI.1.2_OMAP4_Icecream_Sandwich_Release_Notes)

If I delete .git file in kernel and build, I can't booting Android.

I trace Makefile in Kernel ,but I haven't search anything about git
key word. So How can I find root cause?

I know if I don't delete .git file, the Kernel Image Name :
Linux-3.0.21-2-OMAP-Android+ .

If I delete .git file, the Kernel Image Name : Linux-3.0.21-2-
OMAP-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

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

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

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


Re: [android-developers] How to add a OnClick Listiner to a imageview in a simpleadapter

2012-05-15 Thread shruthi santosh
I have two textview and an imageview in the list

shruthi
On Tue, May 15, 2012 at 11:32 AM, Justin Anderson magouyaw...@gmail.comwrote:

 with this code ,i get the toast.but the other textviews in the list does
 not appear.

 What do you mean by the other textviews in the list does not appear?

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



 On Mon, May 14, 2012 at 11:47 PM, Ibrahim Sada ibrahim.in...@gmail.comwrote:

 after the brace closes just show that text view it may work just try
 it once


 On 15 May 2012 10:55, shruthi santosh shruthi.shr...@gmail.com wrote:

  I have a imageview in the simpleadapter and on click of that image i
 want to display more information on that image.
 I tried the getView() method,

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

 LayoutInflater inflater = (LayoutInflater)
 context.getSystemService(
 Context.LAYOUT_INFLATER_SERVICE );
 View v = inflater.inflate(R.layout.feedslist,
 parent, false );

 ImageView iv =
 (ImageView)v.findViewById(R.id.player);

 iv.setOnClickListener( new OnClickListener()
 {

 @Override
 public void onClick( View v )
 {
 Toast.makeText( context,
 String.format( Image clicked: ),
 Toast.LENGTH_SHORT ).show();
 }
 } );
 return v;
 }

 with this code ,i get the toast.but the other textviews in the list does
 not appear.
 Pl help me.


 shruthi

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


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


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


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

2012-05-15 Thread kavitha chidambaram
Hi,
  I am trying to get Android device public/external ip. can I get
any idea..
Thanks in advance...

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

Re: [android-developers] Re: What can't boot, which delete .git in kernel?

2012-05-15 Thread chengdong diao
如果可以下载非git版的最好。
我对git也不是很熟。如果你删除的是.git的文件夹,估计会出问题的。

2012/5/15 James W. wjn...@gmail.com

 你可以下载,菲git版
 或者将git,导出城tar版

 On Tue, May 15, 2012 at 2:20 PM, wang nungchao nungc...@gmail.com wrote:
  I don't know. I follow TI website to build kernel and generate
  boot.img.
 
  make ARCH=arm uImage
 
  mkbootimg --kernel kernel --ramdisk ramdisk.img --base
 
  I think maybe Makefile of kernel relate with .git, but I can't find.
 
  On 5月15日, 下午12�r09分, chengdong diao diaochengd...@gmail.com wrote:
  after deleted .git,what command have you used?
  maybe some commands related with .git changed the source code.
 
  2012/5/15 wang nungchao nungc...@gmail.com
 
 
 
 
 
 
 
   Because I will commit our svn server, our partners will modify source
   code in our project.
 
   On 5月15日, 上午10�r50分, chengdong diao diaochengd...@gmail.com wrote:
why you delete .git?
 
2012/5/15 wang nungchao nungc...@gmail.com
 
 Hi All
 I use TI platform, and check out source code form TI
 website.(http://
 omappedia.org/wiki/4AI.1.2_OMAP4_Icecream_Sandwich_Release_Notes)
 
 If I delete .git file in kernel and build, I can't booting
 Android.
 
 I trace Makefile in Kernel ,but I haven't search anything about
 git
 key word. So How can I find root cause?
 
 I know if I don't delete .git file, the Kernel Image Name :
 Linux-3.0.21-2-OMAP-Android+ .
 
 If I delete .git file, the Kernel Image Name :
 Linux-3.0.21-2-
 OMAP-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
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

2012-05-15 Thread Live Happy
its there any sample for sync adapter who sync more than contact as Google
sync adapter who include sync gmail an Google+

On Mon, May 14, 2012 at 2:13 PM, Live Happy livehap...@gmail.com wrote:

 how to add to the sync adapter new record to sync as in Google there is
 sync contact sync gmail etc i implement the sync contact so how to add new
 sync record to get data from servers where i can modify in sync contact
 adapter to can use the performSync to get those data thx on 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] Regarding Esri maps loading into an android application

2012-05-15 Thread Ganesh Vadlakonda
Hi,

I am working on Esri maps.

i have downloaded the ArcGis SDk for Android and added the plugin to
eclipse.
I have worked on some sample examples.
the examples are worked properly for two days.

Now i am trying to run those examples I am getting the following error
like class not found Exceptions as below



05-15 12:55:57.257: E/AndroidRuntime(31189): FATAL EXCEPTION: main
05-15 12:55:57.257: E/AndroidRuntime(31189):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.vr.maps/com.vr.maps.VRMapsActivity}:
android.view.InflateException: Binary XML file line #7: Error
inflating class com.esri.android.map.MapView
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1651)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1667)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.os.Handler.dispatchMessage(Handler.java:99)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.os.Looper.loop(Looper.java:123)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.app.ActivityThread.main(ActivityThread.java:3691)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
java.lang.reflect.Method.invokeNative(Native Method)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
java.lang.reflect.Method.invoke(Method.java:507)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:847)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
dalvik.system.NativeStart.main(Native Method)
05-15 12:55:57.257: E/AndroidRuntime(31189): Caused by:
android.view.InflateException: Binary XML file line #7: Error
inflating class com.esri.android.map.MapView
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.view.LayoutInflater.inflate(LayoutInflater.java:408)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
207)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.app.Activity.setContentView(Activity.java:1663)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
com.vr.maps.VRMapsActivity.onCreate(VRMapsActivity.java:40)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1615)
05-15 12:55:57.257: E/AndroidRuntime(31189):... 11 more
05-15 12:55:57.257: E/AndroidRuntime(31189): Caused by:
java.lang.ClassNotFoundException: com.esri.android.map.MapView in
loader dalvik.system.PathClassLoader[/data/app/com.vr.maps-1.apk]
05-15 12:55:57.257: E/AndroidRuntime(31189):at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
java.lang.ClassLoader.loadClass(ClassLoader.java:551)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.view.LayoutInflater.createView(LayoutInflater.java:471)
05-15 12:55:57.257: E/AndroidRuntime(31189):at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
05-15 12:55:57.257: E/AndroidRuntime(31189):... 20 more


Can you plese provide the solution.

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


Re: [android-developers] dynamic spinner

2012-05-15 Thread surabhi jain
From the below code

I am getting value of  *id* is *-1
*and throwing exception *arrayindexoutofbound

*how can I set the indexing from 0?

OnItemSelectedListener listener=new OnItemSelectedListener(){
@Override
public void onItemSelected(AdapterView? ad, View view, int
position,long arg3) {
// TODO Auto-generated method stub

id=ad.getId();
Log.v(abc,id is +id);
}

@Override
public void onNothingSelected(AdapterView? arg0) {
// TODO Auto-generated method stub

}

};

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

2012-05-15 Thread bhavani sankari
Hi All,

I have added app widget to Application using
AppWidgetManager.ACTION_APPWIDGET_PICK, which list Default Widget
Picker Activity , choosing particular Widget and creating hostView for
that widget and adding the hostview to my layout.

Same way, Is it possible add widgets to Android HomeScreen from my
Application?

Regards
Bhavani

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] AppWidgetManager, function updateAppWidget not working after an undetermined time

2012-05-15 Thread Jorodan
Hi Android developers,

I have a big problem ! 

I have an alarm manager each minutes for updating the clock.
When I received the Intent.
For each instance of the widget, I calculate my RemoteView and send the 
RemoteView to the widget using : AppWidgetManager updateAppWidget(int 
appWidgetId, RemoteViews views).

It is working well most part of the time.

But, I don't know why, after an undetermined time, the function 
updateAppWidget doesn't refresh the widget.

I force stop the Home (from system settings). When I do that, the Home will 
force close because of this error : java.lang.RuntimeException: system 
server dead?
When my clock is frozen, the system widget clock is frozen too.

And for now, I found this bug only with the Galaxy Nexus and Galaxy S2.

Any idea ? 

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

Re: [android-developers] How to add a OnClick Listiner to a imageview in a simpleadapter

2012-05-15 Thread Ibrahim Sada
to b frank i didnt get wat yu wanna saysoo let us clear that first 

On 15 May 2012 12:17, shruthi santosh shruthi.shr...@gmail.com wrote:


 I have two textview and an imageview in the list

 shruthi

 On Tue, May 15, 2012 at 11:32 AM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 with this code ,i get the toast.but the other textviews in the list does
 not appear.

 What do you mean by the other textviews in the list does not appear?

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



 On Mon, May 14, 2012 at 11:47 PM, Ibrahim Sada 
 ibrahim.in...@gmail.comwrote:

 after the brace closes just show that text view it may work just try
 it once


 On 15 May 2012 10:55, shruthi santosh shruthi.shr...@gmail.com wrote:

  I have a imageview in the simpleadapter and on click of that image i
 want to display more information on that image.
 I tried the getView() method,

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

 LayoutInflater inflater = (LayoutInflater)
 context.getSystemService(
 Context.LAYOUT_INFLATER_SERVICE );
 View v = inflater.inflate(R.layout.feedslist,
 parent, false );

 ImageView iv =
 (ImageView)v.findViewById(R.id.player);

 iv.setOnClickListener( new OnClickListener()
 {

 @Override
 public void onClick( View v )
 {
 Toast.makeText( context,
 String.format( Image clicked: ),
 Toast.LENGTH_SHORT ).show();
 }
 } );
 return v;
 }

 with this code ,i get the toast.but the other textviews in the list
 does not appear.
 Pl help me.


 shruthi

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


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


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


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] NullPointerException android.graphics.Bitmap.createBitmap(Bitmap.java:468)

2012-05-15 Thread naseem Rafique
Try following code.

   if (b1 == null) {
   return null;
   }
   Paint p = new Paint();
   p.setAntiAlias(true);
   p.setAlpha(150);

   byte[] chunk = b1.getNinePatchChunk();

   Bitmap b2 = Bitmap.createBitmap(b1.getWidth(),
b1.getHeight(), b1.getConfig());

   Canvas canvas = new Canvas(b2);
   canvas.drawBitmap(b1, 0, 0, p);





On Mon, May 14, 2012 at 2:19 PM, viktor victor.scherb...@gmail.com wrote:

 Please help me with exception.

 I have single resources folder. /res/drawable

 I create a custom button from one of the resource with some color
 effect.

 This works for ldpi, hdpi, xdpi devices, but when I run an app on the
 mdpi device it crashes.


 My code:

 Bitmap b1 = BitmapFactory.decodeResource(context.getResources(),
 drawableResourceId);
if (b1 == null) {
return null;
}
Paint p = new Paint();
p.setAntiAlias(true);
p.setAlpha(150);

byte[] chunk = b1.getNinePatchChunk();

Bitmap b2 = Bitmap.createBitmap(b1.getWidth(),
 b1.getHeight(),
 b1.getConfig());  // this line fails,

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

2012-05-15 Thread Narendra Singh Rathore
Hi all,
Is this possible to check the current contentView?

As in my code, I am using a single activity, along with three different
content views (using setContentView()), which I am changing according to my
requirement.
All is working fine till now.

Now, what I want is that - when *clicking the back button, I want to check
the current view (content view)*, and proceed further depending on the view.

How can I achieve this if it is possible?


Here is my java code, as follows:



package com.test;


import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;

public class Test_appActivity extends Activity implements OnClickListener,
OnItemClickListener{
/** Called when the activity is first created. */
ListView lv;
Button btn1,btn2;
String[] str=new String[]{one,two};
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
   first_view();

}

public void first_view()
{
 setContentView(R.layout.main);
 lv=(ListView)findViewById(android.R.id.list);
 lv.setTextFilterEnabled(true);
 ArrayAdapterString adapter= new
ArrayAdapterString(getApplicationContext(),
android.R.layout.simple_list_item_1,str);
lv.setAdapter(adapter);
lv.setOnItemClickListener(this);
}

public void onClick(View v) {
first_view();

}

//@Override
//public void onBackPressed() {
//
if(findViewById(android.R.id.content).equals((View)this.findViewById(R.layout.one))
//||
findViewById(android.R.id.content).equals((View)this.findViewById(R.layout.two)))

//{
//first_view();
//}
//else
//{super.onBackPressed();
//}
//}

public void onItemClick(AdapterView? arg0, View arg1, int arg2, long
arg3) {

if(arg2==0)
{
setContentView(R.layout.one);
btn1=(Button)findViewById(R.id.btn);
btn1.setOnClickListener(Test_appActivity.this);
}
else
{
setContentView(R.layout.two);
btn2=(Button)findViewById(R.id.btn1);
btn2.setOnClickListener(Test_appActivity.this);
}
}


}


Please, help me out in this.

With Regards,
Narendra

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

2012-05-15 Thread shruthi santosh
I got it.

On Tue, May 15, 2012 at 3:07 PM, Ibrahim Sada ibrahim.in...@gmail.comwrote:

 to b frank i didnt get wat yu wanna saysoo let us clear that first 


 On 15 May 2012 12:17, shruthi santosh shruthi.shr...@gmail.com wrote:


 I have two textview and an imageview in the list

 shruthi

 On Tue, May 15, 2012 at 11:32 AM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 with this code ,i get the toast.but the other textviews in the list does
 not appear.

 What do you mean by the other textviews in the list does not appear?

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



 On Mon, May 14, 2012 at 11:47 PM, Ibrahim Sada 
 ibrahim.in...@gmail.comwrote:

 after the brace closes just show that text view it may work just
 try it once


 On 15 May 2012 10:55, shruthi santosh shruthi.shr...@gmail.com wrote:

  I have a imageview in the simpleadapter and on click of that image i
 want to display more information on that image.
 I tried the getView() method,

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

 LayoutInflater inflater = (LayoutInflater)
 context.getSystemService(
 Context.LAYOUT_INFLATER_SERVICE );
 View v = inflater.inflate(R.layout.feedslist,
 parent, false );

 ImageView iv =
 (ImageView)v.findViewById(R.id.player);

 iv.setOnClickListener( new OnClickListener()
 {

 @Override
 public void onClick( View v )
 {
 Toast.makeText( context,
 String.format( Image clicked: ),
 Toast.LENGTH_SHORT ).show();
 }
 } );
 return v;
 }

 with this code ,i get the toast.but the other textviews in the list
 does not appear.
 Pl help me.


 shruthi

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


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


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


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


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


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

Re: [android-developers] Noise between FX sounds and music

2012-05-15 Thread Sandeep Ramankutty
Record the output audio to pc using audio analysis tool. It may throw up
some info. Could be problem with mixing. Use goldwave or audacity
On May 11, 2012 7:07 PM, Francisco M. Marzoa Alonso fmmar...@gmail.com
wrote:

 Hi there,

 I am facing problems when playing at same time music and some FX sound.
 The FX sound is a click similar to the click of the mouse. It sounds
 fine when playing alone one time, although it gets some noise at the end
 of the reproduction when trying to repeat it too fast.

 But when it is played with some background music, it does the noise at
 the end (like a puk or so) every time.

 Some ideas?

 TIA,

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

2012-05-15 Thread Mark Murphy
Only if your Application is the HomeScreen.

On Tue, May 15, 2012 at 5:16 AM, bhavani sankari bhavani...@gmail.com wrote:
 Hi All,

 I have added app widget to Application using
 AppWidgetManager.ACTION_APPWIDGET_PICK, which list Default Widget
 Picker Activity , choosing particular Widget and creating hostView for
 that widget and adding the hostview to my layout.

 Same way, Is it possible add widgets to Android HomeScreen from my
 Application?

 Regards
 Bhavani

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



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

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

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


[android-developers] Android.graphics.picture has different behavior in android 4.0.

2012-05-15 Thread Michael
I have an application where you have an image and you can add
different filters to it.  I also have undo and redo buttons that work
by having a picture of every change.so they can be undone.  This
worked perfectly in 2.3 but in 4.0 when I press undo the previous
picture that is drawn looks the same as the very last frame as if it
was being changed when the new picture was added.

So in 2.3 I had an array of pictures that always contained the
original pictures that I put in.
In 4.0 the pictures in the array change to match the last picture that
I added.

Here is some example code.
newpixels is the new array of pixels for the image to be set to.

public void addNewPicture(int[] newpixels)
{
Bitmap newbitmap = Bitmap.createBitmap(canvaswidth,
canvasheight, mybitmap.getConfig());
newbitmap.setPixels(newpixels, 0, canvaswidth, 0, 0,
canvaswidth, canvasheight);
Picture picture = new Picture();
Canvas c= picture.beginRecording(canvaswidth,
canvasheight);
c.drawBitmap(newbitmap, 0, 0, null);
picture.endRecording();
picturearray.add(picture);
}

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

2012-05-15 Thread Nick Cheng
I am trying to grab the screen using ScreenshotClient, However, when i 
compile it, it show the errors.


/home/pok/workspace/Pixel/obj/local/armeabi/objs/fb/framebuffer.o: In 
function `screen()':
/home/pok/workspace/Pixel/jni/framebuffer/framebuffer.cpp:13: undefined 
reference to `android::ScreenshotClient::ScreenshotClient()'
/home/pok/workspace/Pixel/obj/local/armeabi/objs/fb/framebuffer.o: In 
function `~sp':
/home/pok/android-ndk-r7/platforms/android-14/arch-arm/usr/include/utils/RefBase.h:327:
 
undefined reference to `android::RefBase::decStrong(void const*) const'
collect2: ld returned 1 exit status


what is the problem? i have included surfaceflinger/SurfaceComposerClient 
.

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

2012-05-15 Thread Sam Blyuez
I want to use the following code to track referrer to my application.
Is it possible to track app referrer without using Google Analytics
SDK in my app?

Also if i use the below code what would referrerString return?
Will it show me search query via which user came to my app's link or
would show me some tags or keywords which were searched for my app?

receiver android:name=com.mycompany.myReceiver
android:exported=true 
  intent-filter
action android:name=com.android.vending.INSTALL_REFERRER /
  /intent-filter
/receiver

public class Receiver extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {

Bundle extras = intent.getExtras();
String referrerString = extras.getString(referrer);

Log.w(TEST, Referrer is:  + referrerString);
}

What does this referrerString return?

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] how to Fire a keyevent to player running on foreground from background apps...its gives some Runtime Exception

2012-05-15 Thread sunny
Hello All

One thing more I like to ask you...
I have an application running in background...and a second application
which is a video player running on foreground build on flash
technology...
My work is to launch this application via my background application
and give it the content to play after downloading from the remote
server and I did it successfully...
but My problem is that...
the key event code is written in foreground app(ie in player) ,when we
press 'L' using keyboard then it display live...
and when we press 'R' then it resume to play its recorded or
downloaded contents
but when I want to send the same key through my background app on
it...it not work...and cause an fatal error and my background program
crashed...
I did it using the Instrumentation class
like

Instrumentation inst = new Instrumentation();
 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_L);

but it not work
I also did it using Intent and keyevent class but the result remain
abortive


KeyEvent lKey1Dwn = new
KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_L);
KeyEvent lKey1Up = new
KeyEvent(KeyEvent.ACTION_UP,KeyEvent.KEYCODE_L);
Intent lKey1DwnIntent = new Intent(Intent.ACTION_MEDIA_BUTTON);
Intent lKey1UpIntent = new Intent(Intent.ACTION_MEDIA_BUTTON);
lKey1UpIntent.putExtra(Intent.EXTRA_KEY_EVENT, lKey1Up);
lKey1DwnIntent.putExtra(Intent.EXTRA_KEY_EVENT, lKey1Dwn );
ctx.sendBroadcast(lKey1DwnIntent);
ctx.sendBroadcast(lKey1UpIntent);

(where ctx is an instance of Context on that page.)

can u plz help me?
I will be thankful to 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] how to use the android project in google code(I'm using eclipse)

2012-05-15 Thread Sunny^11_year_edtion
I have already checkout this project  here  
http://code.google.com/p/android-imagedownloader/
. However, there are no android libraries.. and other dependencies.
How can I get that project running?
In brief,  how to import those jars?


Thanks for your 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: Performance issue executing native code on ICS

2012-05-15 Thread Chuan Zhou
We met exactly the same issue! We are on ICS 4.0.4 with Nexus S.
 
Will google plan to fix it in the next release say 4.0.5?
 
Thanks,
 
Chuan

在 2012年3月5日星期一UTC+8下午10时22分24秒,Michael写道:

 These are results of 'top' running the (unmodified) CameraPreview of the 
 ApiDemos sample on two Nexus S devices, one with Gingerbread, the other one 
 with Ice Cream Sandwich:

 1) Nexus S, Gingerbread, Build Target: Android 2.3.3
 User 1%, System 6%, IOW 0%, IRQ 0%
 User 6 + Nice 0 + Sys 21 + Idle 282 + IOW 0 + IRQ 0 + SIRQ 0 = 309

   PID   TID CPU% S VSS RSS PCY UID  Thread  Proc
  1138  1138   3% R   1092K528K  fg shelltop top
75  1142   1% D  32312K   4500K  fg mediaCameraPreviewTh 
 /system/bin/mediaserver
   114   125   0% D 192872K  62016K  fg system   system_server   
 system_server
   182   182   0% S 103024K  27104K  fg system   ndroid.systemui 
 com.android.systemui
   114   126   0% S 192872K  62016K  fg system   SensorService   
 system_server

 2) Nexus S, ICS, Build Target: Android 2.3.3
 User 28%, System 21%, IOW 0%, IRQ 0%
 User 90 + Nice 0 + Sys 69 + Idle 157 + IOW 0 + IRQ 0 + SIRQ 1 = 317

   PID   TID PR CPU% S VSS RSS PCY UID  Thread  Proc
81  2509  0  17% S  49372K   5100K  fg mediaCameraPreviewTh 
 /system/bin/mediaserver
78   131  0  15% S  39576K  17648K  fg system   SurfaceFlinger  
 /system/bin/surfaceflinger
   162   175  0   4% D 356748K  46212K  fg system   system_server   
 system_server
  2478  2478  0   3% R   1188K588K  fg shelltop top
   162   177  0   1% S 356748K  46212K  fg system   er.ServerThread 
 system_server

 3) Nexus S, ICS, Build Target: Android 4.0.3
 User 44%, System 15%, IOW 0%, IRQ 0%
 User 140 + Nice 0 + Sys 50 + Idle 128 + IOW 0 + IRQ 0 + SIRQ 0 = 318

   PID   TID PR CPU% S VSS RSS PCY UID  Thread  Proc
81  2931  0  38% S  55904K   8412K  fg mediaCameraPreviewTh 
 /system/bin/mediaserver
78   131  0   7% S  45432K  22484K  fg system   SurfaceFlinger  
 /system/bin/surfaceflinger
  2921  2921  0   3% R   1188K588K  fg shelltop top
   162   175  0   2% D 356860K  47052K  fg system   system_server   
 system_server
  2718  2718  0   1% S  0K  0K  fg root kworker/0:1 

 Indeed, one does not even need to perform any additional (native) 
 processing to find that the mediaserver and surfaceflinger processes are 
 consuming an unhealthy amount of CPU power on Ice Cream Sandwich. Note that 
 the exact behavior even changes with different build targets; ~30% of CPU 
 time are already bad when building against Android 2.3.3, but it gets a lot 
 worse with ~45% when building against Android 4.0.3. Am planning to file a 
 bug report.


 On Thursday, March 1, 2012 6:53:08 PM UTC+1, Chris Stratton wrote:


 On Thursday, March 1, 2012 12:08:31 PM UTC-5, Michael wrote:

 Good tip! This is a print from top running the test application on a 
 Nexus S with Gingerbread:

 User 89%, System 3%, IOW 0%, IRQ 0%
 User 282 + Nice 0 + Sys 12 + Idle 22 + IOW 0 + IRQ 0 + SIRQ 0 = 316
   PID   TID CPU% S VSS RSS PCY UID  Thread  Proc
   771   771  86% R 104220K  27216K  fg app_54   PerformanceTest 
 com.ICSPerformanceTest

  

 And this is the exact same application on a Nexus S with Ice Cream 
 Sandwich:

 User 87%, System 9%, IOW 0%, IRQ 0%
 User 287 + Nice 0 + Sys 32 + Idle 9 + IOW 0 + IRQ 0 + SIRQ 0 = 328
   PID   TID PR CPU% S VSS RSS PCY UID  Thread  Proc
  2849  2849  0  57% R 278568K  35372K  fg app_66   PerformanceTest 
 com.ICSPerformanceTest
81  2867  0  28% S  56408K   9196K  fg mediaCameraPreviewTh 
 /system/bin/mediaserver

  

 We still don't know why this is happening, though. It's not an active 
 face detection - we double-checked that. A quick look through the Android 
 source code didn't give any insight either. Though my suspicion is that 
 either something is wrong with the ICS implementation or the camera driver. 
 It would be nice to get more info on that, and potential solutions to fix 
 the issue.


 You could try and see if you can get git to give up a diff of the 
 relevant files in mediaserver between the two versions of Android, but that 
 may be a lengthy path to follow.

 It would be interesting if you could reproduce the same difference in 
 mediaserver CPU usage with someone else's code that doesn't do any (even 
 dummy) native processing.  Could you try the CamerPreview in the ApiDemos 
 of the sdk samples?   If you can reproduce the mediaserver CPU load 
 reflected by top with that you'd clearly be in a position to file a bug 
 report.



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

[android-developers] GET Service provider name from SIM card

2012-05-15 Thread CrimeMaster GOGO
can you please tell me in android what is the method for getting the
service provider name from the SIM card .
Which Elementary file from the SIM card is read for that .
1If EF (SPN) services are not activated then in that case what is the
other source of getting the SPN information ?

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

2012-05-15 Thread yamanoorsai
Hi,

I tweaked the android bluetooth example to get my android device to
communicate with my UART Bluetooth module. I just changed the UUID to
communicate to the module.

My objective is to read data from a bluetooth device alternatively. I
was successful in storing the address of the devices selected. This is
how I am trying to connect to the devices alternatively:

case MESSAGE_READ:
byte[] readBuf = (byte[]) msg.obj;
// construct a string from the valid bytes in the buffer
String readMessage = new String(readBuf, 0, msg.arg1);
mConversationArrayAdapter.add(mConnectedDeviceName+:   +
readMessage);
if(status==0)
{
mChatService.stop();
BluetoothDevice device =
mBluetoothAdapter.getRemoteDevice(address);
mChatService.connect(device);
status =1;
break;
}
else {
mChatService.stop();
BluetoothDevice device =
mBluetoothAdapter.getRemoteDevice(address1);
mChatService.connect(device);
status =0;
}

The device successfully disconnects and reconnect successfully. This
activity repeats only for a few cycles then it stops connecting. I am
an inexperienced programmer and I am not sure how to establish a
robust mechanism.

Any thoughts would be appreciated.

Thanks,
Sai

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

2012-05-15 Thread Vincent
Hello everyone, I wonder how can I increase the limit of the volume of
the device?It's an app like anaudiphone, so I need to increase the
volume of the device more its limit.

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

2012-05-15 Thread Yoosuf Khamees
just delite the market app from system and then install the new google
play market it will shoe that the google play now cover much free
space

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

2012-05-15 Thread sunny

sir
I am making an application to play UDP stream in android...but the
results are abortive
I have an application which is able to play HTTP protocol and RTSP
protocol but not UDP why??
Is there any android API available which supports UDP?
if yes then please help me.
if possible plz help me with some peace of codes...
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] Cannot loading Google API's on emulator - Stop at loading the system home screen after loading text ANDROID

2012-05-15 Thread Aprido Sandyasa
Dear all,

I making a simple application that using google API, so my application
can use google maps. My application that i worked it doesn't have any
error but when i try running on AVD/the emulator, it won't
worked(stopped on loading the system home screen after the loading
text android). But when i try changed my application without using
google API and running on the AVD/emulator(without google API's too),
the emulator works normally.

Please help me, i have try using any methods(updating the google API
on AVD, Platform, any of it has been updated) but i couldn't still
make the emulator working normally.

The application using Google API level 7 and using Platform 2.1. If
this works, i'll try using Google API level 14 and using Platform 4.0
This is the error on the emulator when i try tracing it with Dalvik
Virtual Machine but i don't understand what the meaning any of it.


05-14 07:31:40.879: E/vold(27): Error opening switch name path '/sys/
class/switch/test' (No such file or directory)
05-14 07:31:40.879: E/vold(27): Error bootstrapping switch '/sys/class/
switch/test' (No such file or directory)
05-14 07:31:40.879: E/vold(27): Error opening switch name path '/sys/
class/switch/test2' (No such file or directory)
05-14 07:31:40.879: E/vold(27): Error bootstrapping switch '/sys/class/
switch/test2' (No such file or directory)
05-14 07:31:54.490: E/BatteryService(52): usbOnlinePath not found
05-14 07:31:54.490: E/BatteryService(52): batteryVoltagePath not found
05-14 07:31:54.490: E/BatteryService(52): batteryTemperaturePath not
found
05-14 07:31:54.510: E/SurfaceFlinger(52): Couldn't open /sys/power/
wait_for_fb_sleep or /sys/power/wait_for_fb_wake
05-14 07:32:24.019: E/System(52): Failure starting core service
05-14 07:32:24.019: E/System(52): java.lang.NullPointerException
05-14 07:32:24.019: E/System(52):   at
com.android.internal.util.FastXmlSerializer.escapeAndAppendString(FastXmlSerializer.java:
117)
05-14 07:32:24.019: E/System(52):   at
com.android.internal.util.FastXmlSerializer.attribute(FastXmlSerializer.java:
162)
05-14 07:32:24.019: E/System(52):   at
com.android.server.PackageManagerService
$Settings.writePackage(PackageManagerService.java:6640)
05-14 07:32:24.019: E/System(52):   at
com.android.server.PackageManagerService
$Settings.writeLP(PackageManagerService.java:6529)
05-14 07:32:24.019: E/System(52):   at
com.android.server.PackageManagerService.init(PackageManagerService.java:
605)
05-14 07:32:24.019: E/System(52):   at
com.android.server.PackageManagerService.main(PackageManagerService.java:
335)
05-14 07:32:24.019: E/System(52):   at
com.android.server.ServerThread.run(SystemServer.java:116)
05-14 07:32:24.029: E/AndroidRuntime(52): Crash logging skipped, no
checkin service
05-14 07:32:24.209: E/SystemServer(52): Failure starting
StatusBarService
05-14 07:32:24.209: E/SystemServer(52): java.lang.NullPointerException
05-14 07:32:24.209: E/SystemServer(52): at
com.android.server.status.StatusBarIcon.getIcon(StatusBarIcon.java:
143)
05-14 07:32:24.209: E/SystemServer(52): at
com.android.server.status.StatusBarIcon.init(StatusBarIcon.java:65)
05-14 07:32:24.209: E/SystemServer(52): at
com.android.server.status.StatusBarService.makeStatusBarView(StatusBarService.java:
305)
05-14 07:32:24.209: E/SystemServer(52): at
com.android.server.status.StatusBarService.init(StatusBarService.java:
236)
05-14 07:32:24.209: E/SystemServer(52): at
com.android.server.ServerThread.run(SystemServer.java:209)
05-14 07:32:24.219: E/AndroidRuntime(52): Crash logging skipped, no
checkin service
05-14 07:32:24.229: E/SystemServer(52): Failure starting Input Manager
Service
05-14 07:32:24.229: E/SystemServer(52): java.lang.NullPointerException
05-14 07:32:24.229: E/SystemServer(52): at
android.app.ApplicationContext.registerReceiverInternal(ApplicationContext.java:
736)
05-14 07:32:24.229: E/SystemServer(52): at
android.app.ApplicationContext.registerReceiver(ApplicationContext.java:
711)
05-14 07:32:24.229: E/SystemServer(52): at
android.app.ApplicationContext.registerReceiver(ApplicationContext.java:
705)
05-14 07:32:24.229: E/SystemServer(52): at
com.android.server.InputMethodManagerService.init(InputMethodManagerService.java:
426)
05-14 07:32:24.229: E/SystemServer(52): at
com.android.server.ServerThread.run(SystemServer.java:224)
05-14 07:32:24.239: E/AndroidRuntime(52): Crash logging skipped, no
checkin service
05-14 07:32:24.259: E/AndroidRuntime(52): Uncaught handler: thread
ConnectivityThread exiting due to uncaught exception
05-14 07:32:24.259: E/AndroidRuntime(52): *** EXCEPTION IN SYSTEM
PROCESS.  System will crash.
05-14 07:32:24.269: E/AndroidRuntime(52):
java.lang.NullPointerException
05-14 07:32:24.269: E/AndroidRuntime(52):   at
android.app.ActivityThread.getProvider(ActivityThread.java:4072)
05-14 07:32:24.269: E/AndroidRuntime(52):   at

[android-developers] xperia play full ICS update

2012-05-15 Thread Yoosuf Khamees
when do you think that xperia play ics update will be announced as
most of the xperia play holders are getting angry as the update for
all other 2011 xperia phones are beening relised they want a faster
and astable ics rom to get the most of xperia play games experiance

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

2012-05-15 Thread VenkateswaraReddy

Send u r 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] Record a call in android

2012-05-15 Thread Yar Muhammad
hi, i am new to android programming. and i want to make a call
recorder in android, i study the topics like
MediaRecorder.AudioSource , telephone manager and phonestate
listner . but i don't understand how can i use these built in classes
to record a call. 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] Android: How make a SPI communication with microSD card

2012-05-15 Thread Gege089
I am programming in Andoid 2.3.3 (java) on a Galaxy S (from samsung).
I would like to use micro SD card as a GPIO port, to communicate in
SPI with a device.

Which library need I use to perform this task ? How to perform SPI
communication (I now classical SPI communication with a
microcontroller and Android language [simple applications]). May it
possible to do this ? How to read values from sd card pin (how to
declare them) ?.

Thanks a lot !

GM

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

2012-05-15 Thread ??
Your AlertDialog doesn't call the method show();
 
new AlertDialog.Builder(this).setTitle(About).setMessage(el viva Android  
!).create().show(); 

it is work well;

please be careful ;
-- 原始邮件 --
发件人: 冉峻萍ranjunp...@gmail.com;
发送时间: 2012年5月14日(星期一) 中午12:32
收件人: android-developersandroid-developers@googlegroups.com; 

主题: Re: [android-developers] Menu : Handling click events : DialogBox



在 2012-5-12 下午6:23,huberte svend.wal...@gmail.com写道:
 
Hi, I did red

 http://developer.android.com/guide/topics/ui/menus.html
 
http://developer.android.com/guide/topics/resources/menu-resource.html
 
I wrote this in main activity

 
@Override   
 public boolean onCreateOptionsMenu(Menu menu) {
 MenuInflater inflater = getMenuInflater();
 inflater.inflate(R.menu.mainmenu, menu);
 return true;
 }
@Override
 public boolean onOptionsItemSelected(MenuItem item) {
 // Handle item selection
switch (item.getItemId()) {
 case R.id.infos:
 infos();
return true;
 case R.id.waring:
 waring();
return true;
 case R.id.credits:
 credits();
return true;
 case R.id.about:
 about();
return true;
 default:
 return super.onOptionsItemSelected(item);
 }
}
 private void about() {
 //  // TODO Auto-generated method stub
//  // custom dialog
 
}


 Where shoudd I put my alertbox (is this correct for a simple text box with no 
button ?) :

 
new AlertDialog.Builder(this).setTitle(About).setMessage(el viva Android  
!).create(); 




 in private void about(), which never works

or directly in case R.id.about: about();

 Quit lost here.

thks



 

 

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

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

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

[android-developers] Geolocation in a mobile application

2012-05-15 Thread Midnight Nightmare
Hi, 

I have never developed for mobile devices (Android or IOS) and I have 
a curiosity. It would be possible to develop a kind of game (RPG) that 
takes advantage of the geolocation? Basically I was thinking of a game 
where the player physically moving to his city, would have the 
opportunity to meet monsters to fight or even challenge other 
players. I do not know if there is already something similar, but 
devices like iPhone or Galaxy would allow such a thing? 

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] I can not start MMS functionality on emulator

2012-05-15 Thread katarina
Hi,

please help... I want to use MMS functionality on the emulator, but I
can not.

I downloaded the Android code + Eclipse + Device emulator and all
starts up fine. After the system gets booted, I see the Messaging
Application icon on the screen.

When I click on it, the conversation thread opens up and I am able to
type in text messages, but there are no icons (extensions) to add
pictures, videos, audio - like there are on real Android devices. So,
I can not compose MMS messages at all.

Is this something that is normal on emulator, or should I be able to
see MMS functionality on it too?

I can see that my Mms application code was built, but I don't see any
of its functionality on the screen of the emulated device.

Does anybody have an idea of what am I doing wrong?

All the best,
Katarina

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

2012-05-15 Thread J-roen
I have a viewpager with a number of gridviews in it, how do I update the 
gridview?
Updating the viewpager upon onstart is no problem, but the gridview dows 
not show any changes.

public class StagesActivity extends Activity {
   viewPager.setAdapter( pageradapter );
   public class MyPagerAdapter extends PagerAdapter {
   public Object instantiateItem( View collection, int position ){
   gridView.setAdapter( myadapter );
   }
   public class MyAdapter extends BaseAdapter{
   }
   }
   public void onStart(){
  pageradapter.notifyDataSetChanged();
   }
}

I tried overwriting the notifyDataSetChanged of the pageradapter, that 
seems to work fine.
But if I then try to update the myadapter on the gridview nothing changes.

This makes sense, since there are multiple gridviews and myadapters but how 
do I update them?


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

[android-developers] Re: create Config file - URGENT please

2012-05-15 Thread bash
Hi !

Why not use Preference screan? 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is there a way to get character density from a HTML or CSS file?

2012-05-15 Thread nmoe
I'm trying to split a HTML file to fit a specific screen and would
like to somehow calculate how many characters fit.

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] Launching Google Talk voice chat via startActivity()

2012-05-15 Thread Mykhailo Shchurov
Hello,
I'm trying to launch GTalk voice chat with some person like this:

Uri imUri = new Uri.Builder().scheme(xmpp).authority(gtalk)
.query(call;type=voice).appendPath(blahb...@gmail.com).build();
Intent intent = new Intent(Intent.ACTION_SENDTO,imUri);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

And here's the problem: if Google Talk app is already running - then
this code works fine (brings Google Talk activity to front and starts
a voice chat with blahb...@gmail.com), but if it's not running - then
this snippet of code simply opens Google Talk Activity but doesn't
suggest to start a voice chat

It's interesting that it works absolutely correctly if I use
call;type=video, but I need voice.
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] Navigation Directions from 3rd side Application

2012-05-15 Thread tal
Hello,
I am trying to Pass directions (via Text ,but Long/Lat does not work
also)
to Google Navigation NOT google maps .
i want to pass the directions and that the Google Navigation will be
used as a normal GPS .
i tried it with WAZE already and it has a bug or somthing, i tried to
use the google Navigation but everyone refers me to somehow to use
google Maps but there i only get the distance etc. i want to use it
as the GPS.

need help please

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


[android-developers] Clipping mask with a shape of a circular sector

2012-05-15 Thread Tamás Kovács
I need to create a clipping mask with a shape of a circular sector.

I am able to draw one using the following:

paint.setColor(0x88FF);
paint.setStyle(Style.FILL);
canvas.drawArc(oval, 0, 30, true, paint);

I want to use it as a clipping path, so I've tried:

Path path = new Path();
path.addArc(oval, 0, 30);
canvas.clipPath(path, Op.REPLACE);

However addArc doesn't have the useCenter parameter so what I get is
not a sector but a segment. Any ideas?

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

2012-05-15 Thread Sanae Elbahri
using the Verlet method for indoor geolocation in Android:


hi I wonder why this application does not work even if it contains no
error, I want to integrate the acceleration to find position using
Verlet method here is my code
`package com.test.accelo;
import android.app.Activity;
 import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.view.Display;
import android.view.Surface;
import android.widget.TextView;


public class AccelerometreActivity extends Activity implements
SensorEventListener {
/** Called when the activity is first created. */
private Display mDisplay;


SensorManager sm;
boolean acceltest;
TextView t1,t2,t3;

   public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
sm=(SensorManager) getSystemService(SEARCH_SERVICE);


  }@Override
  protected void onResume() {
super.onResume();
   
acceltest=sm.registerListener(this,sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),SensorManager.SENSOR_DELAY_UI);
if(! acceltest){

sm.unregisterListener(this,sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER));
}}
 protected void onStop() {

super.onStop();

sm.unregisterListener(this,sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER));
}

public void onAccuracyChanged(Sensor sensor, int accuracy) {
// TODO Auto-generated method stub

}
@SuppressWarnings(null)
public void onSensorChanged(SensorEvent event) {
// TODO Auto-generated method stub

float x = 50,y=50,z = 50;
final long mSensorTimeStamp = 0;
final long mCpuTimeStamp = 0;
if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER){

switch (mDisplay.getRotation()) {
case Surface.ROTATION_0:
x = event.values[0];
y = event.values[1];
break;
case Surface.ROTATION_90:
x = -event.values[1];
y = event.values[0];
break;
case Surface.ROTATION_180:
x = -event.values[0];
y = -event.values[1];
break;
case Surface.ROTATION_270:
x = event.values[1];
y = -event.values[0];
break;
}

z = event.values[2];


}
  final float alpha = (float) 0.8;

  float[] gravity = null;
gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0];
  gravity[1] = alpha * gravity[1] + (1 - alpha) * event.values[1];
  gravity[2] = alpha * gravity[2] + (1 - alpha) * event.values[2];

  float[] linear_acceleration = null;
linear_acceleration[0] = event.values[0] - gravity[0];
  linear_acceleration[1] = event.values[1] - gravity[1];
  linear_acceleration[2] = event.values[2] - gravity[2];
  final float sx = linear_acceleration[1];
  final float sy = linear_acceleration[2];




float mPosX=0;
 float mPosY=0;
 float mAccelX = 0;
 float mAccelY=0;
 float mLastPosX=0;
 float mLastPosY=0;




final long dT = mSensorTimeStamp + (System.nanoTime() -
mCpuTimeStamp);
final float dTdT = dT * dT;

final float x1 = 2*(mPosX )- mLastPosX + mAccelX* dTdT;

final float y1 = 2*(mPosY)  - mLastPosY + (mAccelY)*dTdT;


mLastPosX = mPosX;

mLastPosY = mPosY;
mPosX = x1;
mPosY = y1;
mAccelX = sx;
mAccelY = sy;
t1=((TextView) findViewById(R.id.textView1));
t1.setText(Axe x+x+ms^2+\n+ Axe y+y+\n+Axez+z);
t2=(TextView) findViewById(R.id.textView2);
t1.setText(AcclinX+ linear_acceleration[1]+ms^2+AcclinY+
linear_acceleration[2]+ms^2);

t3=(TextView) findViewById(R.id.textView3);
t3.setText(POSX+ x1+m+POSY+ y1+m);

}}
`I do not know what's the probleme.Mon stumbles is to find a position
from the accelerometer, if it please you help me

2012/5/13, Marcin Orlowski webnet.andr...@gmail.com:
 Just a note, that to make this thread useful for others, searching for help
 in future, it's a good habbit to tell where the problem was and how you
 fixed it (if it was not trivial)

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
 *Date In Tray* http://bit.ly/dateintraypro - current date at glance...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/*,
 *Google+*http://bit.ly/webnetmobile-gpand
 *Twitter http://webnetmobile.com/twitter/*



 On 13 May 2012 18:20, Jeresam515 jeremyschiff...@gmail.com wrote:

 Thanks all, I have gotten it to work.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 

[android-developers] onChildViewRemoved triggered only by the last child

2012-05-15 Thread Bob
May someone help me with this?

http://stackoverflow.com/questions/10576173/onchildviewremoved-triggered-only-by-the-last-child

I got this listener code, but the onChildViewRemoved is only triggered
when the last child is removed. The onChildViewAdded is triggered on
every child added. (that's what I expected for both)

My goal is to limit the ListView in 9 items, when the limit is reached
I want to hide the form and after that, when I remove an item, I want
the form back.

private OnHierarchyChangeListener grdCategoriesHieararchyChangeHandler
= new OnHierarchyChangeListener() {
@Override
public void onChildViewRemoved(View parent, View child) {
LinearLayout bc = (LinearLayout)findViewById(R.id.newCategory);
if (bc.getVisibility() == View.INVISIBLE)
bc.setVisibility(View.VISIBLE);
}

@Override
public void onChildViewAdded(View parent, View child) {
if (mCategories.getCount() = 9)
{
LinearLayout bc =
(LinearLayout)findViewById(R.id.newCategory);
bc.setVisibility(View.INVISIBLE);
}
}
};

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

2012-05-15 Thread Hilario Perez Corona
You may try to combine onPause with onWindowFocusChanged to pause the audio 
thread. I think you could try it out and see if it fixes your problem...

Pause te music only if your app was paused and focus was lost...

On Thursday, May 10, 2012 1:04:38 PM UTC-7, RLScott wrote:

 I have a working audio input app that uses the AudioRecord class for 
 low-level PCM continuous audio processing.  The audio stream is read 
 and analyzed by a separate thread which repeatedly calls 
 audioRecord.read to process the microphone audio one block at a time. 
 Currently I create and start up this thread in my main activity's 
 onResume() and tear it all down in onPause().  However this has led to 
 a nuisance if the device is rotated during certain critical periods 
 where I really need to analyze uninterrupted audio.  What I would like 
 to do is restructure my app so that the audio thread continues to live 
 and operate through an onPause() and onResume() cycle.  That means my 
 linkage to my main activity is going to be quite a bit different. 
 Currently I have instance variables to hold a pointer to the thread 
 object and to host the runables that are posted when certain points in 
 the analysis thread are reached.  What is the best practice for 
 accomplishing this with a thread that can live beyond the activity's 
 onPause()? 

 Should I just use static variables to hold the pointer to the thread? 
 What about app shutdown?  If I have a thread that continues to live 
 after an onPause(), which is the latest method I can count on being 
 called in the event of an app shutdown, then how does that thread ever 
 get killed when the OS wants to kill my app?  Will that statically- 
 created thread cause the system to hang?  Whenever I use threads (in 
 Windows and iPhone, for instance) I have always taken responsibility 
 for shutting down any thread that I create.  But in Android, the 
 calling of onDestroy() is not guaranteed in the activity lifetime. 
 Only onPause() is guaranteed. 

 My app has been working great with the audio thread lifetime being 
 tied to the lifetime of my main activity, but now that I am 
 considering severing that tie, I am not so sure what will happen to 
 that thread.

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

2012-05-15 Thread Alex Boye-Laryea
A guy did the same thing here. You can check it out and correct ur errors. 
http://android-er.blogspot.com/2010/04/simple-rss-reader-in-listview.html 

On Tuesday, 28 April 2009 15:20:38 UTC+1, Gaurav wrote:

 Hi, 

 I am trying to access rss feeds : 

 RSSFEEDOFCHOICE = http://rss.news.yahoo.com/rss/entertainment;; 

 Below is the code: 

 try 
 { 
 // setup the url 
URL url = new URL(urlToRssFeed); 

// create the factory 
SAXParserFactory factory = SAXParserFactory.newInstance(); 
// create a parser 
SAXParser parser = factory.newSAXParser(); 

// create the reader (scanner) 
XMLReader xmlreader = parser.getXMLReader(); 
// instantiate our handler 
RSSHandler theRssHandler = new RSSHandler(); 
// assign our handler 
xmlreader.setContentHandler(theRssHandler); 
Log.i(getFeed, before inputsource ); 
// get our data via the url class 

//InputSource is = new InputSource(inputStream); 
InputSource is = new InputSource(); 
is.setByteStream(url.openConnection().getInputStream()); 
// perform the synchronous parse 
xmlreader.parse(is); 
// get the results - should be a fully populated RSSFeed 
 instance, or null on error 
return theRssHandler.getFeed(); 
 } 
 catch (Exception ee) 
 { 
 Log.e(getFeed, ee ==  +ee.getMessage(),ee); 

 // if we have a problem, simply return null 
 return null; 
 } 


 below is the exception trace: 

 04-28 19:47:54.155: INFO/RSSReader: onCreate(854): START 
 04-28 19:47:54.226: INFO/RSSReader: onCreate(854): RSSFEEDOFCHOICE 
 http://rss.news.yahoo.com/rss/entertainment 
 04-28 http://rss.news.yahoo.com/rss/entertainment04-28 19:47:54.235: 
 INFO/getFeed(854): urlToRssFeed == 
 http://rss.news.yahoo.com/rss/entertainment 
 04-28 http://rss.news.yahoo.com/rss/entertainment04-28 19:47:54.306: 
 INFO/getFeed(854): before inputsource 
 04-28 19:47:54.355: ERROR/OSNetworkSystem(854): unknown socket error 
 -1 
 04-28 19:47:54.389: ERROR/getFeed(854): ee == unknown error 
 04-28 19:47:54.389: ERROR/getFeed(854): java.net.SocketException: 
 unknown error 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl 
 (Native Method) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 org.apache.harmony.luni.platform.OSNetworkSystem.createSocket 
 (OSNetworkSystem.java:79) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 org.apache.harmony.luni.net.PlainSocketImpl2.create 
 (PlainSocketImpl2.java:59) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 java.net.Socket.checkClosedAndCreate(Socket.java:763) 
 04-28 19:47:54.389: ERROR/getFeed(854): at java.net.Socket.connect 
 (Socket.java:910) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.init 

 (HttpConnection.java:61) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionManager 

 $ConnectionPool.getHttpConnection(HttpConnectionManager.java:145) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionManager.getConnection
  

 (HttpConnectionManager.java:67) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getHTTPConnection
  

 (HttpURLConnection.java:800) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connect
  

 (HttpURLConnection.java:786) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInputStream
  

 (HttpURLConnection.java:1030) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 com.msi.androidrss.RSSReader.getFeed(RSSReader.java:94) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 com.msi.androidrss.RSSReader.onCreate(RSSReader.java:53) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 
 1122) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 
 2103) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 
 2156) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 android.app.ActivityThread.access$1800(ActivityThread.java:112) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 
 04-28 19:47:54.389: ERROR/getFeed(854): at 
 android.os.Handler.dispatchMessage(Handler.java:88) 
 

Re: [android-developers] create Config file - URGENT please

2012-05-15 Thread Juan Ramón Morandeira Martes

Hi,

Why dont you try to execute the config activity first, when the users 
execute the app for the first time??



On 14/05/12 17:43, dillipk wrote:

Hi ,

I want to create a config file inside the ABSOLUTE PATH of the
application at the time of installation. Would this be possible? The
reason for this is, before even first time running the app, user can
edit/specify the DNS/port and other settings in the config file.

Mandatory requirements:

- User should be able to edit the CONFIG file even before running the
APP for the first time..
- I do not want to create this file manually in the device..




Thank you in advance..

Regards,
DK



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

2012-05-15 Thread Dandre Allison
I am curious if you can add additional buttons to the keyboard, like in the 
Gmail 
apphttps://play.google.com/store/apps/details?id=com.google.android.gmhl=en 
for 
example. It seems like the keyboard is the same as the regular one, with a 
row of additional buttons on top of it. I'm looking to add cancel and 
done buttons to an EditText's keyboard that is multilined. The only 
customization I've found so far is for the full keyboard.

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

2012-05-15 Thread Sam Blyuez
I have one application uploaded to market (Google Play). Now what i
want to do is whenever a user downloads my application from google
play, i want the the key words or tags or referrals through which the
user visited my application and downloaded it.

Is it possible to track such 'Install Referrer' without using
GA(Google Analytics) SDK in my app.

Please help...
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] Keeping http session with android/rails

2012-05-15 Thread Joel
Hi, I've a rails app with authentication using the devise gem
(https://github.com/plataformatec/devise). That works well on the browser. I
also have a android app communicating with that server by http requests
(RESTful). The problem is: the android app isn't keeping the session when I try
to use the method postRequest. I'm attaching part of the code I'm
using. I'll try
to make a new application isolating the the problem.

-- 
Joel Silva Uchoa

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

ServerClient.java
Description: Binary data


[android-developers] Re: The file size is double at google play.

2012-05-15 Thread Yoosuf Khamees
just delite the market app from system and then install the new google
play market it will shoe that the google play now cover much free
space

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

2012-05-15 Thread Michael Bogdanov
Is it possible to add 3d party library to android command line build
tool (is there any property in android build.xml), so it would be
avaliable at compilation time, but would not be included in resulting
*.apk?

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

2012-05-15 Thread sanae
hello I'm working on a project of indoor geolocation but I soot blocks
in the Verlet integration method by which I do not know how I can give
retrieves the accelerometer in the memo, help me please !

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


[android-developers] Connecting via WiFi

2012-05-15 Thread BArtWell
How to programmatically connect two devices via WiFi? May be I have some 
way to initialize AdHoc or HotSpot on device? Which classes I need to use? 
It is desirable on Android 2.x. I will be indebted for any suggestions.

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

2012-05-15 Thread kamal kamal
Hi Guys,

Is it possible to for android to dynamically change its layout?
Like I have 2 files ont has a linear layout, and other file has tabt
layout.

on the button click i want to change linear layout with tabtlayout.

is this possible without creating seprate activity for each layout ?

Thanks
Kamal

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ICS : Why this source code crash in query ?

2012-05-15 Thread chronogps
I try to read google agenda content with following code (from here :
http://developer.android.com/guide/topics/providers/calendar-provider.html)

The code crach at : cur = cr.query(uri, EVENT_PROJECTION, selection,
selectionArgs, null);

I'm running this source code on my Acer A500 / ICS 4.0.3 (as it is not
possible to manage agenda on the emulator).

Any idea to fix the app crash ?


final int PROJECTION_ID_INDEX = 0;
final int PROJECTION_ACCOUNT_NAME_INDEX = 1;
final int PROJECTION_DISPLAY_NAME_INDEX = 2;
final int PROJECTION_OWNER_ACCOUNT_INDEX = 3;

// Projection array. Creating indices for this array 
instead of
doing
// dynamic lookups improves performance.
final String[] EVENT_PROJECTION = new String[]
{
Calendars._ID,   // 0
Calendars.ACCOUNT_NAME,  // 1
Calendars.CALENDAR_DISPLAY_NAME  // 2
};


// Run query
Cursor cur = null;
ContentResolver cr = getContentResolver();
Uri uri = Calendars.CONTENT_URI;
String selection = (( + Calendars.ACCOUNT_NAME +  = 
?) AND (
+ Calendars.ACCOUNT_TYPE +  = 
?));
String[] selectionArgs = new String[] 
{chrono...@gmail.com,
com.google};

// Submit the query and get a Cursor object back.

cur = cr.query(uri, EVENT_PROJECTION, selection, 
selectionArgs,
null);

// Use the cursor to step through the returned records
while (cur.moveToNext())
{
long calID = 0;
String displayName = null;
String accountName = null;
// Get the field values
calID = cur.getLong(PROJECTION_ID_INDEX);
displayName = 
cur.getString(PROJECTION_DISPLAY_NAME_INDEX);
accountName = 
cur.getString(PROJECTION_ACCOUNT_NAME_INDEX);
// Do something with the values...
}

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

2012-05-15 Thread Julian Cardona
hi, i found the carousel example that works on google music at thi
link : 
http://code.google.com/p/android-ui-utils/downloads/detail?name=CarouselExample.zipcan=2q=
but the problem is that this code only works on honeycomb and above
but the one that is on google music works on 2.2 and 2.3, so i was
wondering if there is any improvement of this code that i can use to
make it work on this versions or if it is another piece of 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] Re: Displaying virtual keyboard in a custom View

2012-05-15 Thread Jonathan Koren
Sorry to resurrect an old topic, but I'm dealing with a similar problem. 
Where did you implement this line of code? Was it in onFocusChanged()?

On Monday, August 24, 2009 4:28:55 AM UTC-7, LambergaR wrote:

 Thank you very much for all the responses. I finished up simply using 

 inputMethodManager.toggleSoftInputFromWindow ( this.getWindowToken (), 
 InputMethodManager.SHOW_FORCED, 
 InputMethodManager.HIDE_IMPLICIT_ONLY ); 

 the problem was actually quite easy to solve!

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

2012-05-15 Thread Mr Nice
My code is bellow..
In BroadcastReceiver i write like this


public class BCRDemo extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
Intent myIntent=new Intent(context,MyService.class);
context.startService(myIntent);
}

}


In MyService class i write like this.

public class MyService extends Service {

@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
public int onStartCommand(Intent intent, int flags, int startId){
super.onStartCommand(intent, flags, startId);
Toast.makeText(getBaseContext(),  Demo Service Started,
Toast.LENGTH_SHORT).show();
return START_STICKY;
}
}


And also i register service and broadcast receiver in manifest file..
but my problem is i am not able to see the toast and it is not visible
in  Emulator Running Service

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


[android-developers] Android for UK??

2012-05-15 Thread DanialA

Dear all,

It is for 2 days that i am looking for the webpage of android
specially for UK, As android dominated the market in this country i
think it is far behind reality which android has not this webpage for
British users.

Is there any special website for UK by Android?

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] Android ADK Arduino 1.0 compability

2012-05-15 Thread jenosch
When can we expect the Android ADK (http://developer.android.com/guide/
topics/usb/adk.html) to be compatible with Arduino 1.0?

Best,
Jens

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

2012-05-15 Thread Roger
I created my own keyboard based on the keyboard sample code. And I
would like add contextmenu for switching between the different mode.
However, I cannot get it works. I tried to get the keyboard view and
registerForContextMenu(), but it seems doesn't work.
If there is any way to create the contextmenu to the keyboard?

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

2012-05-15 Thread naseem Rafique
Hi All,

Is Blob type is supported n Android?

Please help?

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

2012-05-15 Thread naseem Rafique
Hi All,

Is Blob type is supported n Android?

Please help?

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] Confusing Sensors and lack of Documentation

2012-05-15 Thread Rafael Timmerberg
I'm basically interested in the same output as I can get with the
deprecated OrientationSensor. I'm calling
SensorManager.getRotationMatrix() and use this matrix for
SensorManager.getOrientation(). Then, I convert this values from rad
to deg, and still having trouble, because the range of the values
dind't match OrientationSensor. So I make comptutations myself, like
for Azimuth:
orientation[0] = 0 ? orientation[0]: orientation[0] + 360;
or Pitch:
if (orientation[1] = -90)
{
orientation[1] += (-2*(90+orientation[1]));
} else if(orientation[1] = 90){
orientation[1] += (2*(90 - orientation[1]));
}

I can find that kind of computation NOWHERE inside the docs.
I just felt, that I'm done before I saw weird behavior for - what is
called ROLL - inside the Docs. It is the negative of the Orientation-
Roll EXCEPT on a negative Pitch: There the range goes up from -90 - 90
to -180 to 180 without any reason or logical methodology I can figure
out.
HOW the heck I can get the SAME Values from
SensorManager.getOrientation() and the deprecated
ORIENTATION_SENSOR?

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

2012-05-15 Thread Slasher
I just wonder how to create this cool design like in this application  
https://play.google.com/store/apps/details?id=com.ted.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] ActivityNotFound issue

2012-05-15 Thread DMac
I am trying to test the progress of my program so far with a statement. The 
statement is within an activity that is called by another activity before, 
and that one is called by another activity before that (so an activity 
within an activity within an activity). The problem is when I run the 
program, I come into an error that says ActvityNotFoundException and the 
emulator has to force close, however, all my classes extend the Activity 
class. I am not sure how to solve the problem since I do not think I should 
have one. I uploaded my files to allow for checking.

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

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import android.widget.TextView;

public class EditLibrary extends Activity{
	TextView tv;
	String out;
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.editlib);
		tv = (TextView) findViewById(R.id.tview);
		
		Intent intent = getIntent();
		out = intent.getStringExtra(Input);
		tv.setText(out);
	}
}
package com.maclinCode;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class FileCreation extends Activity{
	EditText tv;
	Button ok;
	String name;
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.createfile);
		
		ok = (Button) findViewById(R.id.OK);
		tv = (EditText) findViewById(R.id.FileName);
		name = tv.getText().toString();
		
		//creates the library file
		ok.setOnClickListener(new View.OnClickListener() {
			//transfers to edit library after file creation
			public void onClick(View v) {

Intent edit = new Intent(FileCreation.this, EditLibrary.class);
edit.putExtra(Input, name);
startActivity(edit);
			}
		});
	}

}
package com.maclinCode;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class GameLibraryActivity extends Activity {
/** Called when the activity is first created. */
Button create, edit, view, delete, wanted;


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

create = (Button) findViewById(R.id.create);
edit = (Button) findViewById(R.id.edit);
view = (Button) findViewById(R.id.view);
delete = (Button) findViewById(R.id.delete);
wanted = (Button) findViewById(R.id.want);

//creates the file for the directory
create.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
Intent i = new Intent(GameLibraryActivity.this, FileCreation.class);
startActivity(i);

			}
		});

//edit.setOnClickListener(new View.OnClickListener() {
//			public void onClick(View v) {
//
//
//			}
//		});
//
//view.setOnClickListener(new View.OnClickListener() {
//			public void onClick(View v) {
//
//
//			}
//		});
//
//delete.setOnClickListener(new View.OnClickListener() {
//			public void onClick(View v) {
//
//
//			}
//		});
//
//wanted.setOnClickListener(new View.OnClickListener() {
//			public void onClick(View v) {
//
//
//			}
//		});
}
}

[android-developers] how to set opacity of background image

2012-05-15 Thread kamal kamal
Hi Friends

Can you please let me know how to set opacity of background image?

Thank you in advance.

Kamal

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

2012-05-15 Thread BArtWell
How to programmatically connect two devices via WiFi? It is desirable
for Android 2.x. May be, I have some way to enable Wi-Fi hot spot on
the device or I can use AdHoc?
I would be indebted for any suggestions.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Circular sector shaped clipping mask with Path.addArc?

2012-05-15 Thread Tamás Kovács
I need to create a clipping mask with a shape of a circular sector.

I am able to draw one using the following:

paint.setColor(0x88FF);
paint.setStyle(Style.FILL);
canvas.drawArc(oval, 0, 30, true, paint);

I want to use it as a clipping path, so I've tried:

Path path = new Path();
path.addArc(oval, 0, 30);
canvas.clipPath(path, Op.REPLACE);

However addArc doesn't have the useCenter parameter so what I get is
not a sector but a segment.

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

2012-05-15 Thread jkasten
My Google play app Calculator for Sony SmartWatch, with package ID 
com.kasten.sonysmartwatch.calc was suspended and removed from the Google 
play store on May 12 for Violation of the intellectual 
propertyhttp://www.android.com/us/developer-content-policy.html#IP
 and impersonation or deceptive 
behaviorhttp://www.android.com/us/developer-content-policy.html#impersonation 
provisions 
of the Content Policy. I have respond to the e-mail like the instructions 
said but from doing some searching it has taken a while for them 
to respond. I didn't see a phone number or a link where I can chat with 
someone at Google to get more details on why it was removed. I am just 
overlooking this contact information?

Here is a cached link to my app:
http://webcache.googleusercontent.com/search?q=cache:xcTTjUtJau0J:https://play.google.com/store/apps/details%3Fid%3Dcom.kasten.sonysmartwatch.calc+cd=3hl=enct=clnkgl=us

I have some guesses to what Google maybe considering violation but not sure.

Is the title itself Calculator for Sony SmartWatch a violation as I use 
anthers company's name in the title?
Is the package name com.kasten.sonysmartwatch.calc a violation as I use 
anthers company's name?
   - If so can it be changed so current users can re-install/upgrade 
without have to re-buy the app?
Do I have to blackout the word Sony on the images I took of my watch?
Do I need to explicitly state my app is not related to Sony in any way?
Anything else I am overlooking?

I think this was flagged by Google itself as Sony actually re-tweeted my 
release announcement and the description and screenshots were only updated 
a bit for the new layout and controls since the release.
https://twitter.com/#!/XperiaExtras/statuses/198008472770580480

I am not treating Sony's re-tweet as an approval of my app but just saying 
I highly doubt they have a problem with it.


Any information, suggestions, or experiences with this would be 
greatly appreciated.

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

Re: [android-developers] An app inside the other

2012-05-15 Thread Narendra Singh Rathore
 I'd like to know if is possible to launch an app inside the other
 developed by me.

 I'm trying to run a previous installed app inside a Tabhost for instance.
 If it is, how could I do this?


Hi Lucas, you can use the following code for that.

Intent i = new Intent();

PackageManager manager = getPackageManager();

i =
manager.getLaunchIntentForPackage(package_name_to_switch);

startActivity(i);

Hopefully, this will help you.


NSR

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

2012-05-15 Thread bash
Hi ! 

You can try this : 

 

 byte[] data =getDataBytes(); // Your byte array
 
 Bitmap bt=BitmapFactory.decodeByteArray(data, 0, data.length); // a 
 Bitmap from your byte array wich is an image.


Hope It helps. 

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

2012-05-15 Thread Bertil Hansen


the Developer Console? 

 Is the only solution to change the package name and upload it as a 
 brand new application, leaving the old one forever as 'unpublished'? 

 Thank you very much in advance for your help.


On Saturday, April 28, 2012 5:46:24 PM UTC+2, TullyK wrote:

 I recently published an app to Google Play which I now want to update. 
 When I try to export the new apk from Eclipse it says 'Invalid 
 keystore format' It seems like my original apk file has overwritten 
 the keystore! Normally it puts .apk at the end of the file name but 
 this time it did not, and as I have the same name for the keystore and 
 the apk I fear the key store has been deleted, is this possible? 

 So now I can't update my app because if I use a new keystore it won't 
 let me upload it. So I tried making a completely new application on 
 the Developer Console but it obviously  doesn't let me have two 
 applications with the same package name. Having done a small amount of 
 research it seems impossible to delete my original applications from 
 the Developer Console? 

 Is the only solution to change the package name and upload it as a 
 brand new application, leaving the old one forever as 'unpublished'? 

 Thank you very much in advance for your help.


I made my first app using appsgeyser. Imagine my surprise when I made my 
own app in eclipse and tried to update. It was not possible without the 
original keystore :-( So I had to unpublish the original one and publish 
the new one, starting from scratch with dl's ratings and +1s. So I guess if 
you have truly lost the keystore you have to do the same...

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

[android-developers] How can I Destroy activity

2012-05-15 Thread Kareem Musfer
My first app is (6arbyat Cafe) it is allow  users to listen random
songs witch I choose it .

Simply , I make a simple browser to custom page   (http://www.
6arbyat.com/s1/pop3.html)
And it is work well .. but when I back from browser Activity Class ..
it is still work .. I can't stop music play ..

I attached the app file .apk also browser Class ..

Here the browser class Code :

-
package com.arbyat.cafe;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.Button;

public class Sharqyh extends Activity implements OnClickListener{

Button b1, b2;

@Override
protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
setContentView(R.layout.browser);

WebView news1 = (WebView) findViewById(R.id.webbrow1);
b1 = (Button) findViewById(R.id.bUpdate);
b2 = (Button) findViewById(R.id.bBack);

b1.setOnClickListener(this);

news1.getSettings().setJavaScriptEnabled(true);
news1.getSettings().setLoadWithOverviewMode(true);
news1.getSettings().setUseWideViewPort(true);
news1.getSettings().setPluginsEnabled(true);

news1.setWebViewClient(new ourBrowser());
try {
news1.loadUrl(http://www.6arbyat.com/s1/pop.html;);
} catch (Exception e){

e.printStackTrace();
}



}

public void onClick(View v) {
// TODO Auto-generated method stub
switch (v.getId()){
case R.id.bUpdate:
WebView news1 = (WebView) 
findViewById(R.id.webbrow1);

news1.loadUrl(http://www.6arbyat.com/s1/pop.html;);
break;

case R.id.bBack:
b2.setOnClickListener(new 
View.OnClickListener() {public void
onClick(View v)
{final Intent i = new Intent(Sharqyh.this,
mainActivity.class); startActivity(i);}});
finish();
break;


}
}
@Override
protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
finish();
}
}
-


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

2012-05-15 Thread sai prasanth
Hi Geeks,

   I recently got this thought...Rite from the moment I
wokeup ,till i goto bed,the only thing that keeps me always engaged is
Android..Loving android..I have to develop some new..I have some
ideas..What is the first step I have to do for that.What are the
things that I should learn for doing this..Please somebody help
me ...I have to...

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

2012-05-15 Thread Mark Murphy
What, precisely, would a special website for UK by Android be?

On Sun, May 13, 2012 at 3:36 PM, DanialA danial.arj2...@gmail.com wrote:

 Dear all,

 It is for 2 days that i am looking for the webpage of android
 specially for UK, As android dominated the market in this country i
 think it is far behind reality which android has not this webpage for
 British users.

 Is there any special website for UK by Android?

 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



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

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

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


Re: [android-developers] Not able to start service using Broadcast Receiver.

2012-05-15 Thread Mark Murphy
Perhaps your service is not registered in the manifest. Use adb
logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and
see if there are any relevant messages.

On Tue, May 15, 2012 at 3:54 AM, Mr Nice mail2bhra...@gmail.com wrote:
 My code is bellow..
 In BroadcastReceiver i write like this


 public class BCRDemo extends BroadcastReceiver {

        @Override
        public void onReceive(Context context, Intent intent) {
                Intent myIntent=new Intent(context,MyService.class);
                context.startService(myIntent);
        }

 }


 In MyService class i write like this.

 public class MyService extends Service {

        @Override
        public IBinder onBind(Intent intent) {
                return null;
        }
        @Override
        public int onStartCommand(Intent intent, int flags, int startId){
                super.onStartCommand(intent, flags, startId);
                Toast.makeText(getBaseContext(),  Demo Service Started,
 Toast.LENGTH_SHORT).show();
                return START_STICKY;
                }
 }


 And also i register service and broadcast receiver in manifest file..
 but my problem is i am not able to see the toast and it is not visible
 in  Emulator Running Service

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



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

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

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


[android-developers] Re: Geolocation in a mobile application

2012-05-15 Thread Thomas
Yes it is possible as I have written several Geocaching themed Android 
games that rely on location and the player facing various challenges.  It 
would not be difficult to have several players interacting as well.  Visit 
http://tombtalk.net for some discussion and examples.

Best,

Tom B

On Monday, May 14, 2012 2:46:28 AM UTC-4, Midnight Nightmare wrote:

 Hi, 

 I have never developed for mobile devices (Android or IOS) and I have 
 a curiosity. It would be possible to develop a kind of game (RPG) that 
 takes advantage of the geolocation? Basically I was thinking of a game 
 where the player physically moving to his city, would have the 
 opportunity to meet monsters to fight or even challenge other 
 players. I do not know if there is already something similar, but 
 devices like iPhone or Galaxy would allow such a thing? 

 Thanks 


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

Re: [android-developers] How can I Destroy activity

2012-05-15 Thread Narendra Singh Rathore
case R.id.bBack:
  *  b2.setOnClickListener(new
 View.OnClickListener() {public void
 onClick(View v)
{*



 *final Intent i = new Intent(Sharqyh.this,
 mainActivity.class); startActivity(i);*



 *}});*
finish();
break;



You need not have to use the above code, which I marked in bold.

Just calling finish() on button click is enough.

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

2012-05-15 Thread Mark Murphy
On Mon, May 14, 2012 at 11:48 AM, Dandre Allison
dandre.alli...@gmail.com wrote:
 I am curious if you can add additional buttons to the keyboard, like in
 the Gmail app for example.

The Gmail app does not add buttons to the IME.

 It seems like the keyboard is the same as the
 regular one, with a row of additional buttons on top of it.

Those are suggested values, supplied by the IME.

 I'm looking to
 add cancel and done buttons to an EditText's keyboard that is
 multilined. The only customization I've found so far is for the full
 keyboard.

Add them to your layout. You can create your own IME, and you can
possibly configure the action button for an IME (typically in
lower-right corner, but not guaranteed to exist on any given IME). You
cannot otherwise add stuff to an existing IME.

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

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

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


[android-developers] Can I get user's city without using GPS?

2012-05-15 Thread Perry168
 Hi all,
 

I hope to get user's country and city without using GPS. Basically, I know 
how to get user's country. I searched some post from the web. It can use 
LocationManager through NETWORK_PROVIDER to have the Latitude  Longitude. 
From Latitude  Longitude, use GeoEncoder to find the city. 

The follow is my LocationManager part:

 
1.public void onCreate(Bundle savedInstanceState) { 
2.  
3.super.onCreate(savedInstanceState);
4.  
5.setContentView(R.layout.main); 
6. 
7.loMgr = (LocationManager) getSystemService(LOCATION_SERVICE); 
8. 
9.loMgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, 
this); 
10.   
11. }
12.   
13.   
14.  
15. public void onLocationChanged(Location location) { 
16.  
17.TextView tv01 = (TextView)findViewById(R.id.TextView01); 
18.   
19.TextView tv02 = (TextView)findViewById(R.id.TextView02);
20.   
21.tv01.setText(Latitude:  + String.valueOf(location.getLatitude())); 
22.  
23.tv02.setText(Longitude: + String.valueOf(location.getLongitude())); 
24.   
25.}
 
 

Also I added the android.permission.ACCESS_FINE_LOCATION in 
AndroidManifest.

After testing, it is no result. 

Can anyone tell me how to fix it?

Thanks a lot!

 

 

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

2012-05-15 Thread Mark Murphy
What would the point be? Your app would crash at runtime.

On Tue, May 15, 2012 at 1:06 AM, Michael Bogdanov
mikhael.bogda...@gmail.com wrote:
 Is it possible to add 3d party library to android command line build
 tool (is there any property in android build.xml), so it would be
 avaliable at compilation time, but would not be included in resulting
 *.apk?

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



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

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

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


Re: [android-developers] Blob

2012-05-15 Thread Mark Murphy
On Tue, May 15, 2012 at 7:32 AM, naseem Rafique naseem.ra...@gmail.com wrote:
 Is Blob type is supported n Android?

Blob is a database concept. Android is not a database. Android is an
operating system.

Android supports byte arrays. The SQLite database, often used with
Android applications, supports byte arrays.

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

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

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


Re: [android-developers] How can I Destroy activity

2012-05-15 Thread Narendra Singh Rathore
Even, when you are giving case R.id.bBack, it simply means, you are
clicking back button.

so you don't have to call setOnClickListener on the button further.

NSR.

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

2012-05-15 Thread Mark Murphy
This is not possible, except perhaps if you use the device in speakerphone mode.

On Sat, May 12, 2012 at 5:38 AM, Yar Muhammad mybc...@gmail.com wrote:
 hi, i am new to android programming. and i want to make a call
 recorder in android, i study the topics like
 MediaRecorder.AudioSource , telephone manager and phonestate
 listner . but i don't understand how can i use these built in classes
 to record a call. 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



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

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

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


Re: [android-developers] Record a call in android

2012-05-15 Thread Save My Life!
but it wont work.due to poor quality.
On May 15, 2012 5:37 PM, Mark Murphy mmur...@commonsware.com wrote:

 This is not possible, except perhaps if you use the device in speakerphone
 mode.

 On Sat, May 12, 2012 at 5:38 AM, Yar Muhammad mybc...@gmail.com wrote:
  hi, i am new to android programming. and i want to make a call
  recorder in android, i study the topics like
  MediaRecorder.AudioSource , telephone manager and phonestate
  listner . but i don't understand how can i use these built in classes
  to record a call. 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



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

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

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

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

[android-developers] Re: Can we block certain sms messages from reaching the default messaging app?

2012-05-15 Thread Farhan Tariq
I am really stuck at this. Someone please guide me. Thanks

On Tue, May 15, 2012 at 2:47 AM, Farhan Tariq farhan@gmail.com wrote:

 Hi all,

 I aim to make an app that would store sms messages with certain words
 contained in an sms, and stop it from reaching the default messaging app. I
 realize that I need to place a broadcast receiver for sms messages in my
 app, but how do I ensure that If a message contains a KEYWORD, the message
 gets deleted immediately and becomes unaccessible to any other messaging
 app? I am stuck here, so any help is appreciated. Thank you

 Regards,

 Farhan


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

2012-05-15 Thread Peeyush Varshney
As your activity is not present, attach the logs also if it is possible.

On Mon, May 14, 2012 at 10:13 AM, DMac danielmac...@gmail.com wrote:

 I am trying to test the progress of my program so far with a statement.
 The statement is within an activity that is called by another activity
 before, and that one is called by another activity before that (so an
 activity within an activity within an activity). The problem is when I run
 the program, I come into an error that says ActvityNotFoundException and
 the emulator has to force close, however, all my classes extend the
 Activity class. I am not sure how to solve the problem since I do not think
 I should have one. I uploaded my files to allow for checking.

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




-- 
Thank  Regards
Peeyush Varshney

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

2012-05-15 Thread saran vonteddu
Dear *,

 In my application I want to accept phone call without any user
interaction. In order to achieve that I tried using iTelephony.aidl, as
shown below.

package com.android.internal.telephony;

  interface ITelephony {


boolean endCall();


void answerRingingCall();


void silenceRinger();

}

And I heard we need reflection concept to achieve this, but I don't know
how and where to implement these methods.

I tried the below links, but could get the appropriate solution.

http://androidsourcecode.blogspot.com/2010/10/blocking-incoming-call-android.html

http://prasanta-paul.blogspot.in/2010/09/call-control-in-android.html

So please help me out in this issue, any help in this regard is highly
appreciated.



regards,
Saran

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

2012-05-15 Thread Rafael Timmerberg
sqlite3 also supports Blobs:
http://www.sqlite.org/datatype3.html

On May 15, 2:05 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, May 15, 2012 at 7:32 AM, naseem Rafique naseem.ra...@gmail.com 
 wrote:
  Is Blob type is supported n Android?

 Blob is a database concept. Android is not a database. Android is an
 operating system.

 Android supports byte arrays. The SQLite database, often used with
 Android applications, supports byte arrays.

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

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

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


[android-developers] supports-screen doesnt work?

2012-05-15 Thread Hitendrasinh Gohil
Hi,

 I want to restrict my app to 10.1 tablets only. Below is the manifest 
configuration for that.

supports-screens
android:largeScreens=false
android:normalScreens=false
android:requiresSmallestWidthDp=720
android:smallScreens=false
android:xlargeScreens=true /

I am able to run the app with Emulator 4.0.3(HVGA). can anyone tell me what 
is wrong here?

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

Re: [android-developers] supports-screen doesnt work?

2012-05-15 Thread Mark Murphy
On Tue, May 15, 2012 at 9:08 AM, Hitendrasinh Gohil
hitendrasin...@gmail.com wrote:
 Hi,

  I want to restrict my app to 10.1 tablets only. Below is the manifest
 configuration for that.

 supports-screens
     android:largeScreens=false
     android:normalScreens=false
     android:requiresSmallestWidthDp=720
     android:smallScreens=false
     android:xlargeScreens=true /

 I am able to run the app with Emulator 4.0.3(HVGA). can anyone tell me what
 is wrong here?

I am not certain that anything is wrong here. Your app would be
filtered out of the Play Store, but it can still be installed, by my
reading of the docs.

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

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

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


[android-developers] How to display customized layout by ADT Graphical Layout Editor

2012-05-15 Thread Tien Kooshi
Hi All,
 
Does any one know how to import customized layout which is in a jar to ADT 
Graphical Layout Editor?
The layout defined in jar is not found always.
Any comments are 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

Re: [android-developers] supports-screen doesnt work?

2012-05-15 Thread Hitendrasinh Gohil
Ok, so if i upload my app it will be only visible to tablets?

or is there any other way that i can restrict it to tablet?

On Tue, May 15, 2012 at 6:51 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, May 15, 2012 at 9:08 AM, Hitendrasinh Gohil
 hitendrasin...@gmail.com wrote:
  Hi,
 
   I want to restrict my app to 10.1 tablets only. Below is the manifest
  configuration for that.
 
  supports-screens
  android:largeScreens=false
  android:normalScreens=false
  android:requiresSmallestWidthDp=720
  android:smallScreens=false
  android:xlargeScreens=true /
 
  I am able to run the app with Emulator 4.0.3(HVGA). can anyone tell me
 what
  is wrong here?

 I am not certain that anything is wrong here. Your app would be
 filtered out of the Play Store, but it can still be installed, by my
 reading of the docs.

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

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

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




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

Re: [android-developers] supports-screen doesnt work?

2012-05-15 Thread Mark Murphy
On Tue, May 15, 2012 at 9:36 AM, Hitendrasinh Gohil
hitendrasin...@gmail.com wrote:
 Ok, so if i upload my app it will be only visible to tablets?

It should be.

 or is there any other way that i can restrict it to tablet?

There is also the compatible-screens element. It too only affects
how you display in the Play Store, not anything at runtime on a device
or emulator.

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

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

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


Re: [android-developers] supports-screen doesnt work?

2012-05-15 Thread Hitendrasinh Gohil
ok,
Thanks Mark

On Tue, May 15, 2012 at 7:12 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, May 15, 2012 at 9:36 AM, Hitendrasinh Gohil
 hitendrasin...@gmail.com wrote:
  Ok, so if i upload my app it will be only visible to tablets?

 It should be.

  or is there any other way that i can restrict it to tablet?

 There is also the compatible-screens element. It too only affects
 how you display in the Play Store, not anything at runtime on a device
 or emulator.

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

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

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




-- 
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] Performance of different IPC methods

2012-05-15 Thread Mika
Hi all,

In my app the process number 1 generates around 1KB of data every
couple of seconds and passes this to process number 2. To my
understanding there are three ways to pass data between processes:
publishing IPC interface using Binder, using Messeger or using
Broadcasts. I would like to get some feedback what would be the best
way
to pass the data between the processes? Any ideas how android handles
these different scenarios? Also would it be more effective to cache
the data in process 1 for a while and then send the data in longer
intervals and bigger chunks to process 2?
Any insight to this is really valuable.

I know that this all could be done in one process also, but because
of
the use case and some external requirements unfortunately that is not
really option in my case...

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

2012-05-15 Thread tj
Hey all,
does anyone know about phoneGap and Sencha.
How to use it and why to use it.
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


Re: [android-developers] Re: Can we block certain sms messages from reaching the default messaging app?

2012-05-15 Thread Chronogps
You have to adjust a priority android:priority attribute on your 
SMS-listening intent-filter


Le 15/05/2012 14:23, Farhan Tariq a écrit :

I am really stuck at this. Someone please guide me. Thanks

On Tue, May 15, 2012 at 2:47 AM, Farhan Tariq farhan@gmail.com 
mailto:farhan@gmail.com wrote:


Hi all,

I aim to make an app that would store sms messages with certain
words contained in an sms, and stop it from reaching the default
messaging app. I realize that I need to place a broadcast receiver
for sms messages in my app, but how do I ensure that If a message
contains a KEYWORD, the message gets deleted immediately and
becomes unaccessible to any other messaging app? I am stuck here,
so any help is appreciated. Thank you

Regards,

Farhan


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

  1   2   >