Re: [android-developers] Connect android device to local server

2013-05-15 Thread naresh pedagani
Hi ,if  Client and server are in the same LAN ,you can connect local server
,simply you have to use local server url in your code


ThanksRegards,
Naresh Pedagani.

Regards,
NaResH.


On Wed, May 15, 2013 at 10:59 AM, Parthi K parthisof...@gmail.com wrote:

 yes dude is possible to connect ur server

  you take ur server url use it in android source code


 Thanks  Regards,
 Parthiban.k
 Software Engineer
 Mode FinServer Pvt. Ltd.
 Cell: +7204205850
 Email: parthisof...@gmail.com shoaibj...@gmail.com |parthiban.k
 @modefinserver.com shoai...@modefinserver.com


 On Wed, May 15, 2013 at 10:51 AM, Pankaj Deshpande 
 pcdeshpande...@gmail.com wrote:

 I have a client server app. Client and server are in the same LAN. Server
 app is written in java and server is Tomcat. Now my question is is it
 possible to connect to that server through android mobile which is in same
 LAN?

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




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

2013-05-15 Thread Michael Leung
thank you so much!



On Wed, May 15, 2013 at 2:43 AM, Marty Ballard marty...@gmail.com wrote:

 Another option is to pass it in a bundle and set the text based on the
 values passed in that bundle.


 On Saturday, May 11, 2013 4:56:00 PM UTC-5, Michael Leung wrote:

 Is it possible to Update a textview from another thread?
 I got a list item in list view from another fragement.

 --
 Regards,
 Michael Leung
 http://www.itblogs.info - My IT Blog
 http://diary.skynovel.info - My Blog
 http://www.michaelleung.info - My Homepage

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

2013-05-15 Thread Michael Leung
THat may work, but not 100% work. Please use a physical phone to test that.


On Tue, May 14, 2013 at 7:43 PM, asma rezgui asmarezgu...@gmail.com wrote:

 ok thanks


 2013/5/14 igmail a.alsaya...@gmail.com

 U can do it if u do the scan from a saved photo

 发自我的 iPad

 在 2013-5-14,下午5:03,asma rezgui asmarezgu...@gmail.com 写道:

 there s no way to test it in android emulator when adding the zxing jar
 to my project ?


 2013/5/14 tarun sablok tarun.sab...@gmail.com

 HI

 You cannot test the barcode functionality in emulator , it will always
 crash if you try in android emulator.

 You should try it in a device to test this functionality.

 Thanks  Regards
  Tarun Sablok


 On Tue, May 14, 2013 at 1:42 AM, Lew lewbl...@gmail.com wrote:

 ASMA wrote:

 does anyone know how to add barcode scanner to android emulator.
 i [sic] want to test this fonctionnality on emulator and i have added
 the zxing library to my project but it didn t work, i don't know  if there
 is another method to do that.

 i have followed many tutorials but without result , please can someone
 help me


 After a minute or two with
 http://lmgtfy.com/?q=android+barcode+scanner+on+emulator

 this turned up:
 http://www.tomgibara.com/android/camera-source

 among other links.

 --
 Lew


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




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




  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

Re: [android-developers] Re: barcode scanner on android emulator

2013-05-15 Thread asma rezgui
ok i' ll try it on android device , thank s a lot


2013/5/15 Michael Leung michaelchi...@gmail.com

 THat may work, but not 100% work. Please use a physical phone to test that.


 On Tue, May 14, 2013 at 7:43 PM, asma rezgui asmarezgu...@gmail.comwrote:

 ok thanks


 2013/5/14 igmail a.alsaya...@gmail.com

 U can do it if u do the scan from a saved photo

 发自我的 iPad

 在 2013-5-14,下午5:03,asma rezgui asmarezgu...@gmail.com 写道:

 there s no way to test it in android emulator when adding the zxing jar
 to my project ?


 2013/5/14 tarun sablok tarun.sab...@gmail.com

 HI

 You cannot test the barcode functionality in emulator , it will always
 crash if you try in android emulator.

 You should try it in a device to test this functionality.

 Thanks  Regards
  Tarun Sablok


 On Tue, May 14, 2013 at 1:42 AM, Lew lewbl...@gmail.com wrote:

 ASMA wrote:

 does anyone know how to add barcode scanner to android emulator.
 i [sic] want to test this fonctionnality on emulator and i have added
 the zxing library to my project but it didn t work, i don't know  if 
 there
 is another method to do that.

 i have followed many tutorials but without result , please can
 someone help me


 After a minute or two with
 http://lmgtfy.com/?q=android+barcode+scanner+on+emulator

 this turned up:
 http://www.tomgibara.com/android/camera-source

 among other links.

 --
 Lew


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




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




  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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,
 Michael Leung
 http://www.itblogs.info - My IT Blog
 http://diary.skynovel.info - My Blog
 http://www.michaelleung.info - My Homepage

 --
 --
 You received 

[android-developers] show toast message while waiting for location

2013-05-15 Thread geo
Hello , 

I have an application where I use GPS and I want while GPS is looking for 
position to display a toast Waiting for location and when location is 
found show the location.

To start GPS I press a button:

case R.id.getlocation:

gps = new GPSTracker(ShowList.this);


// check if GPS enabled

if(gps.canGetLocation()){


latitude = gps.getLatitude();

longitude = gps.getLongitude();



Toast.makeText(getApplicationContext(), Your Location is \nLat:  + 
latitude + \nLong:  + longitude, Toast.LENGTH_LONG).show();



}else{

//show dialog for enabling GPs

gps.showSettingsAlert();

}


Now, with the above it shows latitude and latitude :0  because I 
initialize them to 0. 

case R.id.getlocation:

gps = new GPSTracker(ShowList.this); 

// check if GPS enabled

if(gps.canGetLocation()){

showToast();

}else{

   

gps.showSettingsAlert();

}


 private void showToast() {

new Thread() {

public void run() {

try { 

while (message) {

runOnUiThread(new Runnable() {

@Override

public void run() {


latitude = gps.getLatitude();

longitude = gps.getLongitude();


Toast.makeText(getApplicationContext(), Waiting for location, 
Toast.LENGTH_LONG).show();


//}else{

// gps.showSettingsAlert();

// }


}

});

Thread.sleep(1000);

message=false;


} 

} catch (InterruptedException e) {

e.printStackTrace();

}

}

}.start();

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

2013-05-15 Thread Filipe
Hi,
 
I had only used Bing up till now ;)
Thanks for your great tutorial on this new thing called Google.
I tryed it, but still did not find the answer.
 
The libs are under the /data/data/your_package_name/lib folder.
When I move the App I start getting java.lang.UnsatisfiedLinkError: 
findLibrary returned null
 
I found some new things
This works without problems on AVD. But I noticed that even if I move the 
App to the sdcard on the AVD, the lib remains in the same folder.
 
So maybe the problem is specific to my HTC.
Using adb shell I can find the libs in this folder. After moving to 
sdcard, when I use adb shell I get permission denied trying to access 
the lib folder !!!
So I'm gessing that on my HTC the libs are moved, I just don't know where 
to.
 
 
Thanks

Terça-feira, 14 de Maio de 2013 23:51:21 UTC+1, Lew escreveu:

 Filipe wrote:

 I have a project in Eclipse that uses some jni [sic] libraries that I 
 load using System.loadLibrary(myNativeLib).


 Those libraries are native to what platform?
  

  
 This works great, but if I move my app to the SDCard it stops working, 
 because it can't load the library.


 Did you take note of this from the Javadocs for 'System.loadLibrary()'?
 The mapping of the specified library name to the full path for loading 
 the library is implementation-dependent. 

 Where did you put the library on the device. Is this where the system 
 expects to find libraries?

  Are there any limitations on moving the app to SDCard when using jni? Or 
 do I have to change my call to System.loadLibrary ?



 http://developer.android.com/reference/java/lang/System.html#loadLibrary(java.lang.String)

 Also, I see some potentially useful links here:
 http://lmgtfy.com/?q=Android+JNI

 -- 
 Lew
  


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

2013-05-15 Thread Filipe

Terça-feira, 14 de Maio de 2013 17:41:56 UTC+1, Filipe escreveu:

 Hi
  
 I have a project in Eclipse that uses some jni libraries that I load using 
 System.loadLibrary(myNativeLib).
  
 This works great, but if I move my app to the SDCard it stops working, 
 because it can't load the library.
  
 Are there any limitations on moving the app to SDCard when using jni? Or 
 do I have to change my call to System.loadLibrary ?
  
 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.




[android-developers] Re: Create a SIP application

2013-05-15 Thread Swati
Hi Alaa,

I also have to create SIP client for Outgoing calls.

I took reference from 
http://developer.android.com/guide/topics/connectivity/sip.html and 
SipDemo(Sample available in android sdk).

But I am not able to make a call even registration is done successfully. 
When we initialize local profile, we setup registration listener and in 
that listener we implement method (onRegistering(), onRegistrationDone() 
and onRegistrationFailed() ). So in my case, onRegistrationDone() method is 
getting called, it means it is successfully registered.

Even with SipDemo also, I am not able to make voice call.

Can you please help me in creating SIP Client.

Thanks  Regards,
Swati Goel

On Wednesday, 9 March 2011 06:20:09 UTC+5:30, Alaa Gh wrote:

 Hi, 
 I'm preparing my final studies project and i'm planning to make a 
 Voice-Over-Ip application = SIP integrated on 2.3 version. 
 In fact, i followed this DEV Guide(http://developer.android.com/guide/ 
 topics/network/sip.htmlhttp://developer.android.com/guide/topics/network/sip.html)
  
 but i don't know from where i have to begin! 
 There is not enough examples on it so i'm really needing your help. 
 What is exactly the steps to proceed ? 
 Please try to help me. 

 Thank you very much :).

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

2013-05-15 Thread Swati
Hello Mr Lee,

I am testing SipDemo on Android 4.0 device but I am not able to test it. 
Because it is not making call.

Can you please help me in this?

Thanks
Swati

On Thursday, 27 January 2011 08:15:53 UTC+5:30, Seung Yong Lee wrote:

 Hi, This is jimmy. 
 I'm going  to test SIP demo in emulator, but I could not test it using 
 mic on laptop. 

 How should I test ? Anyone who has a good idea or info? 

 plz, help me the best way. 

 thanks. 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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: Sip: Programmatically register and unregister to the server

2013-05-15 Thread Swati
Hello,

I am also developing an App with SIP features(only outgoing call).

I took reference from SipDemo(available in android SDK) but that is not 
working on my Nexus(4.0).

Please help me in this.

Thanks in advance.

Regards,
Swati

On Monday, 15 April 2013 20:59:26 UTC+5:30, José García wrote:

 Hi,

 I am developing an App with SIP features (for calling and handle incoming 
 calls)
 When I close the app I want to programatically unregister from the network.

 I have some questions about that:

 A scenario:
 If I perform a 'manager.close(me.getUriString());' this closes my profiles 
 and when someone calls me a 'timeOut' is triggered. OK
 But I have doubts if I have successfully unregistered from the server.

 B scenario:
 I have also tried to open my SipSession with 'autoRegistration = false' 
 and call unregister using 'manager.unregister(me,listener);'  but I always 
 get a null pointer exception:

 04-15 17:20:32.567: W/con.gmv.siplib(3774): SipLibraryService: onDestroy - 
 Failed to close local profile. SipService.createSession() returns null
 04-15 17:20:32.567: W/System.err(3774): android.net.sip.SipException: 
 SipService.createSession() returns null


 So the big question is:
 Will a 'manager.close(sipUri)' invocation unregister my sip account from 
 the server? Or have I to do some extra work with the sip account? If I have 
 to do more actions with my account for un registering it, could you provide 
 me some examples of how to do it in a proper way?

 Kind Regards and 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] Re: Raw Socket Creation from Android Native

2013-05-15 Thread Dan
On Wednesday, May 15, 2013 12:15:52 AM UTC-4, Anil wrote:

 Hi,

 I want to use RAW Sockets in my project from Android Native for Mobiles.
 The same code is working fine in Ubuntu and able to execute the linux 
 applications. 


Your APK will likely still need:

http://developer.android.com/reference/android/Manifest.permission.html#INTERNET

that Ubuntu would not.
 

 We have enabled the root permissions to Mobile phone and created APK using 
 the same code, which is used in Linux using Android Java Applications.
 While executing the application, we are facing the error while creating 
 RAW Socket from Native library.



It would help if you could provide the error you are facing.

 

 Please let me know how to resolve this. Thanks for your support.

 Also please let me how to cross compile my applications in android and try 
 to execute the code from adb shell.


The SDK does not support that directly, you might want to go to the 
android-ndk group
and look at this thread:

https://groups.google.com/forum/?fromgroups=#!topic/android-ndk/XrPG3TJzZXM

Dan

 

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

2013-05-15 Thread Swati
Hi Jagruti,

Have you resolved this problem?

I am also facing same problem. onCallEstablished() is not getting call. As 
per my understanding reason behind this is, 

call = manager.makeAudioCall(me.getUriString(), sipAddress, 
listener, 30); 

when we make call to makeAudioCall, call(SipAudioCall instance) is coming 
null.

Please help me. It's urgent.

Thanks  Regards,
Swati

On Wednesday, 15 February 2012 16:12:34 UTC+5:30, Jagruti Sangani wrote:

 my code is given below: 
  public void initiateCall() { 
  Toast.makeText(WalkieTalkieActivity.this,..in the initiate 
 call--+flag,300).show(); 
 updateStatus(sipAddress); 

 try { 
 SipAudioCall.Listener listener = new 
 SipAudioCall.Listener() { 
 // Much of the client's interaction with the SIP Stack 
 will 
 // happen via listeners.  Even making an outgoing 
 call, don't 
 // forget to set up a listener to set things up once 
 the call is established. 
 @Override 
 public void onCallEstablished(SipAudioCall call) { 
 call.startAudio(); 
 call.setSpeakerMode(true); 
 call.toggleMute(); 
 call.sendDtmf(2); 
 updateStatus(call); 

 } 

 @Override 
 public void onCallEnded(SipAudioCall call) { 
   updateStatus(End of calling...); 
 } 

 }; 



call = manager.makeAudioCall(me.getUriString(), sipAddress, 
 listener, 30); 
  //   Toast.makeText(WalkieTalkieActivity.this,in call+call, 
 300).show(); 
 if(call.isInCall()) 
 { 
 Toast.makeText(WalkieTalkieActivity.this,it is in 
 call,300).show(); 
 } 



  call.continueCall(120); 
 } 
 catch (Exception e) { 
 Log.i(WalkieTalkieActivity/InitiateCall, Error when 
 trying to close manager., e); 
 if (me != null) { 
 try { 
 manager.close(me.getUriString()); 
 } catch (Exception ee) { 
 Log.i(WalkieTalkieActivity/InitiateCall, 
 Error when trying to close manager., 
 ee); 
 ee.printStackTrace(); 
 } 
 } 
 if (call != null) { 
 call.close(); 
 } 
 } 
 } 


 in this I have use the SipAudioCall listener that make the call but 
 whatever i write in oncall establish that will not display.As well as 
 on Call ended the cursor is not go in that method.Please anybody have 
 idea how this was happen?.

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

2013-05-15 Thread BearTi
Hi,

I´m testing something with WebViews and the JavascriptInterface.

Problem/Question: It it possible/How is it possbile to call a Method like 
this on the Website: 

Android.getClass().getMethod(Test, String.class).invoke(this, Reflect 2)



I always get *Uncaught Error: Error calling method on NPObject. at 
file:///android_asset/www/index.html:31*


I think the Problem is that in JS it is not possbilr to call String.class 
in the 2nd parameter? Or?

Someone an idea?

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] input type file

2013-05-15 Thread Rahul Kaushik
Hi justin,
I have a webview, which contain my website, In my website i have upload
button whose input type is File when i click on it s nothing happens
i googled lot,whatt i find is-- i can show image ,i can show pdf but only
one at a time, for that i have to look in to the overloading url ,dig in to
it and see if it ends with pdf and similarly for image ,but instea of
looking at the end of url i just want all the attachments whter it is image
pdf or doc or xls or any attachment to be open in webview ,i have added the
javascript in in webview setting i have tried the OpenFileChoooser but am
still to find something that will open all the attachments at one go.

Please suggest,
i will google more ,solution i found to send the file id through multipart .
any alternaive??
Thanks
RK


On Wed, May 15, 2013 at 12:30 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Care to elaborate? What have you tried?

 A simply google search (http://lmgtfy.com/?q=android+inputtype+file)
 revealed several pages that might help, including this:

 http://rost.me/2013/04/18/android-webview-and-file-input/

 Now, within an hour you have asked pretty much the same question two
 times.  You didn't provide any information that would help people answer
 your question.  You didn't give any indication of what you have tried...

 Those that answer questions on here are not professional Googlers.  We
 aren't your personal Google service.  Do some work yourself, provide some
 background of what you have tried, and ask specific questions about the
 problems you run into.

 Here is a nice little blog post that will help you understand how to ask
 meaningful questions that people will want to answer:
 http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html

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


 On Tue, May 14, 2013 at 6:19 AM, Rahul Kaushik 
 rahulkaushi...@gmail.comwrote:

 input type file not working in webview ,please suggest
 Thanks
 RK

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




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

2013-05-15 Thread Danny D
I've done this many times, my typical setup is to have the handset connect to 
our office LAN through the wireless.  You'll need to get the local address of 
the server, most WiFi access points will give you a listing of devices that 
they are routing for.

I've also used Dynamic DNS services to permit the handset to reach servers 
which wouldn't normally be visible to the internet.  This way, your handset can 
exercise the carrier networks while hitting a server in your home.

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

2013-05-15 Thread Gary Blakely
Michael,
Sorry but I don't understand your example.  You are specifying MODE_PRIVATE 
which is what I am doing...

SharedPreferences myMemory = getSharedPreferences(myMemory, MODE_PRIVATE);

Are you saying that if I specify | 0x4 (don't know what that means) that 
it will be the same as specifying MODE_MULTI_PROCESS?
btw, I'm targeting 2.33 gingerbread.
Gary

On Monday, May 13, 2013 11:59:32 PM UTC-7, Michael Schollmeyer wrote:

 I do something like this:

 prefs = context.getSharedPreferences(context.getPackageName() + 
 _preferences, Context.MODE_PRIVATE | 0x4); // Context.MODE_MULTI_PROCESS

 Which also compiles in earlier API levels. The additional flag does no 
 harm in pre-level-11 runtimes. 

 Also notice that OnSharedPreferenceChangeListener will not trigger across 
 processes.

 On Tuesday, May 14, 2013 1:29:37 AM UTC+2, Gary Blakely wrote:

 My app originally had an activity and a service running in the same 
 process. When I first wrote it I specified sharedPreferences with 
 MODE_PRIVATE. The app has grown, and for reasons beyond the scope of this 
 post, I now need to run my service in a different process.

 I found I can do this by specifying a name starting with a colon in the 
 android:process statement in my manifest file.

 However now my activity and my service are no longer reading the same 
 sharedPreferences. Researching this problem I see many reccommendations to 
 use MODE_MULTI_PROCESS. But I cannot figure out how to spedify it.

 SharedPreferences myMemory = getSharedPreferences(myMemory, 
 MODE_MULTI_PROCESS);

 This does not work because Eclipse can't find MODE_MULTI_PROCESS like it 
 can find MODE_PRIVATE or MODE_WORLD_READABLE.  I don't know where the ENUM 
 for MODE_MULTI_PROCESS is.

 So, how can I specify MODE_MULTI_PROCESS ??
 thanks, Gary



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

2013-05-15 Thread Shashidhar
Hi,
  I have a framlayout which has 2 childs. One is a surfaceview and the
other one is an imageview. I need to play a video on the surfaceview when
the activity starts and show the imageview after the video completes. I got
this working.
But after showing the image for 5 mins, I need to play the video again.

How can I do this? I mean as soon as the video completes for the first time
the surfaceview is destroyed. How can recreate the surfaceview to play the
video for the 2nd time after 5 mins??


Thanks,
Shashidhar

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

2013-05-15 Thread bob
*// Get the URI of a piece of media to attach. *
*Uri attached_Uri = Uri.parse(content://media/external/images/media/1); *
*
*
*// Create a new MMS intent *
*Intent mmsIntent = new Intent( Intent.ACTION_SEND, attached_Uri); *
*mmsIntent.putExtra(sms_body, Please see the attached image); *
*mmsIntent.putExtra(address, 07912355432); *
*mmsIntent.putExtra(Intent.EXTRA_STREAM, attached_Uri); *
*mmsIntent.setType(image/jpeg); *
*startActivity(mmsIntent);*

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




On Tuesday, May 14, 2013 9:49:38 PM UTC-5, askl wrote:

 Dear All,

 Please help me, how to send a *MMS *in Android Programmatically*. Please 
 give a sample code for that.*
 *Thanks*
 *ASK.*


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

2013-05-15 Thread Michael Schollmeyer
Yes, appending | 0x4 will result in the same value.

Cheers, Michael
mictale.com/ms
--



On May 15, 2013, at 5:19 PM, Gary Blakely gdeanblak...@gmail.com wrote:

 Michael,
 Sorry but I don't understand your example.  You are specifying MODE_PRIVATE 
 which is what I am doing...
 
 SharedPreferences myMemory = getSharedPreferences(myMemory, MODE_PRIVATE);
 
 Are you saying that if I specify | 0x4 (don't know what that means) that it 
 will be the same as specifying MODE_MULTI_PROCESS?
 btw, I'm targeting 2.33 gingerbread.
 Gary
 
 On Monday, May 13, 2013 11:59:32 PM UTC-7, Michael Schollmeyer wrote:
 I do something like this:
 
 prefs = context.getSharedPreferences(context.getPackageName() + 
 _preferences, Context.MODE_PRIVATE | 0x4); // Context.MODE_MULTI_PROCESS
 
 Which also compiles in earlier API levels. The additional flag does no harm 
 in pre-level-11 runtimes. 
 
 Also notice that OnSharedPreferenceChangeListener will not trigger across 
 processes.
 
 
 On Tuesday, May 14, 2013 1:29:37 AM UTC+2, Gary Blakely wrote:
 My app originally had an activity and a service running in the same process. 
 When I first wrote it I specified sharedPreferences with MODE_PRIVATE. The 
 app has grown, and for reasons beyond the scope of this post, I now need to 
 run my service in a different process.
 
 I found I can do this by specifying a name starting with a colon in the 
 android:process statement in my manifest file.
 
 However now my activity and my service are no longer reading the same 
 sharedPreferences. Researching this problem I see many reccommendations to 
 use MODE_MULTI_PROCESS. But I cannot figure out how to spedify it.
 
 SharedPreferences myMemory = getSharedPreferences(myMemory, 
 MODE_MULTI_PROCESS);
 
 This does not work because Eclipse can't find MODE_MULTI_PROCESS like it can 
 find MODE_PRIVATE or MODE_WORLD_READABLE.  I don't know where the ENUM for 
 MODE_MULTI_PROCESS is.
 
 So, how can I specify MODE_MULTI_PROCESS ??
 thanks, Gary
 
 
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 a topic in the Google 
 Groups Android Developers group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/android-developers/4K-boEk41q8/unsubscribe?hl=en.
 To unsubscribe from this group and all its topics, 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] How to Send MMS

2013-05-15 Thread kennedy O James
On May 14, 2013 9:54 PM, askl amal...@gmail.com wrote:

 Dear All,

 Please help me, how to send a *MMS *in Android Programmatically*. Please
 give a sample code for that.*
 *Thanks*
 *ASK.*

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

2013-05-15 Thread Justin Anderson
Ummm... what exactly is your question?

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


On Wed, May 15, 2013 at 2:25 AM, geo geoandr...@gmail.com wrote:

 Hello ,

 I have an application where I use GPS and I want while GPS is looking for
 position to display a toast Waiting for location and when location is
 found show the location.

 To start GPS I press a button:

 case R.id.getlocation:

 gps = new GPSTracker(ShowList.this);


 // check if GPS enabled

 if(gps.canGetLocation()){


 latitude = gps.getLatitude();

 longitude = gps.getLongitude();



 Toast.makeText(getApplicationContext(), Your Location is \nLat:  +
 latitude + \nLong:  + longitude, Toast.LENGTH_LONG).show();



 }else{

 //show dialog for enabling GPs

 gps.showSettingsAlert();

 }


 Now, with the above it shows latitude and latitude :0  because I
 initialize them to 0.

 case R.id.getlocation:

 gps = new GPSTracker(ShowList.this);

 // check if GPS enabled

 if(gps.canGetLocation()){

 showToast();

 }else{



 gps.showSettingsAlert();

 }


 private void showToast() {

 new Thread() {

 public void run() {

 try {

 while (message) {

 runOnUiThread(new Runnable() {

 @Override

 public void run() {


 latitude = gps.getLatitude();

  longitude = gps.getLongitude();


 Toast.makeText(getApplicationContext(), Waiting for location,
 Toast.LENGTH_LONG).show();


 //}else{

 // gps.showSettingsAlert();

 // }


 }

 });

 Thread.sleep(1000);

 message=false;


 }

 } catch (InterruptedException e) {

 e.printStackTrace();

 }

 }

 }.start();

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

2013-05-15 Thread Justin Anderson
If I am understanding right, then, the problem is not necessarily with the
fact that the inputtype file is not working, but rather you don't have a
way to browse files the way you want to?

If so, then you will need to write your own file browser that will allow
you to navigate the file system and choose whatever file type(s) you want.

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


On Wed, May 15, 2013 at 7:50 AM, Rahul Kaushik rahulkaushi...@gmail.comwrote:

 Hi justin,
 I have a webview, which contain my website, In my website i have upload
 button whose input type is File when i click on it s nothing happens
 i googled lot,whatt i find is-- i can show image ,i can show pdf but
 only one at a time, for that i have to look in to the overloading url ,dig
 in to it and see if it ends with pdf and similarly for image ,but instea of
 looking at the end of url i just want all the attachments whter it is image
 pdf or doc or xls or any attachment to be open in webview ,i have added the
 javascript in in webview setting i have tried the OpenFileChoooser but am
 still to find something that will open all the attachments at one go.

 Please suggest,
 i will google more ,solution i found to send the file id through multipart
 .
 any alternaive??
 Thanks
 RK


 On Wed, May 15, 2013 at 12:30 AM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 Care to elaborate? What have you tried?

 A simply google search (http://lmgtfy.com/?q=android+inputtype+file)
 revealed several pages that might help, including this:

 http://rost.me/2013/04/18/android-webview-and-file-input/

 Now, within an hour you have asked pretty much the same question two
 times.  You didn't provide any information that would help people answer
 your question.  You didn't give any indication of what you have tried...

 Those that answer questions on here are not professional Googlers.  We
 aren't your personal Google service.  Do some work yourself, provide some
 background of what you have tried, and ask specific questions about the
 problems you run into.

 Here is a nice little blog post that will help you understand how to ask
 meaningful questions that people will want to answer:
 http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html

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


 On Tue, May 14, 2013 at 6:19 AM, Rahul Kaushik 
 rahulkaushi...@gmail.comwrote:

 input type file not working in webview ,please suggest
 Thanks
 RK

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




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

Re: [android-developers] Recreating a surface view

2013-05-15 Thread Justin Anderson
I've never heard of the surfaceview getting destroyed after playing a
video...  That being said, why can't use just use the constructor and
create a new one if you need to?

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


On Wed, May 15, 2013 at 9:58 AM, Shashidhar shashi.zep...@gmail.com wrote:

 Hi,
   I have a framlayout which has 2 childs. One is a surfaceview and the
 other one is an imageview. I need to play a video on the surfaceview when
 the activity starts and show the imageview after the video completes. I got
 this working.
 But after showing the image for 5 mins, I need to play the video again.

 How can I do this? I mean as soon as the video completes for the first
 time the surfaceview is destroyed. How can recreate the surfaceview to play
 the video for the 2nd time after 5 mins??


 Thanks,
 Shashidhar

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

2013-05-15 Thread Piren
dude... hijacking every possible SIP related thread, would not get you help 
faster.  
 

On Wednesday, May 15, 2013 12:57:50 PM UTC+3, Swati wrote:

 Hi Alaa,

 I also have to create SIP client for Outgoing calls.

 I took reference from 
 http://developer.android.com/guide/topics/connectivity/sip.html and 
 SipDemo(Sample available in android sdk).

 But I am not able to make a call even registration is done successfully. 
 When we initialize local profile, we setup registration listener and in 
 that listener we implement method (onRegistering(), onRegistrationDone() 
 and onRegistrationFailed() ). So in my case, onRegistrationDone() method is 
 getting called, it means it is successfully registered.

 Even with SipDemo also, I am not able to make voice call.

 Can you please help me in creating SIP Client.

 Thanks  Regards,
 Swati Goel

 On Wednesday, 9 March 2011 06:20:09 UTC+5:30, Alaa Gh wrote:

 Hi, 
 I'm preparing my final studies project and i'm planning to make a 
 Voice-Over-Ip application = SIP integrated on 2.3 version. 
 In fact, i followed this DEV Guide(http://developer.android.com/guide/ 
 topics/network/sip.htmlhttp://developer.android.com/guide/topics/network/sip.html)
  
 but i don't know from where i have to begin! 
 There is not enough examples on it so i'm really needing your help. 
 What is exactly the steps to proceed ? 
 Please try to help me. 

 Thank you very much :).



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

2013-05-15 Thread Piren
That's what bing got me :)
 
http://stackoverflow.com/questions/2826412/how-to-load-jni-from-sd-card-on-android-2-1

On Wednesday, May 15, 2013 12:00:50 PM UTC+3, Filipe wrote:

 Hi,
  
 I had only used Bing up till now ;)
 Thanks for your great tutorial on this new thing called Google.
 I tryed it, but still did not find the answer.
  
 The libs are under the /data/data/your_package_name/lib folder.
 When I move the App I start getting java.lang.UnsatisfiedLinkError: 
 findLibrary returned null
  
 I found some new things
 This works without problems on AVD. But I noticed that even if I move the 
 App to the sdcard on the AVD, the lib remains in the same folder.
  
 So maybe the problem is specific to my HTC.
 Using adb shell I can find the libs in this folder. After moving to 
 sdcard, when I use adb shell I get permission denied trying to access 
 the lib folder !!!
 So I'm gessing that on my HTC the libs are moved, I just don't know where 
 to.
  
  
 Thanks

 Terça-feira, 14 de Maio de 2013 23:51:21 UTC+1, Lew escreveu:

 Filipe wrote:

 I have a project in Eclipse that uses some jni [sic] libraries that I 
 load using System.loadLibrary(myNativeLib).


 Those libraries are native to what platform?
  

  
 This works great, but if I move my app to the SDCard it stops working, 
 because it can't load the library.


 Did you take note of this from the Javadocs for 'System.loadLibrary()'?
 The mapping of the specified library name to the full path for loading 
 the library is implementation-dependent. 

 Where did you put the library on the device. Is this where the system 
 expects to find libraries?

  Are there any limitations on moving the app to SDCard when using jni? Or 
 do I have to change my call to System.loadLibrary ?



 http://developer.android.com/reference/java/lang/System.html#loadLibrary(java.lang.String)

 Also, I see some potentially useful links here:
 http://lmgtfy.com/?q=Android+JNI

 -- 
 Lew
  



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Too large bitmap to be uploaded into a texture - Getting max texture size.

2013-05-15 Thread bob
I'm looking at the code for *getMaximumBitmapWidth*, and it looks like it 
always returns 32766:

  private static final int MAXMIMUM_BITMAP_SIZE = 32766;

*   public int getMaximumBitmapWidth() {*
* return MAXMIMUM_BITMAP_SIZE;*
* }*

Am I missing something?

Thanks.




On Tuesday, May 14, 2013 3:58:05 PM UTC-5, Romain Guy (Google) wrote:

 You can query the maximum size using Canvas.getMaximumBitmapWidth/Height():

 http://developer.android.com/reference/android/graphics/Canvas.html#getMaximumBitmapWidth()

 You can also assume 2048px as the maximum unless the screen is bigger 
 (Nexus 10 for instance supports 4096px max since the screen is bigger than 
 2048px.)


 On Tue, May 14, 2013 at 11:08 AM, Thyme Cypher 
 thyme@gmail.comjavascript:
  wrote:

 I'm attempting to display a rather large bitmap VIA an ImageView, which 
 when Hardware Acceleration is enabled of course, has issues with texture 
 sizes (I'm well aware of texture size limitations in 3D engines). My 
 question is how to get what the maximum image size is without an OpenGL 
 context (As I'm not creating one and don't have access to the one that the 
 operating system creates, as far as I know at least) and ideally without 
 first attempting to render said image (As so there isn't a flash frame 
 without an image) and using exception handling.

 Thanks,
 James L

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




 -- 
 Romain Guy
 Android framework engineer
 roma...@android.com javascript:
  

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

2013-05-15 Thread Piren
Yeah, i've noticed that as well... though most users should be ok. 
It also wouldn't sit well with the bunch of assholes that put up awesome 
app but i gave 1 star because i want a specific feature only i want and 
i'll give you 5 start only when i get that feature messages, though they 
were there even before we had the option to reply :) 
The trick to keep the replies away from support is to reply by directing 
those users to the actual support staff so they wont have a reason to 
continue debating it on Play.
 
 

On Wednesday, May 15, 2013 2:54:09 AM UTC+3, b0b wrote:



 On Monday, 13 May 2013 22:33:04 UTC+2, Piren wrote:

 Finally, everyone can stop complaining about this :)
  

 http://android-developers.blogspot.co.uk/2013/05/all-google-play-developers-can-now.html


 And instead complain about replying too much to users having the perverse 
 effect of generating more support requests in comments, usually with a 1 
 star or low rating, 
 just because said user think it is a good idea for getting the developer's 
 attention.

 I know I will be replying to comments very rarely now.




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

2013-05-15 Thread Piren
Are you sure we're talking about Android here? What's wrong with Vector? 
ArrayList is good for most occasions but Vector has its merits...  you got 
it wrong regarding the SimpleAdapter anyhow (they use any implementation of 
List, which Vector is.. they dont need ArrayList... the description saying 
it needs an ArrayList is a mistake).
 
Vector isn't really dead...It can make things simple if you want to deal 
with concurrency easily. 
Stack is also a subclass of it, so those should count as well :)
 
Also, how is Hashtable obsolete for android development? you got any better 
alternative for its purposes?  I think you're thinking of the C# classes 
which are rather obsolete replaced by Dictionary and List... but unless 
he's a Mono developer, he's using Java :)
 

On Wednesday, May 15, 2013 1:21:59 AM UTC+3, Lew wrote:

 bob wrote:

 It sounds like he may want to call *Collections.sort()* on the backing 
 collection.  Probably a *Vector*.



 Why do you say probably a 'Vector'? The standard Android classes that 
 use a collection include 
 http://developer.android.com/reference/android/widget/SimpleAdapter.html
 that uses 'ArrayList', not 'Vector'. I was not able in a brief search to 
 find anything in the Android docs 
 that would lead a person to use 'Vector'.

 It is striking to me how much pernicious life the 'Vector' class has even 
 fifteen years after it was declared obsolete.

 Ditto 'Hashtable' but somewhat less so.

 -- 
 Lew
  


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] what needs to be change to enable call recording on android platform?

2013-05-15 Thread Piren
I wouldn't say no solution exists, as there are apps that do it...you 
just can't access the audio channel directly.

On Wednesday, May 15, 2013 12:43:32 AM UTC+3, Kristopher Micinski wrote:

 No solution exists: the modem on the phone doesn't touch Android. 

 You absolutely cannot record calls on Android: it just doesn't work 
 that way.  The call stream goes through different software, *not* 
 Android. 

 Kris 

 On Tue, May 14, 2013 at 8:16 AM, Swati meet2...@gmail.com javascript: 
 wrote: 
  Hi Aashish, 
  
  I have to create an app which can record Incoming / Outgoing voice calls 
 and 
  store the recording so that later on we can play recorded call. 
  
  can you please suggest me how can I proceed. 
  
  Regards, 
  Swati 
  
  On Monday, 2 July 2012 14:45:06 UTC+5:30, Aashish Jawla wrote: 
  
  it can be possible with the help of Media Recorder API in android, i 
 have 
  done it. 
  
  On Mon, Jul 2, 2012 at 2:23 PM, asheesh arya asheesh...@gmail.com 
 wrote: 
  
  i am also looking for the same solution but didn't find any 
 appropriate 
  solution . i suggest you please dont waste your precious time on this 
  problem. 
  
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to android-d...@googlegroups.com 
  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 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. 
  
  


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

2013-05-15 Thread bob
I found this one using Google:

https://groups.google.com/forum/?fromgroups=#!topic/android-ndk/0uY4qgam1Ws

It says:

You must use System.load() if you want to specify the full path name 
of the file, System.loadLibrary() is only for ones in the default 
location. 

Also *you should not be able to load an .so off the SDCARD on an ARM *
*system by normal means*, as ARM supports non-executable pages and 
android's implementation of mmap() refuses to map executable pages 
backed by a noexec file system.  To load from such a file system you 
would have to map anonymous executable pages and manually load the .so 
into them, doing appropriate interpretation of the contents and all 
fixups normally performed by the runtime linker. 

Thanks.


On Wednesday, May 15, 2013 4:32:37 PM UTC-5, Piren wrote:

 That's what bing got me :)
  

 http://stackoverflow.com/questions/2826412/how-to-load-jni-from-sd-card-on-android-2-1

 On Wednesday, May 15, 2013 12:00:50 PM UTC+3, Filipe wrote:

 Hi,
  
 I had only used Bing up till now ;)
 Thanks for your great tutorial on this new thing called Google.
 I tryed it, but still did not find the answer.
  
 The libs are under the /data/data/your_package_name/lib folder.
 When I move the App I start getting java.lang.UnsatisfiedLinkError: 
 findLibrary returned null
  
 I found some new things
 This works without problems on AVD. But I noticed that even if I move the 
 App to the sdcard on the AVD, the lib remains in the same folder.
  
 So maybe the problem is specific to my HTC.
 Using adb shell I can find the libs in this folder. After moving to 
 sdcard, when I use adb shell I get permission denied trying to access 
 the lib folder !!!
 So I'm gessing that on my HTC the libs are moved, I just don't know where 
 to.
  
  
 Thanks

 Terça-feira, 14 de Maio de 2013 23:51:21 UTC+1, Lew escreveu:

 Filipe wrote:

 I have a project in Eclipse that uses some jni [sic] libraries that I 
 load using System.loadLibrary(myNativeLib).


 Those libraries are native to what platform?
  

  
 This works great, but if I move my app to the SDCard it stops working, 
 because it can't load the library.


 Did you take note of this from the Javadocs for 'System.loadLibrary()'?
 The mapping of the specified library name to the full path for loading 
 the library is implementation-dependent. 

 Where did you put the library on the device. Is this where the system 
 expects to find libraries?

  Are there any limitations on moving the app to SDCard when using jni? 
 Or do I have to change my call to System.loadLibrary ?



 http://developer.android.com/reference/java/lang/System.html#loadLibrary(java.lang.String)

 Also, I see some potentially useful links here:
 http://lmgtfy.com/?q=Android+JNI

 -- 
 Lew
  



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] what needs to be change to enable call recording on android platform?

2013-05-15 Thread Kristopher Micinski
I would say that.  Why?  Because these apps record calls by having you
put your phone on speaker.  That sounds more like a glorified audio
recorder which is just called call recorder app.

Kris

On Wed, May 15, 2013 at 5:56 PM, Piren gpi...@gmail.com wrote:
 I wouldn't say no solution exists, as there are apps that do it...you just
 can't access the audio channel directly.

 On Wednesday, May 15, 2013 12:43:32 AM UTC+3, Kristopher Micinski wrote:

 No solution exists: the modem on the phone doesn't touch Android.

 You absolutely cannot record calls on Android: it just doesn't work
 that way.  The call stream goes through different software, *not*
 Android.

 Kris

 On Tue, May 14, 2013 at 8:16 AM, Swati meet2...@gmail.com wrote:
  Hi Aashish,
 
  I have to create an app which can record Incoming / Outgoing voice calls
  and
  store the recording so that later on we can play recorded call.
 
  can you please suggest me how can I proceed.
 
  Regards,
  Swati
 
  On Monday, 2 July 2012 14:45:06 UTC+5:30, Aashish Jawla wrote:
 
  it can be possible with the help of Media Recorder API in android, i
  have
  done it.
 
  On Mon, Jul 2, 2012 at 2:23 PM, asheesh arya asheesh...@gmail.com
  wrote:
 
  i am also looking for the same solution but didn't find any
  appropriate
  solution . i suggest you please dont waste your precious time on this
  problem.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-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 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.
 
 

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] what needs to be change to enable call recording on android platform?

2013-05-15 Thread Kristopher Micinski
This is just to give a definitive *no* to the common assumption: the
call stream *isn't* processed by the Android OS, even though it comes
out of your Android device :-).  (So perhaps I should be agreeing with
Piren!)

Kris

On Wed, May 15, 2013 at 6:02 PM, Kristopher Micinski
krismicin...@gmail.com wrote:
 I would say that.  Why?  Because these apps record calls by having you
 put your phone on speaker.  That sounds more like a glorified audio
 recorder which is just called call recorder app.

 Kris

 On Wed, May 15, 2013 at 5:56 PM, Piren gpi...@gmail.com wrote:
 I wouldn't say no solution exists, as there are apps that do it...you just
 can't access the audio channel directly.

 On Wednesday, May 15, 2013 12:43:32 AM UTC+3, Kristopher Micinski wrote:

 No solution exists: the modem on the phone doesn't touch Android.

 You absolutely cannot record calls on Android: it just doesn't work
 that way.  The call stream goes through different software, *not*
 Android.

 Kris

 On Tue, May 14, 2013 at 8:16 AM, Swati meet2...@gmail.com wrote:
  Hi Aashish,
 
  I have to create an app which can record Incoming / Outgoing voice calls
  and
  store the recording so that later on we can play recorded call.
 
  can you please suggest me how can I proceed.
 
  Regards,
  Swati
 
  On Monday, 2 July 2012 14:45:06 UTC+5:30, Aashish Jawla wrote:
 
  it can be possible with the help of Media Recorder API in android, i
  have
  done it.
 
  On Mon, Jul 2, 2012 at 2:23 PM, asheesh arya asheesh...@gmail.com
  wrote:
 
  i am also looking for the same solution but didn't find any
  appropriate
  solution . i suggest you please dont waste your precious time on this
  problem.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-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 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.
 
 

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

2013-05-15 Thread Piren


  How much is too much?

 
Obviously i don't have an answer for that... but if the device freezes and 
you could pinpoint the issue to these requests, it's safe to say that 
you've gone over the limit for that device :)
 

  What drive isn't flash? I'm assuming that app internal storage (I don't 
 use), external storage, and removable external storage are all flash.

Meant the internal drive of course.  Unless you pushed the DB to the 
SDCard, it uses the internal storage btw, any either way DB access is I/O.
 
By System blocking i meant that all drive access eventually is on a queue 
... (not that it blocks the entire system thread wise).  So hammering the 
DB with requests is a nice way to make the entire device unresponsive. I've 
never actually checked if keeping the DB open will load it to memory, but 
if you know you have lots of DB access, it's a good idea to cache it in 
memory anyway.
 
I'd start by lowering the I/O done by onScroll (just for testing) and see 
if it has an effect on the device.
 
 

On Tuesday, May 14, 2013 9:52:03 PM UTC+3, Nathan wrote:



 On Tuesday, May 14, 2013 1:09:37 AM UTC-7, Piren wrote:

 onScroll is called very frequently, much much more frequent than binding 
 calls... 

 does the loading mechanism knows how to deal with that?


 Yes. The offscreen bitmap is moved while scroll is in progress. Only after 
 finger is lifted is the redraw of the offscreen bitmap started, if the 
 screen has moved enough.  
  

 how frequent are the IO calls? 


 There might be a retrieval of 25 or so small files after the scroll, or 
 the same number of database binary reads.  Enough to cover the screen. 

 That may not be as precise as you want. 

 Making too much I/O is never a good thing

  How much is too much?

 (including accessing the flash drive...

  What drive isn't flash? I'm assuming that app internal storage (I don't 
 use), external storage, and removable external storage are all flash.

  these are system blocking)


 This could be a clue. What do you mean by system blocking? Does this mean 
 that all threads in all JVM's come to a halt while reading a block from 
 storage? Or just that if multiple threads are trying to read from the 
 storage, only one gets through at once?

 Certainly there could be some correlation between system blocking and 
 complete freeze of the system, particularly if the Droid Razr HD does 
 something special with File I/O. 

 Based on some logs I have gotten, normal java.io.File operations appear to 
 be routed through the media provider on the Droid Razr HD, which I do not 
 call explicitly.  

 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.




Re: [android-developers] what needs to be change to enable call recording on android platform?

2013-05-15 Thread Piren
Your No Applies to the question: Can i record the audio STREAM (itself) 
of an on going call?, in that case i'd agree with you and say No, you 
can't, since that stream is not available to the OS.
 
But he just wanted to ask if you can record a call... and well... you 
can... you'll just have shitty quality and volume :) 
 
 
 

On Thursday, May 16, 2013 1:03:51 AM UTC+3, Kristopher Micinski wrote:

 This is just to give a definitive *no* to the common assumption: the 
 call stream *isn't* processed by the Android OS, even though it comes 
 out of your Android device :-).  (So perhaps I should be agreeing with 
 Piren!) 

 Kris 

 On Wed, May 15, 2013 at 6:02 PM, Kristopher Micinski 
 krismi...@gmail.com javascript: wrote: 
  I would say that.  Why?  Because these apps record calls by having you 
  put your phone on speaker.  That sounds more like a glorified audio 
  recorder which is just called call recorder app. 
  
  Kris 
  
  On Wed, May 15, 2013 at 5:56 PM, Piren gpi...@gmail.com javascript: 
 wrote: 
  I wouldn't say no solution exists, as there are apps that do it...you 
 just 
  can't access the audio channel directly. 
  
  On Wednesday, May 15, 2013 12:43:32 AM UTC+3, Kristopher Micinski 
 wrote: 
  
  No solution exists: the modem on the phone doesn't touch Android. 
  
  You absolutely cannot record calls on Android: it just doesn't work 
  that way.  The call stream goes through different software, *not* 
  Android. 
  
  Kris 
  
  On Tue, May 14, 2013 at 8:16 AM, Swati meet2...@gmail.com wrote: 
   Hi Aashish, 
   
   I have to create an app which can record Incoming / Outgoing voice 
 calls 
   and 
   store the recording so that later on we can play recorded call. 
   
   can you please suggest me how can I proceed. 
   
   Regards, 
   Swati 
   
   On Monday, 2 July 2012 14:45:06 UTC+5:30, Aashish Jawla wrote: 
   
   it can be possible with the help of Media Recorder API in android, 
 i 
   have 
   done it. 
   
   On Mon, Jul 2, 2012 at 2:23 PM, asheesh arya asheesh...@gmail.com 

   wrote: 
   
   i am also looking for the same solution but didn't find any 
   appropriate 
   solution . i suggest you please dont waste your precious time on 
 this 
   problem. 
   
   -- 
   You received this message because you are subscribed to the Google 
   Groups Android Developers group. 
   To post to this group, send email to android-d...@googlegroups.com 
   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 post to this group, send email to android-d...@googlegroups.com 
   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.comjavascript:. 

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


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

2013-05-15 Thread Piren
That's actually the same person making pretty much the same reply :-)
 

On Thursday, May 16, 2013 1:02:10 AM UTC+3, bob wrote:

 I found this one using Google:

 https://groups.google.com/forum/?fromgroups=#!topic/android-ndk/0uY4qgam1Ws

 It says:

 You must use System.load() if you want to specify the full path name 
 of the file, System.loadLibrary() is only for ones in the default 
 location. 

 Also *you should not be able to load an .so off the SDCARD on an ARM *
 *system by normal means*, as ARM supports non-executable pages and 
 android's implementation of mmap() refuses to map executable pages 
 backed by a noexec file system.  To load from such a file system you 
 would have to map anonymous executable pages and manually load the .so 
 into them, doing appropriate interpretation of the contents and all 
 fixups normally performed by the runtime linker. 

 Thanks.


 On Wednesday, May 15, 2013 4:32:37 PM UTC-5, Piren wrote:

 That's what bing got me :)
  

 http://stackoverflow.com/questions/2826412/how-to-load-jni-from-sd-card-on-android-2-1

 On Wednesday, May 15, 2013 12:00:50 PM UTC+3, Filipe wrote:

 Hi,
  
 I had only used Bing up till now ;)
 Thanks for your great tutorial on this new thing called Google.
 I tryed it, but still did not find the answer.
  
 The libs are under the /data/data/your_package_name/lib folder.
 When I move the App I start getting java.lang.UnsatisfiedLinkError: 
 findLibrary returned null
  
 I found some new things
 This works without problems on AVD. But I noticed that even if I move 
 the App to the sdcard on the AVD, the lib remains in the same folder.
  
 So maybe the problem is specific to my HTC.
 Using adb shell I can find the libs in this folder. After moving to 
 sdcard, when I use adb shell I get permission denied trying to access 
 the lib folder !!!
 So I'm gessing that on my HTC the libs are moved, I just don't know 
 where to.
  
  
 Thanks

 Terça-feira, 14 de Maio de 2013 23:51:21 UTC+1, Lew escreveu:

 Filipe wrote:

 I have a project in Eclipse that uses some jni [sic] libraries that I 
 load using System.loadLibrary(myNativeLib).


 Those libraries are native to what platform?
  

  
 This works great, but if I move my app to the SDCard it stops working, 
 because it can't load the library.


 Did you take note of this from the Javadocs for 'System.loadLibrary()'?
 The mapping of the specified library name to the full path for 
 loading the library is implementation-dependent. 

 Where did you put the library on the device. Is this where the system 
 expects to find libraries?

  Are there any limitations on moving the app to SDCard when using jni? 
 Or do I have to change my call to System.loadLibrary ?



 http://developer.android.com/reference/java/lang/System.html#loadLibrary(java.lang.String)

 Also, I see some potentially useful links here:
 http://lmgtfy.com/?q=Android+JNI

 -- 
 Lew
  



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

2013-05-15 Thread Lew
Piren wrote:

 Are you sure we're talking about Android here? What's wrong with Vector? 
 ArrayList is good for most occasions but Vector has its merits...  you got 
 it wrong 


Of course. 'Vector' carries cruft that isn't part of the Collections 
framework, and 99% of the time you don't 
want its naive synchronization.
 

 regarding the SimpleAdapter anyhow (they use any implementation of List, 
 which Vector is.. they dont need ArrayList... the description saying it 
 needs an ArrayList is a mistake).


I go by the documentation. So sue me. Anyway, you don't refute my point, 
which is that there is nothing
in the docs to indicate you might want to use crappy ol' 'Vector'.
 

  Vector isn't really dead...It can make things simple if you want to deal 
 with concurrency easily.


Not true. It can give the *illusion* of simplicity without solving your 
real concurrency problems.

For better control, don't use 'Vector', use 
'Collections.synchronizedList()' or one of the 'java.util.concurrent' 
or related types.
 

 Stack is also a subclass of it, so those should count as well :)


Right. Don't use 'Stack' either.
 

 Also, how is Hashtable obsolete for android development? you got any 
 better alternative for its purposes?  I think you're thinking of the C# 
 classes which are rather obsolete replaced by Dictionary and List... but 
 unless he's a Mono developer, he's using Java :)


WTF? Why are you ranting about Mono? That's damn random of you.

'java.util.HashMap' has been the preferred alternative since 1998. When did 
you start to learn Java?

Lew wrote:

 bob wrote:

 It sounds like he may want to call *Collections.sort()* on the backing 
 collection.  Probably a *Vector*.



 Why do you say probably a 'Vector'? The standard Android classes that 
 use a collection include 
 http://developer.android.com/reference/android/widget/SimpleAdapter.html
 that uses 'ArrayList', not 'Vector'. I was not able in a brief search to 
 find anything in the Android docs 
 that would lead a person to use 'Vector'.

 It is striking to me how much pernicious life the 'Vector' class has even 
 fifteen years after it was declared obsolete.

 Ditto 'Hashtable' but somewhat less so.


-- 
Lew
 

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

2013-05-15 Thread Justin Anderson
This SO post gives a pretty good explanation about why you shouldn't use
Vector:
http://stackoverflow.com/questions/1386275/why-is-java-vector-class-considered-obsolete-or-deprecated

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


On Wed, May 15, 2013 at 4:37 PM, Lew lewbl...@gmail.com wrote:

 Piren wrote:

 Are you sure we're talking about Android here? What's wrong with Vector?
 ArrayList is good for most occasions but Vector has its merits...  you got
 it wrong


 Of course. 'Vector' carries cruft that isn't part of the Collections
 framework, and 99% of the time you don't
 want its naive synchronization.


 regarding the SimpleAdapter anyhow (they use any implementation of List,
 which Vector is.. they dont need ArrayList... the description saying it
 needs an ArrayList is a mistake).


 I go by the documentation. So sue me. Anyway, you don't refute my point,
 which is that there is nothing
 in the docs to indicate you might want to use crappy ol' 'Vector'.


  Vector isn't really dead...It can make things simple if you want to deal
 with concurrency easily.


 Not true. It can give the *illusion* of simplicity without solving your
 real concurrency problems.

 For better control, don't use 'Vector', use
 'Collections.synchronizedList()' or one of the 'java.util.concurrent'
 or related types.


 Stack is also a subclass of it, so those should count as well :)


 Right. Don't use 'Stack' either.


 Also, how is Hashtable obsolete for android development? you got any
 better alternative for its purposes?  I think you're thinking of the C#
 classes which are rather obsolete replaced by Dictionary and List... but
 unless he's a Mono developer, he's using Java :)


 WTF? Why are you ranting about Mono? That's damn random of you.

 'java.util.HashMap' has been the preferred alternative since 1998. When
 did you start to learn Java?

 Lew wrote:

 bob wrote:

 It sounds like he may want to call *Collections.sort()* on the backing
 collection.  Probably a *Vector*.



 Why do you say probably a 'Vector'? The standard Android classes that
 use a collection include
 http://developer.android.com/**reference/android/widget/**
 SimpleAdapter.htmlhttp://developer.android.com/reference/android/widget/SimpleAdapter.html
 that uses 'ArrayList', not 'Vector'. I was not able in a brief search to
 find anything in the Android docs
 that would lead a person to use 'Vector'.

 It is striking to me how much pernicious life the 'Vector' class has
 even fifteen years after it was declared obsolete.

 Ditto 'Hashtable' but somewhat less so.


 --
 Lew


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

2013-05-15 Thread Piren
Dude, only one ranting here is you in case you've missed it... the guy 
wrote Vector and you leashed out... I've seen people fight over Android 
vs Iphone and C# vs Java, but that's the first time i've seen someone get 
mad over a member of the collections framework...  chill :) 
 
 

On Thursday, May 16, 2013 1:37:24 AM UTC+3, Lew wrote:

 Piren wrote:

 Are you sure we're talking about Android here? What's wrong with Vector? 
 ArrayList is good for most occasions but Vector has its merits...  you got 
 it wrong 


 Of course. 'Vector' carries cruft that isn't part of the Collections 
 framework, and 99% of the time you don't 
 want its naive synchronization.
  

 regarding the SimpleAdapter anyhow (they use any implementation of List, 
 which Vector is.. they dont need ArrayList... the description saying it 
 needs an ArrayList is a mistake).


 I go by the documentation. So sue me. Anyway, you don't refute my point, 
 which is that there is nothing
 in the docs to indicate you might want to use crappy ol' 'Vector'.
  

  Vector isn't really dead...It can make things simple if you want to deal 
 with concurrency easily.


 Not true. It can give the *illusion* of simplicity without solving your 
 real concurrency problems.

 For better control, don't use 'Vector', use 
 'Collections.synchronizedList()' or one of the 'java.util.concurrent' 
 or related types.
  

 Stack is also a subclass of it, so those should count as well :)


 Right. Don't use 'Stack' either.
  

 Also, how is Hashtable obsolete for android development? you got any 
 better alternative for its purposes?  I think you're thinking of the C# 
 classes which are rather obsolete replaced by Dictionary and List... but 
 unless he's a Mono developer, he's using Java :)


 WTF? Why are you ranting about Mono? That's damn random of you.

 'java.util.HashMap' has been the preferred alternative since 1998. When 
 did you start to learn Java?

 Lew wrote:

 bob wrote:

 It sounds like he may want to call *Collections.sort()* on the backing 
 collection.  Probably a *Vector*.



 Why do you say probably a 'Vector'? The standard Android classes that 
 use a collection include 
 http://developer.android.com/reference/android/widget/SimpleAdapter.html
 that uses 'ArrayList', not 'Vector'. I was not able in a brief search to 
 find anything in the Android docs 
 that would lead a person to use 'Vector'.

 It is striking to me how much pernicious life the 'Vector' class has 
 even fifteen years after it was declared obsolete.

 Ditto 'Hashtable' but somewhat less so.


 -- 
 Lew
  


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] what needs to be change to enable call recording on android platform?

2013-05-15 Thread Kristopher Micinski
Ah, I suppose I agree with you if you define the call in that method,
I just don't agree with that definition :-).

(Nothing against your thinking it makes sense.  But the kind of
conversations I'd want to record would probably be disjoint with the
set of ones I'd feel comfortable putting on speaker...)

Kris

On Wed, May 15, 2013 at 6:24 PM, Piren gpi...@gmail.com wrote:
 Your No Applies to the question: Can i record the audio STREAM (itself)
 of an on going call?, in that case i'd agree with you and say No, you
 can't, since that stream is not available to the OS.

 But he just wanted to ask if you can record a call... and well... you can...
 you'll just have shitty quality and volume :)




 On Thursday, May 16, 2013 1:03:51 AM UTC+3, Kristopher Micinski wrote:

 This is just to give a definitive *no* to the common assumption: the
 call stream *isn't* processed by the Android OS, even though it comes
 out of your Android device :-).  (So perhaps I should be agreeing with
 Piren!)

 Kris

 On Wed, May 15, 2013 at 6:02 PM, Kristopher Micinski
 krismi...@gmail.com wrote:
  I would say that.  Why?  Because these apps record calls by having you
  put your phone on speaker.  That sounds more like a glorified audio
  recorder which is just called call recorder app.
 
  Kris
 
  On Wed, May 15, 2013 at 5:56 PM, Piren gpi...@gmail.com wrote:
  I wouldn't say no solution exists, as there are apps that do it...you
  just
  can't access the audio channel directly.
 
  On Wednesday, May 15, 2013 12:43:32 AM UTC+3, Kristopher Micinski
  wrote:
 
  No solution exists: the modem on the phone doesn't touch Android.
 
  You absolutely cannot record calls on Android: it just doesn't work
  that way.  The call stream goes through different software, *not*
  Android.
 
  Kris
 
  On Tue, May 14, 2013 at 8:16 AM, Swati meet2...@gmail.com wrote:
   Hi Aashish,
  
   I have to create an app which can record Incoming / Outgoing voice
   calls
   and
   store the recording so that later on we can play recorded call.
  
   can you please suggest me how can I proceed.
  
   Regards,
   Swati
  
   On Monday, 2 July 2012 14:45:06 UTC+5:30, Aashish Jawla wrote:
  
   it can be possible with the help of Media Recorder API in android,
   i
   have
   done it.
  
   On Mon, Jul 2, 2012 at 2:23 PM, asheesh arya asheesh...@gmail.com
   wrote:
  
   i am also looking for the same solution but didn't find any
   appropriate
   solution . i suggest you please dont waste your precious time on
   this
   problem.
  
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-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 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.
  
  
 
  --
  --
  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.
 
 

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

Re: [android-developers] Custom Base Adapter.

2013-05-15 Thread Lew
Piren wrote:

 Dude, only one ranting here is you in case you've missed it... the guy 
 wrote Vector and you leashed out... I've seen people fight over Android 
 vs Iphone and C# vs Java, but that's the first time i've seen someone get 
 mad over a member of the collections framework...  chill :)


How do you conclude that I got mad? I gave technical answers to technical 
questions.

You did ask the questions. If you don't want the answers, why did you ask 
them? Since you did ask them,
it's rude as hell to tell someone to chill for answering them. Be assured 
I will not waste my time with you again.

 Lew wrote:

Piren wrote:

 Are you sure we're talking about Android here? What's wrong with Vector? 
 ArrayList is good for most occasions but Vector has its merits...  you got 
 it wrong 


 Of course. 'Vector' carries cruft that isn't part of the Collections 
 framework, and 99% of the time you don't 
 want its naive synchronization.
  

 regarding the SimpleAdapter anyhow (they use any implementation of List, 
 which Vector is.. they dont need ArrayList... the description saying it 
 needs an ArrayList is a mistake).


 I go by the documentation. So sue me. Anyway, you don't refute my point, 
 which is that there is nothing
 in the docs to indicate you might want to use crappy ol' 'Vector'.
  

  Vector isn't really dead...It can make things simple if you want to 
 deal with concurrency easily.


 Not true. It can give the *illusion* of simplicity without solving your 
 real concurrency problems.

 For better control, don't use 'Vector', use 
 'Collections.synchronizedList()' or one of the 'java.util.concurrent' 
 or related types.
  

 Stack is also a subclass of it, so those should count as well :)


 Right. Don't use 'Stack' either.
  

 Also, how is Hashtable obsolete for android development? you got any 
 better alternative for its purposes?  I think you're thinking of the C# 
 classes which are rather obsolete replaced by Dictionary and List... but 
 unless he's a Mono developer, he's using Java :)


 WTF? Why are you ranting about Mono? That's damn random of you.

 'java.util.HashMap' has been the preferred alternative since 1998. When 
 did you start to learn Java?

 Lew wrote:

 bob wrote:

 It sounds like he may want to call *Collections.sort()* on the 
 backing collection.  Probably a *Vector*.



 Why do you say probably a 'Vector'? The standard Android classes that 
 use a collection include 
 http://developer.android.com/reference/android/widget/SimpleAdapter.html
 that uses 'ArrayList', not 'Vector'. I was not able in a brief search 
 to find anything in the Android docs 
 that would lead a person to use 'Vector'.

 It is striking to me how much pernicious life the 'Vector' class has 
 even fifteen years after it was declared obsolete.

 Ditto 'Hashtable' but somewhat less so.


-- 
Lew
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: what needs to be change to enable call recording on android platform?

2013-05-15 Thread Kristopher Micinski
This is exactly the *opposite* of what I'm saying.

Even if you touch the kernel you *still* cannot touch the call stream!

Google RIL and find out about how Android talks to the phone's modem.

Kris

On Thu, May 16, 2013 at 3:24 PM, rh richard_hubb...@lavabit.com wrote:
 So if someone calls themselves an android developer that implies that
 they don't touch the kernel?

 This android ecosystem is confused and muddled to me.

 On Tue, 14 May 2013 17:43:32 -0400
 Kristopher Micinski krismicin...@gmail.com wrote:

 No solution exists: the modem on the phone doesn't touch Android.

 You absolutely cannot record calls on Android: it just doesn't work
 that way.  The call stream goes through different software, *not*
 Android.

 Kris

 On Tue, May 14, 2013 at 8:16 AM, Swati meet2sw...@gmail.com wrote:
  Hi Aashish,
 
  I have to create an app which can record Incoming / Outgoing voice
  calls and store the recording so that later on we can play recorded
  call.
 
  can you please suggest me how can I proceed.
 
  Regards,
  Swati
 
  On Monday, 2 July 2012 14:45:06 UTC+5:30, Aashish Jawla wrote:
 
  it can be possible with the help of Media Recorder API in android,
  i have done it.
 
  On Mon, Jul 2, 2012 at 2:23 PM, asheesh arya
  asheesh...@gmail.com wrote:
 
  i am also looking for the same solution but didn't find any
  appropriate solution . i suggest you please dont waste your
  precious time on this problem.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-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 post to this group, send email to
  android-developers@googlegroups.com To unsubscribe from this group,
  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.





 --


 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Re: what needs to be change to enable call recording on android platform?

2013-05-15 Thread Kristopher Micinski
In fact, I encourage anyone working with Android to have some level of
familiarity with the kernel.

However, this may in fact not be the most helpful thing: you'd
probably be more helpful understanding the Android framework internals
and Dalvik, along with a sprinkling of things from the kernel (because
most of Linux will just be details that aren't strictly requisite
material for understanding Android..)

Kris

On Wed, May 15, 2013 at 11:54 PM, Kristopher Micinski
krismicin...@gmail.com wrote:
 This is exactly the *opposite* of what I'm saying.

 Even if you touch the kernel you *still* cannot touch the call stream!

 Google RIL and find out about how Android talks to the phone's modem.

 Kris

 On Thu, May 16, 2013 at 3:24 PM, rh richard_hubb...@lavabit.com wrote:
 So if someone calls themselves an android developer that implies that
 they don't touch the kernel?

 This android ecosystem is confused and muddled to me.

 On Tue, 14 May 2013 17:43:32 -0400
 Kristopher Micinski krismicin...@gmail.com wrote:

 No solution exists: the modem on the phone doesn't touch Android.

 You absolutely cannot record calls on Android: it just doesn't work
 that way.  The call stream goes through different software, *not*
 Android.

 Kris

 On Tue, May 14, 2013 at 8:16 AM, Swati meet2sw...@gmail.com wrote:
  Hi Aashish,
 
  I have to create an app which can record Incoming / Outgoing voice
  calls and store the recording so that later on we can play recorded
  call.
 
  can you please suggest me how can I proceed.
 
  Regards,
  Swati
 
  On Monday, 2 July 2012 14:45:06 UTC+5:30, Aashish Jawla wrote:
 
  it can be possible with the help of Media Recorder API in android,
  i have done it.
 
  On Mon, Jul 2, 2012 at 2:23 PM, asheesh arya
  asheesh...@gmail.com wrote:
 
  i am also looking for the same solution but didn't find any
  appropriate solution . i suggest you please dont waste your
  precious time on this problem.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-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 post to this group, send email to
  android-developers@googlegroups.com To unsubscribe from this group,
  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.





 --


 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] What is wow factor about android studio in compare to Eclipse.

2013-05-15 Thread abhijit
I just got surprised  saw in android developer side that Google has 
launched a new IDE foe exclusively android.i just took an overview on 
developer site i just found it s similar to eclipse but the project 
structure is different because  due to the switch to a Gradle-based build 
system.and everything is similar as it in eclipse.I didn't find any wow 
factor in it as compare to eclipse.Do you know please share us the 
information.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Recreating a surface view

2013-05-15 Thread Shashidhar
Thanks. got it working.


On Thu, May 16, 2013 at 2:44 AM, Justin Anderson magouyaw...@gmail.comwrote:

 I've never heard of the surfaceview getting destroyed after playing a
 video...  That being said, why can't use just use the constructor and
 create a new one if you need to?

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


 On Wed, May 15, 2013 at 9:58 AM, Shashidhar shashi.zep...@gmail.comwrote:

 Hi,
   I have a framlayout which has 2 childs. One is a surfaceview and the
 other one is an imageview. I need to play a video on the surfaceview when
 the activity starts and show the imageview after the video completes. I got
 this working.
 But after showing the image for 5 mins, I need to play the video again.

 How can I do this? I mean as soon as the video completes for the first
 time the surfaceview is destroyed. How can recreate the surfaceview to play
 the video for the 2nd time after 5 mins??


 Thanks,
 Shashidhar

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




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