Re: [android-developers] Re: Help for android Micro-controller interface
*Thanks for reply. my need is as follows: I have developed an application in android that SMS/EMAIL location to the guardian.when user is in problem. this application is depend on cell phone i.e you must have some cell phone. but i wanted to develop one hardware. on which after pressing a physical button,my application should 1. get stared 2. find GPS location 3. send SMS/EMAIL. Thanks Regards :) * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Help for android Micro-controller interface
Hello Bhavin, your question is appreciable and guideable ...i am also wondering for that if u have any solution's ..please describe on Android Group ... -- 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
Re: [android-developers] Re: webview problem
On Tue, Mar 13, 2012 at 5:17 PM, harshita agrawal harshitaagrawa...@gmail.com wrote: i think ,it can be solve by writing html content in a file of local folder.can i show file in default web browser. On Mar 13, 4:35 pm, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Tue, Mar 13, 2012 at 5:00 PM, harshita agrawal harshitaagrawa...@gmail.com wrote: actually , there is more link in webpage .and i am not able to maintain history of web page.so i have to show in default browser. Read WebView documentation for that. http://developer.android.com/guide/webapps/webview.html -- 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 yes...this is right method for showing html content.. -- 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
Re: [android-developers] Duplicate Calendar Event
Thanks Mike you your answer. Now my question is how do i check if a particular event is already present. Basically i want a select with where clause (for title,start date and end date) On Wed, Mar 14, 2012 at 12:01 AM, Michael Chan mc...@android.com wrote: Hi Giles, The code below will add an event every time onClick is called since it's doing an insert(). If you want to modify an existing event, you need to get the event id via a query then do an update. Search for Updating Events in http://developer.android.com/guide/topics/providers/calendar-provider.html Thanks, Mike On Tue, Mar 13, 2012 at 7:28 AM, giles ian gilesian@gmail.com wrote: Hi, I am using the below code for adding events. Now the issue is im able to add same event (all details same) multiple times. How to i avoid this. public static void addToCalendar(Context ctx, final String title, final long dtstart, final long dtend) { final ContentResolver cr = ctx.getContentResolver(); Cursor cursor; if (Integer.parseInt(Build.VERSION.SDK) = 8) cursor = cr.query( Uri.parse(content://com.android.calendar/calendars), new String[] { _id, displayname }, null, null, null); else cursor = cr.query(Uri.parse(content://calendar/calendars), new String[] { _id, displayname }, null, null, null); if (cursor.moveToFirst()) { final String[] calNames = new String[cursor.getCount()]; final int[] calIds = new int[cursor.getCount()]; for (int i = 0; i calNames.length; i++) { calIds[i] = cursor.getInt(0); calNames[i] = cursor.getString(1); cursor.moveToNext(); } AlertDialog.Builder builder = new AlertDialog.Builder(ctx); builder.setSingleChoiceItems(calNames, -1, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { ContentValues cv = new ContentValues(); cv.put(calendar_id, calIds[which]); cv.put(title, title); cv.put(dtstart, dtstart); cv.put(hasAlarm, 1); cv.put(dtend, dtend); Uri newEvent; if (Integer.parseInt(Build.VERSION.SDK) = 8) newEvent = cr.insert( Uri.parse(content://com.android.calendar/events), cv); else newEvent = cr.insert( Uri.parse(content://calendar/events), cv); if (newEvent != null) { long id = Long.parseLong(newEvent .getLastPathSegment()); ContentValues values = new ContentValues(); values.put(event_id, id); values.put(method, 1); values.put(minutes, 0); // 15 minuti if (Integer.parseInt(Build.VERSION.SDK) = 8) cr.insert( Uri.parse(content://com.android.calendar/reminders), values); else cr.insert( Uri.parse(content://calendar/reminders), values); } dialog.cancel(); } }); builder.create().show(); } cursor.close(); } -- 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 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 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: Cannot catch swipe action for SoftKeyboard
Dear Tsukishiro, Let me start with the bottom line which are 1. You need to have your own KeyboardView. - Either extend from Android KeyboardView or make your own based on Android KeyboardView. - For example http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.3_r1/android/inputmethodservice/KeyboardView.java#KeyboardView 2. Intercept GestureDetector.onTouchEvent(me) in the onTouchEvent() - You need to grab the x, y of the ACTION_DOWN and identify which key is actually pressed (before swiping) 3. Distinguish keyboard-level swipe and key-level swipe using your own method (Mine uses the swipe distance. Short = key-level, Long=keyboard- level) To actually implement your own view, you will need to tell the OS you want to use your (keyboard) view instead - Check out the method onCreateInputView() - Don't forget to edit the xml/input.xml and change the class name from Android KeyboardView to yours. (Mine is com.solution9420.android.thaikeyboard9420.ThaiKeyboardViewNew xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/keyboard android:layout_alignParentBottom=true I started by study the Android KeyboardView code. In summary, there are two main portions a. the drawing part - look into onDraw() but you can skip this part for now. b. Input capturing part - the main logic is at onTouchEvent() and GestureDetector.onTouchEvent(me) - also this important one. detectAndSendKey() Once you reach step #2, you can then start to dump out the x,y of the actions you do on the keyboard. Cheers, Solution 9420 On Mar 14, 8:42 am, tsukishiro yamazaki tsukishir...@gmail.com wrote: Hello again Solution 9420, I just downloaded the 9420 Tablet Keyboard to my device and had a taste of your IME. It's nice and swiping clearly works. For example, swipeRight changes keyboard type between English and Thai. But I'm afraid I was not able to find a way to check Key-level fling. So can you help me with the following questions : 1.) How did you enable swiping on the keyboard? 2.) How to enable key-level fling? Example, if I fling a key upwards, a different character will be printed. Hoping for your guidance. Thanks and best regards, - tsukishiro On Wednesday, March 14, 2012 9:34:16 AM UTC+9, tsukishiro yamazaki wrote: Hi Solution 9420, Thanks so much for your reply! I have been trying SoftKeyboard (Demo API) and I wanted to verify if the method swipeLeft(), which has been implemented to do backspace or delete function, is actually working. So I deployed SoftKeyboard.apk to my device and have been swiping my finger on the keyboard. But as I mentioned above, all I get is a bunch of letters being printed out because of the swipe: motion over the row of keys. I will check your application to see how you made swiping and especially key-level fling (I really wanted to implement this on my IME too) to work. Thank you again and best regards, P.S. Your English is perfectly fine and understandable :) On Tuesday, March 13, 2012 6:39:40 PM UTC+9, Solution 9420 wrote: Hi there, I am the creator of 9420 Tablet Keyboard (and 9420 Thai Keyboard). Pretty much familiar with this matter. For swipe, you can only trap the outcome of the swipe thru the method swipeDown/Left/Up/Right() and it is the swipe at keyboard level. You can change the action of the swipe, for example, from delete to anything else). If you want to trap the MotionEvent, you will need to create your own keyboardView. That way, you can implement anything you want such as key-level flingUp. I'm poor on English. Please check out my application. It supports - configurable keyboard-level swipe - Key-level fling - MultiTap - LongPress All are done thru custom keyboard view. Seewww.solution9420.com Cheers, Solution 9420 On Mar 13, 3:57 pm, tsukishiro yamazaki tsukishir...@gmail.com wrote: Hello everyone, I wanted to implement swiping for the custom IME I am developing. Looking into SoftKeyboard sample code, it seems this can be handled by the swipe methods under OnKeyboardActionListener. However when I tried to test if the swipe methods in SoftKeyboard were working, I found myself having a hard time catching the event. For example, swipeLeft() method in SoftKeyboard will perform a backspace. But I never get to pull this off. I usually just get some random letters being printed out to the input field whenever I do swipe left aciton. Can someone tell me how to get swipe methods to work? Thanks and best regards, - tsukishiro -- 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
Re: [android-developers] Duplicate Calendar Event
Have a look at Querying a calendar in the link I gave you and replace the following: Uri uri = Events.CONTENT_URI; String selection = Events.TITLE + = ? AND + Events.DTSTART + = ? AND + Events.DTEND + = ?; String[] selectionArgs = new String[] {title, Long.toString(startTimeInMillis), Long.toString(endTimeInMillis)}; In the projection, use Events._ID for the event id. On Tue, Mar 13, 2012 at 11:47 PM, giles ian gilesian@gmail.com wrote: Thanks Mike you your answer. Now my question is how do i check if a particular event is already present. Basically i want a select with where clause (for title,start date and end date) On Wed, Mar 14, 2012 at 12:01 AM, Michael Chan mc...@android.com wrote: Hi Giles, The code below will add an event every time onClick is called since it's doing an insert(). If you want to modify an existing event, you need to get the event id via a query then do an update. Search for Updating Events in http://developer.android.com/guide/topics/providers/calendar-provider.html Thanks, Mike On Tue, Mar 13, 2012 at 7:28 AM, giles ian gilesian@gmail.com wrote: Hi, I am using the below code for adding events. Now the issue is im able to add same event (all details same) multiple times. How to i avoid this. public static void addToCalendar(Context ctx, final String title, final long dtstart, final long dtend) { final ContentResolver cr = ctx.getContentResolver(); Cursor cursor; if (Integer.parseInt(Build.VERSION.SDK) = 8) cursor = cr.query( Uri.parse(content://com.android.calendar/calendars), new String[] { _id, displayname }, null, null, null); else cursor = cr.query(Uri.parse(content://calendar/calendars), new String[] { _id, displayname }, null, null, null); if (cursor.moveToFirst()) { final String[] calNames = new String[cursor.getCount()]; final int[] calIds = new int[cursor.getCount()]; for (int i = 0; i calNames.length; i++) { calIds[i] = cursor.getInt(0); calNames[i] = cursor.getString(1); cursor.moveToNext(); } AlertDialog.Builder builder = new AlertDialog.Builder(ctx); builder.setSingleChoiceItems(calNames, -1, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { ContentValues cv = new ContentValues(); cv.put(calendar_id, calIds[which]); cv.put(title, title); cv.put(dtstart, dtstart); cv.put(hasAlarm, 1); cv.put(dtend, dtend); Uri newEvent; if (Integer.parseInt(Build.VERSION.SDK) = 8) newEvent = cr.insert( Uri.parse(content://com.android.calendar/events), cv); else newEvent = cr.insert( Uri.parse(content://calendar/events), cv); if (newEvent != null) { long id = Long.parseLong(newEvent .getLastPathSegment()); ContentValues values = new ContentValues(); values.put(event_id, id); values.put(method, 1); values.put(minutes, 0); // 15 minuti if (Integer.parseInt(Build.VERSION.SDK) = 8) cr.insert( Uri.parse(content://com.android.calendar/reminders), values); else cr.insert( Uri.parse(content://calendar/reminders), values); } dialog.cancel(); } }); builder.create().show(); } cursor.close(); } -- 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 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 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 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: SDK and ADB errors
cool that worked thx On Friday, March 9, 2012 9:22:51 AM UTC-5, Chuck Krutsinger wrote: You need to launch adb using sudo: adb kill-server sudo /full/path/goes/here/adb devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SDK and ADB errors
cool that worked thx -- 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: How to make sure SMS is sent in Android
Take a look at this article: http://mobiforge.com/developing/story/sms-messaging-android And you can find dozens of articles on how to detect if there is SIM card or not. This is the first one I found: http://stackoverflow.com/questions/4933791/android-telephone-manager-to-detect-sim Combining these should be quite easy. Just thinking aloud: When you detect that there is no SIM card, write the information to be sent to permanent storage. Start a timer, which periodically checks if the SIM state has been restored. Once restored, send the SMS, delete the data from permanent storage and disable the timer. (Don't know, maybe there is even a better way of doing this). - Ali Chousein http://www.codeproject.com/KB/android/PayGol-Android.aspx http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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: access my own map from my android phone ?!
Sorry for not being so careful in reading osmandroid. I am able to display google map using webview, but I can't display map using osm. So, how to display the map that we made in osm and locating my current position? And how about the code (script)? Best regards, On Mar 12, 7:30 am, lbendlin l...@bendlin.us wrote: You obviously didn't look at osmandroid. Has nothing to do with Google. On Saturday, March 10, 2012 11:57:02 PM UTC-5, ltvie wrote: I have done my project to get current position and can access map from google.. but i don't need map from google that show on my android phone..i want show my own map ! * I using eclipse On Mar 10, 6:35 pm, lbendlin l...@bendlin.us wrote: Have a look at osmandroid. -- 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] Check box inside of a GridView
I have a gridview, inside which I have a check-box and imageview and textview. I need to use the check box to determine whether a particular row is selected or not. All the other controls work as expected, except for the check-box. When I toggle the check box, the corresponding checkboxes in the other pages also get toggled. For example, I see 4 rows in one view (i.e. page). When I select the 1st row check box, then the 5th, 9th, 13th, 17th, etc rows are also selected. How can I correct this. I want each row's check box to be independent. The contents of the row is coming in from a XML file, and I refer like this: public View getView(*int* position, View convertView, ViewGroup parent) { CheckBox cbox; cbox = convertView.findViewByID(R.id.checkBoxID); } -- 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] connect with database
Hi all, I have an EditText and a Button in my Android application. When I'll enter the values in the EditText, the values will store in a database, and i want to retrive this data from database.how can i do this?. i am newbie for android so anyone pls help me. Thanks Regards S.Rajesh -- 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] I can see created text file using adb shell but not in PC when mounted?
Hi All, In my application, I will be creating a log file (text file) in the /sdcard of the device. Using adb shell, if I navigate to the /sdcard directory, I could see the created text file and by doing a cat I could read the contents But if I mount the device and navigate to the drive, the file is not visible there. Any idea why? Thanks In Advance, Perumal -- 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
Re: [android-developers] connect with database
On Wed, Mar 14, 2012 at 2:56 PM, rajesh rogueraje...@gmail.com wrote: Hi all, I have an EditText and a Button in my Android application. When I'll enter the values in the EditText, the values will store in a database, and i want to retrive this data from database.how can i do this?. i am newbie for android so anyone pls help me. Have you worked on SQLiteDatabase earlier? If not, try that now. One more suggestion...first, you must execute simple database statements. For example, give the values in statically (directly in your javacode), not through edittext. Then check if that works. In case, if you get some problem, then come back with that. -- 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
Re: [android-developers] Duplicate Calendar Event
thanks a lot Mike On Wed, Mar 14, 2012 at 12:43 PM, Michael Chan mc...@android.com wrote: Have a look at Querying a calendar in the link I gave you and replace the following: Uri uri = Events.CONTENT_URI; String selection = Events.TITLE + = ? AND + Events.DTSTART + = ? AND + Events.DTEND + = ?; String[] selectionArgs = new String[] {title, Long.toString(startTimeInMillis), Long.toString(endTimeInMillis)}; In the projection, use Events._ID for the event id. On Tue, Mar 13, 2012 at 11:47 PM, giles ian gilesian@gmail.com wrote: Thanks Mike you your answer. Now my question is how do i check if a particular event is already present. Basically i want a select with where clause (for title,start date and end date) On Wed, Mar 14, 2012 at 12:01 AM, Michael Chan mc...@android.com wrote: Hi Giles, The code below will add an event every time onClick is called since it's doing an insert(). If you want to modify an existing event, you need to get the event id via a query then do an update. Search for Updating Events in http://developer.android.com/guide/topics/providers/calendar-provider.html Thanks, Mike On Tue, Mar 13, 2012 at 7:28 AM, giles ian gilesian@gmail.com wrote: Hi, I am using the below code for adding events. Now the issue is im able to add same event (all details same) multiple times. How to i avoid this. public static void addToCalendar(Context ctx, final String title, final long dtstart, final long dtend) { final ContentResolver cr = ctx.getContentResolver(); Cursor cursor; if (Integer.parseInt(Build.VERSION.SDK) = 8) cursor = cr.query( Uri.parse(content://com.android.calendar/calendars), new String[] { _id, displayname }, null, null, null); else cursor = cr.query(Uri.parse(content://calendar/calendars), new String[] { _id, displayname }, null, null, null); if (cursor.moveToFirst()) { final String[] calNames = new String[cursor.getCount()]; final int[] calIds = new int[cursor.getCount()]; for (int i = 0; i calNames.length; i++) { calIds[i] = cursor.getInt(0); calNames[i] = cursor.getString(1); cursor.moveToNext(); } AlertDialog.Builder builder = new AlertDialog.Builder(ctx); builder.setSingleChoiceItems(calNames, -1, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { ContentValues cv = new ContentValues(); cv.put(calendar_id, calIds[which]); cv.put(title, title); cv.put(dtstart, dtstart); cv.put(hasAlarm, 1); cv.put(dtend, dtend); Uri newEvent; if (Integer.parseInt(Build.VERSION.SDK) = 8) newEvent = cr.insert( Uri.parse(content://com.android.calendar/events), cv); else newEvent = cr.insert( Uri.parse(content://calendar/events), cv); if (newEvent != null) { long id = Long.parseLong(newEvent .getLastPathSegment()); ContentValues values = new ContentValues(); values.put(event_id, id); values.put(method, 1); values.put(minutes, 0); // 15 minuti if (Integer.parseInt(Build.VERSION.SDK) = 8) cr.insert( Uri.parse(content://com.android.calendar/reminders), values); else cr.insert( Uri.parse(content://calendar/reminders), values); } dialog.cancel(); } }); builder.create().show(); } cursor.close(); } -- 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 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 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 post to this group, send email to
[android-developers] Clickable elements on widget
Hi! Is there a way to have clickable elements inside a widget? (for instance, to change some text when an image is clicked) AFAIK, widgets only use setOnClickPendingIntent() that detects a click on all of the widget, it's not possible to set a method for a single element. Or is there? Thanks in advance! Pinheiro -- 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] blocking call from particular number
Hi all, Can anyone please suggest me how to block incoming call from a particular phone number, in our application. What should I use for that? Is Broadcast Receiver fine for that, or should I use something else? -- 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] Handling different icon dimensions from Apps.
I have a requirement wherein I have to enumerate all the installed apps and show their names along with their icons. I'm using a grid view for this. Inside the grid view, I have an imageview for showing the app's icon and a textview to show the app name. I have a problem, in the sense every app has got different icon dimensions. So some icons appear huge, whereas others appear normal. How do I ensure that all icons are of the same width and height? I'm using the following properties for ImageView: ImageView android:id=*@+id/icon* android:layout_width=*75.0dip* android:layout_height=*75.0dip* * * android:maxWidth=*75.0dip* android:maxHeight=*75.0dip* android:width=*75.0dip* * * android:height=*75.0dip* android:scaleType=*centerInside* android:adjustViewBounds=*true* android:paddingLeft=*5dp* android:paddingTop=*0dp* android:paddingRight=*10dp* android:paddingBottom=*10dp* android:gravity=*left* android:src=*@drawable/defaulticon*/ -- 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] Google play (Android market) not giving the result with app name.
Hi all, We have uploaded an application into android market(Google Play) few days ago. It is successfully uploaded and able to go to the app by using its URL but, when we search it with Name of the app we are not able to get the app in the result list. What is the problem. Please 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
[android-developers] Publish apk, open file stream?
Whenever i publish an apk using Chrome and i try to build a new version of that apk after that, i get an error because the apk couldnt be deleted. Then i close Chrome and i can call mvn clean install successfully. I guess there is a stream left open by the upload form? -- 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: Unable to execute Bluetooth HDP Demo
Dear All, I've tried to post in this thread earlier, but not sure if it worked so I decided to duplicate my message. So, thanks for a lot of useful information, it was a blast to read this thread while connecting android 4.0 phone with Nonin Oximeter sensor. Everything seems to work fine, sensor is connected to a phone through application and a green indicator is on. But when it comes to interpreting the data, I might need some tips. I receive a raw data (54 bytes) from sensor which represents an associate request. Then my manager should reply on this request choosing from the following options: (a) accept (b) unknown configuration (c) accepted with extended configuration I send a respond (b) and get 140 bytes with as I guess sensor's configuration. I can also send a attribute request and the sensor response with 188 bytes including the name of the company and type of sensor. I am a bit lost in all these bytes, requests, responses. Does anyone have any tips or approach for interpreting sensor data? regards, Gregory Den torsdagen den 15:e december 2011 kl. 18:30:08 UTC+1 skrev jfernandez: Hi all, I'm executing the Bluetooth HDP Demo [1] (offered from Android 4.0 Ice Cream Sandwich) in my Android smartphone. When I have registered the application in order to receive data, and I have paired the biomedical device with the smartphone, I try to open the channel connection and I can see that the device starts sending data to the smartphone. However, the smartphone is unable to open the channel connection HDP. At the end of this message you can see the output obtained in the LogCat. Has anybody achieved to run successfully this sample about the use of the Bluetooth Health Profile API? Any ideas? Thanks. Regards. [1] http://developer.android.com/resources/samples/BluetoothHDP/index.html This is the log that I obtain: 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel() 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE: 00:80:25:14:A1:BC: 0 - 1 12-15 16:40:55.169: D/ConnectivityService(147): handleInetConditionHoldEnd: net=1, condition=0, published condition=0 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property changed: 00:80:25:14:A1:BC property: Connected value: true 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device : devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/ bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue 12-15 16:41:00.034: E/BluetoothService.cpp(147): getChannelApplicationNative 12-15 16:41:00.044: E/bluetooth_common.cpp(147): dbus_func_args_timeout_valist: D-Bus error in Acquire: org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed) 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/ chan3115 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147): onHealthDeviceConnectionResult: D-Bus error: org.bluez.Error.HealthError (Mdl is not created) 12-15 16:41:00.074: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6001 12-15 16:41:00.214: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6000 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of Property is: MainChannel Value:/org/bluez/278/hci0/ dev_00_80_25_14_A1_BC/chan3115 -- 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: Java and Eclipse issues on Win 7 64bit
I do not know if this is your issue or not, but I had to add the following to the eclipse.ini file since my JDK/bin was not in my PATH. -vm C:/Program Files/Java/jdk1.6.0_29/bin/javaw.exe On Monday, March 12, 2012 1:13:11 AM UTC-7, MikeDaPsyke wrote: I have downloaded JDK 7u3 with NetBeans 7.1.1 and JDK 7u3 with Java EE, first i installed the Netbeans version and when trying to install Eclipse i got a error A JRE or JDK must be available in order to run eclipse. No Java virtual machine was found After finally getting Eclipse to find javaw.exe it could not read the jvm.dll. I have tried 3 different Eclipse versions but i get the same issue with all of them. So basicly, i ralle want to start creating games for android phones and mostly the high performance phones. And i really need some help or tips on what i need to download to optimize my work. And as a side note i am new to this. Thanks in advance Mike -- 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] SIP Stack registration packet with authorization
Hi to all, we want to create SIP application on Android 2.3.3 and have some issues with android.sip stack (default sip stack). Our mobile app sends register sip packet, but 1.) by default OpenIMS core responds 400 Bad request P-Visited-Network- ID Header missing 2.) in the case that we set port number to 4060 -PCSCF / builder.setPort(4060)/ OpenIMS core sends this request from 4060 to 4060 (same port, same IP, same CSCF, same packet) and this is cykling until OpenIMS core send respond to mobile app - 504 Server Time-out. We also tried SipDemo, CSipSimple and we had same problems. When we tried Monster Communicator or IMSDroid, then it works! There is one difference between working and problematic applications - working apps send register packet also with Authorization field. Part of the code: public SipManager mSipManager = null; public SipProfile mSipProfile = null; SipProfile.Builder builder = new SipProfile.Builder(username, domain); builder.setPassword(password); builder.setDisplayName(username); builder.setProfileName(username + @ + domain); port = Integer.parseInt(4060); builder.setProtocol(protocol); mSipProfile = builder.build(); ... try { mSipManager.open(mSipProfile);} catch (SipException e) { ...} try { mSipManager.register(mSipProfile, 30, new SipRegistrationListener() { public void onRegistering(String localProfileUri) { } public void onRegistrationDone(String localProfileUri, long expiryTime) { } public void onRegistrationFailed(String localProfileUri, int errorCode, String errorMessage) { } }); } catch (SipException e) { } How to give authorization field to register packet in classic SIP stack? We also tried J-SIP but it display error: Conversion to dalvik format failed with error 1. Every answer would be very appreciated. -- 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] I want ot end the outgoing call programatically over a time
hi any one knows how to end the call and comeback to my code and run the remaining code.how? the code setResultsetData(null) is not ending the call. String OUTGOING_CALL_ACTION = android.intent.action.NEW_OUTGOING_CALL; string phnum= intent.getExtras().getString(OutgoingCallReceiver.INTENT_PHONE_NUMBER); the phnum taking null. but actually i want the ongoing call number. can any one knows help me? -- 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] Android - gridview scrolling issue (very slow scroll or duplicate content)
It's my first app so i am not use to code on java. I have a gridview wich display thumbnails from the sdcard, but i can't have a smooth scroll. If I put the /* Treatment part*/ out of the if the scroll is like i want but they are duplicate content and a part of the pics are not displayed. Here is my code: -Activity: code GridView gridview = (GridView) findViewById(R.id.gridview1); String[] projection = {MediaStore.Images.Media._ID}; String path =/mnt/sdcard/Pictures; // Create the cursor pointing to the SDCard cursor = managedQuery( MediaStore.Images.Media.EXTERNAL_CONTENT_URI, projection, //MediaStore.Images.Media.DATA + like ? , //new String[] {%Pictures%Sopi%}, _data LIKE '% + path + /%', null, MediaStore.Images.Media._ID); // Get the column index of the Media Image ID columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media._ID); gridview.setAdapter(new ImageAdapterTest(RoomRawActivity.this)); /code -imageAdapater (get view): code public View getView(int position, View convertView, ViewGroup parent) { Log.v(adapter - getView,getView start!!); //Toast.makeText(mContext, getView start!!+position, 0).show(); //Move cursor to current position RoomRawActivity.cursor.moveToPosition(position); ImageView picturesView; if (convertView == null) { picturesView = new ImageView(mContext); /* treatment */ // Get the current value for the requested column int imageID = RoomRawActivity.cursor.getInt(RoomRawActivity.columnIndex); // obtain the image URI Uri uri = Uri.withAppendedPath( MediaStore.Images.Media.EXTERNAL_CONTENT_URI, Integer.toString(imageID) ); String url = uri.toString(); //Set the content of the image based on the image URI int originalImageId = Integer.parseInt(url.substring(url.lastIndexOf(/) + 1, url.length())); Bitmap b = MediaStore.Images.Thumbnails.getThumbnail(mContext.getContentResolver(), originalImageId, MediaStore.Images.Thumbnails.MINI_KIND, null); picturesView.setPadding(5, 5, 5, 5); picturesView.setBackgroundResource(R.drawable.border_grid_pics); picturesView.setImageBitmap(b); picturesView.setScaleType(ImageView.ScaleType.FIT_XY); /* END treatment */ } }else{ picturesView = (ImageView) convertView; } return picturesView; } /code Many thanks! David. -- 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] why this in android
Hi all, I am just new in android and trying to learn about android. I read this statement in android documentation. Each process has its own virtual machine (VM), so an application's code runs in isolation from other applications. then I have a question, why each process has its own VM, why not only one VM. Is it affect on performance? Thanks Mega Bytes -- 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: Can someone recommend several image recognition Android applications to me ?
What do you mean by image recognition? Do you need to look for specific shapes on the image? Then google for OpenCV. If you need to extract text from the image, you have several options: 1. Open source. As far as i know there are no native opensource Java OCR SDKs. There are Java APIs which wrap calls for native interfaces, for example, for one of the most popular opensource OCR engines - Tesseract (http://groups.google.com/group/tesseract-ocr/) - there are some Java wrappers like tesjeract (http://code.google.com/p/ tesjeract/) or Tess4J (http://tess4j.sf.net/). That could work for you, but it's rather hard to set up and will require developing image- preprocessing and font training on your side. 2. One more solution could be a cloud service. It requires end-user application to have the internet connection, but it's independent from your programming language choice and resources limitations. Have a look at http://ocrsdk.com, it's a cloud-based OCR SDK that let you upload an image through web API and returns you the OCRed data. This Web API based OCR SDK has a free 90 days trial without any upfront charges. Its pricing is really affordable in comparison with enterprise solutions while it provides enterprise-level OCR accuracy which is way better than open source. You may also find useful this Android codesample at github: https://github.com/abbyysdk/ocrsdk.com/tree/master/Android (you need to get API key at http://ocrsdk.com to use it). Hope it helps! On Mar 12, 5:59 pm, hongjuan zhang zhanghongjua...@gmail.com wrote: Can someone recommend several image recognition Android applications to me ? Hello everyone I need to find some image recognition Android applications .But it’s not easy to know which Android application belongs to such kind. Could anyone please recommend some such kind of applications to me .I appreciate it very much! Thanks a lot! *Hongjuan Zhang,* Chinese Academy of Sciences -- 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] Connect MediaRecorder to MediaPlayer
I want to test running both the hardware video encoder and decoder simultaneously. To that end I'm trying to figure out how to connect the output of a MediaRecorder as the input to a MediaPlayer. The only way I could figure out to do this was through DatagramSockets connected through the loopback and ParcelFileDescriptors. I'm having some trouble getting this to work though. Is there a better way to hook up a MediaRecorder to a MediaPlayer? Know of any sample code that exists? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Concept of payment gateway implementation in android app
Somebody please help me in developing an android app that integrates payment gateway -- 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] App structure -donwload from Google Play or by a Code
Hello. I´m developing an app.This will have a list with Albums song´s.The song will be download form Google Play .This will be the part where the user have to pay. The user can download the song via Google Play o via a code that i will generatet. Can anyoane give a ideea of how can a structure mi app. I will do this ...for exemple.List Album song´s-Adele-21 Album- donwload and pay via Google Play or via Code(that i generated )this will be free(the user will pay for the code that i generated) I don´t know where to put the packges with the Album´s. I excuse my english. -- 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: Unable to execute Bluetooth HDP Demo
Hey guys! It was a blast to read your thread while I was trying to connect android 4.0 phone with Nonin Oximeter last months. The connection works fine and I can see green indicator together with Connected section on the screen. Then it was time to implement a manager and that is when I got some problems. So I am able to receive (as a raw data) 54 bytes which look as following: e2328001002a5079002680... As I figured out from IEEE 11073-10404 specifications this first byte array is sending an associate request, on which my manager has to reply using one of the options: (a) accept (b) unknown configuration (c) accept with unknown configuration I will describe next steps I decided to take, but first I just wanna make sure that i am on the right way. Let me know if I got it all wrong. Any tips are appreciated. regards, Gregory On Feb 9, 4:04 pm, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi Chenchen and Ming, Sorry for the delay. I think you are right Chenchen, I obtain the same behaviour, so, I guess the problem is in the Android source code... Well, we will wait for a new Android release solving this issue. Regards. On 9 feb, 15:58, Ming ming030...@gmail.com wrote: Exactly same problem with you. I am using UA-767-PBT-C After connected to the device, I can see the Connection State is Connected and Reading data... and a green icon. However, I can never see data. In log ,I keep receiving dalvikm - GC_CONCURRENT freed 494K ..., and sometime even reboot! Do u solve the problem? Thank You. On Feb 2, 7:05 pm, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi all, I have observed a strange and undesirable behaviour that I'm going to describe. When anHDPchannel is stablished, the Android system starts a long proccess of freeing memory (I have lots of Logcat messages like dalvikm - GC_CONCURRENT freed 494K ...), even in some occasions, the system crashes and the smartphone is rebooted. I don't know if this is a problem of my ROM/smartphone (I'm using Android 4.0.3 ICS). Does anybody has the same problem? Thanks and regards! On 15 dic 2011, 18:30, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi all, I'm executing the BluetoothHDPDemo [1] (offered from Android 4.0 Ice Cream Sandwich) in my Android smartphone. When I have registered the application in order to receive data, and I have paired the biomedical device with the smartphone, I try to open the channel connection and I can see that the device starts sending data to the smartphone. However, the smartphone isunableto open the channel connectionHDP. At the end of this message you can see the output obtained in the LogCat. Has anybody achieved to run successfully this sample about the use of theBluetoothHealth Profile API? Any ideas? Thanks. Regards. [1]http://developer.android.com/resources/samples/BluetoothHDP/index.html This is the log that I obtain: 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel() 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE: 00:80:25:14:A1:BC: 0 - 1 12-15 16:40:55.169: D/ConnectivityService(147): handleInetConditionHoldEnd: net=1, condition=0, published condition=0 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property changed: 00:80:25:14:A1:BC property: Connected value: true 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device : devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/ bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue 12-15 16:41:00.034: E/BluetoothService.cpp(147): getChannelApplicationNative 12-15 16:41:00.044: E/bluetooth_common.cpp(147): dbus_func_args_timeout_valist: D-Bus error in Acquire: org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed) 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/ chan3115 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147): onHealthDeviceConnectionResult: D-Bus error: org.bluez.Error.HealthError (Mdl is not created) 12-15 16:41:00.074: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6001 12-15 16:41:00.214: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6000 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of Property is: MainChannel Value:/org/bluez/278/hci0/ dev_00_80_25_14_A1_BC/chan3115 -- 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
[android-developers] PHP and MySql on Android
Hi Everyone Actually we have a PHP aplication on a online server, have any way to install a mysql aplication on android device? Cause if this is possible, a want to make a option to sync with online server and make a php app running im my tablet. Many times i stay far from any connection and need 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 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] Take the dialogbox in notification
Hello All, I want to show the notification in statusbar when the call is incoming.And also with the notification i want to sho the dialogbox for accept or reject the call.and also as per accept or reject in dialogbox i can do work in my application.My application is running in background but when the call will come then this notification i want to show.Can anybody help me. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] process is bad
Hi Every one, my app show this error when i run it in HTC Phone and Coby Kyros MID 1126 Tablet (Android 2.3.3). W/ActivityManager( 820): Unable to launch app com.light.ruhunsehbali/ 10033 for broadcast Intent { flg=0x4 cmp=com.light.ruhunsehbali/.AzanNotifier (has extras) }: process is bad W/ActivityManager( 820): finishReceiver called but none active. but it work other tablet and phone. any solution for 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-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] Java.lang.ArrayIndexOutOfBoundsException
i Every one, In Sony Tablet S My app show ---Java.lang.ArrayIndexOutOfBoundsException: index=1 length=1-- but the app working in other phone. there is a code that make problem:: Calendar cal=Calendar.getInstance(); cal.add(Calendar.DAY_OF_YEAR, +1); Date tomorrow = cal.getTime(); java.text.DateFormat dateFormat =android.text.format.DateFormat.getDateFormat(context); dateFormat.format(tomorrow); String[] time=dateFormat.format(tomorrow).split(/); it is sony tablet os level problem or my code level problem. any body help me to solve the 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-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] How to hide soft keyboard when lost focus
Hi guys, I have a text field where I wanna hide the keyboard (to show the submit button) when the user clicks out of the text field area. How could I do this? Thanks, Icaro Camelo -- 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] Recording High Frequencies
Hello, I need to record frequencies about 17kHz. I'm using MediaRecorder like this: recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_WB); When I analyze the recorded sound, 17kHz frequencies aren't there, its like the phone has a low pass filter that eliminates these frequencies. I think is not a problem of the frequency response of the microphone. Anybody knows how can I record these high frequencies?? How can I 'deactivate' the filters or whatever that cuts off high frequencies?? Note that there is a project called Zoosh (http://venturebeat.com/ 2011/06/19/narattes-zoosh-enables-nfc-with-just-a-speaker-and- microphone/) where any two mobile phones can comunicate via ultrasounds, so I'm supposing any mobile phone can record ultrasounds. -- 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] CTS fail on tests.api.java.util.WeakHashMapTest#test_keySet
run cts run cts -c tests.api.java.util.WeakHashMapTest -m test_keySet On ICS platform, sometimes will fail and show this message: junit.framework.AssertionFailedError: Incorrect number of keys returned after gc, expected:99 but was:100 at tests.api.java.util.WeakHashMapTest.test_keySet(WeakHashMapTest.java: 322) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java: 537) at android.app.Instrumentation $InstrumentationThread.run(Instrumentation.java:1551) Any one meet this before? Why? -- 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] Connect to an avaible Network
Hello all, I googled it by days and got no success, I'm trying to connect to my WPA/WPA2 network when I put the Wifi On, it all over codes... If I was already connected to the network before I set the wifi off on the program, when I set the wifi on it connect, but I want to enter with the name of the network and the password... The code that I got error is this: wifiManager.setWifiEnabled(true); Toast.makeText(context, Off to On, Toast.LENGTH_LONG).show(); WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiConfiguration wc = new WifiConfiguration(); wc.SSID = \My Network\; wc.preSharedKey = \password\; wc.hiddenSSID = false; wc.status = WifiConfiguration.Status.ENABLED; wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP); wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP); wc.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); wc.allowedProtocols.set(WifiConfiguration.Protocol.RSN); int res = wifi.addNetwork(wc); Toast.makeText(context, add Network returned + res, Toast.LENGTH_LONG).show(); boolean b = wifi.enableNetwork(res, true); Toast.makeText(context, enableNetwork returned + b, Toast.LENGTH_LONG).show(); wifiManager.setWifiEnabled(true); I got -1 in the add Network and false in enableNetwork... Someone know why? Thanks in advance! Endy -- 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] Virtual Joystick
Hello, I am developing an android game that should use an on-screen joystick for moving a bitmap on the screen. I got my graphics for the joystick painted on the screen and now I want to implement the behaviour. There is just one bitmap i need to move. The joystick consists of a background image and a knob image. It would be great if someone could tell me how I should implement the joystick. The knob image should move with the movement of the finger but should stay in the bounds of the background image. And I need to apply the movement vector to my other bitmap. Is anyone out there who could help me? fyi. there are billions of games out in the android market, using a virtual joystick, but I cannot find any tutorial on this topic. I don't use a game engine and I will not use a game engine, so I have to implement it on my own. (this is not optional, most game engines are not suitable for my needs) -- 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] How to use RTSP video streaming in Android
Hi Everyone, I want to play video file through the RTSP protocol in emulator with live streaming. I am using android gingerbread version. please help me regarding this issue to fixed. I have confusion also that - Android Media player supported RTSP protocol or not? If not then which media player I have to use for RTSP video streaming in android? please help me regarding this in a bit depth. Thanks in advance... Regards, Jeetendra -- 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] MediaRecorder - buffered encoding of video
Hi. I try to capture video from the camera, encoding it with the MediaRecorder and write the output to a LocalSocket. All works fine, but the encoder seems to write the data into an internal buffer. The data only gets written to the socket when the buffer is full or the encoding process is stopped. Depending on the set up data-rate, the delay between start recording an begin writing to the socket is up to 20sec. This delay is not acceptable, because I try to develop a live stream application. Does any body know a way to avoid this buffering? Is that issue known? Maybe it depends on my device? Atrix with Tegra2 = hardware encoder I hope to hear from you soon. Regards, Paul -- 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] how to install Ndk
Hi, can anybody tell how to install ndk for window xp using cygwin?Is sdk is compulsory during installation of ndk and how to set path? Thanks in advance pranab -- 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] the Screenshot function in ICS.
Hi All, Can you guys help me solve the problem below? For ICS, it is easy to do the screen shot manually, by press the POWER and Volumn_Down key same time, and there is a instrument test under / icecreamsandwich/frameworks/base/packages/SystemUI/tests/ , 101 /** 102 * Inject the key sequence to take a screenshot. 103 */ 104 private void takeScreenshot() { 105 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, 106 KeyEvent.KEYCODE_POWER)); 107 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, 108 KeyEvent.KEYCODE_VOLUME_DOWN)); 109 try{ 110 Thread.sleep(2000); 111 }catch(Exception e){ 112 } 113 // the volume down key event will cause the 'volume adjustment' UI to appear in the 114 // foreground, and steal UI focus 115 // unfortunately this means the next key event will get directed to the 116 // 'volume adjustment' UI, instead of this test's activity 117 // for this reason this test must be signed with platform certificate, to grant this test 118 // permission to inject key events to another process 119 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, 120 KeyEvent.KEYCODE_VOLUME_DOWN)); 121 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, 122 KeyEvent.KEYCODE_POWER)); 123 } and in it's AndroidManifest.xml file, there is the user-permission flag: uses-permission android:name=android.permission.INJECT_EVENTS / I tried it, and it works, it can take the screenshot. Now I want to borrow this code a camera test case, it also use the instrument, I add the android.permission.INJECT_EVENTS in menifest.xml, (but this doesn't exist in Camera app's AndroidManifest.xml), andI run case, only see the volume adjustment' UI appear in the ui. Seems that the getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_POWER)), didn't run or take effect. Is it because the camera APP's AndroidMenifest.xml doesn't include the uses-permission android:name=android.permission.INJECT_EVENTS /? why, -- 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] Windows 7 Java update broke Eclipse?
I just got a pop-up with a Java Update and ran it and restarted Windows 7. Now my Eclipse won't start. The Eclipse splash screen shows for a fraction of a second, then disappears. There are no error messages when I run eclipse.exe from the console. I didn't have Windows System Restore activated so I can't roll back. Any one else with the same problem who can help? -- 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
Re: [android-developers] Re: Desktop Sharing of my pc on my Android mobile??
Hi, this depends on the OS of your PC. For windows you had recognised that your mouse cursor is not part of the captured screen. You have to capture the mouse yourself. POINT cursorPos; GetCursorPos(cursorPos); float x = 0; x = cursorPos.x; float y = 0; y = cursorPos.y; and transmit the data. On Tuesday, March 13, 2012 7:51:50 AM UTC+1, muhamma...@hotmail.com wrote: existing remote control application? Is there any application of this type. but i want to create my on app. please can you help me how to get the control of my mouse. Thanks for your reply Regards, umer -- Date: Mon, 12 Mar 2012 13:18:48 -0700 From: l...@bendlin.us To: android-developers@googlegroups.com Subject: [android-developers] Re: Desktop Sharing of my pc on my Android mobile?? uhm... you use one of the existing remote control applications? On Monday, March 12, 2012 11:21:05 AM UTC-4, muhamma...@hotmail.com wrote: Hi, I am creating an app to share my pc desktop on my android mobile. Now i am receiving the images from my pc on my mobile, but not the control of my mouse, Please can anyone tell me how to get the control of my mouse to handle my pc through my mobile. Thanks and Regards, umer -- 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 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] How to getPsc and signal strength for newly device (e.g. galaxy II, tab)
1.I am newly developer to write android. I would like to getPsc and Signal Strength in GsmCellLocation from Samsung phone, however, it always return -1 and 85 (after cal, (-113 + 2 * asu)) respectively, could anyone help me how to get the right psc and signal strength? 2.I have do some research, is that right use of RIL or MMIcode .class to fetch the data. Does anyone have tutorial or example about building and using the classes I have been entangled by the issues so long, sincerely thank you so much could anyone suggest any solution . -- 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] My Virtual Devices have stopped working properly
Everytime I run any of my virtual devices (Emulatoirs) I get this come up in the Console: And nothing happens. I have no idea why [2012-03-13 20:46:29 - HelloLinearLayout] -- [2012-03-13 20:46:29 - HelloLinearLayout] Android Launch! [2012-03-13 20:46:29 - HelloLinearLayout] adb is running normally. [2012-03-13 20:46:29 - HelloLinearLayout] Performing biz.slwdesign.hellolinearlayout.HelloLinearLayout activity launch [2012-03-13 20:46:29 - HelloLinearLayout] Automatic Target Mode: Preferred AVD 'Gingerbread' is not available. Launching new emulator. [2012-03-13 20:46:29 - HelloLinearLayout] Launching a new emulator with Virtual Device 'Gingerbread' [2012-03-13 20:46:30 - Emulator] emulator: warning: opening audio input failed [2012-03-13 20:46:30 - Emulator] [2012-03-13 20:46:33 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error [2012-03-13 20:46:33 - HelloLinearLayout] New emulator found: emulator-5554 [2012-03-13 20:46:33 - HelloLinearLayout] Waiting for HOME ('android.process.acore') to be launched... -- 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] Google Map Activity
Hello ! Im studying on map activities .. Actually ı have a homework .. ı can not see google map in emulator .. there is an only plaid page .. ı maen ı, cannnot see the map .. Could u help me please .. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] RTSP Streaming in Android
Hi, I wana to develop android app that will play rtsp link from local server, but the screen goes blank I had tried both VideoView and mPlayer classes. Below is my code public class WifiManagerActivity extends Activity { private WifiManager customWifiManager; private VideoView mu; // private String path; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); wifiSettings(); } private void wifiSettings() { mu = (VideoView) findViewById(R.id.ttl); TextView notify = (TextView) findViewById(R.id.wifi_state); customWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); // URL url = new URL(path); // URLConnection connect = url.openConnection(); // InputStream read8 = connect.getInputStream(); if(customWifiManager.isWifiEnabled()){ Toast.makeText(this, Your wifi is On now enjoy + live streaming, Toast.LENGTH_SHORT).show(); notify.setTextColor(Color.GREEN); showVideo(); }else{ Toast.makeText(this, Turn your Wifi On, Toast.LENGTH_SHORT).show(); customWifiManager.setWifiEnabled(true); //two second wait here showVideo(); } } private void showVideo() { // String path = http://webcam.oii.ox.ac.uk;; Authenticator.setDefault(new MyAuthenticater()); String path = rtsp://192.168.1.155:554/3g; mu.setVideoURI(Uri.parse(path)); // mu.setVideoPath(path); mu.setMediaController(new MediaController(this)); mu.requestFocus(); mu.start(); } } Work well on youtube rtsp links with .3gp extension but not working on the above URL. Any help please regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cell binding of Android phones
Hi, Can anybody tell me the API (or other methods) to bind a phone to the particular network cell? I supposed that GsmCellLocation::setLacAndCid will do it, but it simply changes the internal values of the class GsmCellLocation. The reason I need that is that our laboratory has a lot of BTSes and phones can hand-over without any actions from the user side while we're testing our BTS. Thank you in advance, Pavel. -- 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] device drivers for android phone
I got a new android phone which is a prototype. I tried to connect this to my PC and i see that some device drivers are getting installed automatically. Now i dont see this phone being listed as any of my drive ( I dont have any SD card in it. May be due to that ? ) But i am able to detecet as a device from my eclipse and able to run applications. So my doubts are : 1. what are those device drivers that gets installed when i connect my mobile and how is it getting installed 2. Why its not coming as a drive but is able to be detected by eclipse ? 3. What is the actual purpose of driver suit like samsung kies or HTC sync -- 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] WebView Encoding Problem
Hello, In my program I used WebView to load a URL. The problem is one of my users mentioned that the page displayed with wrong characters. The application is tested on 3 different Android version on simulator and on some real phones but the above encoding problem could not be simulated. Problem: Some characters replaced with question mark character (�) Web page includes iso-8859-1 character set. The user's environment: Android 2.3.6 Language: Turkish The browser settings reset to default as well. Not: User has the same problem in android browser, but not on opera browser. Code segment: wv = (WebView) findViewById(R.id.webViewArticle); wv.getSettings().setJavaScriptEnabled(true); wv.loadUrl(url); Additionally, below lines are tested too. - wv.getSettings().setDefaultTextEncodingName(UTF-8); - wv.getSettings().setDefaultTextEncodingName(ISO-8859-1); - wv.loadDataWithBaseURL(url, getHtmlContent(url), text/html, UTF-8, null); - wv.loadDataWithBaseURL(url, getHtmlContent(url), text/html, iso-8859-1, null); -- 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
Re: [android-developers] Re: update TextView inside a TimerTask
thanks for ur code On Tue, Mar 13, 2012 at 7:29 PM, harsh chandel harshdchan...@gmail.comwrote: you can use this timer given in devloper guide new CountDownTimer(3, 1000) { public void onTick(long millisUntilFinished) { TextView txttimer=(TextView) findViewById(R.id.timeremaining); txttimer.setText(Time remaining: 0: + millisUntilFinished / 1000); } public void onFinish() { } }.start(); On Mar 13, 1:54 pm, Alimooghashang alimooghash...@gmail.com wrote: thank you very much now my application works well On Tue, Mar 13, 2012 at 11:21 AM, tsukishiro yamazaki tsukishir...@gmail.com wrote: You can take the sample here http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog for your reference. Check the sample code marked by the section *Example ProgressDialog with a second thread* http://developer.android.com/guide/topics/ui/dialogs.html# Thanks and best regards, - tsukishiro On Tuesday, March 13, 2012 1:20:18 PM UTC+9, Ali wrote: Hi i have made a timer and a timer task, and i need to update my textview every seconds how can i do that? 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 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 -- PHANI SURYA -- 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] Android SDK
Namaskara I am Subramanya. I am using Mac OS X 10.6.8 i have some doubts. I have download Android SDK where i want to locate it. In to Developer folder or Download folder. Can you help me please... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Downloading the Expansion Files
how to download the Expansion File in Android Application and step to create two Expansion file which is used to upload application when the size of Application exceed 50 MB -- 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: How to display PDF data in android?
Hi Can you guys tell me which pdfBox version you are using . m trying to use 1.6.0 version on my android app but i'm getting java.lang.NoClassDefFoundError: org.apache.pdfbox.pdmodel.PDDocument exception in my app i just want to view pdf pages. please help. Thanx in adv On Thursday, January 24, 2008 4:01:35 PM UTC+5:30, kal wrote: Hi all, I tried to use webView.loadData to load/display pdf data in the browser, with mimetype application/pdf, utf-8 encoding, but this doesn't work? Someone know why? thanks kal On Thursday, January 24, 2008 4:01:35 PM UTC+5:30, kal wrote: Hi all, I tried to use webView.loadData to load/display pdf data in the browser, with mimetype application/pdf, utf-8 encoding, but this doesn't work? Someone know why? thanks kal On Thursday, January 24, 2008 4:01:35 PM UTC+5:30, kal wrote: Hi all, I tried to use webView.loadData to load/display pdf data in the browser, with mimetype application/pdf, utf-8 encoding, but this doesn't work? Someone know why? thanks kal -- 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
Re: [android-developers] Downloading the Expansion Files
http://android-developers.blogspot.com/2012/03/android-apps-break-50mb-barrier.html On Wed, Mar 14, 2012 at 12:56 AM, Nirbhay Garg nirbhay.g...@octalsoftware.net wrote: how to download the Expansion File in Android Application and step to create two Expansion file which is used to upload application when the size of Application exceed 50 MB -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Impossible upload an appliclation on Android Market
Same problem here. I am trying whole morning.This is not the first time I am seeing this message, it happens often. Annoying. Regards, Viktor. On Monday, March 12, 2012 5:19:40 PM UTC+1, Mattia Perazzoli wrote: Hi, today I try to upload an app on the android market, but wen i press upload, this message appear An unexpected error occurred. Please try again later. I have 2 app on market and i think that is not an error of the apk file. Someone have a solution or the android market is down? -- 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
Re: [android-developers] Recording High Frequencies
On Tue, Mar 13, 2012 at 01:06:55AM -0700, Aledis wrote: I need to record frequencies about 17kHz. I'm using MediaRecorder like this: You do realize, I hope, that most humans, by the time they're 18 or so, have lost all hearing about around 16 kHz, right? recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_WB); You didn't mention your sampling frequency Remember Nyquist? To reproduce any digital signal, you MUST sample at twice the frequency of the highest frequency you want to reproduce. In this case, you'd have to sample at a minimum of 34,000 samples/second. HOWEVER. When I analyze the recorded sound, 17kHz frequencies aren't there, its like the phone has a low pass filter that eliminates these frequencies. Yes, the *PHONE* certainly does...but where? The question is, does the non-phone portion of the Android device have access to the raw audio, or has the low-pass filter already been applied? Check to see if you can record frequencies above 5 kHz (DS0[1] is 300--3400 Hz, but since there are no brick-wall filters, it usually extends to about 4000 Hz, and then we allow a bit extra to make sure). If you can access up to 5000 Hz or higher, you're getting audio before the low-pass filter. Just remember to take Nyquist's Theorem into account, and when converting your PCM to a digital signal, use enough bits/sample to get a decent quality. Later, --jim [1] DS0 is toll-quality voice in the US PSTN. 300--3400 (by definition, again, it usually goes a bit beyond that), sampled at 8000 samples/second, encoded at 8 bits/sample, for 64 kb/s. *IF* I remember correctly, the European network uses the same (or close to it---it's been about 20 years (and two brain-mangling chemos) since I last touched voice telephony, and then it was all highly-compressed (ADPCM at 32 kb/s---and testing with 24 kb/s for international circuits---using N.E.T. IDNX voice cards over a private network...not telco standard stuff...that goes back about 4 years more). -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| This 'telephone' has too many spooky1...@gmail.com| shortcomings to be seriously considered Running FreeBSD 7.0 | as a means of communication. The device ICBM / Hurricane: | is inherently of no value to us. 30.44406N 86.59909W | (Western Union internal memo, 1876) Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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: Background Audio Recording
I am ok with it picking up external sounds. And what I am doing is not going to break any copyright laws. Ie I'm not trying to record songs playing from the radio/mp3. On Mar 13, 8:07 am, Mark Murphy mmur...@commonsware.com wrote: Can you have the microphone on while you are in thebackground? Yes, AFAIK. Can yourecordfrom another app? No, unless it is playing through external speakers. If it is playing through the earpiece, headsets, etc., you can'trecordfrom it. And, of course, if it is playing through external speakers, the microphone will pick up other sounds as well: babies crying, phones ringing, copyright cops breaking down the door, etc. On Tue, Mar 13, 2012 at 7:44 AM, bryandunbar bryandun...@gmail.com wrote: Is it possible torecordaudio while your applications UI Is not active. For example, say I want to start recording, then go to another app that plays sound andrecordthat sound from my app 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- 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
Re: [android-developers] Recording High Frequencies
On Wed, Mar 14, 2012 at 7:44 AM, Jim Graham spooky1...@gmail.com wrote: On Tue, Mar 13, 2012 at 01:06:55AM -0700, Aledis wrote: I need to record frequencies about 17kHz. I'm using MediaRecorder like this: You do realize, I hope, that most humans, by the time they're 18 or so, have lost all hearing about around 16 kHz, right? Actually, there still may be value in receiving such signals. Not sure about MediaRecorder, but I can definitely think of places where AudioRecord of ultrasound would be useful. For example, the jaja active stylus uses ultrasound for communication between the stylus and the device. AFAIK, they don't have an Android SDK yet (they started with iPad, natch), but when they do, AudioRecord would be their mechanism for picking up their stylus signals. http://www.kickstarter.com/projects/jonatherton/jaja-worlds-first-pressure-sensitive-stylus-for-ip All that being said, since I would have assumed that Nyquist was the inventor of Nyquil, you can tell that I'm out of my depth on audio recording... :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android SDK
Hello Subramanya, Please refer following links.it will be help full for you 1. http://peter.boctor.net/2010/12/02/installing-the-android-sdk-on-mac-os-x/. 2. http://droidweb.com/2010/06/installing-android-2-0-sdk-on-a-mac/ 3. http://wiki.cyanogenmod.com/wiki/Howto:_Install_the_Android_SDK 4. http://androiddevelopertips.com/eclipse/installing-android-development-tools-on-a-mac.html . I have sent u many of links. u can use these links as per your need. On Wed, Mar 14, 2012 at 9:42 AM, Subramanya subramanya9...@gmail.comwrote: Namaskara I am Subramanya. I am using Mac OS X 10.6.8 i have some doubts. I have download Android SDK where i want to locate it. In to Developer folder or Download folder. Can you help me please... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] question related Android
Hi Developers, Is it good option to integrate PJSIP or MJSIP with Android?Can anybody help on this regards? thanks and regards Pranab Brazil -- 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] how to display pdf file in a project
Hi, all I want to display a pdf document in my application.. any one know how to do this task.. please give me some code or tutorial for this -- Bhaumik Thaker -- 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
Re: [android-developers] Google Map Activity
On Wed, Mar 14, 2012 at 4:52 AM, aatici settarat...@gmail.com wrote: Hello ! Im studying on map activities .. Actually ı have a homework .. ı can not see google map in emulator .. there is an only plaid page .. ı maen ı, cannnot see the map .. Could u help me please .. 1) Check internet permission in your manifest 2) Check your main.xml if you have copied the correct api key. That may be the 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-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] Google Plus Integration For Sharing Posts.
Hi, Is there any API available for sharing message in Google Plus for Android App. I had intregated G+ in my App but I stucked in message share. -- Thanks and regards. Mani. -- 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
Re: [android-developers] how to display pdf file in a project
Use an ACTION_VIEW Intent to launch a PDF viewer, assuming that the device has one. Uri path = Uri.fromFile(file); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(path, application/pdf); startActivity(intent); On Wed, Mar 14, 2012 at 8:38 AM, Bhaumik Thaker bgtha...@gmail.com wrote: Hi, all I want to display a pdf document in my application.. any one know how to do this task.. please give me some code or tutorial for this -- Bhaumik Thaker -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] start application after boot as default application (no home screen)
hi, I need to start my application as the default and unique application on an android 2.3.3 plateform. that meens no home screen, the user will use the menu and fonctionalities of my application and nothing else. any help about this. thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] start application after boot as default application (no home screen)
Make your application be the home screen. On Wed, Mar 14, 2012 at 8:50 AM, MegaDev maherme...@gmail.com wrote: hi, I need to start my application as the default and unique application on an android 2.3.3 plateform. that meens no home screen, the user will use the menu and fonctionalities of my application and nothing else. any help about this. thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Recording High Frequencies
On Wednesday, March 14, 2012 7:44:03 AM UTC-4, Spooky wrote: You didn't mention your sampling frequency Remember Nyquist? To reproduce any digital signal, you MUST sample at twice the frequency of the highest frequency you want to reproduce. In this case, you'd have to sample at a minimum of 34,000 samples/second. HOWEVER. Not exactly true. What is true is that frequency components above the threshold appear like, and cannot be distinguished from, frequencies below it. To avoid this confusion, it is common to remove them with a low pass filter before sampling. However, this is not the only way of doing things. It is also quite common to use a filter with selects frequencies above the threshold, and take advantage of the sampling folding them down to a frequency range where they are easier to deal with computationally. Obviously that's more common in communications equipment where you are only interested in a narrow range of frequencies, rather than baseband voice or music. When I analyze the recorded sound, 17kHz frequencies aren't there, its like the phone has a low pass filter that eliminates these frequencies. Yes, the *PHONE* certainly does...but where? The question is, does the non-phone portion of the Android device have access to the raw audio, or has the low-pass filter already been applied? Check to see if you can record frequencies above 5 kHz (DS0[1] is 300--3400 Hz, but since there are no brick-wall filters, it usually extends to about 4000 Hz, and then we allow a bit extra to make sure). If you can access up to 5000 Hz or higher, you're getting audio before the low-pass filter. Before *which* low pass filter? A device intended to be used for both telephony and higher quality audio likely has several. There is probably something in front of the actual ADC (likely on chip) which prevents aliasing in the sampling itself. There may be an intermediate filter in the audio system if any resampling is done, and this may depend on the sample rate requested by the program. And then there's probably one in the GSM or SIP or whatever encoding system to limit to the narrower voice bandwidth of those channels. -- 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: How to hide soft keyboard when lost focus
Do something like this: InputMethodManager inputManager = getSystemService(INPUT_METHOD_SERVICE); inputManager.hideSoftInputFromWindow(mTextEdit.getWindowToken(), 0); -- 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: Java.lang.ArrayIndexOutOfBoundsException
I think the problem may be with this line: java.text.DateFormat dateFormat =android.text.format.DateFormat.getDateFormat(context); This will get the format according to the current locale, which may not be mm/dd/ and from what I see here doesn't even seem to contain any '/' characters. That is why you are getting an array length of 1 from the .split(/) call. Here is the warning from Android web site on this exact issue: http://developer.android.com/reference/java/util/Locale.html#default_locale Instead, construct the date format you were expecting to parse using SimpleDateFormat. For example: java.text.DateFormat dateFormat = new SimpleDateFormat(MM/dd/); This should work better if you force the format to be what you were expecting to parse. -- 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] Cover Flow
Does anyone know if there's an easy way to do the Cover Flow interface on Android? It's the animated, three dimensional graphical user interface integrated within iTunes. 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
[android-developers] newb-question - registering for intents
I am calling startBluetoothSCO and according to the docs, I should be waiting for the state change: As the SCO connection establishment can take several seconds, applications should not rely on the connection to be available when the method returns but instead register to receive the intentACTION_SCO_AUDIO_STATE_UPDATEDhttp://developer.android.com/reference/android/media/AudioManager.html#ACTION_SCO_AUDIO_STATE_UPDATED and wait for the state to be SCO_AUDIO_STATE_CONNECTEDhttp://developer.android.com/reference/android/media/AudioManager.html#SCO_AUDIO_STATE_CONNECTED . I am at a loss as to how to do that... -- 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
Re: [android-developers] SIP Stack registration packet with authorization
On Wed, Mar 14, 2012 at 2:22 AM, matej148 matejmihal...@gmail.com wrote: Hi to all, we want to create SIP application on Android 2.3.3 and have some issues with android.sip stack (default sip stack). Our mobile app sends register sip packet, but 1.) by default OpenIMS core responds 400 Bad request P-Visited-Network- ID Header missing Never used OpenIMS, but this seems like a server configuration problem. Remove the P-Visited-Network-ID requirement, and it will probably work. Normally, the server will respond with 403 Not authorized, and the the client will send the authorization headers. Since it doesn't get that far, it fails to register. BTW, I don't think you can send the authorization header preemptively with the default Android SIP stack. IIRC, you can't set custom headers either, so either you configure your server to work with the Android stack, or use another, more flexible stack and API. -- 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: Impossible upload an appliclation on Android Market
I try for 4 days, a lot of times a day, and i'm not able to upload my app. Il giorno martedì 13 marzo 2012 10:19:58 UTC+1, Zsolt Vasvari ha scritto: This happens often -- just try again and it will work eventually. I seriously doubt the the Market is down. On Tuesday, March 13, 2012 12:19:40 AM UTC+8, Mattia Perazzoli wrote: Hi, today I try to upload an app on the android market, but wen i press upload, this message appear An unexpected error occurred. Please try again later. I have 2 app on market and i think that is not an error of the apk file. Someone have a solution or the android market is down? -- 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
Re: [android-developers] Re: Impossible upload an appliclation on Android Market
Revise your clock a day or a week before ! And again create .APK file and upload ! Timing Issue's with GOOGLE server ! Hope it works for you all . Cheers .!! On Wed, Mar 14, 2012 at 7:45 PM, Mattia Perazzoli mattiaperazz...@gmail.com wrote: I try for 4 days, a lot of times a day, and i'm not able to upload my app. Il giorno martedì 13 marzo 2012 10:19:58 UTC+1, Zsolt Vasvari ha scritto: This happens often -- just try again and it will work eventually. I seriously doubt the the Market is down. On Tuesday, March 13, 2012 12:19:40 AM UTC+8, Mattia Perazzoli wrote: Hi, today I try to upload an app on the android market, but wen i press upload, this message appear An unexpected error occurred. Please try again later. I have 2 app on market and i think that is not an error of the apk file. Someone have a solution or the android market is down? -- 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 -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *The lingering question - WHAT NEXT? is the mantra of Success -- Voice Of Love* -- 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
RE: [android-developers] Re: Desktop Sharing of my pc on my Android mobile??
hi paul, Thanks for your reply, how can i get the control of my pc mouse on my mobile As along i am sending the captured screen pics to my mobile and OS is window. and please tell me this code is to get the control on my pc? POINT cursorPos;GetCursorPos(cursorPos);float x = 0;x = cursorPos.x; float y = 0;y = cursorPos.y; how can i control it on mobile? Regards, umer Date: Wed, 14 Mar 2012 00:16:23 -0700 From: paulelsne...@googlemail.com To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Desktop Sharing of my pc on my Android mobile?? Hi,this depends on the OS of your PC.For windows you had recognised that your mouse cursor is not part of the captured screen. You have to capture the mouse yourself.POINT cursorPos;GetCursorPos(cursorPos);float x = 0;x = cursorPos.x; float y = 0;y = cursorPos.y; and transmit the data. On Tuesday, March 13, 2012 7:51:50 AM UTC+1, muhamma...@hotmail.com wrote: existing remote control application? Is there any application of this type. but i want to create my on app. please can you help me how to get the control of my mouse. Thanks for your reply Regards, umer Date: Mon, 12 Mar 2012 13:18:48 -0700 From: l...@bendlin.us To: android-developers@googlegroups.com Subject: [android-developers] Re: Desktop Sharing of my pc on my Android mobile?? uhm... you use one of the existing remote control applications? On Monday, March 12, 2012 11:21:05 AM UTC-4, muhamma...@hotmail.com wrote:Hi, I am creating an app to share my pc desktop on my android mobile. Now i am receiving the images from my pc on my mobile, but not the control of my mouse, Please can anyone tell me how to get the control of my mouse to handle my pc through my mobile. Thanks and Regards, umer -- 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 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 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] OnKeyListener is not working, why?
I have a fragment class, in the fragment class, I implement the onCreateView(...) callback in the following way: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View myView = inflater.inflate(R.layout.note, null); myView.setOnKeyListener( new OnKeyListener(){ @Override public boolean onKey( View v, int keyCode, KeyEvent event ){ if( keyCode == KeyEvent.KEYCODE_BACK ){ Log.v(CALL ME, I am called); return true; } return false; } }); return myView; } *** As you see above, I inflate a layout to this fragment, then I setOnKeyListener() to handle the back button press event. But when I run it on my phone, the back button press event is not handled, my Log message is not showing. Why my OnKeyListener is not working ??? -- 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
Re: [android-developers] how to display pdf file in a project
If you want to embed pdf viewing in your application, you could also look at iText... Looks like it should work with Android. You might have to pay for a license though and I've never used it: http://itextpdf.com/itext.php Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 14, 2012 at 6:42 AM, Mark Murphy mmur...@commonsware.comwrote: Use an ACTION_VIEW Intent to launch a PDF viewer, assuming that the device has one. Uri path = Uri.fromFile(file); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(path, application/pdf); startActivity(intent); On Wed, Mar 14, 2012 at 8:38 AM, Bhaumik Thaker bgtha...@gmail.com wrote: Hi, all I want to display a pdf document in my application.. any one know how to do this task.. please give me some code or tutorial for this -- Bhaumik Thaker -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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: SIP Stack registration packet with authorization
Hi Nikolay, thank you for your answer, but we are almost sure that OpenIMS works well. Could you recommend us good SIP stack for Android 2.3.3 please? We tried J-SIP (works for creating java app server on PC but for android - Conversion to dalvik format failed with error 1), NGN stack (good for 2.1 android app). Thanks advance for your answer. Matej On Mar 14, 3:08 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, Mar 14, 2012 at 2:22 AM, matej148 matejmihal...@gmail.com wrote: Hi to all, we want to create SIP application on Android 2.3.3 and have some issues with android.sip stack (default sip stack). Our mobile app sends register sip packet, but 1.) by default OpenIMS core responds 400 Bad request P-Visited-Network- ID Header missing Never used OpenIMS, but this seems like a server configuration problem. Remove the P-Visited-Network-ID requirement, and it will probably work. Normally, the server will respond with 403 Not authorized, and the the client will send the authorization headers. Since it doesn't get that far, it fails to register. BTW, I don't think you can send the authorization header preemptively with the default Android SIP stack. IIRC, you can't set custom headers either, so either you configure your server to work with the Android stack, or use another, more flexible stack and API. -- 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
Re: [android-developers] how to install Ndk
You should ask this question here: https://groups.google.com/forum/?fromgroups#!forum/android-ndk Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 13, 2012 at 2:43 AM, pranab sahoo sahoo.prana...@gmail.comwrote: Hi, can anybody tell how to install ndk for window xp using cygwin?Is sdk is compulsory during installation of ndk and how to set path? Thanks in advance pranab -- 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 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
Re: [android-developers] Performatic way to create a Bitmap?
On Mon, Mar 5, 2012 at 5:04 PM, Guilherme Utrabo utr...@gmail.com wrote: Hello everybody, I want to get four image files and join then to create one big image file. Is there a performatic way to do it? In fact, performatic aside :-) , is there a (scalable) way of doing that at all? There can be any number of good reasons to assemble a bigger image from partial images on an Android device (think panoramas for instance). If I have say a total of 50 - 200 megs of uncompressed pixel data in a bunch of bitmaps (assume each of them individually fitting into the heap), is there a way to get a nice .png out of them to post on Facebook? -- 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
Re: [android-developers] Re: SIP Stack registration packet with authorization
On Thu, Mar 15, 2012 at 12:20 AM, matej148 matejmihal...@gmail.com wrote: Hi Nikolay, thank you for your answer, but we are almost sure that OpenIMS works well. Maybe it does, but your current configuration seems to be incompatible with Android. You could try to change or customize it a bit to make it compatible, if possible. Could you recommend us good SIP stack for Android 2.3.3 please? We tried J-SIP (works for creating java app server on PC but for android - Conversion to dalvik format failed with error 1), The reasons for the conversion error could range from an incorrect project configuration, to a Java library incompatible with Android. You might want to check the full message/trace, etc. NGN stack (good for 2.1 android app). If it works on 2.1, it should work on 2.3 as well. I've only used the native stack, so not very familiar with other libraries. You might want to look into siproid, if you are OK with GPL: http://code.google.com/p/sipdroid/ -- 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
Re: [android-developers] how to display pdf file in a project
iText is a PDF parser and generator, not a viewer. On Wed, Mar 14, 2012 at 11:17 AM, Justin Anderson magouyaw...@gmail.com wrote: If you want to embed pdf viewing in your application, you could also look at iText... Looks like it should work with Android. You might have to pay for a license though and I've never used it: http://itextpdf.com/itext.php Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 14, 2012 at 6:42 AM, Mark Murphy mmur...@commonsware.com wrote: Use an ACTION_VIEW Intent to launch a PDF viewer, assuming that the device has one. Uri path = Uri.fromFile(file); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(path, application/pdf); startActivity(intent); On Wed, Mar 14, 2012 at 8:38 AM, Bhaumik Thaker bgtha...@gmail.com wrote: Hi, all I want to display a pdf document in my application.. any one know how to do this task.. please give me some code or tutorial for this -- Bhaumik Thaker -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to display pdf file in a project
My bad... I just saw the diagram displayed on their web page, which shows viewing a PDF, but didn't notice the little dots that indicate things that are supported by itext itself. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 14, 2012 at 9:45 AM, Mark Murphy mmur...@commonsware.comwrote: iText is a PDF parser and generator, not a viewer. On Wed, Mar 14, 2012 at 11:17 AM, Justin Anderson magouyaw...@gmail.com wrote: If you want to embed pdf viewing in your application, you could also look at iText... Looks like it should work with Android. You might have to pay for a license though and I've never used it: http://itextpdf.com/itext.php Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 14, 2012 at 6:42 AM, Mark Murphy mmur...@commonsware.com wrote: Use an ACTION_VIEW Intent to launch a PDF viewer, assuming that the device has one. Uri path = Uri.fromFile(file); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(path, application/pdf); startActivity(intent); On Wed, Mar 14, 2012 at 8:38 AM, Bhaumik Thaker bgtha...@gmail.com wrote: Hi, all I want to display a pdf document in my application.. any one know how to do this task.. please give me some code or tutorial for this -- Bhaumik Thaker -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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
Re: [android-developers] Google play (Android market) not giving the result with app name.
Welcome to the wonderful world of searching on the Android Market, er... Google Play thingy... There have been numerous posts over the years about searching for apps not always giving what you would expect... A little ironic since Google is known for its search capabilities... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 13, 2012 at 7:08 AM, Maheshkumar Gangula maheshkumar.gang...@gmail.com wrote: Hi all, We have uploaded an application into android market(Google Play) few days ago. It is successfully uploaded and able to go to the app by using its URL but, when we search it with Name of the app we are not able to get the app in the result list. What is the problem. Please 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 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] Proguard throws Error 1 with Loaders
A while back I tried to create an implementation of CursorLoaders in my app, switching from managedQuery()s. I found that this resulted in my app failing to obfuscate when running it through ProGuard, returning with a dialog which references Error 1, but giving no other details. I surmised it was because I was using a complicated method of routing callbacks through my app and thought nothing more of it. I tried again today, using the most basic implementation I could (analogous to the implementation in the Loaders article in the Android Developers website with one Activity implementing the Callbacks), and again it failed to obfuscate. Removing any references to the Loader framework resulted it in building and obfuscating correctly. Is this a known problem or something very odd? It's probably worth noting, I'm using the support library (v6), and the app will build fine, run fine and even compile for release *so long as it isn't run through ProGuard*. -- 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
Re: [android-developers] Clickable elements on widget
I handle click events in a desktop widget this way: 1. Create a service that inherits IntentService to handle updating the widget display 2. For each item that you want to be clickable, create an intent filter entry in the manifest with a unique action name 3. When you update the widget display in your service, do the following for each item that you want to handle a click event: 1. Create an intent with the appropriate action from your manifest 2. Use setOnClickPendingIntent() to call your service with the intent created above 4. In the service's onHandleIntent() method, check the intent's action and update your widget's display based on the action *Here is some example code from my manifest (Step 2):* service android:name=.services.RunningAppWgtUpdateService android:label=@string/app_widget_update_service android:exported=falseintent-filter action android:name=.WgtUpdateService.ACTION_NEXT / action android:name=.WgtUpdateService.ACTION_PREV / action android:name=.WgtUpdateService.ACTION_CLICK_0 / action android:name=.WgtUpdateService.ACTION_CLICK_1 / action android:name=.WgtUpdateService.ACTION_CLICK_2 / action android:name=.WgtUpdateService.ACTION_CLICK_3 /action android:name=.WgtUpdateService.ACTION_REFRESH / action android:name=.WgtUpdateService.ACTION_REFRESH_NO_UPDATE / action android:name=.WgtUpdateService.ACTION_CLOSE_ALL /action android:name=.WgtUpdateService.ACTION_MODE_OPEN / action android:name=.WgtUpdateService.ACTION_MODE_CLOSE / action android:name=.WgtUpdateService.ACTION_NO_OP / /intent-filter/service * Here is some example code from my service class to set the pending intent (Step 3.1 3.2):* //RunningAppWgtUpdateService is the name of my class that handles updating the display of my widget Intent newIntent = new Intent(context, RunningAppWgtUpdateService.class); newIntent.setAction(com.magouyaware.appswipe.WgtUpdateService.ACTION_MODE_OPEN); ViewHolder.s_curView.setOnClickPendingIntent(R.id.wgt_mode_open_btn, PendingIntent.getService(this, 0, newIntent, 0)); * Here is some example code from my service class to update the widget based on the intent's action (Step 4):* @Overrideprotected void onHandleIntent(Intent intent){ if (intent == null)return;String action = intent.getAction();if (action != null action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_NO_OP)) return;m_needsUpdate = true;if (action != null action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_REFRESH_NO_UPDATE)) m_needsUpdate = false;initializeUpdate(); if (!action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_PREV) !action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_NEXT)) {setIndeterminate();}if (action != null !action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_REFRESH)) {if (action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_NEXT)) nextPage();else if (action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_PREV)) prevPage();else if (action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_CLICK_0)) processAppClick(m_app0Pkg);else if (action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_CLICK_1)) processAppClick(m_app1Pkg);else if (action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_CLICK_2)) processAppClick(m_app2Pkg);else if (action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_CLICK_3)) processAppClick(m_app3Pkg);else if (action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_CLOSE_ALL)) closeAllRunningApps();else if (action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_MODE_OPEN)) setOpenMode(true);else if (action.equals(com.magouyaware.appswipe.WgtUpdateService.ACTION_MODE_CLOSE)) setOpenMode(false);} updateView();finalizeUpdate();} Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 14, 2012 at 3:59 AM, Pinheiro rui.c.pinhe...@gmail.com wrote: Hi! Is there a way to have clickable elements inside a widget? (for instance, to change some text when an image is clicked) AFAIK, widgets only use setOnClickPendingIntent() that detects a click on all of the widget, it's not possible to set a method for a single element. Or is there? Thanks in advance! Pinheiro -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to
Re: [android-developers] Connect to an avaible Network
I think that addNetwork adds to a persistent database of networks. Calling it again with the same information may generate an error as it can't add twice. If you then call enableNetwork using -1 as the networkID it will of course give an error. On Tue, Mar 13, 2012 at 11:57 AM, Endy Silveira endy.silve...@traceback.com.br wrote: Hello all, I googled it by days and got no success, I'm trying to connect to my WPA/WPA2 network when I put the Wifi On, it all over codes... If I was already connected to the network before I set the wifi off on the program, when I set the wifi on it connect, but I want to enter with the name of the network and the password... The code that I got error is this: wifiManager.setWifiEnabled(true); Toast.makeText(context, Off to On, Toast.LENGTH_LONG).show(); WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiConfiguration wc = new WifiConfiguration(); wc.SSID = \My Network\; wc.preSharedKey = \password\; wc.hiddenSSID = false; wc.status = WifiConfiguration.Status.ENABLED; wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP); wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP); wc.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); wc.allowedProtocols.set(WifiConfiguration.Protocol.RSN); int res = wifi.addNetwork(wc); Toast.makeText(context, add Network returned + res, Toast.LENGTH_LONG).show(); boolean b = wifi.enableNetwork(res, true); Toast.makeText(context, enableNetwork returned + b, Toast.LENGTH_LONG).show(); wifiManager.setWifiEnabled(true); I got -1 in the add Network and false in enableNetwork... Someone know why? Thanks in advance! Endy -- 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 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: Proguard throws Error 1 with Loaders
There is an associated StackOverflow question here, which has more details but still no answer http://stackoverflow.com/questions/8762281/proguard-and-dalvik-error-code-1 On Wednesday, 14 March 2012 16:35:11 UTC, Alex Curran wrote: A while back I tried to create an implementation of CursorLoaders in my app, switching from managedQuery()s. I found that this resulted in my app failing to obfuscate when running it through ProGuard, returning with a dialog which references Error 1, but giving no other details. I surmised it was because I was using a complicated method of routing callbacks through my app and thought nothing more of it. I tried again today, using the most basic implementation I could (analogous to the implementation in the Loaders article in the Android Developers website with one Activity implementing the Callbacks), and again it failed to obfuscate. Removing any references to the Loader framework resulted it in building and obfuscating correctly. Is this a known problem or something very odd? It's probably worth noting, I'm using the support library (v6), and the app will build fine, run fine and even compile for release *so long as it isn't run through ProGuard*. -- 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] How to get smart key board on my device.
Dear All, I am facing strange behavior on my Acer Iconia tablet when I connect NFC reader to the tablet USB port. Its killing my soft-keyboard on my screen (I am not able to enter any data on my application and even I observed with other application. The result is same). When I remove my NFC reader its immediately showing keyboard on the screen. How can I get the Keyboard even I have connected the my NFC reader to the tablet. Is there any way to call smart keyboard explicitly the tablet even Acer guys event manger kills soft keyboard whenever I connect my NFC reader through USB port. I am giving some of log, how its detecting and behaving :- 03-03 21:12:24.810: D/BatteryService(139): level:57 scale:100 status:3 health:2 present:true voltage: 3827 temperature: 286 technology: Li-ion AC powered:false USB powered:false icon:17302701 invalid charger:0 03-03 21:12:24.810: D/WifiService(139): ACTION_BATTERY_CHANGED pluggedType: 0 03-03 21:12:39.420: D/dalvikvm(226): GC_EXPLICIT freed 929K, 15% free 22433K/26247K, paused 8ms+7ms 03-03 21:12:41.660: D/EventHub(139): No input device configuration file found for device 'RFIDeas USB Keyboard'. 03-03 21:12:41.670: I/EventHub(139): New device: id=15, fd=221, path='/dev/input/event5', name='RFIDeas USB Keyboard', classes=0x8003, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false 03-03 21:12:41.670: I/InputReader(139): Device added: id=15, name='RFIDeas USB Keyboard', sources=0x0101 03-03 21:12:41.670: I/PowerManagerService(139): WakeLock: SCREEN_FROZEN(PARTIAL_WAKE_LOCK ) is acquired by pid(139), uid(1000) 03-03 21:12:41.670: I/ActivityManager(139): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=2/1/1 nav=1/2 orien=L layout=0x1014 uiMode=0x11 seq=21} 03-03 21:12:41.960: I/PowerManagerService(139): WakeLock: SCREEN_FROZEN(PARTIAL_WAKE_LOCK ) is released by pid(139), uid(1000) 03-03 21:12:44.030: D/dalvikvm(139): GC_EXPLICIT freed 333K, 46% free 15799K/28935K, paused 6ms+5ms 03-03 21:12:46.990: D/dalvikvm(624): GC_EXPLICIT freed 22K, 5% free 6301K/6595K, paused 1ms+2ms 03-03 21:12:54.890: D/BatteryService(139): level:57 scale:100 status:3 health:2 present:true voltage: 3826 temperature: 286 technology: Li-ion AC powered:false USB powered:false icon:17302701 invalid charger:0 03-03 21:12:54.900: D/WifiService(139): ACTION_BATTERY_CHANGED pluggedType: 0 I hoping get some solutions for this problem:) I really appreciate someone give a comment on it. BR Srinivas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Proguard throws Error 1 with Loaders
I recently had an error with proguard after updating the Android SDK... I kept getting an Error 1 issue as well. What fixed it for me was downloading the latest proguard binaries and replacing the ones that came with the Android SDK. Hopefully this helps for you as well... http://sourceforge.net/projects/proguard/files/ Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 14, 2012 at 10:38 AM, Alex Curran aml.cur...@gmail.com wrote: There is an associated StackOverflow question here, which has more details but still no answer http://stackoverflow.com/questions/8762281/proguard-and-dalvik-error-code-1 On Wednesday, 14 March 2012 16:35:11 UTC, Alex Curran wrote: A while back I tried to create an implementation of CursorLoaders in my app, switching from managedQuery()s. I found that this resulted in my app failing to obfuscate when running it through ProGuard, returning with a dialog which references Error 1, but giving no other details. I surmised it was because I was using a complicated method of routing callbacks through my app and thought nothing more of it. I tried again today, using the most basic implementation I could (analogous to the implementation in the Loaders article in the Android Developers website with one Activity implementing the Callbacks), and again it failed to obfuscate. Removing any references to the Loader framework resulted it in building and obfuscating correctly. Is this a known problem or something very odd? It's probably worth noting, I'm using the support library (v6), and the app will build fine, run fine and even compile for release *so long as it isn't run through ProGuard*. -- 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 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
Re: [android-developers] Check box inside of a GridView
This is due to view recycling... You need to keep track of the checked state of the checkboxes in a custom adapter, probably with some sort of list of Boolean objects, and then, in the getView() method, set the state of the checkbox based on that list. You could also probably get some performance benefits from using the ViewHolder pattern. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 14, 2012 at 3:14 AM, Put_tiMe putt...@gmail.com wrote: I have a gridview, inside which I have a check-box and imageview and textview. I need to use the check box to determine whether a particular row is selected or not. All the other controls work as expected, except for the check-box. When I toggle the check box, the corresponding checkboxes in the other pages also get toggled. For example, I see 4 rows in one view (i.e. page). When I select the 1st row check box, then the 5th, 9th, 13th, 17th, etc rows are also selected. How can I correct this. I want each row's check box to be independent. The contents of the row is coming in from a XML file, and I refer like this: public View getView(*int* position, View convertView, ViewGroup parent) { CheckBox cbox; cbox = convertView.findViewByID(R.id.checkBoxID); } -- 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 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
Re: [android-developers] Connect to an avaible Network
14 марта 2012 г. 20:37 пользователь Robert Greenwalt rgreenw...@google.com написал: I think that addNetwork adds to a persistent database of networks. That's true. Calling it again with the same information may generate an error as it can't add twice. Not sure if that is the case. I believe the network will be added twice (or more). This can (and should be) avoided by calling WifiManager.getConfiguredNetworks and checking the list for a match. Back to the original code: the configuration object, I believe, is missing: wfc.allowedProtocols.set(WifiConfiguration.Protocol.WPA); After the network's been added and focused on by calling enableNetwork(, true), calling WifiManager.startScan will initiate the {re}connection process. -- Kostya If you then call enableNetwork using -1 as the networkID it will of course give an error. On Tue, Mar 13, 2012 at 11:57 AM, Endy Silveira endy.silve...@traceback.com.br wrote: Hello all, I googled it by days and got no success, I'm trying to connect to my WPA/WPA2 network when I put the Wifi On, it all over codes... If I was already connected to the network before I set the wifi off on the program, when I set the wifi on it connect, but I want to enter with the name of the network and the password... The code that I got error is this: wifiManager.setWifiEnabled(true); Toast.makeText(context, Off to On, Toast.LENGTH_LONG).show(); WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiConfiguration wc = new WifiConfiguration(); wc.SSID = \My Network\; wc.preSharedKey = \password\; wc.hiddenSSID = false; wc.status = WifiConfiguration.Status.ENABLED; wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP); wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP); wc.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); wc.allowedProtocols.set(WifiConfiguration.Protocol.RSN); int res = wifi.addNetwork(wc); Toast.makeText(context, add Network returned + res, Toast.LENGTH_LONG).show(); boolean b = wifi.enableNetwork(res, true); Toast.makeText(context, enableNetwork returned + b, Toast.LENGTH_LONG).show(); wifiManager.setWifiEnabled(true); I got -1 in the add Network and false in enableNetwork... Someone know why? Thanks in advance! Endy -- 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 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 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
Re: [android-developers] ICS and pop-up keyboard
Ok, well... I am correct in that the behavior was intended for Legacy devices. And that it doesn't work on my device. I guess it is device/manufacturer-dependent then on when that functionality was removed. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 13, 2012 at 11:15 PM, Zsolt Vasvari zvasv...@gmail.com wrote: You are incorrect. It works on a stock 2.3.6 Nexus One. On Wednesday, March 14, 2012 11:56:20 AM UTC+8, MagouyaWare wrote: I'm pretty sure that functionality was gone long before ICS... I have an LG G2x running Gingerbread and I just tested the long-press of the menu button... nothing happens. But I would expect that... That functionality was supported only for legacy purposes on older devices. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Tue, Mar 13, 2012 at 9:49 PM, Zsolt Vasvari zvasv...@gmail.comwrote: I know this is strictly not the right forum to ask this, but there are a lot of smart people on here who probably have an answer Pre-ICS, you could long-press the Menu button on the phone to bring up the soft keyboard. I used this behavior to allow filtering on list items by the user typing in a search term. (I know, not the best UI design). But, on ICS, I cannot find a way to bring up the soft-keyboard if not on a TextView. Is this functionality gone from ICS? -- 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://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 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
Re: [android-developers] Connect to an avaible Network
On Wed, Mar 14, 2012 at 10:10 AM, Kostya Vasilyev kmans...@gmail.comwrote: Calling it again with the same information may generate an error as it can't add twice. Not sure if that is the case. I believe the network will be added twice (or more). Thanks Kostya, I think you're right. It looks like underneath it uses addOrUpdateNetwork so acting on the same network again should not return an error. Sorry for the misinformation. R -- 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] Change Package name to new one
Hi I need to change the excising package name to my own package name. I am trying to rebuild the Soft Keyboard to our own language keyboard. Also is there any tutorials about developing a predictive input systems? Thank you Best Regards, Randil -- 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] Android: Dialogs have extra, ugly space on droid 3?
The first image is from a Galaxy Note, the second is from a Droid 3. Both of them produced from the below code. The dialog on the Droid 3 has a significant amount of extra, ugly space. This space is even uglier on more complex dialogs. Is there any way to prevent it? public void onCreate(Bundle bundle) { super.onCreate(bundle); TextView tv = new TextView(this); tv.setText(Hello!); Dialog dialog = new Dialog(this); dialog.setContentView(tv); dialog.setTitle(Hi!); dialog.show(); } http://i.stack.imgur.com/VKmVC.png http://i.stack.imgur.com/wNuM1.png -- 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