[android-developers] TabHost problem
How to set the image icon and text horizontal in the tab page ? How to set the tab page background not tabhost ? i read the source of android , not provide function, i want extends the tabhost, but the IndicatorStrategy interface of modify icon and text , is private please 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] ExpandableListAdapter problem
In my code , i used the ExpandableListAdapter. In the getChildView(), i want my child item have two textview in it. So i create a RelativeLayout viewGroup. i debug it but it crash. problem if return the RelativeLayout be crash. if i return a TextView no problem, may be can't return ViewGroup ??? i don't know ,please help me ,thanks Follow code : public class MyExpandableListAdapter extends BaseExpandableListAdapter { // Sample data set. children[i] contains the children (String[]) for groups[i]. public Object getChild(int groupPosition, int childPosition) { return app.childData.get(groupPosition).get(childPosition); //return children[groupPosition][childPosition]; } public long getChildId(int groupPosition, int childPosition) { return childPosition; } public int getChildrenCount(int groupPosition) { return app.childData.get(groupPosition).size(); } public TextView getGenericView() { // Layout parameters for the ExpandableListView AbsListView.LayoutParams lp = new AbsListView.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, 64); TextView textView = new TextView(CarteList.this); textView.setLayoutParams(lp); // Center the text vertically textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT); // Set the text starting position textView.setPadding(36, 0, 0, 0); return textView; } public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { RelativeLayout layout = new RelativeLayout(CarteList.this); layout.setLayoutParams(new ViewGroup.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, 64)); RelativeLayout.LayoutParams paramsPicture = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT); TextView textView1 = new TextView(CarteList.this); textView1.setLayoutParams(paramsPicture); textView1.setText(app.groupData.get(groupPosition).toString()); layout.addView(textView1); TextView textView2 = new TextView(CarteList.this); textView2.setLayoutParams(paramsPicture); textView2.setText(app.groupData.get(groupPosition).toString()); layout.addView(textView2); return layout; } public Object getGroup(int groupPosition) { return app.childData.get(groupPosition); } public int getGroupCount() { return app.childData.size(); } public long getGroupId(int groupPosition) { return groupPosition; } public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { TextView textView = getGenericView(); textView.setText(app.groupData.get(groupPosition).toString()); return textView; } public boolean isChildSelectable(int groupPosition, int childPosition) { return true; } public boolean hasStableIds() { return true; } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What's in raw data from PictureCallback of camera?
Hi David, I am inclined to deprecate that API entirely and replace it with hooks for native signal processing. Can you please elaborate on that? First of all I am using the existing APIs in my app and don't like the idea of things breaking through deprecation of the camera APIs that are in the official SDK 1.0. Secondly, *every* Android API *is* in most if not all cases already a hook to native processing - but a hook that is platform-neutral. I'd really hate to see everything move into JNI for instance, but I hope that is not what you meant. I also don't see how you cannot create a separate camera heap (4n MB reserved memory area for an n-megapixel camera) that one could communicate with and get image chunks from through Android APIs that *could* be upward compatible extensions of the existing camera callback APIs (even while these are ugly)? After all, there is no fundamental difference between communicating with a camera and communicating with an external memory block. For image processing purposes, communication can be line-by-line as a good trade- off between speed (a whole image line gets transferred per - slow - Android call), memory needs (never load an entire hi-res snapshot to the app's limited heap) and algorithmic needs (storing a couple of lines within the Android heap suffices for most filtering, feature detection and subsampling operations, although camera API *extensions* that further support this are welcome). Are there any image processing experts involved in the camera API decision making? No offense but the camera API for SDK 1.0 gives me the impression that things were - perhaps due to time pressure - thrown together without *any* background in (real-time) image processing as required for future augmented reality applications and location-based image processing. Regards On Feb 11, 5:27 am, Dave Sparks davidspa...@android.com wrote: Highly unlikely. Applications are restricted to a heap of 16MB. An 8MP image in RG888 will use 32MB. I am inclined to deprecate that API entirely and replace it with hooks for native signal processing. On Feb 10, 6:17 pm, gjs garyjamessi...@gmail.com wrote: Hi, I'm hoping that Android will supported this in future for RGB888 and (at least) 8mp images. I know this is a big ask, probably requiring much larger process heap size ( 16MB high speed bus/memory ) but there already is 8mp camera phones available on other platforms. And yes I know these phones do not yet support loading such large images into (java) application memory but I'm hoping the Android architecture can accommodate this in the not to distant future. Regards On Feb 10, 7:01 pm, Dave Sparks davidspa...@android.com wrote: On the G1, no data is returned - only a null pointer. The original intent was to return an uncompressed RGB565 frame, but this proved to be impractical. On Feb 9, 3:57 pm, Xster xyxyx...@gmail.com wrote: Hi, Our university is intending to use the Android as a platform for mobile image analysis. We're wondering what kind of information is returned in the raw format when android.hardware.Camera.takePicture() is called with a raw Camera.PictureCallback. I can't seem to find more information about it on thehttp://code.google.com/android/reference/android/hardware/Camera.Pict... page. Thanks, Xiao --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: is there a way to read the screen text
Text from your own app or any running app? I think much effort has been spent on preventing that one Android app can steal information from another running app unless both were designed to communicate with each other. You also cannot capture the screen bitmap for instance. For screen-reader-like purposes you would need hooks to lower-level native interfaces to tap strings before they are processed by the (graphical) rendering engines. You cannot do this in Android. Once you have the strings, speaking them is easy using the TTS-for-Android library from http://code.google.com/p/eyes-free/ Regards On Feb 11, 4:52 am, redmapleleaf redmaplel...@gmail.com wrote: well I was asking how one can pick up the text at any point on the screen as the user move his finger about the screen, not the speech generation. Once I could read the text into a buffer then the speech generation can come next. However at this point I am not quite sure if there is a way for me to pick up the text under the cursor. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Service permission and AndroidManifest.xml errors
I was having the same error message and didnt know what to do about it at first. The mistake was that I was extending the ListActivity, not just an Activity. On Feb 10, 2:04 pm, Android sunil.mahar...@lntinfotech.com wrote: Hi, Ihavecreated two .apk as client and server. My client Acticity wants to invoke the Service of my Server .apk. I used the AIDL and IPC mechanism to communicate betwwen the Client and server. My Client code was compiled fine but during Server compliation it was giving bunch of errors as : 02-10 17:40:22.310: WARN/dalvikvm(246): threadid=3: thread exiting with uncaught exception (group=0x40010e28) 02-10 17:40:22.310: ERROR/AndroidRuntime(246): Uncaught handler: thread main exiting due to uncaught exception 02-10 17:40:22.330: ERROR/AndroidRuntime(246): java.lang.RuntimeException: Unable to start activity ComponentInfo {oem.android.proj2/oem.android.proj2.RemoteServiceBinding}: java.lang.RuntimeException:YourcontentmusthaveaListViewwhoseidattributeis 'android.R.id.list' 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2140) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2156) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.os.Handler.dispatchMessage(Handler.java:88) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.os.Looper.loop(Looper.java:123) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.main(ActivityThread.java:3742) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at java.lang.reflect.Method.invokeNative(Native Method) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at java.lang.reflect.Method.invoke(Method.java:515) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at dalvik.system.NativeStart.main(Native Method) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): Caused by: java.lang.RuntimeException:YourcontentmusthaveaListViewwhoseidattributeis 'android.R.id.list' 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ListActivity.onContentChanged(ListActivity.java:236) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at com.android.internal.policy.impl.PhoneWindow.setContentView (PhoneWindow.java:230) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.Activity.setContentView(Activity.java:1569) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at oem.android.proj2.RemoteServiceBinding.onCreate (RemoteServiceBinding.java:35) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1122) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2103) = My AndroidManifest.xml file are as below: Server Manifest file: service android:name=.RemoteService android:label=@string/app_name android:exported=true android:enabled=true android:permission=oem.android.permission.READ_OWNER_DATA /service activity android:name=DisplayPage/activity Client Manifest file: uses-permission android:name=android.permission.READ_OWNER_DATA/ application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.RemoteServiceBinding android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application Can some plz help me to resolve the errors. To communicate between two normal .apks what permission should be prefered, for time being i am using android.permission.READ_OWNER_DATA, is that ok. -Kumar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] What will cause SQLiteQueryBuilder.query infinite loop?
to dear all Android developers, I'm dealing with database operation on Android recently. However, there has a problem troubles me that the query method in SQLiteQueryBuilder infinitely loops and has no return. The operation code is like below: // CODE section --// SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); qb.setTables(TABLE.NAME); qb.setProjectionMap(TABLE.ProjectionMap); qb.appendWhere(TABLE._ID + = + id + AND + TABLE.SURNAME + =' + surname + '); String orderBy = TABLE._ID + ASC; String[] projection = new String[] { TABLE._ID }; mDbHelper = new DatabaseHelper(mCtx); mDb = mDbHelper.getWritableDatabase(); Cursor c = qb.query(mDb, projection, null, null, null, null, orderBy); // CODE section --// However, it stuck in the query and never return back, and there has neither exceptions nor any error messages from the LogCat. Does there any mistake I make in my code? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to get current page content of WebView
I want to implement following scenario: 1. Browsing the web (using webkit.WebView) 2. After a page has finished loading, parse the content of web page. 3. if there are something wanted in the page content, then launch an new activity; otherwise continue to browse web. So I need to get web page content. I would be confusing if it's impossible? On Feb 11, 8:25 am, Mark Murphy mmur...@commonsware.com wrote: Tony wrote: Any idea? On Feb 11, 1:01 am, Guolong liuguolong...@gmail.com wrote: hello, It's easy to get current page's url and title of webkit.WebView. But I could not find way to get page content of WebView. Anybody could help me with this problem? I do not believe it is possible for arbitrary Web pages. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training in Sweden --http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] layout issue......??
Hi all I want to make a screen such that all time the data coming through database need to be fixed in pre-designed pattern, i mean i have designed a layout(the code is given below)and in this layout i want to fix the data that i getting from database and the data to be added in view should be increased automatically. through coding i can set the data from database to the desired position ...but how the no. of positions should be increased (these positions should be same as previous one which i have created in layout)... i dont want to implement the list view.. simple page is fine. can anyone help me out //CODE for xml ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/name android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMedium android:background = #99F0 android:layout_marginTop=30dip android:text =Date n Time. android:layout_centerHorizontal=true/ TableLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:id = @+id/TableLayout_1 android:layout_below = @+id/name android:layout_marginTop=10dip TableRow android:layout_marginRight=10dip ImageView android:id=@+id/image android:layout_marginLeft=10dip android:layout_marginTop=10dip android:layout_alignParentLeft=true android:layout_width=70dip android:layout_height=70dip / TextView android:id = @+id/textRightToImage android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMedium android:text = android:layout_marginLeft=10dip android:layout_marginTop=10dip android:layout_marginRight=20dip android:layout_width=220dip/ /TableRow /TableLayout /RelativeLayout //CODE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] API Diff Report Link returns 404 for Upgrading to SDK 1.1
The Link on APIDiff Report on upgrading to SDK 1.1 returns 404 http://developer.android.com/sdk/1.1_r1/upgrading.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: Automatic upgrade
To answer that definitively someone would need to reveal some of the inner workings of the markets update system. Al http://andappstore.com/ plusminus stoeps...@gmx.de wrote: Hi, any ideas if Veecheck will interfere with the Android-Market-Updater? Best Regards, plusminus On Feb 3, 12:13 pm, Al Sutton a...@funkyandroid.com wrote: http://www.tomgibara.com/android/veecheck/ Al. mat wrote: Anybody knows how to resolve this issue ?? Hi All, Can you provide some example code forautomaticupgradeof application? I have URL where the new version is hosted, so after the user start the application I'd like to download new version from given URL, reinstall and run the new version. Regards -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -- Sent from my Android phone with K-9. Please excuse my brevity. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multimedia buffering
I am still unable to play videos from rtsp server. I have initialised path variable in API Demo with rtsp://bfug.rtsp-youtube.l.google.com/ CkgLENy73wIaPwl9ka7Qc5R-0hMYDSANFEIJbXYtZ29vZ2xlSARSB3JlbGF0ZWRaDkNsaWNrVGh1bWJuYWlsYOXNzeO3wMKYfAw=/ 0/0/0/video.3gp. But still it is not playing this video. Can anybody provide any rtsp link(video on rtsp server), so that I can assign that value to path variable and it will work ? -AliBaba --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is VideoView Broken?
You can't play a resource file using VideoView by passing a pathname. The file doesn't exist; it's just a binary blob inside the APK file. If you create a content provider, you could pass a URI to setVideo(). I'm not entirely sure that will work because the video file might be compressed inside the APK. We exclude audio files from compression, but I don't video files are excluded because they don't make a lot of sense as a resource - they are too big. The simplest way to get this working is to copy the file to the SD card. You can either adb push the file to the SD card or UMS mount the SD card and copy it over from your host computer. Then modify your setVideo(path) to /sdcard/movie.mp4 (or whatever directory you put it in on the SD card). On Feb 10, 11:21 pm, Brendan raven...@gmail.com wrote: So I'm trying to do this: VideoView video_view = new VideoView(context); video_view.setVideoPath(res/raw/movie.mp4); video_view.setMediaController(new MediaController(context)); video_view.requestFocus(); video_view.start(); Seems simple, but even with video files that I've seen work in other video players on the phone, I keep getting the Sorry, this video cannot be played message. And this associated debug info: INFO/MediaPlayer-JNI(234): prepareAsync: surface=0x1a3ff0 (id=1) ERROR/MediaPlayer(234): Error (-4,0) DEBUG/VideoView(234): Error: -4,0 Any ideas as to what those errors mean or how I can fix this? If this is not how I should be using VideoView please let me know. I'd appreciate being sent in the right direction for how to get a local video file playing within a view. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: object serialization ???
thank you all :) you were right: the only solution is to remove my class from beeing an inner class. thanks a lot. greetings, darolla 2009/2/11 Mattaku Betsujin mattaku.betsu...@gmail.com: The problem is you're trying to serialize an inner class of SerialisiereAndroidActivity, which is not Serializable. To fix this, you can declar the inner class as public static class Serialisiere implements ^^^ - Mattaku On Tue, Feb 10, 2009 at 11:56 AM, dlawogus...@gmail.com dlawogus...@gmail.com wrote: Hello darolla, I have not tested your code to be certain about this but I would say u would actually need to instantiate your object like so instead of passing the static reference because the object u create in your code contains states (your instance vars) but the static reference does not. Serialisiere s = new Serialisirer(1,2,3) oos.writeObject(s) On Feb 10, 5:50 am, Chechy che...@gmail.com wrote: Hi, I've tried several ways but the only way I succeeded to serialize something is to serialize each member of class Serialisiere: public void writeIt(String filename) throws IOException { FileOutputStream fos = openFileOutput(filename, MODE_WORLD_WRITEABLE); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeInt(this.i); oos.writeDouble(this.d); oos.writeChars(this.s); oos.close(); fos.close(); } I'm not sure if this answers your question. Best Regards: Chechy On Feb 10, 11:55 am, DaRolla netzprofi.ma...@googlemail.com wrote: hi, I get nuts on this, who can help? package de.test; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.Serializable; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class SerialisiereAndroidActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { Serialisiere pi = new Serialisiere(3, Math.PI, pi); ((TextView) findViewById(R.id.tv1)).setText(Serialisiere:+ pi.toString()); pi.writeIt(pi.ser); } catch( Exception e) { Log.d( SerialisiereAndroidActivity, e.toString() ); } } public class Serialisiere implements Serializable { private static final long serialVersionUID = -3922493985071195239L; private int i; private double d; private String s; public Serialisiere(int i, double d, String s) { this.i = i; this.d = d; this.s = s; } public void writeIt(String filename) throws IOException { FileOutputStream fos = openFileOutput(filename, MODE_WORLD_WRITEABLE); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(Serialisiere.this); oos.close(); fos.close(); } @Override public String toString() { return i= + i + d= + d + s= + s; } } } the problem is: oos.writeObject(Serialisiere.this); this throws an java.io.NotSerializableException. who can help me on this? greetings, darolla --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Accelerometer frequency
Hey, I wanted to get the frequency of accelerometer output. How many readings can I get per second? And to what precision do I get? 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] Re: Automatic upgrade
I think it's pretty unlikely that the veecheck library could interfere. The market is backed by a remote database of published applications, and (I assume) a local database of previously installed applications. I guess that the market will identify the availability of application updates by comparing these two datasets. This is quite independent from veecheck which polls and filters an XML document obtained over HTTP - though its operation ultimately depends on exactly how it's employed: it can be used to direct users to download the latest version from the Android Market or from external sites (such as andappstore). Even in this latter case, after a download from an external site, subsequent updates can continue to be installed from the market (I can confirm that this works for me). At worst, I anticipate, a user may receive two notifications (or more if updating apps are installed, eg. OIUpdate). The situation for paid applications is of course uncertain at this point, but I would expect that a paid application installed from the Android Market will be restricted to updates originating from the market. But I can't see any reason why veecheck couldn't be used to inform users of updates at the market. Having said that, I think it's almost certain that the Android Market will evolve to provide a robust and effective update notification system for the applications it hosts. Tom 2009/2/10 plusminus stoeps...@gmx.de Hi, any ideas if Veecheck will interfere with the Android-Market-Updater? Best Regards, plusminus On Feb 3, 12:13 pm, Al Sutton a...@funkyandroid.com wrote: http://www.tomgibara.com/android/veecheck/ Al. mat wrote: Anybody knows how to resolve this issue ?? Hi All, Can you provide some example code forautomaticupgradeof application? I have URL where the new version is hosted, so after the user start the application I'd like to download new version from given URL, reinstall and run the new version. Regards -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multimedia buffering
Alibaba, I am also facing the same error. in the MediaPlayerDemo_Video.java file given in the api demos, i gave the url stream path as rtsp:// bfug.rtsp-youtube.l.google.com/CkYLENy73wIaPQkcSEPa1Fc6nRMYDSANFEIJbXYtZ29vZ2xlSARSBWluZGV4Wg5DbGlja1RodW1ibmFpbGCqqamFtdjqsQkM/0/0/0/video.3gp then when i executed the mediaplayer, it does not play video it got crashed. when i try to play youtube video file using browser from m.youtube.com, it starts to load video, but does not play it. it gives Error(-1,0). Thanks and Regards, HarishKumar.V On Wed, Feb 11, 2009 at 3:12 PM, AliBaba kanul1...@gmail.com wrote: I am still unable to play videos from rtsp server. I have initialised path variable in API Demo with rtsp://bfug.rtsp-youtube.l.google.com/ CkgLENy73wIaPwl9ka7Qc5R-0hMYDSANFEIJbXYtZ29vZ2xlSARSB3JlbGF0ZWRaDkNsaWNrVGh1bWJuYWlsYOXNzeO3wMKYfAw=/ 0/0/0/video.3gphttp://bfug.rtsp-youtube.l.google.com/%0ACkgLENy73wIaPwl9ka7Qc5R-0hMYDSANFEIJbXYtZ29vZ2xlSARSB3JlbGF0ZWRaDkNsaWNrVGh1bWJuYWlsYOXNzeO3wMKYfAw=/%0A0/0/0/video.3gp . But still it is not playing this video. Can anybody provide any rtsp link(video on rtsp server), so that I can assign that value to path variable and it will work ? -AliBaba --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Reg playing youtube video in android
Dear All, playing youtube video from m.youtube.com from browser does not work in the emulator, it loads but does not play the video, but will this work i try the same in the device. Thanks and Regards, HarishKumar On Tue, Feb 10, 2009 at 5:52 PM, Harishkumar V harishpres...@gmail.comwrote: Dave, But will this work on real device, if i try to run m.youtube.com from browser. Thanks and Regards, HarishKumar On Tue, Feb 10, 2009 at 1:28 PM, Dave Sparks davidspa...@android.comwrote: I'm pretty sure this is due to the way the emulator handles UDP packets. There is an outstanding bug about this, but no one has had time to work on it. On Feb 9, 10:59 pm, Harishkumar V harishpres...@gmail.com wrote: Michael, using browser running in the android in emulator mode, i launchedhttp:// m.youtube.com. it opened up a page contaning list of video files. when i click any one of them, it starts to load video, but finally it fails with the message, Sorry, this video cannot be played. using adb logcat, i got the log messages as, I/ActivityManager( 50): Starting activity: Intent { action=android.intent.action.VIEW categories={android.intent.category.BROWSABLE} data=rtsp:// bfug.rtsp-youtube.l.google.com/CkYLENy73wIaPQkcSEPa1Fc6nRMYDSANFEIJbXYtZ29vZ2xlSARSBWluZGV4Wg5DbGlja1RodW1ibmFpbGCqqamFtdjqsQkM/0/0/0/video.3gpcomp={c om.android.music/com.android.music.MovieView}} W/SensorService( 50): could not enable sensor 2 I/MediaPlayer-JNI( 189): prepareAsync: surface=0x1ae340 (id=1) I/ActivityManager( 50): Displayed activity com.android.music/.MovieView: 418 ms D/dalvikvm( 166): GC freed 3935 objects / 290168 bytes in 75ms E/MediaPlayer( 189): Error (-1,0) D/VideoView( 189): Error: -1,0 W/PlayerDriver( 25): PVMFInfoErrorHandlingComplete in the shell, when i do ps command, app_8189 2491620 13156 afe0c824 S com.android.music:MovieView is appearing. how the complete flow works? who is responsible for launching the video stream, is MovieView consists of MediaPlayer and VideoView. is any format changes in m.youtube.com video, any way to clearly see the Error(-1,0) means. Thanks and Regards, HarishKumar.V On Fri, Jan 30, 2009 at 8:15 PM, kolby kolbys...@gmail.com wrote: Here is the sample code to launch the view intent: Uri uri = Uri.parse(url); // check if others handle this url Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.addCategory(Intent.CATEGORY_BROWSABLE); try { if (startActivityIfNeeded(intent, -1)) { // success } } catch (ActivityNotFoundException ex) { // fail } The rtsp link doesn't seem to be recognized by anything on the emulator. Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get current page content of WebView
You could use the CacheManager to do this. But I think there's not a more direct API currently - it'd be nice if WebView provided direct access to the DOM but that's quite a complex binding to do. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Views
Ok, so I'm having trouble with this. What I'm trying to do is design a web-based chat interface using 2 webviews (one for the message display and one to send messages). I have the code for everything ready and it works, I just need to figure out the whole layout thing. Here is the code I have: ?xml version=1.0 encoding=utf-8? AbsoluteLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:background=#fff WebView android:id=@+id/chatview android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=4 / WebView android:id=@+id/sendview android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 / /AbsoluteLayout The program runs in landscape mode. The problems I am running into are: 1) The chatview webview is showing up at the bottom instead of the top? 2) When I hit the back button the app crashes. I'm guessing this is because the interface isn't designed right, but I could be wrong. Bobbie On Feb 10, 9:52 am, Ludwig ludwigbrinckm...@gmail.com wrote: 2009/2/10 Bobbie bobbie.st...@gmail.com I have a couple different questions: 1) Does Google think there will only be one screen size on Android phones? The reason I ask is because I haven't been able to find anything on variable layouts in Android? I would like to create a layout with 2 webviews, one 80% of screen height and the other 20%. Is this even possible, or do I need to assign the height of each as a static px value? Android caters for different screen sizes already. The Openmoko Freerunner runs Android quite happily on a larger resolution than the G1. If you edit the skins for your emulator (they are just text files) it is quite easy to simulate larger (or smaller) screen sizes for development. Pretty much all layouts are 'variable', apart from the fixed ones: a ListView will have more lines on a larger screen etc. What you are after is the android:layout_weight=x attribute for your view elements. In your case you want, probably inside a LinearLayout, two elements, one with a weight of 4, the other 1. The weights are relative, so the first will get 80% of screen height, the other 20. HTH Ludwig 2) How do I preserve the data in my views when someone switches between landscape and portrait? I doubt it's hard, but I've not been able to find it. Can someone post an example? Thanks everyone! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multimedia buffering
Yes Harish, I am also wondering why it is not playing streaming video even though We are using the standard code of API Demo. I found below link of video streaming application, but from this link also source code has been removed. ttp://davanum.wordpress.com/2007/12/29/android-videomusic-player- sample-from-local-disk-as-well-as-remote-urls/ As per suggestions in earlier responses I am trying to use rstp link, but failing in that case too. Can some one please bring out any working rstp link or any work-around or solution that can be used to play streaming video. -AliBaba --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] In Client-Server APK, during Client APK compilation it is giving errors:
Hi... I have created two different APK as Client and Server. First i ran the Server apk it has one service and it was in running state. Then i started the Client apk which uses the IPC and AIDL to commucate with Server, but during compilation of Client apk it was giving the below errors, has any one experienced this type of error, if yes then how to root cause those errors: 02-11 16:43:59.991: DEBUG/dalvikvm(849): GC freed 631 objects / 42424 bytes in 50ms 02-11 16:44:32.400: DEBUG/GpsLocationProvider(56): NetworkThread out of wake loop 02-11 16:44:32.400: DEBUG/GpsLocationProvider(56): Requesting time from NTP server pool.ntp.org 02-11 16:44:42.421: DEBUG/SntpClient(56): request time failed: java.net.SocketTimeoutException: The operation timed out 02-11 16:44:42.421: DEBUG/GpsLocationProvider(56): requestTime failed 02-11 16:44:42.421: DEBUG/GpsLocationProvider(56): NetworkThread wait for 30ms Thanks -Kumar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Automatic upgrade
I can see the potential for a problem if developers publish Market and non-Market versions of their apps to comply with Market TCs (e.g. with different billing/licensing code). If the Market updater tries to update any app on the device that it knows exists in Market then it could result in the Market version overwriting a non-Market version and the user left with a non-working app (because they bought via the non-Market apps billing system). Similarly if the developer does a shoddy job when integrating veecheck it could update a market version to a non-market version, but this is to do with the integration and not veecheck itself. But I guess the only thing we can do is wait and see what Google roll out. Al. Tom Gibara wrote: I think it's pretty unlikely that the veecheck library could interfere. The market is backed by a remote database of published applications, and (I assume) a local database of previously installed applications. I guess that the market will identify the availability of application updates by comparing these two datasets. This is quite independent from veecheck which polls and filters an XML document obtained over HTTP - though its operation ultimately depends on exactly how it's employed: it can be used to direct users to download the latest version from the Android Market or from external sites (such as andappstore). Even in this latter case, after a download from an external site, subsequent updates can continue to be installed from the market (I can confirm that this works for me). At worst, I anticipate, a user may receive two notifications (or more if updating apps are installed, eg. OIUpdate). The situation for paid applications is of course uncertain at this point, but I would expect that a paid application installed from the Android Market will be restricted to updates originating from the market. But I can't see any reason why veecheck couldn't be used to inform users of updates at the market. Having said that, I think it's almost certain that the Android Market will evolve to provide a robust and effective update notification system for the applications it hosts. Tom 2009/2/10 plusminus stoeps...@gmx.de mailto:stoeps...@gmx.de Hi, any ideas if Veecheck will interfere with the Android-Market-Updater? Best Regards, plusminus On Feb 3, 12:13 pm, Al Sutton a...@funkyandroid.com mailto:a...@funkyandroid.com wrote: http://www.tomgibara.com/android/veecheck/ Al. mat wrote: Anybody knows how to resolve this issue ?? Hi All, Can you provide some example code forautomaticupgradeof application? I have URL where the new version is hosted, so after the user start the application I'd like to download new version from given URL, reinstall and run the new version. Regards -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Equal View heights in LinearLayout
Hello :) I am building a form where the city field has a locate-button besides it. Unfortunately, they do not have the same height by default (and I do not know the height in advance). I would like to have the ImageButton have the same height as the AutoCompleteTextView: LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=horizontal AutoCompleteTextView android:id=@+id/cityField android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 android:singleLine=true android:selectAllOnFocus=true/ ImageButton android:id=@+id/locateButton android:layout_width=wrap_content android:layout_height=wrap_content android:src=@android:drawable/ic_menu_mylocation/ /LinearLayout I already tried a RelativeLayout - and it is possible to align the height of both views, but unfortunately I cannot assign a layout_weight attribute to make the TextView consume all space. I'm stuck now - can anybody help ? 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: Automatic upgrade
If you restrict yourself to building with eclipse, that's an outstanding problem. Essentially, if you want to maintain an independently installable 'version' of an application, it needs to be published with a different package name by adjusting the manifest. Unfortunately the package for R.java defaults to that specified in the manifest and changing the package in the manifest automatically changes the location of R.java causing breakage. This can be remedied using aapt with the -J flag, but the eclipse plugin doesn't expose it. In short, different application deployments need different packages, but the eclipse plugin isn't quite up to it yet. Tom. 2009/2/11 Al Sutton a...@funkyandroid.com I can see the potential for a problem if developers publish Market and non-Market versions of their apps to comply with Market TCs (e.g. with different billing/licensing code). If the Market updater tries to update any app on the device that it knows exists in Market then it could result in the Market version overwriting a non-Market version and the user left with a non-working app (because they bought via the non-Market apps billing system). Similarly if the developer does a shoddy job when integrating veecheck it could update a market version to a non-market version, but this is to do with the integration and not veecheck itself. But I guess the only thing we can do is wait and see what Google roll out. Al. Tom Gibara wrote: I think it's pretty unlikely that the veecheck library could interfere. The market is backed by a remote database of published applications, and (I assume) a local database of previously installed applications. I guess that the market will identify the availability of application updates by comparing these two datasets. This is quite independent from veecheck which polls and filters an XML document obtained over HTTP - though its operation ultimately depends on exactly how it's employed: it can be used to direct users to download the latest version from the Android Market or from external sites (such as andappstore). Even in this latter case, after a download from an external site, subsequent updates can continue to be installed from the market (I can confirm that this works for me). At worst, I anticipate, a user may receive two notifications (or more if updating apps are installed, eg. OIUpdate). The situation for paid applications is of course uncertain at this point, but I would expect that a paid application installed from the Android Market will be restricted to updates originating from the market. But I can't see any reason why veecheck couldn't be used to inform users of updates at the market. Having said that, I think it's almost certain that the Android Market will evolve to provide a robust and effective update notification system for the applications it hosts. Tom 2009/2/10 plusminus stoeps...@gmx.de mailto:stoeps...@gmx.de Hi, any ideas if Veecheck will interfere with the Android-Market-Updater? Best Regards, plusminus On Feb 3, 12:13 pm, Al Sutton a...@funkyandroid.com mailto:a...@funkyandroid.com wrote: http://www.tomgibara.com/android/veecheck/ Al. mat wrote: Anybody knows how to resolve this issue ?? Hi All, Can you provide some example code forautomaticupgradeof application? I have URL where the new version is hosted, so after the user start the application I'd like to download new version from given URL, reinstall and run the new version. Regards -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What's in raw data from PictureCallback of camera?
Thank you David, I feel relieved to hear that. :-) Rather than trying to do all your image processing in Java, wouldn't you prefer to have built-in native signal processing kernels that are optimized for the platform? Yes, of course. One can parameterize and wrap under an API a number of useful low-level image (and audio) operations, such as various filtering operations, edge detection, corner detection, segmentation, convolution and so on. That is certainly very nice to have, but not enough. I would want to implement my own pixel-level (and audio-byte- level) processing algorithms that do not fit within the pre-canned categories, while benefiting from the platform and CPU independence of Android (no JNI if I can avoid it). It would be purely computational code with loops and conditional branches, operating on arrays, array elements and scalars. At that level, C code (minus any pointering) and Java code actually looks almost the same. No real need for any fancy data structures etc at *that* level that then covers the expensive parts of the processing, so I feel that a simple, light-weight, targeted JIT compiler could come a long way to meeting all these needs: I really would not mind if it would only compile a (computational) subset of Java, and it may leave code optimizations to the developer by compiling rather straightforwardly. (Cannot help being reminded of FORTRAN-77 on old IBM mainframes getting compiled almost 1-to-1 to easy-to-read machine code.) So perhaps rather than a built-in native signal processing *kernel* I am here thinking of a built-in native signal processing (JIT) *compiler*. ;-) Regards On Feb 11, 11:03 am, Dave Sparks davidspa...@android.com wrote: I'm talking about deprecating the raw picture callback that has never worked. It won't affect any existing applications. As for the camera API in SDK 1.0: It was never intended for signal processing. It was intended only for taking snapshots. It just happens that creative people like yourself have found other uses for it. I certainly don't want to break your application. I do want to give you a better API in the future. Rather than trying to do all your image processing in Java, wouldn't you prefer to have built-in native signal processing kernels that are optimized for the platform? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Alarm Clock Broadcasts?
Does the Alarm Clock broadcast any intents? I would like to be able to have my application automatically launch after a person's alarm clock goes off, and they press dismiss (rather than sleep). I assume that would require a receiver looking for a broadcast of some kind. Brenton --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 the first frame of a video file ?
how to get the first frame of a video file ? Are there such APIs in OPENCORE? 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] Re: Building internal code into SDK
NFSpeedypur wrote: I am developing code for a new android project, on custom hardware, and I want to build a testing SDK. You will probably have better luck getting answers over on one of the lists aimed at firmware development: http://source.android.com/discuss -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Launching Activity from Overlay onTap
This works for me just fine. I want to launch the browser on a URL that's associated with where they tapped: container.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(uri))); Works fine. So the problem must be with finding your activity. -T Thanks Tim! Your words helped me push on and I finally found out where I was going wrong. I had been passing the context to my MyOverlay class incorrectly as getApplicationContext() instead of just 'this' when I declared a new MyOverlay. When I changed that it started 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 -~--~~~~--~~--~--~---
[android-developers] how to count time in android
how to count time in android, e.g player start the game how t count time from start game to end game, I am what r classes to set time and count. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Understanding issue with RemoteService example in Android ApiDemos
Hi , I have few understanding issues regarding the Remote service, could you plz help me out. I have gone through the RemoteService example in Android ApiDemos, but i am not getting which file to run for Client site and which one at Server site. These are the list of files used for RemoteService RemoteService.java RemoteServiceBinding.java RemoteServiceController.java IRemoteService.aidl IRemoteServiceCallback.aidl ISecondary.aidl As per my knowledge the Server .APK should use the RemoteService.java, IRemoteService.aidl ,IRemoteServiceCallback.aidl, ISecondary.aidl. Client .APK shoud use RemoteServiceBinding.java, RemoteServiceController.java, IRemoteService.aidl ,IRemoteServiceCallback.aidl, ISecondary.aidl. Not sure whether my understanding is correct, plz suggest. I am not getting exactly the flow to start the Remote Service, i mean how to start the Client APK and Server APK. Is it first i have to run the Server APK and then will start the Client APK. The AIDL would be used to communicate between the Client and Server, but i didn't able to get where exactly the Client triggers to start the service in Server site. Could you please provide a detail explanation to proceed, that would be really helpful for me. -Kumar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: I am getting NullPointer exception for my app when switching from potrait mode to landscape mode and vice versa
manoj wrote: Hi friends, I have written a small example which displays the photos from the server. Its working fine when the device is in one of the mode (landscape of potrait ). But if I switch to landscape to potrait or potrait to landscape while downloading the photos from the server, I am getting NullPointerException, showing with androidRunTimeException. Without the source code for the area where the exception is occurring, and knowing which line is the one raising the exception, it is rather difficult to give you a precise solution. Bear in mind that, on a rotation like this, by default your existing activity is destroyed and a new one created. Here is a series of blog posts on handling rotation events that may help you understand what is going on: http://androidguys.com/?s=rotational+forces -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ListView set default checked state
I am also facing the same problem Steve can u please tell us how u resolve the problem..as u said in ur previous post. Its urgent... Regards Bharat. On Fri, Nov 21, 2008 at 10:11 AM, songs coca.c...@gmail.com wrote: I ended up fixing this by moving my initialization loop from onCreate to onResume and that worked. On Nov 19, 3:03 pm, Armando armando.l...@gmail.com wrote: I achieved this by creating a custom Adapter. All you need to do is to create a new class that extends the BaseAdapter abstract class, then for the implementation you can take a look at the following sample from the API demos: http://code.google.com/android/samples/ApiDemos/src/com/example/andro... that example will show you how to set view elements in a custom list item. For this to work with the layout you're using you need to modify the getView method. I'll copy mine so you can get the idea. public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { convertView = mInflater.inflate( android.R.layout.simple_list_item_multiple_choice, null); holder = new ViewHolder(); holder.checkbox = (CheckedTextView) convertView.findViewById (android.R.id.text1); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } holder.checkbox.setText(tasks.get(position).getName()); holder.checkbox.setChecked(tasks.get(position).isCompleted()); return convertView; } static class ViewHolder { CheckedTextView checkbox; } Hope this helps Armando On Nov 9, 5:30 am, songs coca.c...@gmail.com wrote: Hi, I've got a multi-choice checkbox list being populated from a database using the code below, but I can't figure out how to set the initial checked state based on one of other columns. Anyone know how to do this? == startManagingCursor(c); setListAdapter(new SimpleCursorAdapter(this, android.R.layout.simple_list_item_multiple_choice, c, new String[] {title}, new int[] {android.R.id.text1})); == Thanks, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Audio with MediaRecorder on G1
Hi, I've written a little program (see below) to record audio using MediaRecorder. While everything works fine in the emulator (SDK1r2), the program does not work on the real phone (HTC G1). On the phone, after pressing the start button, the audio file is created, but no content is written to it (i.e. the file size remains 0). Also, no exception is shown in logcat, and no AudioStreamInGeneric events are generated (such events are generated when running the program on the emulator). Is there maybe a setting on the phone that I have to turn on (or off)? Or am I missing something else? I've set the permission to record audio in the android-manifest.xml file using uses-permission android:name=android.permission.RECORD_AUDIO/uses- permission Thanks for any help! Michael -- My program code: package ch.ethz.dcg.mictest; import android.app.Activity; import android.media.MediaRecorder; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; public class MicTest extends Activity { private final static String TAG = MicTest.class.getSimpleName(); private MediaRecorder recorder; private Button button; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); recorder = new MediaRecorder(); button = (Button)findViewById(R.id.button); button.setText(start); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { buttonClicked(); } }); } private void buttonClicked() { if (button.getText().equals(start)) { try { recorder = new MediaRecorder(); String path = /sdcard/test.3gpp; recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setOutputFile(path); recorder.prepare(); recorder.start(); button.setText(stop); } catch (Exception e) { Log.w(TAG, e); } } else { try { recorder.stop(); recorder.release(); // Now the object cannot be reused button.setEnabled(false); } catch (Exception e) { Log.w(TAG, e); } } } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get the first frame of a video file ?
Opencore has a frame and metadata utility, and there is also an API as android.media.MediaMetadataRetriever.captureFrame() in Java layer, but it might not be available in public SDK. On Wed, Feb 11, 2009 at 8:49 PM, trust_chen chen trustc...@gmail.comwrote: how to get the first frame of a video file ? Are there such APIs in OPENCORE? 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] Re: Should cursors used in autocomplete adapters be managed or not?
Thanks for the quick response! That's what I also thought, but then I get these exceptions. I glanced at the Android sources, and here is what I *think* is going on if I use managed cursors: - Cursor returned by FilterQueryProvider#runQuery() is passed on to SimpleQueryAdapter#changeCursor() - changeCursor() calls close() on the *previous* cursor (which is also managed) - However, this is not reflected in any way in Activity#mManagedCursors (mReleased is still false) - If the activity is paused, then Activity#performStop() deactivates all managed cursors and sets them to be requeried on resume - When the activity resumes, Activity#performRestart() tries to requery those closed cursors and the application dies As far as I can tell, there is no hook in FilterQueryProvider (or elsewhere), where I can call Activity#stopManagingCursor() on the old cursor to avoid this. Also, it seems there is no way to iterate over the managed cursors in onPause() to perform a post-mortem cleanup (no accessor for Activity#mManagedCursors). Or am I missing something? Thanks, Spiros On Feb 10, 7:17 pm, Romain Guy romain...@google.com wrote: It's up to you. If you don't use managed cursors, you will have to close/query them yourself when the activity is destroyed/created/stopped, etc. On Tue, Feb 10, 2009 at 4:14 PM, Spiros spapa...@gmail.com wrote: Hi, I'm using an autocomplete box, with suggestions provided by a SimpleQueryAdapter, almost identical to the code in this thread: http://groups.google.com/group/android-developers/browse_thread/threa... Not sure if relevant, but only difference I see is that, both in the adapter constructor, as well as in runQuery(), I use a cursor returned by SQLiteDatabase#query() obtained via an SQLiteOpenHelper instance. Should I be using Activity#startManagingCursor() on these cursors or not? If I don't use managed cursors, then I get leak found warnings (database was created [sic] but never closed). If I do then, if the application pauses (e.g., incoming call) and then resumes, I get an unhandled exception (attempted to requery closed cursor thrown by Activity#performRestart(), in Activity.java: -- SDK 1.0_r2, btw). What am I missing? Thanks! Spiros -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Get keycode of letter
Hi, is there any method to let you get the keycode for a keyboard letter. E.g. public int getKeyCode(char letter) {...}? I had a look but can't find it and I can't find a way to make Autocomplete start filtering from predefined input in the box, so I'm emulating key inputs to make it do this. thanks for any 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 -~--~~~~--~~--~--~---
[android-developers] Re: Error on AndroidManifest.xml..
I have the same problem on my current project: Code that is perfectly valid reports the above error. I first thought it to be some kind of eclipse integration bug - but if you state, you have this problem on a remote machine (which you probably do not run eclipse on), I am pretty sure this is a bug in the SDK. My temporary solution is: just insert some blank lines, a comment or something equivalent. The code won't report bugs thereafter (if you're lucky). Sometimes it even helps to do a clean build. But I find the frequency of the error rising with the amount of XML in my project. This is really annoying and frustrating :(. Especially if you're designing in XML - today I spent about 25% of my time with this bug... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Keep Screen On Change Orientation
Hi - After some help with this. I am making an Android app which is currently coming along nicely - I've hit upon a couple of stumbling blocks. 1) How do I stop the screen from going dim/off and the phone locking while the application is running? 2) Can I force the phone to enter landscape mode on running my application? Thanks, Andrew :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Using the Accelerometer
SurfaceView that implements a SensorListener has an onSensorChanged here is the full code, I tested it out and works great http://www.anddev.org/2d_tutorial-t3120.html On Feb 10, 7:00 pm, naxtek gnax...@gmail.com wrote: Hi everyone, I'm a software engineering student and I've just bought a T-Mobile G1 to have a play with :) I'm wanting to write an app that will untilise the Accelerometer but I only seem to be able to read orientation values from it. Heres my code: package naxtek.app2; import android.app.Activity; import android.hardware.SensorListener; import android.hardware.SensorManager; import android.os.Bundle; import android.view.ViewGroup; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; public class HelloWorld extends Activity implements SensorListener { /** Called when the activity is first created. */ LinearLayout vg; TextView tv; private SensorManager sensorManager; �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); tv = new TextView(this); vg = new LinearLayout(this); vg.addView(tv); setContentView(vg); sensorManager = (SensorManager) getSystemService (SENSOR_SERVICE); sensorManager.registerListener (this,SensorManager.SENSOR_ACCELEROMETER, SensorManager.SENSOR_DELAY_GAME); } public void onAccuracyChanged(int sensor, int accuracy) { // TODO Auto-generated method stub } public void onSensorChanged(int sensor, float[] values) { // TODO Auto-generated method stub tv.setText(1: .concat(Float.toString(values[0])) .concat(\n2: .concat(Float.toString(values[1]))) .concat(\n3: .concat(Float.toString(values[2]))) .concat(\n4: .concat(Float.toString(values[3]))) .concat(\n5: .concat(Float.toString(values[4]))) .concat(\n6: .concat(Float.toString(values[5]))) ); } } The app runs and works, but all the float values in the array are orientation based readings. They are nothing to do with acceleration or G-Forces. Can anyone give me any pointers as to what to do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Best practises to have more than one version of an app in the market?
Hi, any idea how to go about having a free version of an application in the market and a paid version also? Is it advisable to use the same package name? Different package names would mean code changes just for the sake of the name. Using the same package name, if at all allowed by the market, would mean that queries to the market would show both versions. That would be confusing if the installed app shows that there is an update, but for both versions?! Two branches in the repository and merging the restrictions of the free edition into the branch of the free edition? How do you guys are doing it? Cheers, Mariano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HELP! View layout issue
android:layout_weight is your friend here.This is a simple example with two views each occupying half the screen: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.yunnanexplorer.android.gps.sats.SatelliteSkyView android:id=@+id/skyview android:layout_width=fill_parent android:layout_height=0px android:layout_weight=2 / com.yunnanexplorer.android.gps.sats.SatelliteSignalView android:id=@+id/signalview android:layout_width=fill_parent android:layout_height=0px android:layout_weight=1 / /LinearLayout The weights add up and the screen is then divided according to the relative weight a view claims. HTH Ludwig 2009/2/8 Xin Zhao uszhao...@gmail.com Hey guys, I am trying to define a view with the following requirements: 1. the view should occupy the entire screen, except the notification area (the top small bar) 2. The view should be even split into three parts, the top and bottom are two huge buttons, and the middle is a scrollable list. Note: no matter how many items in the list, it should only take 1/3 of view space. I created the following layout xml, but it has dimension hard coded, which is obviously undesired. What's the right way to do this? Thanks in advance! Xin My code (obviously not desired): --- TableLayout android:id=@+id/widget146 android:layout_width=320px android:layout_height=480px android:orientation=vertical xmlns:android=http://schemas.android.com/apk/res/android; TableRow android:id=@+id/widget147 android:layout_width=fill_parent android:layout_height=116px android:orientation=horizontal Button android:id=@+id/favorite_card android:text=@string/favorite_card android:keepScreenOn=true android:layout_width=fill_parent android:layout_height=110px android:textSize=45px/ /TableRow TableRow android:id=@+id/widget149 android:layout_width=fill_parent android:layout_height=180px android:orientation=horizontal ScrollView android:id=@+id/ScrollView_CardSelector android:layout_width=fill_parent android:layout_height=180px android:scrollbars=none LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=180px ListView android:id=@android:id/list android:typeface=sans android:textSize=20sp android:layout_width=fill_parent android:layout_height=180px android:animationCache=true/ /LinearLayout /ScrollView /TableRow TableRow android:id=@+id/widget151 android:layout_width=fill_parent android:layout_height=116px android:orientation=horizontal Button android:id=@+id/direct_call android:text=@string/direct_call android:keepScreenOn=true android:layout_width=fill_parent android:layout_height=110px android:textSize=45px/ /TableRow /TableLayout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Equal View heights in LinearLayout
It's pretty easy. Either keep your LinearLayout and give one view a height of wrap_content and the other one a height of fill_parent. You can also switch to RelativeLayout and align the second view to the top *and* bottom of the first view. On Wed, Feb 11, 2009 at 4:04 AM, Chronos g358279012044...@gmail.com wrote: Hello :) I am building a form where the city field has a locate-button besides it. Unfortunately, they do not have the same height by default (and I do not know the height in advance). I would like to have the ImageButton have the same height as the AutoCompleteTextView: LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=horizontal AutoCompleteTextView android:id=@+id/cityField android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 android:singleLine=true android:selectAllOnFocus=true/ ImageButton android:id=@+id/locateButton android:layout_width=wrap_content android:layout_height=wrap_content android:src=@android:drawable/ic_menu_mylocation/ /LinearLayout I already tried a RelativeLayout - and it is possible to align the height of both views, but unfortunately I cannot assign a layout_weight attribute to make the TextView consume all space. I'm stuck now - can anybody help ? Thx -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 count time in android
I used the standarad Java classes, works fine. On Feb 11, 6:29 am, jj jagtap...@gmail.com wrote: how to count time in android, e.g player start the game how t count time from start game to end game, I am what r classes to set time and count. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Sound Quality?
Hello, Is anyone else experiencing poor playback quality on files recorded with MediaRecorder? Is there a way to improve this? 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] Install Failed because of Insufficient storage? I got plenty, what gives?
I tried to install my 10 MB program (which I successfully installed yesterday) on my Dev Phone. I used the command: adb install (product name) It comes back with this error: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] I removed the original program from the Settings, I have PLENTY of storage space, what gives? How can I install this program? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] GPS accuracy problems
Hi, I'm writing a mapping application. In simple terms, it sends some info about the user's current location to a server when the user clicks on a button. I need the location to be absolutely correct, and when I first started to implement LocationListener, I found that it often wasn't. So I've used location.getAccuracy() to check the GPS accuracy, and warn the user - without submitting the data - if the location isn't accurate enough. The code is below. I've been trying the app outside and find that the accuracy is often 32m, 64m or even higher, even after 20 or 30 seconds. This is in central London, in full view of the sky, on a clear day! I need it to be below 10m. At the same time, if I open the Maps application while standing in the same spot, it shows my GPS location as a blue spot on the map - suggesting the listener in Maps has perfect accuracy. So what is the problem? Have I implemented the listener/check in the wrong way (which feels like the likely explanation), or is it that GPS in Android isn't good enough to write mapping applications? Does anyone else have experience of this? Best, Anna -- //cut-down version of code public class GPSTest extends Activity { /** Called when the activity is first created. */ private static final String LOG_TAG = GPSTest; private Double latitude = 0.0; private Double longitude = 0.0; private String latString = ; private String longString = ; //Location items LocationManager locationmanager; LocationListener listener; Location location; private float gpsAccuracy; private long locationTime; private long currentTime; private long timeDifference; //Textview and button private TextView tvErrorMessage; private View submitButton; private String responseString; private ProgressDialog pd; final Handler mHandler = new Handler(); final Runnable mUpdateResults = new Runnable() { public void run() { pd.dismiss(); updateResultsInUi(); } }; private static int globalStatus = 0; private static final int GPS_NOT_FOUND = 1; private static final int GPS_OK = 2; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d(LOG_TAG, onCreate); setContentView(R.layout.main); // Set up the button listeners findViews(); setListeners(); // Register with GPS, throw an error if there's a failure if (!testProviders()) { tvErrorMessage .setText(Can't get location - check that GPS is turned on in Settings); } } @Override public void onRestart() { super.onRestart(); Log.d(LOG_TAG, onRestart); // Register with GPS, throw an error if there's a failure if (!testProviders()) { tvErrorMessage .setText(Can't get location - check that GPS is turned on in Settings); } } // ** // findViews/setListeners: set up the button listeners // ** private void findViews() { Log.d(LOG_TAG, findViews); submitButton = (Button) findViewById(R.id.submit_button); tvErrorMessage = (TextView) findViewById(R.id.tv_error); } private void setListeners() { Log.d(LOG_TAG, setListeners); submitButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { uploadToServer(); } } }); } // ** // testProviders: Register for location updates, warn if not found // ** public boolean testProviders() { Log.d(LOG_TAG, testProviders); String location_context = Context.LOCATION_SERVICE; locationmanager = (LocationManager) getSystemService (location_context); listener = new LocationListener() { public void onLocationChanged(Location location) { } public void onProviderDisabled(String provider) { }
[android-developers] Need help in understanding android 's code
Hi, When I create a button, it has a grey round rectangle and an orange background when it has focus. Can you please tell me where is the code which draws that? I looked at the method of onDraw() of View and button, i dont' see that is drawing that. And in the TextView, I don't it is drawing an orange rectangle either. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Voice Recognition like in Voice Search? (STT)
Future APIs are one thing, using Intents to access existing functionality is another, imho. Voice search is already here, so the question for me is if there are Intents to start the voice recognition Activity and work on with the results. Thank Intents and loose coupling. :) For my purpose voice recognition would be optional - even if it would break in a future release it would be fine. I would put a trycatch around it anyway. Would this approach (if possible at all) be OK for you? Thanks, Markus -- http://jars.de --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Keep Screen On Change Orientation
There is a flag in WindowManager.LayoutParams you can set to keep the screen on. (Please do NOT use the lower-level PowerManager class for this.) Use android:screenOrientation on the activity in your manifest to force a particular orientation mode. On Wed, Feb 11, 2009 at 8:18 AM, naxtek gnax...@gmail.com wrote: Hi - After some help with this. I am making an Android app which is currently coming along nicely - I've hit upon a couple of stumbling blocks. 1) How do I stop the screen from going dim/off and the phone locking while the application is running? 2) Can I force the phone to enter landscape mode on running my application? Thanks, Andrew :) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Apple Why G1 Has No 3.5mm Headphone Input?
We all know about Apple asking Google to not include multi-touch but according to an Apple employee they also asked not to include the 3.5mm input due to an interesting patent. http://www.googleandblog.com/why-no-g1-35mm-headphone-jack/3750/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Apple Why G1 Has No 3.5mm Headphone Input?
I don't think Apple had much to do with the 3.5mm jack decision because Nokias N95 has a 3.5mm jack and has been on sale in the US since 2007, and HTC are well known for not including a 3.5mm jack on their 'phones. If it's true then Android really is going to be an also-ran because it'll be left with all the features that Apple consider not useful enough to want to protect. Al. Michael Martin wrote: We all know about Apple asking Google to not include multi-touch but according to an Apple employee they also asked not to include the 3.5mm input due to an interesting patent. http://www.googleandblog.com/why-no-g1-35mm-headphone-jack/3750/ -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] package isn’t signed correctl y error on customer install - Market problem??
A customer wrote me that his upgrade of my app would not install and gave the following error: package isn’t signed correctly The install worked find for me but I was getting a lot of bad reviews because of this error and I removed the app. How is this possible; you can't upload an app to Google Markets without it being signed correctly? thank; Jeff www.motionPHR.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Building internal code into SDK
Mark, Thanks for the quick reply. I will follow this question up with the Firmware side of the discussion boards and see if they have a solution for me. Daivd On Feb 11, 12:02 pm, Mark Murphy mmur...@commonsware.com wrote: NFSpeedypur wrote: Do you know how to build an application against the whole android source code instead of just the SDK? Personally? No. I just stick to the SDK for now. Maybe later in 2009 I'll dive into firmware-level Java development. Sorry! -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Building internal code into SDK
I posted this into the Porting discussion group so I will see if they have any feedback. On Feb 11, 7:16 am, Mark Murphy mmur...@commonsware.com wrote: NFSpeedypur wrote: I am developing code for a new android project, on custom hardware, and I want to build a testing SDK. You will probably have better luck getting answers over on one of the lists aimed at firmware development: http://source.android.com/discuss -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Apple Why G1 Has No 3.5mm Headphone Input?
As a complete ignorant on patents and stuff like that I wonder: This means nobody ever can make multitouch phones or anything like that? I know the patent works for cellphones/mid but not for computers, since Windows 7 will have multitouch. On Wed, Feb 11, 2009 at 11:05 AM, Al Sutton a...@funkyandroid.com wrote: I don't think Apple had much to do with the 3.5mm jack decision because Nokias N95 has a 3.5mm jack and has been on sale in the US since 2007, and HTC are well known for not including a 3.5mm jack on their 'phones. If it's true then Android really is going to be an also-ran because it'll be left with all the features that Apple consider not useful enough to want to protect. Al. Michael Martin wrote: We all know about Apple asking Google to not include multi-touch but according to an Apple employee they also asked not to include the 3.5mm input due to an interesting patent. http://www.googleandblog.com/why-no-g1-35mm-headphone-jack/3750/ -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Get keycode of letter
This is the class used to perform mappings with the key character map: http://code.google.com/android/reference/android/view/KeyCharacterMap.html On Wed, Feb 11, 2009 at 7:46 AM, Al alcapw...@googlemail.com wrote: Hi, is there any method to let you get the keycode for a keyboard letter. E.g. public int getKeyCode(char letter) {...}? I had a look but can't find it and I can't find a way to make Autocomplete start filtering from predefined input in the box, so I'm emulating key inputs to make it do this. thanks for any help. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Apple Why G1 Has No 3.5mm Headphone Input?
So far google and android employees have publicly -requested- reasonable multitouch implementations. So .. yeah. Fail #1. And as to headphone input, I challenge you to point out a single device -anywhere- that uses headphones for input. Seriously. On Wed, Feb 11, 2009 at 12:24 PM, Michael Martin mi...@mm-agency.comwrote: We all know about Apple asking Google to not include multi-touch but according to an Apple employee they also asked not to include the 3.5mm input due to an interesting patent. http://www.googleandblog.com/why-no-g1-35mm-headphone-jack/3750/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: GPS accuracy problems
It is notoriously difficult for GPS chips to get a good fix in built-up areas. 'Seeing the sky' is a bit loose a formulation: ideally a unit has to be able to see five or more satellites and for accuracy purposes they must not be all exactly overhead. Furthermore buildings bounce back the signals adding to confusion. On a clear mountain top is best, maybe the top of Canary Wharf tower. That's why there have been different approaches to improve GPS accuracy, e.g. triangulation from cell-towers. Skyhook Wireless claim to have a library that improves accuracy, apparently newer versions of AndNav use it. Other applications assume that you are always on a road and will place you on the nearest one. I just published a little application that gives you a view of the satellite constellation used to derive your location. You can get it here: http://andappstore.com/AndroidPhoneApplications/apps/38257 http://andappstore.com/AndroidPhoneApplications/apps/38257That does not itself improve accuracy, but at least you can get an idea why your accuracy is shite.. Ludwig 2009/2/11 Anna PS annapowellsm...@googlemail.com Hi, I'm writing a mapping application. In simple terms, it sends some info about the user's current location to a server when the user clicks on a button. I need the location to be absolutely correct, and when I first started to implement LocationListener, I found that it often wasn't. So I've used location.getAccuracy() to check the GPS accuracy, and warn the user - without submitting the data - if the location isn't accurate enough. The code is below. I've been trying the app outside and find that the accuracy is often 32m, 64m or even higher, even after 20 or 30 seconds. This is in central London, in full view of the sky, on a clear day! I need it to be below 10m. At the same time, if I open the Maps application while standing in the same spot, it shows my GPS location as a blue spot on the map - suggesting the listener in Maps has perfect accuracy. So what is the problem? Have I implemented the listener/check in the wrong way (which feels like the likely explanation), or is it that GPS in Android isn't good enough to write mapping applications? Does anyone else have experience of this? Best, Anna -- //cut-down version of code public class GPSTest extends Activity { /** Called when the activity is first created. */ private static final String LOG_TAG = GPSTest; private Double latitude = 0.0; private Double longitude = 0.0; private String latString = ; private String longString = ; //Location items LocationManager locationmanager; LocationListener listener; Location location; private float gpsAccuracy; private long locationTime; private long currentTime; private long timeDifference; //Textview and button private TextView tvErrorMessage; private View submitButton; private String responseString; private ProgressDialog pd; final Handler mHandler = new Handler(); final Runnable mUpdateResults = new Runnable() { public void run() { pd.dismiss(); updateResultsInUi(); } }; private static int globalStatus = 0; private static final int GPS_NOT_FOUND = 1; private static final int GPS_OK = 2; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d(LOG_TAG, onCreate); setContentView(R.layout.main); // Set up the button listeners findViews(); setListeners(); // Register with GPS, throw an error if there's a failure if (!testProviders()) { tvErrorMessage .setText(Can't get location - check that GPS is turned on in Settings); } } @Override public void onRestart() { super.onRestart(); Log.d(LOG_TAG, onRestart); // Register with GPS, throw an error if there's a failure if (!testProviders()) { tvErrorMessage .setText(Can't get location - check that GPS is turned on in Settings); } } // ** // findViews/setListeners: set up the button listeners // ** private void findViews() { Log.d(LOG_TAG, findViews); submitButton = (Button) findViewById(R.id.submit_button); tvErrorMessage = (TextView)
[android-developers] Re: how to count time in android
SystemClock.uptimeMillis() is generally what you want to use. On Wed, Feb 11, 2009 at 5:29 AM, jj jagtap...@gmail.com wrote: how to count time in android, e.g player start the game how t count time from start game to end game, I am what r classes to set time and count. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Building internal code into SDK
NFSpeedypur wrote: Do you know how to build an application against the whole android source code instead of just the SDK? Personally? No. I just stick to the SDK for now. Maybe later in 2009 I'll dive into firmware-level Java development. Sorry! -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Apple Why G1 Has No 3.5mm Headphone Input?
You're missing a key point; It's a US patent. So anyone can make multi-touch 'phones and do whatever they want with them outside the US, it's only when you do something inside the US that you run the risk of getting sued. Al. Ivan Soto wrote: As a complete ignorant on patents and stuff like that I wonder: This means nobody ever can make multitouch phones or anything like that? I know the patent works for cellphones/mid but not for computers, since Windows 7 will have multitouch. On Wed, Feb 11, 2009 at 11:05 AM, Al Sutton a...@funkyandroid.com mailto:a...@funkyandroid.com wrote: I don't think Apple had much to do with the 3.5mm jack decision because Nokias N95 has a 3.5mm jack and has been on sale in the US since 2007, and HTC are well known for not including a 3.5mm jack on their 'phones. If it's true then Android really is going to be an also-ran because it'll be left with all the features that Apple consider not useful enough to want to protect. Al. Michael Martin wrote: We all know about Apple asking Google to not include multi-touch but according to an Apple employee they also asked not to include the 3.5mm input due to an interesting patent. http://www.googleandblog.com/why-no-g1-35mm-headphone-jack/3750/ -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 listen for the end of a call?
Take a look at the SDK documentation. /docs/reference/android/telephony/ PhoneStateListener.html#onCallStateChanged(int, java.lang.String) After the call finishes, the phone's call state goes to IDLE. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: It is now MID-Q1, where are the Paid Apps?
I heard they are rolling out paid apps this week ... http://blog.wired.com/gadgets/2009/02/paid-apps-comin.html But I still dont see an option to upload paid apps. Someone please advice On Feb 1, 10:45 pm, Java Developer supp...@cyntacks.com wrote: Dear Google, I believe I have been quite reasonable, patiently waiting for you to deploy thepaidapplication solution. I adopted Android early, took many punches and setbacks each time you rolled out a new SDK making major changes to the API. Now I am frustrated with how you are handling this situation. Everyday more and more applications hit the market for free, in effect watering down the market and reducing my chance of making money on your platform. Does this sound greedy? Perhaps, but this is the real world. If I can't support my development by selling my product, I can't feed my family. Looks like it is back to the iPhone and the new Blackberry store... Please, at least communicate to us what is going on. Yours, Losing Faith in Philadelphia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 camera object for double camera
hi, all i wonder how to get camera object in android, if there are two or more cameras in a telephone? thanks a lot! br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 port android for at91sam9261EK
Dear all, I am a beginner of andriod.I have a demo board:at91sam9261EK.How to port android for at91sam9261EK? I have download the android kernel with git. Thank you very much for any suggestion. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 make the intent only launch one activity when more than one activity are matched?
All, How to make the intent only launch one activity when more than one activity are matched? That means: the Implicit Intents have not specified a component; instead, they must include enough information for the system to determine which of the available components is best to run for that intent If the available componets is not only one, but we can NOT change others' code and interface, just want to the intent only launch our application? how to do? 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] Some bugs of WebView
I don't know where to put the bug report of APIs. I use WebView to display some pages in my dictionary software. I met some problems with WebView. 1) could not handle the color values When I use the HTML code: font color=#00FF00/font the WebView could not handle this type of tags. But font color=red/font can work well. This bug exist both in SDK1.0 SDK1.1 2) Chinese Char: I use UTF-8 as the charset, and if there exist some Chinese chars, then this HTML code could not be displayed in WebView: htmlheadmeta http-equiv=Content-Type content=text/html; charset=UTF-8/head body pfont color=red[ 美国传统词典[双解] ]/font/p /body /html This bug exists in SDK1.1. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: DDM dispatch reg wait timeout
i met the same problem when i am following I can't install ApiDemos apps in my IDE because of a signing error according to http://code.google.com/intl/zh-CN/android/kb/troubleshooting.html#apidemosreinstall. I changed the directory to sdk root, and tried to uninstall the preinstalled APIDemo, and after the command ./adb uninstall com.android.samples the screen prints : DDM dispatch reg wait timeout Can't dispatch DDM chunk 52454151: no handler defined Can't dispatch DDM chunk 48454c4f: no handler defined Failure I guess it may be relevant to DDM, but I don't know where the exact false locates. I am using Eclipse under ubuntu 8.10 On 2008年12月22日, 下午1时26分, jalandar jagtap...@gmail.com wrote: The following mesg appear in emulator console , what the reason behind it. DDM dispatch reg wait timeout ActivityManager: Can't dispatch DDM chunk 52454151: no handler defined ActivityManager: Can't dispatch DDM chunk 48454c4f: no handler defined plz 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 -~--~~~~--~~--~--~---
[android-developers] MediaPlayer(Streaming LiveTV from LinuxBox)
I am working on the application which plays liveTV stream sent from LinuxBox. I am using ffmpeg and ffserver to send out live feeds via RTSP, but it does not work and mediaPlayer gives me an error message Sorry, this video can not be played. I am passing the URL such as rtsp://IP: 5454/test.mp4. These are the two commands I run on my linux box. ffserver -d -f ffserver.conf ffmpeg -i /dev/video1 http://localhost:8090/feed1.ffm Here's the configuration file (ffserver.conf) I am using. #Port on which the server is listening. You must select a different # port from your standard HTTP web server if it is running on the same # computer. Port 8090 RTSPPort 5454 # Address on which the server is bound. Only useful if you have # several network interfaces. BindAddress 0.0.0.0 # Number of simultaneous HTTP connections that can be handled. It has # to be defined *before* the MaxClients parameter, since it defines the # MaxClients maximum limit. #MaxHTTPConnections 2000 # Number of simultaneous requests that can be handled. Since FFServer # is very fast, it is more likely that you will want to leave this high # and use MaxBandwidth, below. MaxClients 1000 # This the maximum amount of kbit/sec that you are prepared to # consume when streaming to clients. MaxBandwidth 5000 # Access log file (uses standard Apache log file format) # '-' is the standard output. CustomLog - # Suppress that if you want to launch ffserver as a daemon. NoDaemon ## # Definition of the live feeds. Each live feed contains one video # and/or audio sequence coming from an ffmpeg encoder or another # ffserver. This sequence may be encoded simultaneously with several # codecs at several resolutions. Feed feed1.ffm # You must use 'ffmpeg' to send a live feed to ffserver. In this # example, you can type: # #ffmpeg http://localhost:8090/feed1.ffm # ffserver can also do time shifting. It means that it can stream any # previously recorded live stream. The request should contain: # http://?date=[-MM-DDT][[HH:]MM:]SS[.m...].You must specify # a path where the feed is stored on disk. You also specify the # maximum size of the feed, where zero means unlimited. Default: # File=/tmp/feed_name.ffm FileMaxSize=5M File /tmp/feed1.ffm FileMaxSize 100M # You could specify # ReadOnlyFile /saved/specialvideo.ffm # This marks the file as readonly and it will not be deleted or updated. # Specify launch in order to start ffmpeg automatically. # First ffmpeg must be defined with an appropriate path if needed, # after that options can follow, but avoid adding the http:// field #Launch ffmpeg # Only allow connections from localhost to the feed. #ACL allow 127.0.0.1 /Feed ## # RTSP examples # # You can access this stream with the RTSP URL: # rtsp://localhost:5454/test1-rtsp.mpg # # A non-standard RTSP redirector is also created. Its URL is: # http://localhost:8090/test1-rtsp.rtsp Stream test2.mp4 Feed feed1.ffm Format rtp #File /var/videos/testVideos/test.mpg VideoFrameRate 15 VideoCodec mpeg4 VideoSize qvga VideoBitRate 256 VideoBufferSize 4 VideoGopSize 12 AudioCodec aac AudioBitRate 32 AudioChannels 1 /Stream I know that Orb can send live tv feed to the android using RTSP/3gp format. I am wondering whether I can do the same using ffmpeg and ffserver. Can anyone help? Thanks. Manabu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] System log buffer size
Hello group, I have the following problem: I'd like to see the system log of two days ago and I cannot. I see only 3 last hours. How can I configure the system log size, location, severity? Thanks in advance for your answer, AGA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: DDM dispatch reg wait timeout
i met the same problem when i am following I can't install ApiDemos apps in my IDE because of a signing error according to http://code.google.com/intl/zh-CN/android/kb/troubleshooting.html#apidemosreinstall. I changed the directory to sdk root, and tried to uninstall the preinstalled APIDemo, and after the command ./adb uninstall com.android.samples the screen prints : DDM dispatch reg wait timeout Can't dispatch DDM chunk 52454151: no handler defined Can't dispatch DDM chunk 48454c4f: no handler defined Failure I guess it may be relevant to DDM, but I don't know where the exact false locates. I am using Eclipse under ubuntu 8.10 On 2008年12月22日, 下午1时26分, jalandar jagtap...@gmail.com wrote: The following mesg appear in emulator console , what the reason behind it. DDM dispatch reg wait timeout ActivityManager: Can't dispatch DDM chunk 52454151: no handler defined ActivityManager: Can't dispatch DDM chunk 48454c4f: no handler defined plz 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 -~--~~~~--~~--~--~---
[android-developers] Re: Accelerometer frequency
Supposedly you pass a 3rd parameter to the sensormanager's registerLister function but It doesnt seem to make any difference. On Feb 11, 7:33 pm, ashu montoo...@gmail.com wrote: Hey, I wanted to get the frequency of accelerometer output. How many readings can I get per second? And to what precision do I get? 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] Re: Logcat View fails with Could not create the view: 1
I am having a same problem in my logcat. I think I am having this problem after screwing the log filter up.. not sure though. Does anyone know how can it be recovered? I can still see logs using adb from command window, but it would be good if I can use logcat from eclipse. Thanks, Alex On Jan 13, 2:21 am, Jakob Sachse jako...@gmail.com wrote: Hi, when I started my eclipse this morning the Logcat View failed. Instead of Logcat a FailureView is displayed. There the stacktrace displays an ArrayIndexOutOfBoundsException. I had one or two filters for certain pids. Those seem to be unloadable. Has anyone experienced such an error before? Can anyone point me to the FilterStore so that i can delete/reset it? Thanks! java.lang.ArrayIndexOutOfBoundsException: 1 at com.android.ddmuilib.logcat.LogFilter.loadFromString(Unknown Source) at com.android.ide.eclipse.ddms.views.LogCatView $FilterStorage.getFilterFromStore(Unknown Source) at com.android.ddmuilib.logcat.LogPanel.createFilters(Unknown Source) at com.android.ddmuilib.logcat.LogPanel.createControl(Unknown Source) at com.android.ddmuilib.Panel.createPanel(Unknown Source) at com.android.ide.eclipse.ddms.views.LogCatView.createPartControl (Unknown Source) at org.eclipse.ui.internal.ViewReference.createPartHelper (ViewReference.java:371) at org.eclipse.ui.internal.ViewReference.createPart (ViewReference.java:230) at org.eclipse.ui.internal.WorkbenchPartReference.getPart (WorkbenchPartReference.java:594) at org.eclipse.ui.internal.Perspective.showView(Perspective.java: 2127) at org.eclipse.ui.internal.WorkbenchPage.busyShowView (WorkbenchPage.java:1062) at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java: 3773) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java: 70) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java: 3770) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java: 3746) at org.eclipse.ui.handlers.ShowViewHandler.openView (ShowViewHandler.java:165) at org.eclipse.ui.handlers.ShowViewHandler.execute (ShowViewHandler.java:80) at org.eclipse.ui.internal.handlers.HandlerProxy.execute (HandlerProxy.java:281) at org.eclipse.core.commands.Command.executeWithChecks(Command.java: 476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks (ParameterizedCommand.java:508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand (HandlerService.java:169) at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand (SlaveHandlerService.java:247) at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection (CommandContributionItem.java:619) at org.eclipse.ui.menus.CommandContributionItem.access$10 (CommandContributionItem.java:605) at org.eclipse.ui.menus.CommandContributionItem$4.handleEvent (CommandContributionItem.java:595) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java: 2382) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:488) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: 149) at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run (EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication (EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start (EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:382) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
[android-developers] Customize desktop icon
Hi, I have created several folders (Apps, Games, etc) on my G1 desktop. So my question are: 1) Is there a way of changing the icon of the folders from the dull plain grey one provided ? if so how ? 2) Where are those folders created on the system ? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] System log file size
Dear team, I need a system log of the past three days. However I hove only the 3 past hours. How can I change/configure the system log file size/location/name/ severity ? Thanks in advance, AGA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: viewable area
This is precisely why I want to know the dimensions of the screen. When I redraw anything I have on the screen, I want to be able to get an accurate size (exactly so that I can dynamically put things in the right place as it changes). The challenge is that the onDraw() method in my custom View is passed a canvas that is bigger than the viewable area. The canvas I am passed when using the AbsoluteLayout is 320x480 in portrait mode, but the 480 is obviously too big due to the status bar. Unless this is a bug, it is still not clear to me where the correct viewable area (the dynamic one from right now) is reported. Your suggestion, though that I should make my own Layout is well taken. Is there an example of subclassing ViewGroup that you can point me to? It looks like I only really need to override: onLayout(boolean changed, int l, int t, int r, int b) (it is unclear in the documentation whether or not I need to override the dispatchWindowFocus... methods... all others appear to be optional) This is great if those dimensions are indeed the actual viewable area. Correct? Getting back to the original question, is this the place where the viewable area is reported to the application? Thank you for your help, Matthew On Tue, Feb 10, 2009 at 5:32 PM, Dianne Hackborn hack...@android.comwrote: It's not that, it's that making assumptions about you having all of the available space on the screen and that it will never change after you start will make your application very rigid. For example, in the future when there is a soft keyboard that gets shown, wouldn't you like your application to resize to account for that? Or if someone does a device with a little larger screen but some kind of system controls that can be placed in that area, wouldn't you like your UI to grow to use that space if those controls are hidden? Assuming that you can just look at the screen dimensions when you initialize and count on that being constant for the rest of your life just doesn't work. It isn't even true on Windows where the use can drag the taskbar up to make it larger and stuff. So the right approach is to use what the system gives you, write a layout view that does its layout based on the size it is given, and then whenever the display configuration changes you will just get called again with a new size and can layout to that. On Tue, Feb 10, 2009 at 5:13 PM, Sundog sunns...@gmail.com wrote: Could somebody on the thread perhaps explain why this is so rigid? So many people are asking for such a very simple thing. I'd really like to understand. It's a Java thing. ;) You VILL fit ze paradigm! Resistance is futile! -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: viewable area
I agree with Dianne about trying to use what is available to make your application as flexible as possible. But I also get the impression that people are asking these kinds of questions because they want to write games, not standard apps. There can be cases when for purposes of speed or over all graphical polish it is necessary to operate with some assumptions such as the target screen size or that the dimensions will not change while the game is running. I have some ideas that may help for the questions at hand if there is good reason to prioritize pixel counting over flexibility. I haven't tried all these myself so I can't guarantee that they will work. The most rigid way to know what space you are working with is to set your window full screen and hard code the dimensions based on the device that you know you will run on (320x480 for the G1). Obviously this limits you to that one device, and you'll need to do some fancy handling of orientation change or things will go bad. If you want to let the device choose a size for you, but you want to know what this size is and use an absolute layout, try getHeight() and getWidth(). These sound like they should provide you with the correct values, however they are likely not valid until the layout is displayed. To get around this problem you can use a Handler in onCreate () to schedule a Runnable that does initialization to run sometime in the future. Or you could try extending AbsoluteLayout and scheduling initialization with a Handler (and no delay) inside of onDraw(). In this case you can also track the previous height and width and reinitialize when they change to handle screen size changes. 144 buttons is an awful lot. Makes me cringe. It will probably be unusably slow and consume gobs of memory. I totally agree with Dianne here, you need a custom layout for this. I'll go one farther and say you probably need a custom view object so that you can draw the entire area for the buttons as one object and map touch event coordinates to the correct virtual button. Overlapping views works pretty well without any tricks. At least when using XML layouts, those layouts will draw the components in order such that the last layout listed is the one on top. I've used this with RelativeLayout to put text on top of a background image and AbsluteLayout is also supposed to draw its children on top of each other with an order. I haven't tried moving any of the views around to see how it handles that, but my feeling is that the system will handle overlapping views for you without any work on your part. On Feb 10, 8:32 pm, Dianne Hackborn hack...@android.com wrote: It's not that, it's that making assumptions about you having all of the available space on the screen and that it will never change after you start will make your application very rigid. For example, in the future when there is a soft keyboard that gets shown, wouldn't you like your application to resize to account for that? Or if someone does a device with a little larger screen but some kind of system controls that can be placed in that area, wouldn't you like your UI to grow to use that space if those controls are hidden? Assuming that you can just look at the screen dimensions when you initialize and count on that being constant for the rest of your life just doesn't work. It isn't even true on Windows where the use can drag the taskbar up to make it larger and stuff. So the right approach is to use what the system gives you, write a layout view that does its layout based on the size it is given, and then whenever the display configuration changes you will just get called again with a new size and can layout to that. On Tue, Feb 10, 2009 at 5:13 PM, Sundog sunns...@gmail.com wrote: Could somebody on the thread perhaps explain why this is so rigid? So many people are asking for such a very simple thing. I'd really like to understand. It's a Java thing. ;) You VILL fit ze paradigm! Resistance is futile! -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: The example code of SoftKeyboard is not work
Hi, Alger May I know the progress of SoftkeyBoard on your project? I am just starting the development on this task and 'd like to have some hint from you. Do you have any idea to implement a phonetic Input Method on Android? Thanks a lot in advance! BR/Mark On Jan 5, 11:02 pm, Alger, Lin addr...@gmail.com wrote: I download the released source code at 2008,Dec,30. And I found an example of soft keyboard at path below. /development/samples/SoftKeyboard I tried to build it, and install the .apk file into device by steps below. 1. make 2. cd /out/target/product/generic/system/app 3. adb install SoftKeyboard.apk When I try to enable the SoftKeyboardinputmethod, and I got an error information below. 01-06 08:38:54.683: ERROR/dalvikvm(273): Could not findmethod com.example.android.softkeyboard.SoftKeyboard.getCurrentInputInfo, referenced frommethod com.example.android.softkeyboard.SoftKeyboard.handleBackspace 01-06 08:38:54.683: WARN/dalvikvm(273): VFY: unable to resolve virtualmethod128: Lcom/example/android/softkeyboard/ SoftKeyboard;.getCurrentInputInfo ()Landroid/view/inputmethod/ EditorInfo; 01-06 08:38:54.683: WARN/dalvikvm(273): VFY: rejecting opcode 0x6e at 0x0031 01-06 08:38:54.683: WARN/dalvikvm(273): VFY: rejected Lcom/example/ android/softkeyboard/SoftKeyboard;.handleBackspace ()V 01-06 08:38:54.683: WARN/dalvikvm(273): Verifier rejected class Lcom/ example/android/softkeyboard/SoftKeyboard; 01-06 08:38:54.683: WARN/dalvikvm(273): Class init failed in newInstance call (Lcom/example/android/softkeyboard/SoftKeyboard;) 01-06 08:38:54.713: DEBUG/AndroidRuntime(273): Shutting down VM The message indicates the getCurrentInputInfo()methodnot found in SoftKeyboard class. However, the SoftKeyboard is inherit from android.inputmethodservice.InputMethodService, and the getCurrentInputInfo() be implemented by InputMethodService. I don't know why the VM can't found the getCurrentInputInfo()method. Please help me to resolved this problem, I has to test some thing by SoftKeyboardinputmethod. Thanks. Alger, Lin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Some bugs of WebView
yhfudev wrote: I don't know where to put the bug report of APIs. http://b.android.com 1) could not handle the color values When I use the HTML code: font color=#00FF00/font the WebView could not handle this type of tags. But font color=red/font can work well. This bug exist both in SDK1.0 SDK1.1 This works fine on the G1. Visit the following page in the Android Browser application: http://commonsware.com/misc/scrap.html -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Apple Why G1 Has No 3.5mm Headphone Input?
http://europe.nokia.com/A41261457 (input from device keys and the mic is in the little control dongle). Using the 3.5mm jack for audio input is pretty common on Nokias devices. Al. Disconnect wrote: So far google and android employees have publicly -requested- reasonable multitouch implementations. So .. yeah. Fail #1. And as to headphone input, I challenge you to point out a single device -anywhere- that uses headphones for input. Seriously. On Wed, Feb 11, 2009 at 12:24 PM, Michael Martin mi...@mm-agency.com mailto:mi...@mm-agency.com wrote: We all know about Apple asking Google to not include multi-touch but according to an Apple employee they also asked not to include the 3.5mm input due to an interesting patent. http://www.googleandblog.com/why-no-g1-35mm-headphone-jack/3750/ -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Customize desktop icon
1. No. 2. In a private database. Cupcake will move that database so any code that tries to modify it now will break soon. On Wed, Feb 11, 2009 at 3:56 AM, Joe_Booboo cyril.bouhall...@gmail.com wrote: Hi, I have created several folders (Apps, Games, etc) on my G1 desktop. So my question are: 1) Is there a way of changing the icon of the folders from the dull plain grey one provided ? if so how ? 2) Where are those folders created on the system ? Thank you -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 increasing MAXFILESIZE
Hi all, I am new to android platform. I need to increase the max file size (8096) in webview. In a thread I saw that if i need to increase that limit, I need to implement a content provider and use ContentResolver.openContentURI(). But in the API I can't even find the method openContentURI. Could you please help me on writing the content provider to increase size. Thank You! Amilask --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 camera object for double camera
hi, all i wonder how to get camera object in android, if there are two or more cameras in a telephone. thanks a lot! best 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] an error saying DDM dispatch reg wait timeout Can't dispatch DDM chunk occurs when uninstall the preinstalled APIDemo in SDK
i met a problem when i am following I can't install ApiDemos apps in my IDE because of a signing error according to http://code.google.com/intl/zh-CN/android/kb/troubleshooting.html#apidemosreinstall. I changed the directory to sdk root as it said, and tried to uninstall the preinstalled APIDemo, and after the command ./adb uninstall com.android.samples the screen prints : DDM dispatch reg wait timeout Can't dispatch DDM chunk 52454151: no handler defined Can't dispatch DDM chunk 48454c4f: no handler defined Failure I guess it may be relevant to DDM, but I don't know where the exact false locates. I am using Eclipse under ubuntu 8.10 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OProfile querries
Hi, I required information on how to use Oprofile tool in Android. Does the Cupcake version has support for Oprofile. Regards Supriyo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Need help in understanding android 's code
These are drawn with PNGs set as the background drawable of the views. On Wed, Feb 11, 2009 at 9:41 AM, Meryl Silverburgh silverburgh.me...@gmail.com wrote: Hi, When I create a button, it has a grey round rectangle and an orange background when it has focus. Can you please tell me where is the code which draws that? I looked at the method of onDraw() of View and button, i dont' see that is drawing that. And in the TextView, I don't it is drawing an orange rectangle either. Thank you. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SD card not detected in Android
Let me know any more issue to port , move android fs on sdcard and then boot , this is good options. Thanks Rizavan On Tue, Feb 10, 2009 at 8:42 PM, Rajesh N rajesh.andr...@gmail.com wrote: HI Rizavan, Yup, there is a issue with MMC driver in my kernel tree provided by freescale, I have excalated this issue, I will keep u in posted with my latest updates, Thanks for u r suggestion, Best Regards, Rajesh N On Wed, Feb 11, 2009 at 6:31 AM, Rizvan S porting.begin...@gmail.comwrote: Hi Rajesh, I think you must have mmc/sd driver for your hardware and it would create device node i.e /dev/mmcblk0 etc. Did you check before android porting , sd card driver was working on your linux ( target kernel )? I am using sd card to put android file system on it for android porting/bring up on my SoC. My target kernel had sd card driver before doing anything related to android and then patch target kernel for android changes. Thanks Rizavan On Tue, Feb 3, 2009 at 10:25 PM, Rajesh N rajesh.andr...@gmail.comwrote: Hi all, I have ported android successfully on imx31 pdk board, when I go in android menu in music , it is not able to detect SD card placed in board, significantly I haven't seen any device like /dev/mmcxxx in /dev under android shell , if there are pointers to this issue it would be a great help for me.. Best Regards, 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] byte arrays and cross process content providers
I've been fighting this one for a while and I'm seeing no joy, so hopefully someone can help. I have multiple apks; The first gets a data set from a server, The others perform actions on the data. At the moment the first APK get data from a server and exposes a ContentProvider that the other apks can use to access the data (it returns a MatrixCursor when data is queried because seems to be the only way to handle cross APK non SQLiteDatabase originated data). The problem is that the data set may contain byte arrays, and when you put the byte array between processes in a MatrixCursor it comes out the other end corrupted. I ran a test which inserted a two byte array via the content provider, then returned the same two byte array via the MatrixCursor, the result was the client APK saw a 12 byte array which was filled with junk. The dataset contains several rows (could be thousands), so creating a file for each row and using streams will seriously degrade performance. The other issue is that each row can contain multiple byte arrays which makes using the _data stream ContentProvider method even more unworkable. So does anyone know how to get byte arrays between APKs via a cursor without having to create lots of intermediate files? Al. -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Best practises to have more than one version of an app in the market?
You could always have one APK and use something like http://andappstore.com/AndroidPhoneApplications/licensing.jsp to control whether or not the paid-for features are available. Al. http://andappstore.com/ Mariano Kamp wrote: Hi, any idea how to go about having a free version of an application in the market and a paid version also? Is it advisable to use the same package name? Different package names would mean code changes just for the sake of the name. Using the same package name, if at all allowed by the market, would mean that queries to the market would show both versions. That would be confusing if the installed app shows that there is an update, but for both versions?! Two branches in the repository and merging the restrictions of the free edition into the branch of the free edition? How do you guys are doing it? Cheers, Mariano -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Upgrading SDK from 1.0 r1 to r2
I upgraded from 1.0.r1 to 1.0.r2 with no problem. I've since upgraded to 1.1.r1, again with no problem. First I downloaded the updated SDK, and expanded the zip file. In both cases, in the top-level directory there is a file called documentation.html. Open that and there will be a link to upgrade the SDK. In both versions the process is very simple, but I'll highlight the process below. Wipe the emulator data. Update any path environment variables you have pointing to the SDK to point to the new one. Update Eclipse or any other tool to point to new SDK. Rebuild applications to check for and fix SDK version breakages. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Compatibility problems with getFields method in Android java.lang.Class
I'm having some problems porting a Java application to work in Android platform. I detected an incompatibility problem between java sun and Adroid sdk in java.lang.Class. I oberved that: public Field[] getFields() Returns an array containing Field objects describing all fields which are defined. That's array is sorted as attributes are declared in the main Class in sun jdk. For example, next Class is defined as: public class Example { public boolean stop; public int atr1; public String name; } When i do next operation with a Example class: Field[] fields = e.getClass.getFields() I got: fields[0] = stop fields[1] = atr1 fields[2] = name The same operation in Android sdk returns: fields[0] = atr1 fields[1] = name fields[2] = stop The same arrays is returned in alphabetical order. It is critic for my application to get the Fields in the same order in which they have been declared in the main class. I don't know if it is possible in Android. 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] Re: PreferenceActivity with blur behind?
Im also interested in learning how to do this... any ideas? On Dec 21 2008, 7:25 pm, Ralf ralfo...@gmail.com wrote: I'm trying to use a PreferenceActivity with prefs inflated from XML and at the same time I'd like the window to blur whatever was behind (i.e. my previous activity where I invoked the settings from.) I tried something like this below but the background is always black (or whatever color I select) without any blur/transparency. Is it possible? what am I doing wrong? public class PrefsActivity extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { // Have the system blur any windows behind this one. getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND, WindowManager.LayoutParams.FLAG_BLUR_BEHIND); super.onCreate(savedInstanceState); setTitle(R.string.prefs_title); addPreferencesFromResource(R.xml.prefs); View content = findViewById(android.R.id.content); content.setBackgroundColor(0x7F00); getListView().setBackgroundColor(0x7F00); getListView().setCacheColorHint(0x7F00); } } 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] dev phone sensors erratic output
Guys I am getting some really weird data from my sensors on my Dev Phone. I'm converting x,y and heading from the digital compass into short and every 1-2-3 pieces of data from the sensor a completely weird/false one comes up. I have my onSensorChanged() function UDP them across the network and I recorded them. The data is presented in the following order x;heading;y 2;106;-2 2;106;-2 -18;39;12 --- false reading 2;106;-1 2;106;-1 -18;39;12 --- false reading 2;106;-1 -19;40;13 --- false reading 2;106;-1 2;106;-1 Any ideas why the erratic output? Jubei --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Attn Google - How does licensing work in transitioning from a free app to a paid app?
Here's the scenario: The app is on the market for free. The publisher then decides to make it a pay app and changes the status. I'm assuming you can just do that, but my questions are: 1) Will the publishing console require us to upload a new version if it is to be a pay app, or can we just change it on-the-fly? 2) If we can change it on-the-fly, how will that affect users that have downloaded the free version? Do they get the license to the paid one as well (so they can delete but reinstall the app for free, get updates, etc?) I've finished a game but I've been just waiting for the paid apps to come online before publishing it. I'm now thinking that I wouldn't mind a 1 week free period before going paid but something felt like the users who download it for free would never have to pay even after I change it to paid and add some sort of desirable update that makes them want to download the new version (and pay then to get it if they have to). Could someone from google please fill us in on this? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Apple Why G1 Has No 3.5mm Headphone Input?
And as to headphone input, I challenge you to point out a single device -anywhere- that uses headphones for input. Seriously. LOL --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 the intent only launch one activity when more than one activity are matched?
You can hard code package and class name in the Intent. From the docs:public Intent(Contextfile:///C:/Software/android/docs/reference/android/content/Context.html packageContext, Classfile:///C:/Software/android/docs/reference/java/lang/Class.html? cls)Create an intent for a specific component. All other fields (action, data, type, class) are null, though they can be modified later with explicit calls. This provides a convenient way to create an intent that is intended to execute a hard-coded class name, rather than relying on the system to find an appropriate class for you; see setComponent(ComponentName)file:///C:/Software/android/docs/reference/android/content/Intent.html#setComponent(android.content.ComponentName) for more information on the repercussions of this. HTH Ludwig 2009/2/11 Joanna chaerim10...@gmail.com All, How to make the intent only launch one activity when more than one activity are matched? That means: the Implicit Intents have not specified a component; instead, they must include enough information for the system to determine which of the available components is best to run for that intent If the available componets is not only one, but we can NOT change others' code and interface, just want to the intent only launch our application? how to do? 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] OpenSSL socket blocking in nativewrite() call
Hello, We are using OpenSSL to connect to our XMPP server (ejabberd) using TLS encryption. We use the Smack library to do so. When sending relatively big XMPP packets (actually VCard avatars) it happens randomly but often that our writer thread is blocked in the native write call: org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl nativewrite() org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl access$600() org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl $SSLOutputStream write() java.io.OutputStreamWriter flush() java.io.OutputStreamWriter convert() java.io.OutputStreamWriter write() java.io.bufferedWriter write() java.io.Writer write() java.io.Writer write() org.jivesoftware.smack.PacketWriter writePackets() We did a lot of testing to ensure that the issue is not server side, and we are convinced that there is a race condition somewhere is this stack of call that causes a deadlock. Unfortunately, we cannot give a way to reproduce this simply. Is there any know issue on that or a workaround ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Flipping from one screen to another
i wanted to flip from one screen to another,Can anyone help me how to start with. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Configuring the Dev Phone
Hello all , I got the Device from USA. Right now i am in India. Trying to setup the Dev phone.I setup the APN settings of my service provider. After giving my user id and password, the device is trying to reach Google server for validation it seems. But the device couldn't communicate with google server. I would like to know - is there any setting I need to change to activate my phone. I was trying to contact customer sevrice but couldn't get in internet. If anyone knows please help me to setup --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---