[android-developers] Devlopers here comes the Testers
Hi everyone, I am Ninad as i mentioned my name., I have some strange questions for you but it might be useful for all of Us.. I am into the testing field since last 6 years and observed that most of the OS devolopers have their testcases online like... For Symbian http://developer.symbian.com/wiki/display/pub/Testing+Guide For WinCE http://www.qualitylogic.com/Contents/Independent-Software-Vendors/Products-Services/Designed-for-Windows-Mobile/DFWM-Handbooks.aspx For Java applications http://www.javaverified.com/docs.jsp This things speaks about how and what need to be confirm for quality of the application. moreover it helps user get better platform or pleasure in using the application that we devolop. and it is key to business that we hold on to our customers as customers strive only for best and kick out the things that does not confirm to their quality. So on and On my dear friends chalk out some plans for Android so we can make it a big Success i am also doing the same will share you shortly the outcome but need your response before we go and Chalkout something trully open source ;-) Waiting for your replies Ninad Note:Persons from strong Testing background your smallest one alphabet can help. Please contribute --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Media Player surprises me!
Anyone can give answer to my problem! Help me!!! M still stuck on this issue... On Dec 27 2008, 11:36 pm, Ninad mnina...@gmail.com wrote: well yes. I am using two seperate threads. One for Media Player. The code is pretty simple one to prepare and then start the Media Player.. In the other thread, I am trying to read from the sdcard.. I start both thread one after the another. The media player plays for about 2-3 sec. Then the file read starts. But even after that is complete, the Media Player doesnt start again.. but it was only a test , may be there is another way to manage threads. Any idea on wht cud be other way to manage these two threads? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Unique problem only for the EXPERTS.
Here you go.. You can get the SMS in the String Array as per below: # Uri uri = Uri.parse(content://sms/inbox); Cursor c= getContentResolver().query(uri, null, body like '%hello%', null,null); startManagingCursor(c); if(c.getCount() !=0) { String[] str = new String[c.getCount()]; int i = 0; if(c.moveToFirst()) { do { str[i] = (c.getString (songCursor.getColumnIndex(body))).toString(); i++; }while(c.moveToNext()); } } # Once u have the String array str, you can use the substring function as described by Al to do what u need to do!! Cheers Ninad On Jan 6, 7:17 pm, Al alcapw...@googlemail.com wrote: Hi, once you read the SMS into a String, you can use the String.substring() method to find the first character of the sms. E.g, if the SMS is hello and it is stored in String foo, you would use foo.substring(0,1) for the first char. On Jan 6, 7:33 am, IPEG Student ipeg.stud...@gmail.com wrote: Hi, Thanks a lot for the problem, but I'm still unfortunately at square one. Here is what I need: Read an SMS into a string variable, then do some string operations. For example, how can I find the first character of an SMS? Thanks in advance for helping me out. ### On 1/6/09, Ninad mnina...@gmail.com wrote: Hi.. All you need is simple SQL.. Modify the Cursor as: Cursor c= getContentResolver().query(uri, null, body like '%hello%', null,null); Since the query takes the following argument: public final Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) . Arguments: uri: The URI, using the content:// scheme, for the content to retrieve. projection: A list of which columns to return. Passing null will return all columns, which is discouraged to prevent reading data from storage that isn't going to be used. selection: A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself). Passing null will return all rows for the given URI. selectionArgs: You may include ?s in selection, which will be replaced by the values from selectionArgs, in the order that they appear in the selection. The values will be bound as Strings. sortOrder: How to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself). Passing null will use the default sort order, which may be unordered. I hope this solves your simple query for 'experts'! On Jan 6, 9:31 am, ipeg.stud...@gmail.com wrote: Hi! am Suman. I have a code by which i can access all the sms from inbox. The code is written below. import android.app.ListActivity; import android.content.ContentUris; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.Contacts.People; import android.provider.Telephony.Carriers; import android.telephony.gsm.SmsMessage; import android.view.View; import android.widget.ListAdapter; import android.widget.ListView; import android.widget.SimpleCursorAdapter; public class niceandroid8 extends ListActivity { private ListAdapter mAdapter; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); Uri uri = Uri.parse(content://sms/inbox); Cursor c = getContentResolver().query(uri, null, null, null,null); // Cursor c = getContentResolver().query(Carriers.CONTENT_URI, null, null, null, null); startManagingCursor(c); String[] columns = new String[]{body}; // Comment int[] names = new int[]{R.id.row_entry}; mAdapter = new SimpleCursorAdapter(this, R.layout.con1, c, columns, names); this.setListAdapter(mAdapter); } } xml coding is.. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content TextView android:layout_width=wrap_content android:layout_height=wrap_content android:text=Sms: / TextView android:id=@+id/row_entry android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout
[android-developers] Re: Unique problem only for the EXPERTS.
Hi.. All you need is simple SQL.. Modify the Cursor as: Cursor c= getContentResolver().query(uri, null, body like '%hello%', null,null); Since the query takes the following argument: public final Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) . Arguments: uri: The URI, using the content:// scheme, for the content to retrieve. projection: A list of which columns to return. Passing null will return all columns, which is discouraged to prevent reading data from storage that isn't going to be used. selection: A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself). Passing null will return all rows for the given URI. selectionArgs: You may include ?s in selection, which will be replaced by the values from selectionArgs, in the order that they appear in the selection. The values will be bound as Strings. sortOrder: How to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself). Passing null will use the default sort order, which may be unordered. I hope this solves your simple query for 'experts'! On Jan 6, 9:31 am, ipeg.stud...@gmail.com wrote: Hi! am Suman. I have a code by which i can access all the sms from inbox. The code is written below. import android.app.ListActivity; import android.content.ContentUris; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.Contacts.People; import android.provider.Telephony.Carriers; import android.telephony.gsm.SmsMessage; import android.view.View; import android.widget.ListAdapter; import android.widget.ListView; import android.widget.SimpleCursorAdapter; public class niceandroid8 extends ListActivity { private ListAdapter mAdapter; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); Uri uri = Uri.parse(content://sms/inbox); Cursor c = getContentResolver().query(uri, null, null, null,null); // Cursor c = getContentResolver().query(Carriers.CONTENT_URI, null, null, null, null); startManagingCursor(c); String[] columns = new String[]{body}; // Comment int[] names = new int[]{R.id.row_entry}; mAdapter = new SimpleCursorAdapter(this, R.layout.con1, c, columns, names); this.setListAdapter(mAdapter); } } xml coding is.. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content TextView android:layout_width=wrap_content android:layout_height=wrap_content android:text=Sms: / TextView android:id=@+id/row_entry android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout /// / Now my problem is i want to access those sms which have a specific string . As a example if any sms contains Hello. So i want to search the string. i have tried a lot. But i cant do this beacause i cant convert the Listadapter to String. Please help me and give me the correct code. /// / --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Media Player surprises me!
well yes. I am using two seperate threads. One for Media Player. The code is pretty simple one to prepare and then start the Media Player.. In the other thread, I am trying to read from the sdcard.. I start both thread one after the another. The media player plays for about 2-3 sec. Then the file read starts. But even after that is complete, the Media Player doesnt start again.. but it was only a test , may be there is another way to manage threads. Any idea on wht cud be other way to manage these two threads? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Media Player surprises me!
Can anyone help on this? Whenever I'm playing a Media file (mp3) from the sdcard in the emulator... And I try to read another file from the sdcard in parallel from an another thread, the Media Player stops! And doesnt even give any form of error.. Is only 1 read possible at a time from the sdcard?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Media Player surprises me!
Any answers??? :( M stuck on this.. Please help!!! On Dec 25, 6:47 pm, Ninad mnina...@gmail.com wrote: Can anyone help on this? Whenever I'm playing a Media file (mp3) from the sdcard in the emulator... And I try to read another file from the sdcard in parallel from an another thread, the Media Player stops! And doesnt even give any form of error.. Is only 1 read possible at a time from the sdcard?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Media Player blocks IO
Why does the Emulator block any Write to sdcard while a Media Player is playing an audio file? Is it because Media Player is reading from the sdcard at that time? So only one IO operation possible at a time? If thats the case, we can not work on any other file while listening to audio.. Is it the same with actual devices? What could be the work around for the same? Any suggestions ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---