[android-developers] Re: Sharing SharedPreferences from two different processes

2013-05-14 Thread Michael Schollmeyer
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] Google Calendar API v3 OAuth 2.0

2013-05-14 Thread John Goche
Hello,

I am trying to use the Java API for Google Calendar v3 on Android, but I am
stuck. Here is what I've done so far:

Created a google account my...@gmail.com for my application and
registered it with my debug key on code.google.com/apis/console where I
have created all the auth data (client ID, certificate fingerprint, api
key, etc...)

Added some code to my android application:

{

final HttpTransport transport = AndroidHttp.newCompatibleTransport();

final JsonFactory jsonFactory = new GsonFactory();

GoogleAccountCredential credential;

credential = GoogleAccountCredential.usingOAuth2(this,
CalendarScopes.CALENDAR);

credential.setSelectedAccountName(myemailh...@gmail.com);

calendarClient = new
com.google.api.services.calendar.Calendar.Builder(transport,   jsonFactory,
credential)
.setApplicationName(My App Name/1.0).build();

}

Some code on the net also has:

GoogleCredential gc = new GoogleCredential.Builder()
  .setTransport(transport)
  .setJsonFactory(jsonFactory)
  .setServiceAccountId(850381918262.apps.googleusercontent.com)
  .setServiceAccountScopes(CalendarScopes.CALENDAR)
  .setServiceAccountUser(u...@gmail.com)
  /*.setServiceAccountPrivateKeyFromP12File(new
File(D:/3cd8Xd635e-privatekey.p12))*/
  .build();

But I don't have a private key, so where would I get it. And what would I
do with the GoogleCredential object?
I've seen there is a credential.getToken() function but I'm not sure how to
use it. From what I gather my application should initiate a process where
it asks the user to authorize myapplicat...@google.com to access
myemailh...@google.com 's calendar data, but how do I setup this process?

Also what is the difference between a GoogleAccountCredential and a
GoogleCredential? Which one do I need? Also some posts make reference to a
client secret, but I do not have one (android applications do not have a
secret it seems).

I've searched and searched the web but could only find vague information.
And the sample google calendar api application does not set up access with
the sequence I describe.

I know I need to

Authenticate using OAuth2 for installed applications
Somehow prompt the user if the app can access their calendar data.
Connect and manipulate calendar data.

Could someone here please help me?

Thanks.

John Goche

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

2013-05-14 Thread RS



 This is what I use in my activity- it works for me.  May be try with MP4 
 or MP3 which is usually best supported by video view.  If it work then it 
 is codec issue.  You can try free opensource android players like xmbc, vlc 
 or vid for solving codec issues.


videoView = (VideoView) findViewById(R.id.videoview); 
mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
videoView.setMediaController(mediaController);

videoView.setOnCompletionListener(this);
 
videoView.refreshDrawableState();
videoView.setDrawingCacheEnabled(true);
videoView.setDrawingCacheQuality(TRIM_MEMORY_BACKGROUND);

videoView.setOnCompletionListener(this);

videoView.setOnPreparedListener(new OnPreparedListener() {

public void onPrepared(MediaPlayer arg0) { 
arg0.setLooping(false);
videoView.start();
}
});
 
videoView.setVideoPath(strVideoPath);
videoView.setMediaController(mediaController); 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-14 Thread Piren
onScroll is called very frequently, much much more frequent than binding 
calls... does the loading mechanism knows how to deal with that? how 
frequent are the IO calls? Making too much I/O is never a good thing 
(including accessing the flash drive... these are system blocking)
 

On Tuesday, May 14, 2013 1:57:45 AM UTC+3, Nathan wrote:



 On Saturday, May 11, 2013 11:57:12 PM UTC-7, Piren wrote:

 The custom view does DB/IO while scrolling? 

 Asynchronously, in a threadpool, yes. Not blocking the UI.   
  

 the processes that run while bindView/getView is called are what 
 important.


 BindView and GetView are not called. It's not a listview. I used the word 
 scrolling, though I could have used panning. I used scroll because of the 
 name of 

 GestureDetector.OnGestureListener.onScroll

 Probably similar to mapview, but I am not able to say how similar, not 
 having used mapview and not having any source code for mapview.  

 P.S - HttpClient does use cache. 


 Ok, then I guess it would get some activity. I don't know how often I 
 would be expected to clean it up. Any known issues with the Droid Razr HD 
 that cause it to freeze at random times if the cache has stuff in it? 

 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] Re: barcode scanner on android emulator

2013-05-14 Thread tarun sablok
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.




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

2013-05-14 Thread asma rezgui
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.




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

2013-05-14 Thread igmail
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.




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

2013-05-14 Thread asma rezgui
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.




[android-developers] File Upload in WebView

2013-05-14 Thread Rahul Kaushik
In my webview ,i have an Upload button,how can i upload an file to the
server through this upload button

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.




[android-developers] Re: Why mediaRecorder.start(); goes in infinite loop, on some of android phone like S2 with o/s 2.3.6?

2013-05-14 Thread Swati
Hi Imran,

I have to create SIP client which can record Incoming / Outgoing voice call 
and save the recording so that later we can play recorded call.

Can you please guide me how to proceed for that.

Thanks  Regards,
Swati

On Tuesday, 29 May 2012 13:15:55 UTC+5:30, imran ali wrote:

 Hi,
 I have been doing call recording it is working fine, but on some android 
 phone one of them is Samsung S2 with o/s 2.3.6
 has been giving abnormal behaviour.
 This is my code snap

 //mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);// 
 working for this.
 
 mediaRecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);// 
 infinite loop on .start().
 mediaRecorder.setOutputFormat(audioformat);
 mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
 mediaRecorder.setOutputFile(my file path);
 mediaRecorder.prepare();
Log.d(TAG, Before .start() method);
 mediaRecorder.start();
 Log.d(TAG, After .start() method);

 with AudioSource VOICE_CALL (value 4), mediaRecorder.start(); is neither 
 executing nor throwing exception.

 in my log, I am able to see only Before .start() method., neither below 
 one nor catch() logs.


 Can any one help me to short out problem?  is there any trick that I have 
 been missing?


 Regards
 Imran Ali



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

2013-05-14 Thread Rahul Kaushik
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.




Re: [android-developers] setEGLConfigChooser

2013-05-14 Thread bob
It seems like I did not need the alpha channel.  

I wasn't sure because I was using some less common Porter-Duff blending for 
a fire and explosion particle effect.  Anyhow, I removed the alpha channel, 
and it looks the same.  

Also, I made a mistake, and I didn't really need the depth buffer.  So, I'm 
basically trying RGB 888 now with no depth buffer.

It's pretty much this:

this.setEGLConfigChooser(8, 8, 8, 0, 0, 0); 

I'm going to keep an eye on the ACRA logs, and hopefully I won't see any 
more stuff about EGL_BAD_MATCH.

Thanks.


On Monday, May 13, 2013 2:45:24 PM UTC-5, Romain Guy (Google) wrote:

 I don't know of any device out there that doesn't support RGB 888 with a 
 16 bits depth buffer. The Android UI toolkit requires an RGBA  
 configuration to work.

 By the way, do you need the alpha channel? Unless your window is 
 translucent you should avoid using it.


 On Mon, May 13, 2013 at 12:32 PM, bob b...@coolfone.comze.comjavascript:
  wrote:

 Let's say you're setting up a GLSurfaceView.

 You want it to look good, so you do this:

 this.setEGLConfigChooser(8, 8, 8, 8, 16, 0);

 That's probably fine *if* the user can support that video mode.

 But what about, if for some reason, the user's device can't support that 
 mode?

 Is there a graceful way to detect this condition and fall back to a less 
 desirable video mode?

 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-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] JNI on SDCard?

2013-05-14 Thread Filipe
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: Update a textview from another thread

2013-05-14 Thread Marty Ballard
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.




[android-developers] Too large bitmap to be uploaded into a texture - Getting max texture size.

2013-05-14 Thread Thyme Cypher
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-developers@googlegroups.com
To unsubscribe from this group, 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-14 Thread Justin Anderson
On Tue, May 14, 2013 at 12:59 AM, Michael Schollmeyer
mich...@mictale.comwrote:

 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.


Wouldn't that also mean the app wouldn't run properly (not being able to
read shared preferences across processes)?


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

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-14 Thread Justin Anderson
On Tue, May 14, 2013 at 12:39 PM, Justin Anderson magouyaw...@gmail.comwrote:

 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.


 Wouldn't that also mean the app wouldn't run properly (not being able to
 read shared preferences across processes)?


Let me clarify that question a bit...

Wouldn't that also mean the app wouldn't run properly (not being able to
read shared preferences across processes) *on versions of Android prior to
API 11*?

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

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

2013-05-14 Thread Justin Anderson
What have you tried?
http://lmgtfy.com/?q=android+webview+upload+file

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


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

 In my webview ,i have an Upload button,how can i upload an file to the
 server through this upload button

 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.




Re: [android-developers] Using App Cache - Without Trying to

2013-05-14 Thread Nathan


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

2013-05-14 Thread Justin Anderson
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.




Re: [android-developers] Custom Base Adapter.

2013-05-14 Thread Justin Anderson
So you just need to be able to sort the data?

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


On Thu, May 9, 2013 at 1:26 AM, Seshu s.seshu...@gmail.com wrote:

 Hi All,
   My requirements is i have a multiple listviews. i used base
 adapter class for each listview. Now i want to display this listview
 like contacts screen i.e., alphabetic order
 for example:
 A
 Ant
 Apple
 B
 Bat
 Boy
 C
 Camel
 Cat
 etc.
 for above requirement i need to change in all adapter classes.
 for above problem i created one class i.e., MainBaseAdapter which
 extends baseadapter. Now for all adapter classes i extends
 MainBaseAdapter class instead of BaseAdapter class. In MainBaseAdapter
 the above alphabetic sorter is implemented. Now i need 2 show both own
 adapter data with the above alphabetic sorder order for all adapters.

 I ll use MainBaseAdapter class for all adapers to show the data. i am
 facing here. how to combine that my own adapter with above alphabetic
 sorting. this alphabetic sorting i.e., MainBaseAdapter is common class
 extending to all my adapter class.

 How to acheive this task in android. if any one knows then please
 provide solution.

 Thanks  Regards,
 S.Seshu.

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

2013-05-14 Thread RichardC
No. What errors do you get in LogCat?


On Tuesday, May 14, 2013 5:41:56 PM UTC+1, Filipe wrote:

 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.




Re: [android-developers] Re: Sharing SharedPreferences from two different processes

2013-05-14 Thread Michael Schollmeyer
No, it works just fine on all API levels. You can write in one process and read 
in another one. The only thing that is not working across processes is change 
notifications.

Cheers, Michael
mictale.com/ms
--



On May 14, 2013, at 8:39 PM, Justin Anderson magouyaw...@gmail.com wrote:

 
 On Tue, May 14, 2013 at 12:59 AM, Michael Schollmeyer mich...@mictale.com 
 wrote:
 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. 
 
 
 Wouldn't that also mean the app wouldn't run properly (not being able to read 
 shared preferences across processes)?
 
 
 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware
 
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Too large bitmap to be uploaded into a texture - Getting max texture size.

2013-05-14 Thread Romain Guy
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.cyp...@gmail.comwrote:

 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-developers@googlegroups.com
 To unsubscribe from this group, 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.






-- 
Romain Guy
Android framework engineer
romain...@android.com

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




Re: [android-developers] Custom Base Adapter.

2013-05-14 Thread bob
It sounds like he may want to call *Collections.sort()* on the backing 
collection.  Probably a *Vector*.

Thanks.


On Tuesday, May 14, 2013 2:08:37 PM UTC-5, MagouyaWare wrote:

 So you just need to be able to sort the data?

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


 On Thu, May 9, 2013 at 1:26 AM, Seshu s.ses...@gmail.com javascript:wrote:

 Hi All,
   My requirements is i have a multiple listviews. i used base
 adapter class for each listview. Now i want to display this listview
 like contacts screen i.e., alphabetic order
 for example:
 A
 Ant
 Apple
 B
 Bat
 Boy
 C
 Camel
 Cat
 etc.
 for above requirement i need to change in all adapter classes.
 for above problem i created one class i.e., MainBaseAdapter which
 extends baseadapter. Now for all adapter classes i extends
 MainBaseAdapter class instead of BaseAdapter class. In MainBaseAdapter
 the above alphabetic sorter is implemented. Now i need 2 show both own
 adapter data with the above alphabetic sorder order for all adapters.

 I ll use MainBaseAdapter class for all adapers to show the data. i am
 facing here. how to combine that my own adapter with above alphabetic
 sorting. this alphabetic sorting i.e., MainBaseAdapter is common class
 extending to all my adapter class.

 How to acheive this task in android. if any one knows then please
 provide solution.

 Thanks  Regards,
 S.Seshu.

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




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

2013-05-14 Thread Kristopher Micinski
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.




Re: [android-developers] Custom Base Adapter.

2013-05-14 Thread Lew
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.




[android-developers] Re: JNI on SDCard?

2013-05-14 Thread Lew
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: Replying to user reviews on Google Play

2013-05-14 Thread b0b


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.




[android-developers] How to Send MMS

2013-05-14 Thread askl
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.




[android-developers] Getting Email respond message from Gmail

2013-05-14 Thread askl
Dear All,
I've try to send an email using intent with connecting default gmail 
application. Yap It's working. But now i want to get email delivery 
message. *Sending, Sent, Fail, Draft* etc.
So how to get those message to my app. Pls Help me.

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] Raw Socket Creation from Android Native

2013-05-14 Thread Anil
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. 

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.

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.


Regards,
Anil Kumar Maguluri

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-14 Thread naresh pedagani
Hi ,check the following url
http://sumitsharma1900.blogspot.in/2013/03/how-to-send-mms-programmatically-in.html

ThanksRegards,
Naresh Pedagani.

Regards,
NaResH.


On Wed, May 15, 2013 at 8:19 AM, 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] How to Send MMS

2013-05-14 Thread Justin Anderson
Dear ASK,

We are not your personal Google search team... do some research yourself
first (possibly by using Google to get started, hint hint...) and then when
you get stuck ask a specific question and we will be glad to help you out.

Sincerely,
Everyone on this forum
 On May 14, 2013 8:55 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.




[android-developers] Connect android device to local server

2013-05-14 Thread Pankaj Deshpande
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.




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

2013-05-14 Thread Parthi K
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.