[android-developers] deleteIntent not sent on NotificationManager.cancel method

2013-02-07 Thread Sergey Tolkachov
Hi,
From 
NotificationManagerService.cancelNotificationWithTaghttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/app/INotificationManager.java#INotificationManager.cancelNotificationWithTag%28java.lang.String%2Cjava.lang.String%2Cint%29
 I 
can learn that deleteIntent is not sent when I clearing 
notification programmaticly by using NotificationManager cancel method.

It looks like api bug (or at least lack of functionality in 
NotificationManager class)
Is there any way to call it.

I am aware of option to get it via PendingIntent.getBroadcast , but I don't 
like it.

I am developing automation framework and I won't know correct parameters 
for deleteIntent.

Thank you in advance,
Sergey.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Mechanoid - open source productivity plugin for Android

2013-02-07 Thread Ian Warwick
Thanks for the clarification Kris, my only intention was to make Mechanoid 
better and work for others, at the moment it solves my needs, with 
community feedback I can make it much, much better :)

On Thursday, 7 February 2013 05:57:27 UTC, Kristopher Micinski wrote:

 I disagree: this looks like a helpful tool for many Android projects. 
 You'll likely be writing a web service along with an app, and this 
 plugin allows you to scrap your boilerplate.  It makes sense to 
 announce this here because this is a forum aimed at Android 
 development, and it's open source so people can freely use and modify 
 the code.  (The developer isn't soliciting buyers.) 

 Kris 


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




[android-developers] Get full size of insatlled applications

2013-02-07 Thread Bajrang Asthana
I'm trying to figure out how to get the size of an installed.

I read this article http://www-jo.se/f.pfleger/android-package-size  but 
did not get sussess.

Any suggestion, Thanks in advance.

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




[android-developers] start AsyncTask from a background thread

2013-02-07 Thread dashman
I'm in a worker thread and would like to start an AsynTask execution.

Preferably w/o starting a new thread. Help!


Also, is java threads as in (new Thread()) frowned upon in android.

I think i read somewhere .notify() .wait() etc. should not be used.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Custom array adapter

2013-02-07 Thread Seshu
Which problem u r facing in above code??

On Feb 6, 10:35 am, arunkuma...@npcompete.net wrote:
 Hi,
 I m create a list-view  sample.i have one problem.i want to display item in
 list view...my code is given below
 public class Sliding_listview extends ListActivity
 {
   private static final String[] items={lorem, ipsum, dolor,
           sit, amet,consectetuer, adipiscing, elit, morbi,
 vel,
           ligula, vitae, arcu, aliquet, mollis,
           etiam, vel, erat, placerat, ante,
           porttitor, sodales, pellentesque, augue, purus};

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

     setListAdapter(new IconicAdapter()); // Till here working fineBut i
 want to display this items into my listview how can i do ...

     ListView l=(ListView)findViewById(R.id.listView1);//  This is my
 list-view i want to display the items in this list only

   }

   class IconicAdapter extends ArrayAdapterString {
     IconicAdapter() {
       super(Sliding_listview.this, R.layout.sliding_listview, R.id.label,
 items);
     }

     @Override
     public View getView(int position, View convertView,ViewGroup parent)
     {
       View row=super.getView(position, convertView, parent);
       ImageView icon=(ImageView)row.findViewById(R.id.icon);
       icon.setImageResource(R.drawable.ok);
       return(row);
     }
   }

 }

 My Layout file is :

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

 ImageView
 android:id=@+id/icon
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_gravity=center_vertical
 android:padding=2dip
 android:src=@drawable/ic_launcher
 android:contentDescription=icon/

 ListView
     android:id=@+id/listView1
     android:layout_width=match_parent
     android:layout_height=wrap_content
     android:layout_weight=1 
 /ListView

 LinearLayout
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:orientation=vertical

 TextView
 android:id=@+id/label
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:textSize=25sp
 android:textStyle=bold/
 /LinearLayout

 /LinearLayout

 pls help me fast i need it very urgent for my project

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: How to hide error dialog on MediaPlayer

2013-02-07 Thread Per-Jarle Sæther
Hi
That solved it :)

Thank you for the help

Best regards
Per-Jarle

On Tue, Feb 5, 2013 at 4:46 PM, Nobu Games dev.nobu.ga...@gmail.com wrote:

 Have you tried setting a 
 MediaPlayer.OnErrorListenerhttp://developer.android.com/reference/android/media/MediaPlayer.OnErrorListener.htmlthat
  returns true? Maybe this will suppress the internally generated error
 message.



 On Tuesday, February 5, 2013 4:55:05 AM UTC-6, Per-Jarle Sæther wrote:

 Hello all
 I'm working with a video playback app

 Sometimes when there is a problem with the video stream, the MediaPlayer
 displays an error dialog saying:
 Sorry, this video cannot be played

 Is there any way to disable this dialog so it will not be displayed in my
 app?
 I would like to implement my own functionality when errors happen

 Best regards
 Per-Jarle

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] start AsyncTask from a background thread

2013-02-07 Thread Dilip Kumar Chaudhary
rea 
thishttp://dilipdevelopment.blogspot.in/2012/12/android-background-processing-with_31.htmlHope
help you lot

On Thu, Feb 7, 2013 at 3:34 PM, dashman erjdri...@gmail.com wrote:

 I'm in a worker thread and would like to start an AsynTask execution.

 Preferably w/o starting a new thread. Help!


 Also, is java threads as in (new Thread()) frowned upon in android.

 I think i read somewhere .notify() .wait() etc. should not be used.

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
*Thanks  Regards*
Dilip Kumar Chaudhary
My Linkedin Profilehttp://in.linkedin.com/pub/dilip-kumar-chaudhary/44/64/55b
My Development Blog http://dilipdevelopment.blogspot.com/

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




[android-developers] Re: start AsyncTask from a background thread

2013-02-07 Thread Piren
If you're already in a worker thread and you dont want another... why do 
you want to start an asynctask?

On Thursday, February 7, 2013 12:04:38 PM UTC+2, dashman wrote:

 I'm in a worker thread and would like to start an AsynTask execution.

 Preferably w/o starting a new thread. Help!


 Also, is java threads as in (new Thread()) frowned upon in android.

 I think i read somewhere .notify() .wait() etc. should not be used.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: getFragmentManager undefined

2013-02-07 Thread ac
please use getSupportFragmentManager() it is same as getFragmentManager()..

On Wednesday, August 24, 2011 7:13:07 PM UTC+5:30, Aaron Visser wrote:

 I need to get the viewpager up and running for a project I'm working on. 

 SDK 2.2, compatibility v4. It's all working, 
 except... getFragmentManager() is undefined.  I can't seem to see it 
 explicitly defined anywhere in code examples. 

 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-07 Thread a
The onActivityResult() gets called when the screen is active. Only when I 
lock the screen I am having the problem.
Actually, I am using the startActivityForResult() in the onCreate() method 
of executeScript(). Can I use like this or in which method should I call 
the method startActivityForResult() ?




On Wednesday, February 6, 2013 3:20:05 PM UTC+2, skink wrote:



 Archana r wrote: 
  I acquire WakeLock in onCreate() of ConnectService 

 some code? 

 pskink 


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




[android-developers] Sensors in Android

2013-02-07 Thread a
Hi, I am using Samsung Galaxy S3. When I retrieved the available sensors: I 
got a result like below:

LSM330DLC 3-axis Accelerometer  TYPE_ACCELEROMETER
 AK8975C 3-axis Magnetic field sensor  TYPE_MAGNETIC_FIELD 
   
 iNemoEngine Orientation sensor   TYPE_ORIENTATION 
 
 CM36651 Light sensorTYPE_LIGHT  
 CM36651 Proximity sensorTYPE_PROXIMITY  
 LSM330DLC Gyroscope sensorTYPE_GYROSCOPE 
 iNemoEngine Gravity sensor TYPE_GRAVITY   

 iNemoEngine Linear Acceleration sensor-S/W   TYPE_LINEAR_ACCELERATION   
 iNemoEngine Rotation_Vector sensor   TYPE_ROTATION_VECTOR 
 LPS331AP Pressure SensorTYPE_PRESSURE 
 Rotation Vector Sensor   
TYPE_ROTATION_VECTOR
 Gravity Sensor - software sensor  TYPE_GRAVITY 
 
 Linear Acceleration Sensor   TYPE_LINEAR_ACCELERATION   
 Orientation Sensor   TYPE_ORIENTATION   
 Corrected Gyroscope Sensor   TYPE_GYROSCOPE   


Why are there 2 sensors for each orientation, gyro, linear acceleration, 
rotation-vector and gravity? Could anyone explain 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] which web server should i use???

2013-02-07 Thread Muhammad Sahil
Hi All,
   i am a beginner  to android, i want to make client/ server, 
client is my android, but i don't know on which language i create a web 
server, mean on java, php, or Dot Net.

Please suggest me which web server is best to intract with Android mobile??

I am waiting for your kind help. Thanks

Regards,

Sahil

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-07 Thread skink
i asked so how do you acquire the wake lock?

i mean your java code

pskink

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




Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-07 Thread Archana r
I have a class Globals:

class Globals{
public static WakeLock myWakeLock = null;
public static WifiLock myWifiLock = null;
}

In my ConnectService, onCreate() method, I acquire the wakelock using:
 wakeLock =
powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, My Lock);
if(!wakeLock.isHeld()(wakeLock!=null)){
Log.d(TAG,Wake lock is acquired successfull );
wakeLock.acquire();
Globals.myWakeLock = wakeLock;
}

I release it only in the onDestroy() of ConnectService:

try{
 if(Globals.myWakeLock!=null){
 Globals.myWakeLock.release();
 Globals.myWakeLock = null;
 Log.d(TAG,WakeLock released successfully in onDestroy () method
her);
 }

 }catch(Exception e){
 e.printStackTrace();
 Log.d(TAG,Exception while releasing WakeLock :: Can be ignoredd);
 }


On Thu, Feb 7, 2013 at 2:52 PM, skink psk...@gmail.com wrote:

 i asked so how do you acquire the wake lock?

 i mean your java code

 pskink

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





-- 
Regards,
Archana

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: which web server should i use???

2013-02-07 Thread Alessandro Pellizzari
Il Thu, 07 Feb 2013 04:39:17 -0800, Muhammad Sahil ha scritto:

 Please suggest me which web server is best to intract with Android
 mobile??

The one you know.

Just encode your data in JSON when you transmit them. On Android it is 
easier to encode/decode.

Bye.


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Get sorted list android applications on basis of rarely used

2013-02-07 Thread Dan
On Wednesday, February 6, 2013 11:46:36 PM UTC-5, TreKing wrote:


 On Wed, Feb 6, 2013 at 12:00 AM, Bajrang Asthana 
 asthana...@gmail.comjavascript:
  wrote:

 Is anyone have any idea about how to get last run and flushing mechanism 
 of logcat file.


 An app only has access to its own logs in the latest version of Android, 
 so you can't do these types of hacks anymore.


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


I think he already knows what he can't do (hence the question.)  Rather 
than harp on his
past sins (reading logcat output) why not point him at APIs that provide 
something close
to what he wants like:

http://developer.android.com/reference/android/app/ActivityManager.html#getRecentTasks%28int,%20int%29
http://developer.android.com/reference/android/app/ActivityManager.html#getRunningAppProcesses%28%29
http://developer.android.com/reference/android/app/ActivityManager.html#getRunningServices%28int%29
http://developer.android.com/reference/android/app/ActivityManager.html#getRunningTasks%28int%29

or if he is willing to build a set of patches to implement a feature/API 
that would allow people
to avoid hacks, maybe an* *extension/analog to:

http://developer.android.com/reference/android/content/pm/PackageManager.html#getInstalledPackages%28int%29

and point him to where he can submit feature requests and proposed patches 
that might implement
something for everybody:

http://code.google.com/p/android/
http://source.android.com/source/submit-patches.html

   Dan S.

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




Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-07 Thread skink


Archana r wrote:
 I have a class Globals:


¿and do you see in the logcat:

Wake lock is
acquired successfull 

?

pskink

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




Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-07 Thread Archana r
Ya I m able to see in Logcat.

On Thu, Feb 7, 2013 at 3:48 PM, skink psk...@gmail.com wrote:



 Archana r wrote:
  I have a class Globals:
 

 ¿and do you see in the logcat:

 Wake lock is
 acquired successfull 

 ?

 pskink

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





-- 
Regards,
Archana

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Traslate Animation in ListView (like Google Plus App)

2013-02-07 Thread Gianluca Cacace
Has anyone idea to how to replicate the Google Plus listview behaviour, 
when scrolling down the list? I want that each new cell is traslating from 
the bottom to it's final position smoothly.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Daemon Threads in Android

2013-02-07 Thread Streets Of Boston
I agree; Unless your code creates the threads/thread-pools, i.e. if your 
code doesn't own these threads, avoid calling 'setDaemon(...)'. 

On Wednesday, February 6, 2013 8:08:47 PM UTC-5, Nathan wrote:



 On Wednesday, February 6, 2013 4:52:00 PM UTC-8, Streets Of Boston wrote:

 It's mostly just 'ported' from regular Java, where a process could not do 
 a normal 'exit' when non-daemon thread were still running. 
 But you're right. It would seem that if android decides to 'kill' your 
 app, it doesn't much matter whether there are some daemon threads still 
 running or not. 

  

 Still, be on the safe side, don't create these non-daemon thread :-)


 I haven't read anything that encourages developers to set isDaemon() on 
 all their threads, and I don't think it is set by default in ThreadPools, 
 AsyncTask, or in any other commonly used framework classes. 

 So unless you've written your own ThreadPools, etc, I don't think anyone 
 is following that advice. 

 I've run across code that is explicitly calling setDaemon(true). I can't 
 figure out why the developer did that and if it makes any real difference. 
 The developer can't remember either. Even though the developer is me. 

 Nathan 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: unable to connect host server pc

2013-02-07 Thread bob
This is the correct format:

clientSocket = new Socket(192.168.0.100,PORT);

I doubt you could get that exception if you were using that format.




On Wednesday, February 6, 2013 9:54:04 PM UTC-6, Ananda Krishna wrote:

 hi Robert Greenwalt,
 *I have given the ip address of the my pc which is the server for testing 
 the code.*
 *Regards,*
 *AnandaKrishna S*
  
 On Wednesday, February 6, 2013 7:22:16 PM UTC+5:30, Ananda Krishna wrote:

 Hi,
 I am running a server which sends data to the client i.e android device 
 with the help of sockets via wifi .On client side i am getting the 
 following exception.
 *Exception: java.net.unknownhostexception unable to resolve host .*

 *Code:*
 *
 *
 clientSocket = new Socket(MY_PC_IP(SERVER_IP),PORT);
 BufferedReader br = new BufferedReader(new 
 InputStreamReader(clientSocket.getInputStream()));
 clientSocket.close();

 *Note : Both PC and the wifi connected android device is in the same 
 network with proxy disabled for both PC and device.*
 *Any Suggestion in this regard would be appreciated.*

 Regards,
 AnandaKrishna S




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




[android-developers] Re: which web server should i use???

2013-02-07 Thread bob
 

You don't need to write your own web server.


Just use Apache or an existing server.


Or pay 5.95 a month to get a virtual server at a place like 
vervehosting.com.





On Thursday, February 7, 2013 6:39:17 AM UTC-6, Muhammad Sahil wrote:

 Hi All,
i am a beginner  to android, i want to make client/ server, 
 client is my android, but i don't know on which language i create a web 
 server, mean on java, php, or Dot Net.

 Please suggest me which web server is best to intract with Android mobile??

 I am waiting for your kind help. Thanks

 Regards,

 Sahil


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Galaxy Nexus has died - did my app kill it?

2013-02-07 Thread bob
 

What was the approximate temperature when you were snowshoeing with the 
device?



On Wednesday, February 6, 2013 5:07:38 PM UTC-6, Nathan wrote:

 On Wednesday, February 6, 2013 2:47:38 PM UTC-8, bob wrote:

 Do you ever bring your phone into a sauna?  This can be bad for it.

 No. It's been pretty sheltered. It's been in a dry bag when snowshoeing. 

 I found an obscure trick on the internet: remove batter and SIM card and 
 push power button for ten seconds. Then replace SIM card. 

 It came back to life after that. I don't know if I can trust it now. 
 Particularly since I had to do the same thing ten minutes later. 

 Nathan 

  


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Daemon Threads in Android

2013-02-07 Thread G. Blake Meike
Yeah.  In the JVM, your applications owns the process in which it runs. 
 On Android, the Android framework owns your process and all of the threads 
in it.  The difference between a thread set daemon and not is pretty much 
invisible.



 Developers try endless stuff to try to keep their processes from being 
managed.  In the long run, it they just don't work.

G. Blake Meike
Marakana

Programming Android 2ed is now in stores:
http://bit.ly/programmingandroid

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: start AsyncTask from a background thread

2013-02-07 Thread bob
 

Maybe do a Handler.post?



On Thursday, February 7, 2013 4:04:38 AM UTC-6, dashman wrote:

 I'm in a worker thread and would like to start an AsynTask execution.

 Preferably w/o starting a new thread. Help!


 Also, is java threads as in (new Thread()) frowned upon in android.

 I think i read somewhere .notify() .wait() etc. should not be used.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2013-02-07 Thread Digipom
My take on things is that the less you piss off your users, the better. 
Unfortunately, Google's default licensing mechanism is not only cracked in 
5 seconds, but it also pisses off users if they try to use your app outside 
of a network connection. You can still stay with Google's method, but 
you'll need to do some customization and ensure that any roadblocks you put 
in place for piracy do not have the side effect of pissing off the people 
actually paying for your app.

P.S. was it really worth digging up an old thread just to complain about 
someone's spelling?

On Friday, January 25, 2013 1:27:20 PM UTC-5, JackN wrote:

 We can tell you're new to development, and spelling too.

 On Wednesday, July 22, 2009 10:28:50 AM UTC-7, astrocogz wrote:


 I'm new to this whole thing about being a developer but, if you think 
 making your app hack safe and, your app's are not going to lose you your 
 user base. Then say a hello to the new world order of android. Stop 
 bitching and think of it as contributing to your community. I don't steel 
 but I don't look a gift horse in the mouth either so shut up and programme 
 like your told and stop helping to force the world in to a new world police 
 globe or pay the hundred and move to iphone.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: start AsyncTask from a background thread

2013-02-07 Thread G. Blake Meike
You should say something about what you are trying to accomplish.  Starting 
an AsyncTask from a background thread is already a bit odd... waiting for 
it to complete (which you imply with your comments about .wait and .notify) 
is downright nuts.

Did you know that onPostExecute will be run on the thread on which the 
AsyncTask is created, provided that thread is a Looper?  If you just init 
your background thread as a Looper, you might be able to use the AsyncTask 
normally...

-blake

G. Blake Meike
Marakana

Programming Android 2ed is now in stores:
http://bit.ly/programmingandroid


On Thursday, February 7, 2013 2:04:38 AM UTC-8, dashman wrote:

 I'm in a worker thread and would like to start an AsynTask execution.

 Preferably w/o starting a new thread. Help!


 Also, is java threads as in (new Thread()) frowned upon in android.

 I think i read somewhere .notify() .wait() etc. should not be used.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Unable to obtain Google Maps Android v1 API Key

2013-02-07 Thread Simon Giddings
I have followed the instructions to create a private key and then obtain 
the MD5 signature.
I paste this signature into the signup input field and click submit.

I then get a page which says that the MD5 signature is incorrect !
Tried with and without the colons (:).

Has the key generation been disabled, even though documentation states that 
it will be open until 3 Mars ?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Get sorted list android applications on basis of rarely used

2013-02-07 Thread Nobu Games
This is pretty similar to the battery optimization app problem. Dan 
suggests the proper API methods for querying what's running right now. In 
order to track what's least used on the phone you need to keep track of 
what is used most.

And keeping track means that you need to poll that data in regular 
intervals (once an hour or something like that). You should use 
AlarmManager for that so your app can go to sleep in between these checks.


On Wednesday, February 6, 2013 12:00:10 AM UTC-6, Bajrang Asthana wrote:

 Hi ,

 I want to get a list of android applications on basis of rarely used. I am 
 not getting how can we access last run time of application.

 I thought it could be possible through reading of logcat file. But looking 
 on log file of device, I found that the first entry of logcat is of 2 days 
 back.

 Is anyone have any idea about how to get last run and flushing mechanism 
 of logcat file.

 Thanks in advanced


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




[android-developers] Re: Get full size of insatlled applications

2013-02-07 Thread Nobu Games
It looks like the described approach in your linked article is the way to 
go. So what exactly does not work? Did you get some compile or runtime 
error?
If you are targeting rooted devices you could sum up file sizes by going 
through an app's directories. There are common locations for APKs, database 
and shared preference files, then you need to look up the internal and 
external storage directories of the app.

On Thursday, February 7, 2013 3:16:44 AM UTC-6, Bajrang Asthana wrote:

 I'm trying to figure out how to get the size of an installed.

 I read this article http://www-jo.se/f.pfleger/android-package-size  but 
 did not get sussess.

 Any suggestion, Thanks in advance.


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




Re: [android-developers] Unable to obtain Google Maps Android v1 API Key

2013-02-07 Thread Mark Murphy
It just worked for me. Make sure that you are using MD5 -- if you have
Java 7 installed, you might be getting the SHA-1 hash instead, for
example.

On Thu, Feb 7, 2013 at 10:28 AM, Simon Giddings mr.s.giddi...@gmail.com wrote:
 I have followed the instructions to create a private key and then obtain the
 MD5 signature.
 I paste this signature into the signup input field and click submit.

 I then get a page which says that the MD5 signature is incorrect !
 Tried with and without the colons (:).

 Has the key generation been disabled, even though documentation states that
 it will be open until 3 Mars ?

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.





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

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

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




Re: [android-developers] Unable to obtain Google Maps Android v1 API Key

2013-02-07 Thread Simon Giddings
Yep, you are right, I am getting the SHA-1 hash.
Looked at the command line options and cannot see how I can force MD5 
output.
Can you help here ?

On Thursday, 7 February 2013 17:02:50 UTC+1, Mark Murphy (a Commons Guy) 
wrote:

 It just worked for me. Make sure that you are using MD5 -- if you have 
 Java 7 installed, you might be getting the SHA-1 hash instead, for 
 example. 

 On Thu, Feb 7, 2013 at 10:28 AM, Simon Giddings 
 mr.s.g...@gmail.comjavascript: 
 wrote: 
  I have followed the instructions to create a private key and then obtain 
 the 
  MD5 signature. 
  I paste this signature into the signup input field and click submit. 
  
  I then get a page which says that the MD5 signature is incorrect ! 
  Tried with and without the colons (:). 
  
  Has the key generation been disabled, even though documentation states 
 that 
  it will be open until 3 Mars ? 
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  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 unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to android-developers+unsubscr...@googlegroups.com javascript:. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  



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

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


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




Re: [android-developers] Unable to obtain Google Maps Android v1 API Key

2013-02-07 Thread Mark Murphy
Add -v to your list of command-line switches.

On Thu, Feb 7, 2013 at 11:13 AM, Simon Giddings mr.s.giddi...@gmail.com wrote:
 Yep, you are right, I am getting the SHA-1 hash.
 Looked at the command line options and cannot see how I can force MD5
 output.
 Can you help here ?


 On Thursday, 7 February 2013 17:02:50 UTC+1, Mark Murphy (a Commons Guy)
 wrote:

 It just worked for me. Make sure that you are using MD5 -- if you have
 Java 7 installed, you might be getting the SHA-1 hash instead, for
 example.

 On Thu, Feb 7, 2013 at 10:28 AM, Simon Giddings mr.s.g...@gmail.com
 wrote:
  I have followed the instructions to create a private key and then obtain
  the
  MD5 signature.
  I paste this signature into the signup input field and click submit.
 
  I then get a page which says that the MD5 signature is incorrect !
  Tried with and without the colons (:).
 
  Has the key generation been disabled, even though documentation states
  that
  it will be open until 3 Mars ?
 
  --
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-d...@googlegroups.com
  To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send
  an
  email to android-developers+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 



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

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

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





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

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

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




[android-developers] Connecting to a wifi device from the android application

2013-02-07 Thread Raneez


My application (supports 2.2 and later) needs to connect with a *wifi device
* like FlashAir http://www.toshiba-components.com/FlashAir/index.html after 
scanning networks using 
WifiManagerhttp://developer.android.com/reference/android/net/wifi/WifiManager.html
.

Is it possible to connect to a device from the *application ? *or is it 
only possible by scanning and connecting devices from settings?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: unable to connect host server pc

2013-02-07 Thread Robert Greenwalt
As Bob said, the socket constructor just does InetAddress.getAllByName on
the destination name you provided.  If the name provided is a valid ip
string no dns lookup is performed and UnknownHostException shouldn't be
possible.

Could you perhaps have badly formated the string (used a comma instead of a
period) or used an out-of-range octet (255)?

R


On Thu, Feb 7, 2013 at 7:08 AM, bob b...@coolfone.comze.com wrote:

 This is the correct format:

 clientSocket = new Socket(192.168.0.100,PORT);

 I doubt you could get that exception if you were using that format.




 On Wednesday, February 6, 2013 9:54:04 PM UTC-6, Ananda Krishna wrote:

 hi Robert Greenwalt,
 *I have given the ip address of the my pc which is the server for
 testing the code.*
 *Regards,*
 *AnandaKrishna S*

 On Wednesday, February 6, 2013 7:22:16 PM UTC+5:30, Ananda Krishna wrote:

 Hi,
 I am running a server which sends data to the client i.e android device
 with the help of sockets via wifi .On client side i am getting the
 following exception.
 *Exception: java.net.unknownhostexception unable to resolve host .*

 *Code:*
 *
 *
 clientSocket = new Socket(MY_PC_IP(SERVER_IP),**PORT);
 BufferedReader br = new BufferedReader(new InputStreamReader(**
 clientSocket.getInputStream())**);
 clientSocket.close();

 *Note : Both PC and the wifi connected android device is in the same
 network with proxy disabled for both PC and device.*
 *Any Suggestion in this regard would be appreciated.*

 Regards,
 AnandaKrishna S


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




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread bob
I think you call this function in WifiManager:

boolean
*enableNetwork*(int netId, boolean disableOthers)
Allow a previously configured network to be associated with.



On Thursday, February 7, 2013 10:35:51 AM UTC-6, Raneez wrote:

 My application (supports 2.2 and later) needs to connect with a *wifi 
 device* like FlashAirhttp://www.toshiba-components.com/FlashAir/index.html 
 after 
 scanning networks using 
 WifiManagerhttp://developer.android.com/reference/android/net/wifi/WifiManager.html
 .

 Is it possible to connect to a device from the *application ? *or is it 
 only possible by scanning and connecting devices from settings?


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Get sorted list android applications on basis of rarely used

2013-02-07 Thread Kristopher Micinski
Of course, the caveat here is that you're also going to waste a good
amount of battery.

kris

On Thu, Feb 7, 2013 at 10:30 AM, Nobu Games dev.nobu.ga...@gmail.com wrote:
 This is pretty similar to the battery optimization app problem. Dan
 suggests the proper API methods for querying what's running right now. In
 order to track what's least used on the phone you need to keep track of what
 is used most.

 And keeping track means that you need to poll that data in regular intervals
 (once an hour or something like that). You should use AlarmManager for that
 so your app can go to sleep in between these checks.


 On Wednesday, February 6, 2013 12:00:10 AM UTC-6, Bajrang Asthana wrote:

 Hi ,

 I want to get a list of android applications on basis of rarely used. I am
 not getting how can we access last run time of application.

 I thought it could be possible through reading of logcat file. But looking
 on log file of device, I found that the first entry of logcat is of 2 days
 back.


 Is anyone have any idea about how to get last run and flushing mechanism
 of logcat file.

 Thanks in advanced

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



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-07 Thread tom_mai78101
I did a Pastebin for those who don't want to download the attachment. For 
your convienence.
 
Pastebin http://pastebin.com/jFDjWTc7

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread Kostya Vasilyev
That's half of it. The other half is calling WifiManager.startScan() to 
actually trigger the {re}connect.

-- K

On Thursday, February 7, 2013 8:52:05 PM UTC+4, bob wrote:

 I think you call this function in WifiManager:

 boolean
 *enableNetwork*(int netId, boolean disableOthers)
 Allow a previously configured network to be associated with.



 On Thursday, February 7, 2013 10:35:51 AM UTC-6, Raneez wrote:

 My application (supports 2.2 and later) needs to connect with a *wifi 
 device* like FlashAirhttp://www.toshiba-components.com/FlashAir/index.html 
 after 
 scanning networks using 
 WifiManagerhttp://developer.android.com/reference/android/net/wifi/WifiManager.html
 .

 Is it possible to connect to a device from the *application ? *or is it 
 only possible by scanning and connecting devices from settings?



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: market? issue

2013-02-07 Thread Kostya Vasilyev
Did you check how many devices your app is compatible with in the Play 
console? Especially if you're using the new UI -- which seems to 1) be more 
strict with its manifest parsing and 2) has poor error reporting.

I once got burned by this, where a small omission in the manifest (IIRC, I 
forgot the android: part on some attribute) was causing the app to be 
compatible with zero devices in the new console, and yet has been working 
fine before I switched (to the new Play console UI).

-- K

On Wednesday, February 6, 2013 10:11:37 PM UTC+4, Greg Donald wrote:

 Yesterday I shipped a bug fix update.  The update is a workaround for 

 http://code.google.com/p/android/issues/detail?id=7189 


 +import android.view.MotionEvent; 

 [...] 

 +add_phone.requestFocus( View.FOCUS_DOWN ); 
 +add_phone.setOnTouchListener( new View.OnTouchListener() 
 +{ 
 +  @Override 
 +  public boolean onTouch( final View v, final MotionEvent event ) 
 +  { 
 +switch( event.getAction() ) 
 +{ 
 +  case MotionEvent.ACTION_DOWN: 
 +  case MotionEvent.ACTION_UP: 
 +if( !v.hasFocus() ) 
 +{ 
 +  v.requestFocus(); 
 +} 
 +break; 
 +} 
 +return false; 
 +  } 
 +} ); 
 + 

 With that change users running Android 2.3.x can now get a keyboard 
 when they click into my WebView form fields, yay! 

 But then this morning a long time user sent me a screen shot of Google 
 Play telling him his device is not compatible with my app! 

 I have reviewed my git commit and nothing changed except a few lines 
 of Java you can see above, and the version numbers in my 
 AndroidManifest.xml: 

 -android:versionCode=55 
 -android:versionName=1.1.2 
 +android:versionCode=56 
 +android:versionName=1.1.3 

 No permissions changed, no SDK version changes, still at 2.2 just like 
 always. 

 Any idea how to fix this situation?  We're a SaaS company and via 
 Google Play I just killed his service because I simply shipped a 
 workaround for an Android keyboard bug. 


 -- 
 Greg Donald 


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




Re: [android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2013-02-07 Thread Rob H
I think if you're interested in protecting your app from piracy the best 
way to do it is via the in-app purchase system.  If you're making a game, 
put it up there with level 1 for free.  Thousands of people will check it 
out.  If they want to continue on to the other levels, well here's an 
in-app store where you can decide how much you want to pay for the app (the 
more you pay the more content you get).  Then you make your content 
DOWNLOADED from your server, not from unlocking something in your existing 
APK file.  This combined with a system that communicates with your server 
similar to the iOS receipt auditing system means that a user is only going 
to get the downloaded content if they go through the purchase process. 
 Yes, pirates could buy everything on one device, then bundle all that 
content up and modify your APK to say that all the content is unlocked, 
however the work involved makes this highly impractical.  They're only 
going to do it if your game is so popular that everyone wants it badly, and 
in that case you'll be making enough money where piracy almost becomes a 
positive thing for you because it helps get the game in people's hands and 
at this point your game is so good more people seeing it means more people 
buying it.

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




[android-developers] Re: Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-07 Thread bob
Why not call accept with no timeout?

 socket = mmServerSocket.accept();

That makes more sense.


On Thursday, February 7, 2013 11:13:21 AM UTC-6, tom_mai78101 wrote:

 There is an attachment that contains an Android application project for 
 Eclipse, zipped nicely in a ZIP folder.
  
 *Problem:* I'm having this issue of getting Connection Refused after I 
 initiated a pairing between two Android devices. While waiting to accept 
 incoming connections, I gave it a timeout value of 12000, which I believed 
 it to be 12 seconds long. Below is the Logcat output:
  

 D/DEBUG(24298): Connect Thread is now running.
 D/DEBUG(24298): Connect Thread is now accepting.
 D/DEBUG(24298): Unable to create a socket for targetSocket.
 D/DEBUG(24298): java.io.IOException: Connection refused
 D/DEBUG(24298):  at 
 android.bluetooth.BluetoothSocket.connectNative(Native Method)
 D/DEBUG(24298):  at 
 android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:212)
 D/DEBUG(24298):  at o.p.Main$1.onReceive(Main.java:138)
 D/DEBUG(24298):  at 
 android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:781)
 D/DEBUG(24298):  at android.os.Handler.handleCallback(Handler.java:605)
 D/DEBUG(24298):  at android.os.Handler.dispatchMessage(Handler.java:92)
 D/DEBUG(24298):  at android.os.Looper.loop(Looper.java:154)
 D/DEBUG(24298):  at 
 android.app.ActivityThread.main(ActivityThread.java:4945)
 D/DEBUG(24298):  at java.lang.reflect.Method.invokeNative(Native Method)
 D/DEBUG(24298):  at java.lang.reflect.Method.invoke(Method.java:511)
 D/DEBUG(24298):  at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
 D/DEBUG(24298):  at 
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
 D/DEBUG(24298):  at dalvik.system.NativeStart.main(Native Method)
 D/DEBUG(24298): Unable to accept incoming connection.
 D/DEBUG(24298): java.io.IOException: Connection timed out
 D/DEBUG(24298):  at android.bluetooth.BluetoothSocket.acceptNative(Native 
 Method)
 D/DEBUG(24298):  at 
 android.bluetooth.BluetoothSocket.accept(BluetoothSocket.java:311)
 D/DEBUG(24298):  at 
 android.bluetooth.BluetoothServerSocket.accept(BluetoothServerSocket.java:107)
 D/DEBUG(24298):  at o.p.Main$Connect.run(Main.java:62)
 D/DEBUG(24298):  at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
 D/DEBUG(24298):  at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
 D/DEBUG(24298):  at java.lang.Thread.run(Thread.java:864)
 D/DEBUG(24298): Now closing the targetServerSocket.

 I would like for someone to help me on getting two devices to connect 
 successfully. If for some reason, this Connection Refused is very common, 
 what known steps can I take that I have not covered? Thanks in advance.
  
 *Hardware (Android OS Version):* HTC Evo 3D (4.0.3), Samsung Galaxy Nexus 
 (4.1.1)
  
 *Have covered:* 

1. Using 1 randomly-generated UUID for the entire execution of the app.
2. Using 2 randomly-generated UUID for the entire execution of the 
app. One UUID is for BluetoothDevice.createRf...(), the other is for 
BluetoothServerSocket.listen...().
3. Using the workaround invocation method (Method invoking) of 
removeBond, createBond, and createRfcommSocket.

  


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread bob
I don't think you need to call startScan after calling enableNetwork. 
 Here's what my book says:


To use a particular network configuration, use the enableNetwork method, 
passing in the network ID to use and specifying true for the 
disableAllOthers parameter: 

// Get a list of available configurations

 List  WifiConfiguration  configurations = wifi.getConfiguredNetworks();

 // Get the network ID for the first one. 

if (configurations.size()  0) { int netID = configurations.get( 0). 
networkId;

 // Enable that network.
 boolean disableAllOthers = true;
 wifi.enableNetwork( netID, disableAllOthers);
 }

Meier, Reto (2012-04-05). Professional Android 4 Application Development 
(Wrox Professional Guides) (Kindle Locations 17962-17968). John Wiley and 
Sons. Kindle Edition. 



On Thursday, February 7, 2013 11:50:42 AM UTC-6, Kostya Vasilyev wrote:

 That's half of it. The other half is calling WifiManager.startScan() to 
 actually trigger the {re}connect.

 -- K

 On Thursday, February 7, 2013 8:52:05 PM UTC+4, bob wrote:

 I think you call this function in WifiManager:

 boolean
 *enableNetwork*(int netId, boolean disableOthers)
 Allow a previously configured network to be associated with.



 On Thursday, February 7, 2013 10:35:51 AM UTC-6, Raneez wrote:

 My application (supports 2.2 and later) needs to connect with a *wifi 
 device* like 
 FlashAirhttp://www.toshiba-components.com/FlashAir/index.html after 
 scanning networks using 
 WifiManagerhttp://developer.android.com/reference/android/net/wifi/WifiManager.html
 .

 Is it possible to connect to a device from the *application ? *or is it 
 only possible by scanning and connecting devices from settings?



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread Kostya Vasilyev
I don't know what Reto's book says, but it's just that I've done a bit of 
work with WiFi on Android and that's my experience...

( most useless post of the day? )

-- K

On Thursday, February 7, 2013 10:48:13 PM UTC+4, bob wrote:

 I don't think you need to call startScan after calling enableNetwork. 
  Here's what my book says:


 To use a particular network configuration, use the enableNetwork method, 
 passing in the network ID to use and specifying true for the 
 disableAllOthers parameter: 

 // Get a list of available configurations

  List  WifiConfiguration  configurations = wifi.getConfiguredNetworks();

  // Get the network ID for the first one. 

 if (configurations.size()  0) { int netID = configurations.get( 0). 
 networkId;

  // Enable that network.
  boolean disableAllOthers = true;
  wifi.enableNetwork( netID, disableAllOthers);
  }

 Meier, Reto (2012-04-05). Professional Android 4 Application Development 
 (Wrox Professional Guides) (Kindle Locations 17962-17968). John Wiley and 
 Sons. Kindle Edition. 



 On Thursday, February 7, 2013 11:50:42 AM UTC-6, Kostya Vasilyev wrote:

 That's half of it. The other half is calling WifiManager.startScan() to 
 actually trigger the {re}connect.

 -- K

 On Thursday, February 7, 2013 8:52:05 PM UTC+4, bob wrote:

 I think you call this function in WifiManager:

 boolean
 *enableNetwork*(int netId, boolean disableOthers)
 Allow a previously configured network to be associated with.



 On Thursday, February 7, 2013 10:35:51 AM UTC-6, Raneez wrote:

 My application (supports 2.2 and later) needs to connect with a *wifi 
 device* like 
 FlashAirhttp://www.toshiba-components.com/FlashAir/index.html after 
 scanning networks using 
 WifiManagerhttp://developer.android.com/reference/android/net/wifi/WifiManager.html
 .

 Is it possible to connect to a device from the *application ? *or is 
 it only possible by scanning and connecting devices from settings?



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Bluetooth maximum connection capability.

2013-02-07 Thread Srinivas Nainala
Hi All,

I would like to know how many (maximum capacity) blue devices could connect 
to my Android tablet. My friends have different OS like Android, iOS and 
Windows devices. They want to connect to my Android device and I would like 
to connect their device mutually.

Thanks in advance for your help.

BR
Srinivas

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Bluetooth maximum connection capability.

2013-02-07 Thread Nobu Games
I'm not 100% sure but as far as I can remember from my previous job the iOS 
Bluetooth feature is locked down to certified devices only. I don't think 
you can easily make Android and iOS devices talk to each other without a 
server in between. Maybe you are lucky with exploiting some hidden iOS 
APIs and change that restriction. But if you do so you are not allowed to 
publish the app on Apple's app store.



On Thursday, February 7, 2013 2:05:25 PM UTC-6, Srinivas Nainala wrote:

 Hi All,

 I would like to know how many (maximum capacity) blue devices could 
 connect to my Android tablet. My friends have different OS like Android, 
 iOS and Windows devices. They want to connect to my Android device and I 
 would like to connect their device mutually.

 Thanks in advance for your help.

 BR
 Srinivas


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Bluetooth maximum connection capability.

2013-02-07 Thread Srinivas Nainala
Whats the max connection capability between Android to Android devices ( 
Android (master) and Android devices (slaves/clients)). Right now I am not 
bothering about other OS tablets or mobile devices.

BR
Srinivas

On Thursday, February 7, 2013 2:21:54 PM UTC-6, Nobu Games wrote:

 I'm not 100% sure but as far as I can remember from my previous job the 
 iOS Bluetooth feature is locked down to certified devices only. I don't 
 think you can easily make Android and iOS devices talk to each other 
 without a server in between. Maybe you are lucky with exploiting some 
 hidden iOS APIs and change that restriction. But if you do so you are not 
 allowed to publish the app on Apple's app store.



 On Thursday, February 7, 2013 2:05:25 PM UTC-6, Srinivas Nainala wrote:

 Hi All,

 I would like to know how many (maximum capacity) blue devices could 
 connect to my Android tablet. My friends have different OS like Android, 
 iOS and Windows devices. They want to connect to my Android device and I 
 would like to connect their device mutually.

 Thanks in advance for your help.

 BR
 Srinivas



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Widget like SlidingDrawer

2013-02-07 Thread Nathan
Thought someone would chime in. 

It looks like it will work if I take the source and suspend the calls to 
performFling. I'll try that. 

Nathan

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: start AsyncTask from a background thread

2013-02-07 Thread dashman

I have a main background thread that's doing work that's needed
to be done relatively quickly...i.e. update the screen.

But there are times where I might have to do some additional work
(that's not that much of a priority - i was thinking of making that
an AsyncTask.


The notify/wait was a generic question - whether those can be used
and/or recommended for use under the android platform.




On Thursday, February 7, 2013 10:27:38 AM UTC-5, G. Blake Meike wrote:

 You should say something about what you are trying to accomplish. 
  Starting an AsyncTask from a background thread is already a bit odd... 
 waiting for it to complete (which you imply with your comments about .wait 
 and .notify) is downright nuts.

 Did you know that onPostExecute will be run on the thread on which the 
 AsyncTask is created, provided that thread is a Looper?  If you just init 
 your background thread as a Looper, you might be able to use the AsyncTask 
 normally...

 -blake

 G. Blake Meike
 Marakana

 Programming Android 2ed is now in stores:
 http://bit.ly/programmingandroid


 On Thursday, February 7, 2013 2:04:38 AM UTC-8, dashman wrote:

 I'm in a worker thread and would like to start an AsynTask execution.

 Preferably w/o starting a new thread. Help!


 Also, is java threads as in (new Thread()) frowned upon in android.

 I think i read somewhere .notify() .wait() etc. should not be used.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread Irfan Sheriff
A scan is active at the framework and in the wpa_supplicant at a certain
interval. So, you do not really need to start a scan to connect - but doing
an explicit scan may start the connection right away.


On Thu, Feb 7, 2013 at 11:37 AM, Kostya Vasilyev kmans...@gmail.com wrote:

 I don't know what Reto's book says, but it's just that I've done a bit of
 work with WiFi on Android and that's my experience...

 ( most useless post of the day? )

 -- K

 On Thursday, February 7, 2013 10:48:13 PM UTC+4, bob wrote:

 I don't think you need to call startScan after calling enableNetwork.
  Here's what my book says:


 To use a particular network configuration, use the enableNetwork method,
 passing in the network ID to use and specifying true for the
 disableAllOthers parameter:

 // Get a list of available configurations

  List  WifiConfiguration  configurations = wifi.getConfiguredNetworks();

  // Get the network ID for the first one.

 if (configurations.size()  0) { int netID = configurations.get( 0).
 networkId;

  // Enable that network.
  boolean disableAllOthers = true;
  wifi.enableNetwork( netID, disableAllOthers);
  }

 Meier, Reto (2012-04-05). Professional Android 4 Application Development
 (Wrox Professional Guides) (Kindle Locations 17962-17968). John Wiley and
 Sons. Kindle Edition.



 On Thursday, February 7, 2013 11:50:42 AM UTC-6, Kostya Vasilyev wrote:

 That's half of it. The other half is calling WifiManager.startScan() to
 actually trigger the {re}connect.

 -- K

 On Thursday, February 7, 2013 8:52:05 PM UTC+4, bob wrote:

 I think you call this function in WifiManager:

 boolean
 *enableNetwork*(int netId, boolean disableOthers)
 Allow a previously configured network to be associated with.



 On Thursday, February 7, 2013 10:35:51 AM UTC-6, Raneez wrote:

 My application (supports 2.2 and later) needs to connect with a *wifi
 device* like 
 FlashAirhttp://www.toshiba-components.com/FlashAir/index.html after
 scanning networks using 
 WifiManagerhttp://developer.android.com/reference/android/net/wifi/WifiManager.html
 .

 Is it possible to connect to a device from the *application ? *or is
 it only possible by scanning and connecting devices from settings?

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: start AsyncTask from a background thread

2013-02-07 Thread G. Blake Meike
Yah.  Check 
out http://developer.android.com/reference/android/os/Looper.html

Initialize your background thread as a Looper, and then just create 
AsyncTasks on it.  They will run doInBackground in an executor thread pool 
and then call onPostExecute back on the background thread, the one on which 
you created the AsyncTask subclass instance.

-blake

On Thursday, February 7, 2013 2:36:00 PM UTC-8, dashman wrote:


 I have a main background thread that's doing work that's needed
 to be done relatively quickly...i.e. update the screen.

 But there are times where I might have to do some additional work
 (that's not that much of a priority - i was thinking of making that
 an AsyncTask.


 The notify/wait was a generic question - whether those can be used
 and/or recommended for use under the android platform.




 On Thursday, February 7, 2013 10:27:38 AM UTC-5, G. Blake Meike wrote:

 You should say something about what you are trying to accomplish. 
  Starting an AsyncTask from a background thread is already a bit odd... 
 waiting for it to complete (which you imply with your comments about .wait 
 and .notify) is downright nuts.

 Did you know that onPostExecute will be run on the thread on which the 
 AsyncTask is created, provided that thread is a Looper?  If you just init 
 your background thread as a Looper, you might be able to use the AsyncTask 
 normally...

 -blake

 G. Blake Meike
 Marakana

 Programming Android 2ed is now in stores:
 http://bit.ly/programmingandroid


 On Thursday, February 7, 2013 2:04:38 AM UTC-8, dashman wrote:

 I'm in a worker thread and would like to start an AsynTask execution.

 Preferably w/o starting a new thread. Help!


 Also, is java threads as in (new Thread()) frowned upon in android.

 I think i read somewhere .notify() .wait() etc. should not be used.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Google spreadsheet workaround

2013-02-07 Thread Keith Zettler
yes but the suitable app is Drive. Within the drive app on my android 
device charts and drop downs are not available on the spreadsheets.

On Sunday, February 3, 2013 7:15:09 PM UTC-5, Fred Niggle wrote:

 yes, install dropbox or other sync-able remote storage software on both 
 desktop and android, then open the spreadsheet with a suitable android app.

 Your mileage will vary depending on spreadsheet suit used to create the 
 spreadsheet, and how much formating is used.
 In some cases it is viable to 'port' a copy to a different format for 
 experimentation.


 On 3 February 2013 16:59, leftc...@gmail.com javascript: 
 leftc...@gmail.com javascript: wrote:

 http://support.google.com/drive/bin/answer.py?hl=enanswer=2761244

 Are there any known workarounds to having charts on my google drive 
 spreadsheet display on 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 unsubscribe from this group and stop receiving emails from it, send an 
 email to android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Sent from an Ubuntu Desktop.

 Ubuntu Speech 
 inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
  now available on Google Play, along with Magnetic 
 Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
 .
  

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: asynctask vs. FragmentRetainInstance.java in API demo

2013-02-07 Thread Hand Green
Thank you. It is very useful.

2013/2/6 Streets Of Boston flyingdutc...@gmail.com

 Instead of Threads or AsyncTasks that do the background work getting the
 data from the server, use Loader (AsyncLoader).
 You can use the LoaderManager to initially load them and also to restart
 them. Restarting them would allow you to implement your 'refresh'
 functionality.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Canvas Android

2013-02-07 Thread janvi
Hello all

I need small info,I have drawn a rectangle using canvas in android now i 
want to fill this rectangle with lines instead of solid color

Plz help me out to solve this

Which gradient is useful in this case?? as per my knowledge linear and 
radial gradient fill complete solid color through mypaint

Thanks in advance

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




[android-developers] Paid apps with trial and payments

2013-02-07 Thread Harish Kachoria
Dear all,

Need your opinion for listing my app to play store.

I have a medical app which we are planning to sell using various
distribution channel in bulk volume.

We already have license checking mechanism with our site. and we will
manage license with our support team.

We give our app 1 week for trial and user have to activate after one week.

My question is - If I list my app to google play store for broader audience
then does there any way I can manage bulk licenses without paying 30%
transaction fees. I mean I will have list of users with me who already paid
for app and they can download app from app store freely.

Or If I list my app free on market and after 7 days user will pay using our
payment channel does it violates developer agreement ?

My main objective of using play store is to manage updates efficiently.

I see many example where people list free and premium apps on Google, I
wants to list only free not the premium one. does it violates Google terms
and condition.

Looking for your advice

Regards

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Canvas Android

2013-02-07 Thread skink


janvi wrote:
 Hello all

 I need small info,I have drawn a rectangle using canvas in android now i
 want to fill this rectangle with lines instead of solid color

 Plz help me out to solve this

 Which gradient is useful in this case??

see all the Shaders available on the platform:

http://developer.android.com/reference/android/graphics/Shader.html

pskink

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




[android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread Raneez
I am able to connect to the device ,only if the target device's 
wificonfiguration is once saved. Is it possible to create the 
wificonfiguration programatically and connect to it?

On Thursday, 7 February 2013 22:05:51 UTC+5:30, Raneez wrote:

 My application (supports 2.2 and later) needs to connect with a *wifi 
 device* like FlashAirhttp://www.toshiba-components.com/FlashAir/index.html 
 after 
 scanning networks using 
 WifiManagerhttp://developer.android.com/reference/android/net/wifi/WifiManager.html
 .

 Is it possible to connect to a device from the *application ? *or is it 
 only possible by scanning and connecting devices from settings?


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Paid apps with trial and payments

2013-02-07 Thread TreKing
On Thu, Feb 7, 2013 at 11:44 PM, Harish Kachoria hkacho...@gmail.comwrote:

 Or If I list my app free on market and after 7 days user will pay using
 our payment channel does it violates developer agreement ?


That's a question for a lawyer - but probably.

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

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