[android-developers] MediaPlayer onCompletion is not being called accurately

2013-06-23 Thread Raneez
In my app i have created an audio player (only WAV files) using MediaPlayerhttp://developer.android.com/reference/android/media/MediaPlayer.htmlAPI. But the player doesn't give callback to onCompletion Listener everytime. Sometimes it gives callback but not everytime. I am doing some

[android-developers] Converting PCM to AMR-WB using AmrInputStream

2013-04-17 Thread Raneez
My Android application needs to convert recorded audio in WAV to AMR-NB and AMR-WB. And i am done with converting to *AMR-NB* using *AmrInputStream*. In AmrInputStream, the value for SAMPLES_PER_FRAME is hard coded to *8000 * 20 / 1000* and the audio has no changes even after changing

[android-developers] How to get free runtime memory in android using ndk?

2013-04-02 Thread Raneez
I want to allocate a buffer size for a byte buffer in native code , depending upon the available runtime memory. How can i get the runtime free memory using native code? I have checked this successfully is java using the following code : MemoryInfo mi = new MemoryInfo();ActivityManager

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

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

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

2013-02-07 Thread Raneez
I am able to connect to the device ,only if the target device's wificonfiguration is once saved. Is it possible to create the wificonfiguration programatically and connect to it? On Thursday, 7 February 2013 22:05:51 UTC+5:30, Raneez wrote: My application (supports 2.2 and later) needs

[android-developers] Exploring and Downloading files from a device over a wifi connection

2013-02-01 Thread Raneez
I want my android application to connect to a device like FlashAirhttp://www.toshiba-components.com/FlashAir/index.html over *wifi* connection and *explore* its *directories* and *download* the selected files to the android device. I have gone through this

[android-developers] Adjusting the mic sensitivity for recording audio in android

2013-02-01 Thread Raneez
I am developing an android application which records audio in *PCM* using the *AudioRecord* API. I want to adjust the mic sensitivity to low, medium and high as the user chooses it in the settings. Is it possible to adjust the *mic sensitivity*? Your answers will be highly appreciated :) --

[android-developers] Accessing a webservice with nested complex type

2013-01-15 Thread Raneez
I want to access a webservice in android which has a complex type inside another complex type. An example of the soap request is soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:tem=http://tempuri.org/; xmlns:pat=

[android-developers] Re: How to create soap request in ksoap2 for a wcf webservice method with complex types?

2012-11-22 Thread Raneez
Please look at this question and give me some suggestions..i hate being stuck with something like this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: How to create soap request in ksoap2 for a wcf webservice method with complex types?

2012-11-22 Thread Raneez
@Piren That forum is inactive. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: How to create soap request in ksoap2 for a wcf webservice method with complex types?

2012-11-22 Thread Raneez
And you are not supposed to comment here, if you dont have any idea about this. Directing to a inactive forum is not a good attitude, give a hand if you know something else go away! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] How to create soap request in ksoap2 for a wcf webservice method with complex types?

2012-11-21 Thread Raneez
I have successfully accessed web services using ksoap2 but i am stuck with calling a web service method with data contracts. The webservice request in SoapUI is shown as : soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:tem=http://tempuri.org/;

[android-developers] Saving the fragment state before replacing it with another fragment.

2012-10-02 Thread Raneez
In my app, i use a dual panel layout where each buttons on the left side replaces the fragments at the right side(Frame Layout). The FragmentTransaction.replace() method actually removes the current one and add another fragment to the container, how can i save the fragment instance before

[android-developers] Re: Notifying the fragment when it is currently selected in a viewpager

2012-10-01 Thread Raneez
Thanks Vinay! On Saturday, 29 September 2012 15:18:27 UTC+5:30, Raneez wrote: I use ViewPager loaded with fragments in it .The *onResume()* method of each fragments does some logic and so i get problems when the adjacent fragments(left and right) to the currently selected page are also

[android-developers] Notifying the fragment when it is currently selected in a viewpager

2012-09-29 Thread Raneez
I use ViewPager loaded with fragments in it .The *onResume()* method of each fragments does some logic and so i get problems when the adjacent fragments(left and right) to the currently selected page are also loaded to provide smooth scrolling between the pages. Does the fragment recieve any

[android-developers] Re: Fragments inside a ListFragment

2012-09-24 Thread Raneez
Thanks mark murphy, you are really helpfull. Does the viewpager save data on each pages itself or do we need to save them explicitly? On Friday, 21 September 2012 16:21:11 UTC+5:30, Raneez wrote: I am using a *custom viewpager* which has Listfragment's loaded with * FragmentPagerAdapter

[android-developers] Fragments inside a ListFragment

2012-09-21 Thread Raneez
I am using a *custom viewpager* which has Listfragment's loaded with * FragmentPagerAdapter*. Each ListFragment represents a *dual panel layout*, where each list item(Left) loads some other fragments to a *framelayout*(Right Panel). Is this a best practice? -- You received this message

[android-developers] Re: Fragments inside a ListFragment

2012-09-21 Thread Raneez
Is there any alternate solution to implement this? On Friday, 21 September 2012 16:21:11 UTC+5:30, Raneez wrote: I am using a *custom viewpager* which has Listfragment's loaded with * FragmentPagerAdapter*. Each ListFragment represents a *dual panel layout*, where each list item(Left) loads

[android-developers] Re: Fragments inside a ListFragment

2012-09-21 Thread Raneez
I have used viewpager only with fragments, how to replace listfragments with listview in a viewpager? On Friday, 21 September 2012 16:21:11 UTC+5:30, Raneez wrote: I am using a *custom viewpager* which has Listfragment's loaded with * FragmentPagerAdapter*. Each ListFragment represents

[android-developers] Re: Using TableLayout to perform like expandable listview.

2012-06-15 Thread Raneez
TableLayout for group position 0. } else if(groupPosition==1) { // Return TableLayout for group position 1. } } am i going the right way so far? On Tuesday, 12 June 2012 18:29:07 UTC+5:30, Raneez wrote: Is it possible to use TableLayout to get the same function of ExpandableListView

[android-developers] Re: Using TableLayout to perform like expandable listview.

2012-06-13 Thread Raneez
because , i need different table layouts for different groups in the expandable listview, and i find it difficult to implement. Can you please help me, i'l be happy if i could do it with expandable listview itself. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Using TableLayout to perform like expandable listview.

2012-06-13 Thread Raneez
I need to set different table layouts for respective group items ,also i want to set onClick listeners to each rows in that table. How it is done? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Using TableLayout to perform like expandable listview.

2012-06-12 Thread Raneez
Is it possible to use TableLayout to get the same function of ExpandableListView by dynamically adding the rows(when expanding) and removing the rows ( when hiding) ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Different layouts for different groups in a Expandable ListView

2012-06-11 Thread Raneez
I use an expandable listview in my application, where each group has different Table Layouts. And i want to set onClick Listener to each rows in the table. How is it possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Starting an activity from Fragments.

2012-05-09 Thread Raneez
Let me explain the structure of my application, In my app i have 3 main tabs implemented using Fragments. And one of the main tab contains 3 sub tabs in its fragment, and one sub tab contains listview. Now i want to start an Activity when an item from the list is selected. How it is possible? --

[android-developers] Re: Starting an activity from Fragments.

2012-05-09 Thread Raneez
This is listview onClivk listener lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? arg0, View view, int position, long id)

[android-developers] Re: Starting an activity from Fragments.

2012-05-09 Thread Raneez
The app crashes when i click on list item. Actually this listview resides in a tab which is in another tab of a fragment. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Starting an activity from Fragments.

2012-05-09 Thread Raneez
no problem when changing tabs, the listview consists of details of recorded audio files, so when any list item is clicked, it should start new Activity player to play the audio file, but it goes wrong when an item is clicked. :( :( :( -- You received this message because you are subscribed to

[android-developers] Re: Starting an activity from Fragments.

2012-05-09 Thread Raneez
instead of creating the intent and starting the activity, just do nothing. -- didnt crash. If that doesn't crash, construct the intent as before (but don't start the activity yet). If that is OK, pop up a message with Toast after creating the intent (so we are hopefully taking the focus

[android-developers] Re: Starting an activity from Fragments.

2012-05-09 Thread Raneez
Sorry, It worked! I forgot to add the activity in manifest. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Starting an activity from Fragments.

2012-05-09 Thread Raneez
Thank you Jason Teagle, The error was in player activity, the player class needed a native library and that library was missing. You were so kind to listen me. Thankyou so much. On May 9, 4:46 pm, Jason Teagle teagle.ja...@gmail.com wrote: Sorry, It worked!   I forgot to add the activity in

[android-developers] AMR noise reduction

2012-02-23 Thread Raneez
I recorded AMR audio using MediaRecorder class. The waveform for the AMR audio looks very difficult to understand the speech data. How can we avoid the noise and draw the waveform correctly? -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Inserting Recorded Audio file (AMR) in another one

2012-02-20 Thread Raneez
Anyone there to help me? I am stuck with this part and I really need some help. Please On Feb 19, 3:05 pm, Raneez rane...@gmail.com wrote: My Android app records audio in both AMR and WAV format. And my application needs to insert second recorded audio file inside the first one at a position

[android-developers] Inserting Recorded Audio file (AMR) in another one

2012-02-19 Thread Raneez
My Android app records audio in both AMR and WAV format. And my application needs to insert second recorded audio file inside the first one at a position where it is paused. I did it right with WAV files, but the AMR file after insertion is not able to be played in Android MediaPlayer, it gives

[android-developers] Transparent progress layer on top of imageview

2012-02-16 Thread Raneez
My app display a waveform for the recorded audio in a imageview. I want to display a transparent layer over this waveform which progress with respect to the duration of the audio when it is played. How it is done? Or is there any UI controls in android to do this? -- You received this message

[android-developers] recording voice level meter

2012-02-09 Thread Raneez
I am developing a voice related app. I want show the power or level of voice being recorded at realtime. Is there any inbuilt component or anything else to do this? I have seen a meter in mediastore.audio.record_sound_action. I want to use such meter in my app. -- You received this message

[android-developers] AudioTrack in MediaController

2012-02-08 Thread Raneez
I used mediaplayer to play audio files using the MediaController..its easy to show mediacontroller from the MediaPlayer.OnPrepared(MediaPlayer mp) method when the file is ready for playback. But I need to use AudioTrack as player for Wav files , how it is possible to use it with MediaController?

[android-developers] keeping internal memory data while upgrading the android application with new version

2012-02-06 Thread Raneez
I want to upgrade my app 1.0 with new version 1.1 , and also I need to keep the previous datas(such as audio or video files) in the internal memory after upgradation. Is it possible? If yes, how it is done? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] inserting audio clip in another audio file

2012-02-02 Thread Raneez
I have two recorded audio files record1 and record2. I want to insert the record2 file at a position from where i pause while playing record1. for example record1 plays ONE THREE record2 plays TWO so after insertion the record1 should play like ONE TWO THREE PLS HELP. -- You received this

[android-developers] Pause and Resume in Audio recording

2012-01-26 Thread Raneez
Is there any way to pause and resume audio recording in android? I used MediaRecorder for recording amr and AudioRecord for wav, now i want to pause and insert a new audio after pausing and continue the recorded audio after resume. -- You received this message because you are subscribed to the

[android-developers] How to merge two amr files to a single file?

2012-01-24 Thread Raneez
I have recorded two amr files using MediaRecorder. Now i want to combine them. Please direct me to achieve this task. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Writing a wav audio file using RandomAccessFile

2012-01-22 Thread Raneez
I want to write a wav audio file using randomacessfile, but when i check through DDMS i find no such file in the sd card. What is the problem with this? I also wrote permission to write in external storage in the manifest file: uses-permission

[android-developers] Runtime exception while audio recording

2012-01-20 Thread Raneez
I get the following error while trying to record audio: E/AndroidRuntime(759): java.lang.RuntimeException: setAudioSource failed. E/AndroidRuntime(759): at android.media.MediaRecorder.setAudioSource(Native Method)). Please help me out. -- You received this message because you are

[android-developers] Moving from one activity to previous activities.

2012-01-19 Thread Raneez
My application consists of 2 activities and 1 list activity. List activity -- list of titles from google rss feed. 2nd activity -- shows the details of the item. 3rd activity -- WebView , which shows the content of the url. From the 3rd activity i want to go back to list activity and show the

[android-developers] WebView error

2012-01-19 Thread Raneez
i get some error when i try to display the contents of a url. The error shown by log cat is : 01-19 17:33:00.999: E/webkit(838): illegal format for expires: Thursday, 19-January-2012 12:11:30 GMT -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Performing read or write operations on a xml file in Internal Storage

2012-01-17 Thread Raneez
My application needs to write and read data from a xml file which is stored in Internal Storage. I wrote some data to xml by using FileOutputStream. FileOutputStream fout=openFileOutput(user.xml,MODE_WORLD_READABLE); OutputStreamWriter out=new OutputStreamWriter(fout); out.write(xml_content);

[android-developers] Re: Performing read or write operations on a xml file in Internal Storage

2012-01-17 Thread Raneez
The path of xml file is /data/data/com.examples.LoginXml/files/ user.xml InputStream in = null; try { FileInputStream fis = openFileInput(user.xml); in=new BufferedInputStream(fis); } catch(Exception e) {} Is there anything wrong? still i cant get an input stream to the file -- You received

[android-developers] Appending new tagsto an existing xml file.

2012-01-13 Thread Raneez
This is how my user.xml file looks like: --- ?xml version=1.0 encoding=UTF-8? login account usernameuser1/username passwordpass1/password /account account usernameuser2/username passwordpass2/password /account account usernameuser3/username