[android-developers] Re: How to use inbuilt application in my own Application
Take a look at the HelloMapView tutorial and go from there: http://developer.android.com/guide/tutorials/views/hello-mapview.html -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 29, 2:32 am, saptarshi chatterjee saptarshichatterj...@gmail.com wrote: Hi , I want to design an application that would use the android's inbuilt Maps application . I want to add the extra functionality to this application . Like , in my application , It would take 2 User inputs (i) Where the user currently is (ii) and where he wants to go (destination) . and I'll show the public transport options available for his journey . ( I'll hard code this part of the program) . But I want this application to have an extra functionality that this application will also show the traffic route of his journey . but for this part I want to use the inbuilt Maps application . Is there any way I can do that . Thanks Regards Saptarshi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Button into a Tab error of xml
Dany BREARD wrote: the error is 07-29 15:19:16.878: ERROR/AndroidRuntime(1633): java.lang.RuntimeException: Unable to start activity ComponentInfo{m.dany.anrdoid.inertfacegraphiquevvm/m.dany.anrdoid.inertfacegraphiquevvm.InerfaceGraphiqueVVM}: android.content.ActivityNotFoundException: Unable to find explicit activity class {m.dany.anrdoid.inertfacegraphiquevvm/m.dany.anrdoid.inertfacegraphiquevvm.Tab1}; have you declared this activity in your AndroidManifest.xml? That seems fairly self-explanatory. Have you declared this activity in your AndroidManifest.xml? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.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: How to Set Dialog Orientation
doubleslash wrote: Come on guys. Help a fellow coder out. I've asked this question before and got no response. If it's impossible, just say so, so I don't waste time poring through endless documentation. Appreciate it. Create an activity with a dialog theme, and force the orientation in the manifest. I haven't tried this -- I don't even remember what the dialog theme even is -- but it might work. For true dialogs (e.g., AlertDialog), I suspect it's impossible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.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] -1 location accuracy value
Every once in a while, once of my users sees this message in logcat: D/LocationMasfClient( 1056): getNetworkLocation(): Returning cache location with accuracy -1.0 What does a negative accuracy mean? Based on the JavaDocs, I thought location accuracy ranged from 0 (if hasAccuracy is false) to MAX_FLOAT. Is -1 used as an internal value that is eventually translated to 0 before the LocationManager returns a Location object to my app? Thanks, Carter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add a line drawing to ListView?
Don't do this: UnderlinedView underlinedView = (UnderlinedView) convertView; Instead create your own MyUnderlinedTextView class by extending TextView. holder.text = (MyUnderlinedTextView) convertView.findViewById (R.id.text); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 28, 7:54 pm, greg sep...@eduneer.com wrote: When I try extending the View class to a subclass that will underline portions of the text drawn by ListView, the code compiles okay but results in a runtime exception apparently due to an improper class cast. Does anyone see what I've done wrong or have suggestions about getting access to the Canvas of ListView items so portions of text can be underlined? Here is the code, which is the Efficient Adapter View/List example from ApiDemos with an added UnderlinedView class. - - - /* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.example.android.apis.view; import android.app.ListActivity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.os.Bundle; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; /** * Demonstrates how to write an efficient list adapter. The adapter used in this example binds * to an ImageView and to a TextView for each row in the list. * * To work efficiently the adapter implemented here uses two techniques: * - It reuses the convertView passed to getView() to avoid inflating View when it is not necessary * - It uses the ViewHolder pattern to avoid calling findViewById() when it is not necessary * * The ViewHolder pattern consists in storing a data structure in the tag of the view returned by * getView(). This data structures contains references to the views we want to bind data to, thus * avoiding calls to findViewById() every time getView() is invoked. */ public class List14 extends ListActivity { private static class UnderlinedView extends View { public UnderlinedView(Context context) { super(context); } public UnderlinedView(Context context, AttributeSet as) { super(context, as); } public UnderlinedView(Context context, AttributeSet as, int i) { super(context, as, i); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); // Would like to do some line drawing here (e.g., underlining portions of text) } } private static class EfficientAdapter extends BaseAdapter { private LayoutInflater mInflater; private Bitmap mIcon1; private Bitmap mIcon2; public EfficientAdapter(Context context) { // Cache the LayoutInflate to avoid asking for a new one each time. mInflater = LayoutInflater.from(context); // Icons bound to the rows. mIcon1 = BitmapFactory.decodeResource(context.getResources (), R.drawable.icon48x48_1); mIcon2 = BitmapFactory.decodeResource(context.getResources (), R.drawable.icon48x48_2); } /** * The number of items in the list is determined by the number of speeches * in our array. * * @see android.widget.ListAdapter#getCount() */ public int getCount() { return DATA.length; } /** * Since the data comes from an array, just returning the index is * sufficent to get at the data. If we were using a more complex data * structure, we would return whatever object represents one row in the * list. * * @see android.widget.ListAdapter#getItem(int) */ public Object getItem(int position) { return position; } /** * Use the array
[android-developers] Re: ListView convertView recycler showing duplicates?
If you can post your code here, the better people can help you. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 24, 6:35 pm, Peter pkana...@gmail.com wrote: As described previously, I have two threads that use a handler to update items in a ListView Adapter. However, as they load, they briefly show up in two spots in the list. This is really annoying, but I can't figure out exactly what is going on. One thought I have is that the reason I see this happen is because of the slowness of the icons loading, and if it was faster, I wouldn't notice it. Has anyone else seen an item in a ListView briefly displayed twice? In my example, if there are six items visible, 1 loads, 6 mirrors it, 2 loads, 5 mirrors it, 3 loads, 4 loads, 5 reloads, 6 reloads. My code uses a similar pattern to something like the Settings - Manage Applications page. On Jun 24, 10:52 am, Peter pkana...@gmail.com wrote: No, getView() itself is quite simple. There are threads running while getView() is being called, but no threads spawned inside getView(). On Jun 24, 8:24 am, Guru gurudut...@gmail.com wrote: Are you running any thread in the getView of the adapter? On Wed, Jun 24, 2009 at 2:04 PM, Peter pkana...@gmail.com wrote: I have a listview that is populated by a couple threads that pull in data from the network. Before that data comes in, there are some default values displayed. When the screen loads, there are 6 items displayed, each with the default data. The 1st (index 0) loads and is updated on the screen, and then number 6 (index 5) is updated with that same info. Then, item 2 (index 1) loads, and then item 5 (index 4) mirrors that data. Then item 3 loads, then item 4 reloads with the correct data, then then item 5 with the correct data, then item 6. Why are items 5 and 6 briefly showing the data from other elements in the list? I can't figure out what in the world could be causing this. -- Thanks and Regards Gurudutt P.S. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Not downloading resource in Java.net.ResponseCache. Framework issue?
Hi, I try to use java file caching with Java.net.ResponseCache, CacheResponse and CacheRequest. I extended ResponseCache and set the return value of get() to null. Normally it must get the resource from its original location as it's not in the cache (get() return null). But nothing happens. When I try it in a java project with exactly the same classes, the put () method is invoked. Does that mean that it's an Android Framework issue? 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] How to use AsyncTask from a Thread?
Hello, I'm developing a game based on SurfaceView and a game thread for the whole game thing (calculating/drawing/...). Now I want to do some HTTP requests triggered on events inside the thread. They should of course be asynchronous, so the game doesn't stop. I found AsyncTask to be a neat way to do this but I'm having trouble implementing this at the moment. Maybe I misunderstood the concept of AsyncTask , I don't know .. it just drives me nuts as I read docs and blogs and still I don't get it. So sorry if that's a dumb question but I'm mad of thinking about it. -- What would be best practice to do asynchronous things out of a thread? Regards, F Heft --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: URGENT: install sqlite db on Android phone???
If there is an application crashed dialog, there WILL be a stack crawl printed in the logcat output. Always. Hmm... I guess unless Samsung removed this. :p On Wed, Jul 29, 2009 at 8:01 AM, Christian S. schrott...@gmx.de wrote: 1. This is the logcat record: Android Launch! adb is running normally. Performing com.database.test.v1.Bldatabase activity launch Automatic Target Mode: Unable to detect device compatibility. Please select a target device. Uploading Bldatabase.apk onto device 'I7500OXEy3qBTwH' Installing Bldatabase.apk... Success! Starting activity com.database.test.v1.Bldatabase on device ActivityManager: Starting: Intent { comp={com.database.test.v1/ com.database.test.v1.Bldatabase} } So the logcat actually shows no errors at all. The screen on the device however give this application has stopped error. Nothing else. 2. Do you have some sample code that would show a step-by-step approach of the way you just described above? (I am a novice that's why ...) How can I directly make the application look for the database on the SD card? On Jul 29, 4:46 pm, Mark Murphy mmur...@commonsware.com wrote: I just tried adb pull on a Google Ion, and you're right -- adb push and pull do not work. Christian S. wrote: For installing / running the app on the device I only got the usual error that the application has stopped. This is certainly related to the missing SQLite database. Out of curiosity, what does the Java stack trace tell you? You can get that via adb logcat, DDMS, or the DDMS perspective in Eclipse. Any further ideas? Modify your app to check to see if the database exists, and if not, to look for the database on the SD card -- if it finds it, copy the database into the proper spot before using it. That's not terribly secure, but it should work, at least temporarily. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! -- 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, and so won't reply to such e-mails. 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: Why I got the error Sorry, this video cannot be played
anyone know why? On Jul 26, 8:10 pm, cindy ypu01...@yahoo.com wrote: My code was working before. I don't why now i got the error. My application use g1 phone recording an 3gp video, Then I use following code try to play it, however I got an error Sorry this video cannot be played. This happened seems after an update from Tmobile. Does anyone has same experience? My code is below: public class VideoPlay extends Activity implements MediaPlayer.OnCompletionListener { private VideoView mVideoView; private Uri mUri; public void onCreate(Bundle icicle) { super.onCreate(icicle); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.videoplay); mVideoView = (VideoView) findViewById(R.id.video_play); mUri=Uri.parse(Common.mRecordedVideo.getAbsolutePath()); // mUri=Uri.parse(Common.mRecordedVideo.getAbsolutePath()); // mVideoView.setOnErrorListener(this); mVideoView.setOnCompletionListener(this); mVideoView.setVideoURI(mUri); mVideoView.setMediaController(new MediaController(this)); mVideoView.requestFocus(); // make the video view handle keys for seeking and pausing mVideoView.start(); } @Override public void onPause() { mVideoView.stopPlayback(); super.onPause(); } public boolean onError(MediaPlayer player, int arg1, int arg2) { return false; } public void onCompletion(MediaPlayer mp) { finish(); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Memory management issues - stop crashing the party!
Ok, first I'm a longtime programmer, but a bit new to the world of Java (so my apologies in advance). I've done a bit of searching for answers or similar questions, but haven't found exactly what I'm looking for. In my app, I'm allocating large arrays and experiencing some crashes, so a few questions on memory management: 1. Is memory saved in the Dalvik VM by using a short or byte vs. an integer? I've read some conflicting things on how this works. i.e. -- is the memory occupation as follows: Byte = 8bits Short = 16bits Int = 32bits 2. Garbage collection strategies. Specifically, I'm allocating a couple of large integer arrays in my main activity class. My program runs fine once. When I press the HOME button, however, and then re- launch the application it crashes when (re)allocating the arrays. As a way around this, I've declared the large int arrays as static. This seems to prevent them from being re-allocated when the app goes from background to foreground. Not sure if this is the best strategy (?) However, getting past the int[] array HOME button crash, I get a crash my second run through during some Bitmap activities. I am doing a bitmap.recycle() after they are used...but, should large bitmaps be declared as static also? How are people working with large arrays and bitmaps that may push the limits of the VM heap on a single run through the application? In my experience, pressing the HOME button does not cause garbage collection of the arrays or bitmapsyet relaunching the app attempts to reallocate them both. So, what's the best approach to dealing with things when you're nearly at the memory limit -- to allow the app to gracefully go from foreground/background? [It would be really great if Google could write an app note on this] Thanks, RM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Why I got the error Sorry, this video cannot be played
What is the format of your video? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 29, 9:33 am, cindy ypu01...@yahoo.com wrote: anyone know why? On Jul 26, 8:10 pm, cindy ypu01...@yahoo.com wrote: My code was working before. I don't why now i got the error. My application use g1 phone recording an 3gp video, Then I use following code try to play it, however I got an error Sorry this video cannot be played. This happened seems after an update from Tmobile. Does anyone has same experience? My code is below: public class VideoPlay extends Activity implements MediaPlayer.OnCompletionListener { private VideoView mVideoView; private Uri mUri; public void onCreate(Bundle icicle) { super.onCreate(icicle); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.videoplay); mVideoView = (VideoView) findViewById(R.id.video_play); mUri=Uri.parse(Common.mRecordedVideo.getAbsolutePath()); // mUri=Uri.parse(Common.mRecordedVideo.getAbsolutePath()); // mVideoView.setOnErrorListener(this); mVideoView.setOnCompletionListener(this); mVideoView.setVideoURI(mUri); mVideoView.setMediaController(new MediaController(this)); mVideoView.requestFocus(); // make the video view handle keys for seeking and pausing mVideoView.start(); } @Override public void onPause() { mVideoView.stopPlayback(); super.onPause(); } public boolean onError(MediaPlayer player, int arg1, int arg2) { return false; } public void onCompletion(MediaPlayer mp) { finish(); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MediaScannerConnectionClient which content provider?
On Wed, Jul 29, 2009 at 8:26 AM, Sonja_android pubmoonm...@gmail.comwrote: I am using the MediaScannerConnection and corresponding MediaScannerConnectionClient to scan and add an audio file to the MediaStore content provider. How do I know which database the file will be added to? Will it use the INTERNAL_CONTENT_URI or EXTERNAL_CONTENT_URI? The Uri that you get back will tell you which database it was added to. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Maximum Number of Connections
Hello! I've written an application which involves a lot of simultaneous connections to different servers. I've noticed some big stability issues with this as sometimes the program crashes totally (not just ANR, but a segfault type thing). What's the recommended number of maximum simultaneous connections for speed and stability? Rich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use AsyncTask from a Thread?
Just start another thread :) AsyncTask is tied to the UI thread, if you already have your own thread, you cannot use AsyncTask. On Wed, Jul 29, 2009 at 9:16 AM, f_heftdelphik...@gmail.com wrote: Hello, I'm developing a game based on SurfaceView and a game thread for the whole game thing (calculating/drawing/...). Now I want to do some HTTP requests triggered on events inside the thread. They should of course be asynchronous, so the game doesn't stop. I found AsyncTask to be a neat way to do this but I'm having trouble implementing this at the moment. Maybe I misunderstood the concept of AsyncTask , I don't know .. it just drives me nuts as I read docs and blogs and still I don't get it. So sorry if that's a dumb question but I'm mad of thinking about it. -- What would be best practice to do asynchronous things out of a thread? Regards, F Heft -- 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] WCF and Android
I'm quite new in android and I'm trying to learn how to use web service. I'm trying to add two number using REST web service in C# and Android client to used this web service. Until now i don't have any results. Please can you help me with some simple example, if possible full project. 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] how to get the thumbnail from video??
i got the thumbnail from video by using MediaMetadataRetriever class but it just give me one bitmap from video file. i want to get several bitmaps from video file. example. there is one video file and its duration is 60sec. i want to get the thumbnail bitmap from this video file per 10sec therefore, in case of this, i could get 6 thumbnails from this video file. how can i get the thumbnail in this case? is there another method for extrating thumbnail in this case? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Video playlist and javax.microedition
Anyone knows if Android 1.5 support video playlist format such SMIL? Also Android SDK doesn't include all the classes in J2ME such as: javax.microedition.media.protocol.DataSource Thanks Alan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: View Files on a remove server/PC
Just google for WinSCP. On Tue, Jul 28, 2009 at 3:11 PM, johnny johnny.ra...@gmail.com wrote: Is anyone aware of a way to view the directory structure and files on a remote server or PC? Is there an existing app for this? Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to add a seekbar or some other widget to the listview?
hi,all Someone have try add some widget to listview here? I want to add a progressbar to the bottom of some row of listview.But now, I only know the way to add the seekbar to every row of the listview by add a progessbar to the layout of the listview. [ ListAdapter scbooks = new SimpleCursorAdapter(this,R.layout.bookrow_layout,bookcur, from, to); ] here is my bookrow_layout.xml RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent !-- -- TextView android:id=@+id/booklist1 android:layout_width=wrap_content android:layout_height=30dip android:maxWidth=200dip android:textSize=20dip android:layout_marginTop=10dip / ProgressBar android:id=@+id/progress_horizontal style=?android:attr/progressBarStyleHorizontal android:layout_width=fill_parent android:layout_height=5dip android:max=100 android:progress=30 android:background=#00FF00 android:textColor=#00FF00/ /RelativeLayout Are some way to add the progressbar to some row of the listview? Or are there some way to get the ID of the listview? anyone can help me?thanks in advance. 非常感谢! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] regarding kSOAP web services.
Hi All, I want to know wether kSOAP2 is the right choice to consume the web service with Android or not. If yes then can somebody pls suggest me the right approach of the process and with the right .jar file that is required for the process. If not, then which is the approach to consume the webservice from Android. Seniors pls help. Thanks Ram --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Custom tabs issue
I've set the background image of my tabs using: tabs.getTabWidget().getChildAt(index).setBackgroundResource(resource) and then modified the dimensions of the tabs using: tabs.getTabWidget().getChildAt(index).getLayoutParams().height = height; tabs.getTabWidget().getChildAt(index).getLayoutParams().width = width; This worked out great, but there is a line (like a border) under (all) the tab buttons that I cannot make invisible. Is there any theme that can be applied in order to make it go away? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 a child views of particular TableRow in TableLayout ?
Hi all, I am also looking for solution, how to capture event when a particular TableRow is clicked in TableLayout? Thanks Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Jul 16, 3:09 am, Mapara,Harshit Nitinkumar hnmap...@gmail.com wrote: Hi All, Here is my screen description: It is aTableLayoutand it contains multiple Rows. I have set TableRow as clickable, as I want to go to next screen on click of a tableRow. Everything I am doing through Java programming (instead of XML layout, because number of TableRows changes each time) On next screen, I wanted to display all the views of that particular clicked TableRow. Here the problem i am facing is how to capture particular tableRow on onclick() even and how do I get all the textviews of that particular Row. I tried to set id at runtime, and tried to get id of view, but it's not working, giving error resourcenotfoundexception. Thanks Harshit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Media Activity Detection
Hi Is there a way to detect as a service whether the MediaPlayer, MediaRecorder are active. I bascially want to measure how active the phone is over time in terms of audio/video clips being watched, recorded including youtube. thanks Jackson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] C# Rest web service and Android client
Hay, I'm taying to make a simple Rest web service in C# and client on android. I find a simple C# web service, which add two number, on this link: http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/RESTEnabledService05122009034907AM/RESTEnabledService.aspx Can anyone help me to make Android client for this web service 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] SqliteOpenHelper db adapter design question
Hi all, I am writing an app that has a single database file with 3 tables ( AudioTable, PeopleMap, ImageTable) and am looking at 2 design alternatives: 1. A -single- database adapter (myDBAdapter.java) which uses a database helper class that extends SQLiteOpenHelper. The adapter class has separate methods for accessing and updating rows in each of the 3 tables. ie. insertAudio() insertPeople() insertImage() 2. 3 different database adapters for each table all using the same db file.. 1. audioDBAdapter.java, 2. peopleDBAdapter.java, 3. imageDBAdapter.java) Each adapter uses it's own db helper class (extending SQLiteOpenHelper) While option 2 offers better encapsulation of the 3 classes (and corresponding data), I'm wondering if there couldbe a performance overhead or does the SQLiteOpenHelper implementation handle this without much overhead ? Or is there some other way I can get better encapsulation with option 1. something similar to the way the Contacts Provider nicely allows for separate instances of Contacts.People, Contacts.Phones, Contacts.Settings, etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 content of AndroidManifest.xml in a .apk file?
I found the apk file could be decompressed. But after decompressed, the content of AndroidManifest.xml is just a lot of messy codes that I couldn't read it. So, is there anyway to get the content of a AndroidManifest.xml decompressed from a .apk? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Change Tab Background selector
Hi guys, a simple question: how to change the TabBackground in the different states (not the icon!) ? my files: tabindicator.xml selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=false android:state_selected=false android:state_pressed=false android:drawable=@drawable/tab_focus/ item android:state_focused=false android:state_selected=true android:state_pressed=false android:drawable=@drawable/tab_focus/ item android:state_focused=true android:state_selected=false android:state_pressed=false android:drawable=@drawable/tab_focus/ item android:state_focused=true android:state_selected=true android:state_pressed=false android:drawable=@drawable/tab_focus/ item android:state_pressed=true android:drawable=@drawable/tab_press/ /selector where should i call the xml file above??? i tried it in the TabWidget as src, but it doesn't work: TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content android:src=@layout/tabindicator // look here /TabWidget FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent /FrameLayout /LinearLayout /TabHost So i tried to use a own theme: ?xml version=1.0 encoding=utf-8? resources style name=tab parent=android:Theme.Light item name=android:tabWidgetStyle@style/tabindicatorstyle/ item /style style name=tabindicatorstyle parent=@android:style/ Widget.TabWidget item name=android:???@layout/tabindicator/item /style /resources but i don't know, which resource i should use instead of ???... can anyone help me? many thanks in advancde! king 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] SqliteOpenHelper db adapter design question
Hi all, I am writing an app that has a single database file with 3 tables ( AudioTable, PeopleMap, ImageTable) and am looking at 2 design alternatives: 1. A -single- database adapter (myDBAdapter.java) which uses a database helper class that extends SQLiteOpenHelper. The adapter class has separate methods for accessing and updating rows in each of the 3 tables. ie. insertAudio() insertPeople() insertImage() 2. 3 different database adapters for each table all using the same db file.. 1. audioDBAdapter.java, 2. peopleDBAdapter.java, 3. imageDBAdapter.java) Each adapter uses it's own db helper class (extending SQLiteOpenHelper) While option 2 offers better encapsulation of the 3 classes (and corresponding data), I'm wondering if there couldbe a performance overhead or does the SQLiteOpenHelper implementation handle this without much overhead ? Or is there some other way I can get better encapsulation with option 1. something similar to the way the Contacts Provider nicely allows for separate instances of Contacts.People, Contacts.Phones, Contacts.Settings, etc. Chris. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Draw Line around TextView?
Hi, Is it possible to draw a line around TextView. There is something available Drawable right , left, up and bottom. But how can I use it? Thanks and regards, Atif --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Application Menu
Hi, Is it possible to attach Menu to an application rather than each activity in the application? I have 20-23 activities in my application and it doesn't make sense me to add same menu to all the activities. any ideas??? -Par --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Gallery usage without using styleable
I ran into the same issue. The method call is not seen by the compiler. Use an object of the class Context to make that method call. If you are continuing the HelloGallery Example, there is a Context object already being used called mContext. So my code looks like this: public ImageAdapter2(Context c) { mContext = c; TypedArray a = mContext.obtainStyledAttributes (R.styleable.default_gallery); mGalleryItemBackground = a.getResourceId (R.styleable.default_gallery_android_galleryItemBackground, 0); a.recycle(); } After this change the example worked fine. Hope this helps, HIFI_LEO On Jun 3, 7:16 am, yaiza yaiza.tempr...@gmail.com wrote: Thank, lilbyrdie. It helped me a lot :) The thing is I'm still getting an error in function obtainStyledAttributes, where the compiler says that obtainStyledAttributes(int[]) is undefined. I have that class extending BaseAdapter. What am I missing? Should I be implementing an Interface or something? Thanks! Yaiza. On 13 mayo, 20:27, lilbyrdie kf6...@gmail.com wrote: I've answered my own question. Net result is the same, just a different way of getting to the default theme resources, but it's what I was missing. Within your attrs.xml file, place a block that looks like the following: declare-styleable name=default_gallery attr name=android:galleryItemBackground / /declare-styleable This basically provides access to the galleryItemBackground in the same way as before, but explicitly making it a styleable now. This is now used as before: Within the ImageUriAdapter(), load the background: TypedArray a = obtainStyledAttributes(R.styleable.default_gallery); mGalleryItemBackground = a.getResourceId( R.styleable.default_gallery_android_galleryItemBackground, 0); a.recycle(); Then, within the getView(), apply the background: imageView.setBackgroundResource(mGalleryItemBackground); I hope this helps someone. On May 12, 12:43 pm, lilbyrdie kf6...@gmail.com wrote: Hello, I'm trying to find the correct new way to do imageGalleryitems, previously (as also documented here:http://developer.android.com/guide/tutorials/views/hello-gallery.html and herehttp://developer.android.com/reference/android/widget/Gallery.html) the correct way was to apply android.R.styleable.Theme_galleryItemBackground. Of course, this has been removed (see here:http://groups.google.com/group/android-developers/browse_thread/threa...) even though theGalleryassumes it will be used (see aboveGallery documentation). The net effect is that, without this, agallerywith images looks pretty bad. I could copy out all of the values and resources to recreate the default look, or use reflection to get at styleable, but none of that seems like a particularly workable solution. Thoughts? What am I missing?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: video gallery
you can make thumbnail column in mediastore. and also get thumbnail bitmap from video file by using MediaMetadataRetriever class On 7월15일, 오전6시14분, Christine christine.kar...@gmail.com wrote: I let a user pick a video with the standard video gallery. But suppose I want to create my own video gallery, how do I get athumbnailfor the video from the Mediastore? For images there's a separatethumbnail thing, but I can't find a similar thing for videos, except for the mini_thumb_magic, from which I can't seem to get athumbnail. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 integrate DVB-SH on Android
Hello I am going to work on a project that consists in receiving television by satellite on handhelds. The standard that will be used is the DVB- SH (Digital Video Broadcasting - Satellite on Handhelds). I am looking for any technical documents describing the television software architecture in Android, how it is integrated, how to implement drivers and applications. Does someone know were I can find them ? Does someone know if there are some ongoing projects in Android/Linux world concerning DVB and particularly the satellite version DVB-SH ? Thank you in anticipation for all your answers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Did Android support make a dial in native code
hi,all i'm try to make a dial in native code, could i make a dial with RIL through socket or IPC communication?or push AT command directly to GSM Modem. could somebody can make some brief point to me. thanks a lot, edwin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ANN: Facebook Connect library for Android
Hello developers, I am happy to let you know that we have released initial version of the source code for the Facebook Connect library under Apache 2.0 license. This library is direct port of iPhone library. It allows you to use Facebook platform in your Android games and applications. Work is not finished yet, login and queries are working, permissions need to be finished. The code itself is very dirty as a result of rewrite from ObjectiveC/iPhone APIs and also APIs will change before some stable release could be done, however you can use it already, suggest changes and contribute. It was created as part of other project that was cancelled and we thought it could be useful to more developers, so there it is at http://code.google.com/p/fbconnect-android Enjoy! -M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: video screen disappeared after launch new task
I'm not have any idea how to create this project. I'm at beginning of developing this project, for now i don't have nothing. I read some blogs on forums but i don't find any full example. I think that you can help me with some simple example Thanks 2009/7/27 Mark Murphy mmur...@commonsware.com sleith wrote: any idea? Is this hardware or the emulator? If it is the emulator, can you reproduce the problem on a device? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Droid Wall - Android Firewall
I don't have an unlimited data plan, so I was quite frustrated to see that my G1 was consuming lots of megabytes in the background (also draining battery too fast). To solve this problem, I wrote this iptables front-end to block undesired applications from accessing the GRPS/3G network (white-list based), while keeping unrestricted access to the Wifi network. The goal is to create an iptables front-end, but currently this is the only feature available. IMPORTANT: Root access required - this was tested on a G1 with JFv1.50 Project home: http://code.google.com/p/droidwall/ or http://droidwall.googlecode.com/ I didn't publish it on market yet, but you can download the .apk from the site and install using adb. After installing, press menu and click Help for a (very) brief explanation on how to use it. I hope this will help other people. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] H264 codec
Hi, I want to test the h264 codec. I am trying to write a test application for that. I don't know what parameters to pass to theInitAVCDecoder (FunctionType_SPS, FunctionType_Alloc, FunctionType_Unbind, FunctionType_Malloc, FunctionType_Free, void *) ; Should I implement these functions? can somebody explain the flow of the h264 decoder in the opencore framework? 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] Re: Is there a way to determine which carrier the phone is using?
On 27 juil, 23:27, junker37 junke...@gmail.com wrote: Is there a way to determine which carrier the phone is using. T- Mobile, Spring, ATT, etc? You have to extend PhoneStateListener. I don't know if there's a better way, but it works: private class DummyPhoneStateListener extends PhoneStateListener { public void onServiceStateChanged(ServiceState serviceState) { // look here http://developer.android.com/intl/fr/reference/android/telephony/ServiceState.html String operatorAlphaLong = serviceState.getOperatorAlphaLong(); String operatorAlphaShort = serviceState.getOperatorAlphaShort(); } } And then in onCreate(): DummyPhoneStateListener myDummyPhoneStateListener = new DummyPhoneStateListener(); TelephonyManager manager=(TelephonyManager) this.getSystemService (Context.TELEPHONY_SERVICE); manager.listen (myDummyPhoneStateListener,PhoneStateListener.LISTEN_SERVICE_STATE); Hope that will help you. Stephane --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Deadlock in GLSurfaceView
cut - Has anyone else run into this issue? Judging on the stacktraces I'll say you run into this issue: http://code.google.com/p/android/issues/detail?id=2828. -- Bart (arcone1) Janusz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Quality cell phone and PDA accessories in USA
oneworldgift has thousands of unique products that you won't find anywhere else. Only the highest quality products are carried and we expand our produce line every day. Mobile accessories are our specialty and that's our complete focus. Our product development team brings in the newest..Read More at http://www.oneworldgift.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] GroupMembership : Trouble with cotent provider and a where clause [I am becoming crazy]
Hi, I use the GroupMembership Uri to find which people belong to a desired Group and I have got a strange behaviour of the content provider. I use the folowing Content Provider Request : private static final String[] PROJECTION_GROUP_MEMBER= new String[] {Contacts.GroupMembership._ID, Contacts.GroupMembership.GROUP_ID, Contacts.GroupMembership.PERSON_ID, GroupMembership.GROUP_SYNC_ID}; String whereGroupId = Contacts.GroupMembership.GROUP_ID+=?; Cursor c = cr.query(GroupMembership.CONTENT_URI, PROJECTION_GROUP_MEMBER, whereGroupId, new String[]{id_group}, null); This worked well untill that morning. Now, this cursor always get me c.getCount = 0 and c.moveToFirst() = false on my Htc Magic but not on the Emulator. I do several tests : 1- I saw what's going on if i change my where clause by : - whereGroupId = Contacts.GroupMembership.PERSON_ID +=?; - WORK FIND - Display all the group a person belongs - whereGroupId = Contacts.GroupMembership.GROUP_SYNC_ID +=?; - WORK FIND - Display all the persons belonged to that group 2- If i open my Htc Repertory , and i ask to filter on a group, i have got no problem. Do have any guess ? Do you have a solution ? Regards, Olivier --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: possible leak in orientation change?
Hm, I am getting the same behavior and waste a lot of time to understand why activity is created twice and didn't succeed. Am pretty sure that this is because dealing with async task, but I can't understand where the problem. Is there any way to find out why activity was created - stacktrace doesn't show me anything interesting. May be intent analyzing can help me? Please say where to look. On Jul 2, 11:07 pm, skink psk...@gmail.com wrote: skink wrote: hi, i just made another interesting observation: when and only when changing from landscape to portrait mode the screen dims a bit and the system sometimes calls my Activity twice: the first Activity is getting normal Activity life cycle but its onDestroy()ed in fraction of seconds, and then the second Activity is created and works as expected. i think that is the first 'temp' Activity that leaks. anyone had the same case? thanks pskink i found my leak - it was my foult - i was registering idle handler in onCreate letting it auto-unregister when system is idle (by returning false in idle handler) but since activity never went idle (because it was that phantom fast Activity) Looper kept my Activity reference - thus memory leaking. but my question remains: what is that phantom Activity which is created when switching from landscape to portrait? thanks pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] A Big BUG when read a Chinese string from /res/raw/xxxx.txt? what the mothed to this problem.
mydata locates /res/raw/.txt. it's a long Chinese String. such as : !...@#$%^*()[{'N':'啤酒鸡翅','K':'鸡翅','A':'啤酒、生姜、桂皮、八角','S':'1','M':'1、翅中洗净 从中'}...@#$%^*() it's formatted to JSON data with bracketed by a string !...@#$%^*() use this code to read the data from .txt inputStream = context.getResources().openRawResource(R.raw.); StringBuffer tempStr = new StringBuffer(); byte[] buffer=new byte[1024]; int size=buffer.length; while(size!=-1 || size=buffer.length){ size=inputStream.read(buffer); tempStr.append(new String(buffer, UTF-8)); } Log.d(TAG, tempStr.toString()); i found log out this messeage at LogCat. The bracketed String !...@#$ %^*() is found four times!!! Why? and with other garbage string. Why? is it a Big BUG? 07-27 04:38:05.100: DEBUG/DBAdapter(1058): ?...@#$%^*()[{'N':'??¤é??é?','K':'é?','A':'??¤é? §è§?','S':'1','M':'1-?′?-'}...@#$%^*() à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à?à? à?à?à?à?à?à?à?à?à?à?à?à?à?à??...@#$%^*()[{'N':'??¤é?? é?','K':'é?','A':'??¤é?§ è§?','S':'1','M':'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] Scripts are not showing up in the ASE , no option to save and run also
Below is the Configuration That I am using -- ASE Version AndroidScriptingEnvironment-0.10-2-alpha.apk Android SDK Version android-sdk-windows-1.5_r2 STEPS FOLLOWED ARE - using ADB ,pushed the python Interpretor to /data/data/com.google.ase/ python --Installation seems to successful using ADB , pushed the python scripts to /data/data/com.google.ase/ python_scripts --On the Emulator Screen it was not showing the Scripts. Tried Accessing the Scripts through Terminal export AP_PORT=5554 /data/data/com.google.ase/python/bin/ /data/data/com.google.ase/python_scripts/saytime.py o/p Bad variable name Looking Forward for some help.. Thanks and Regards Prakash vel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: WebView and HTTP Post requests
but how do you pass that cookie which is a sessionsId for the webview to continue the with the link you wanted to go to? On Jul 19, 2:35 am, DGupta kaiserollofd...@gmail.com wrote: Yeah so thats basically what I had to do,except if I got the Cookies from the HttpResponse by asking for the Set-Cookie headers and placing the values from each of the headers as the value for setCookie() and just use the URL. This way I didn't have to build a string, the string was already the proper value. Thanks for all the help! On Jul 16, 9:02 pm, Jason Proctor jason.android.li...@gmail.com wrote: here's your problem, i think -- the getValue() method of the Apache Cookie class returns the value of the cookie, ie from jsessionid=blah would retrieve blah -- but -- the setCookie() method of the WebKit CookieManager class takes a parameter called value, but it's referring to something different. the (typically terse) doc says the value for set-cookie: in http response header. my theory would be that it wants something like a full cookie response string, like this -- name=value; expires=date; path=pathname; domain=name; given that you also pass a URL into the setCookie() method, i think just the name=value and expires=date elements should do it. indeed the doc says that setCookie() checks the expiry, so minimally you'd want to set that explicitly, though you could try it without. so in your code, you'd build the value string from the Apache Cookie using getName(), getValue(), and getExpiry() etc, and then give that to WebKit. also -- is your code actually copying any cookies? log them and make sure you're copying what you think you're copying. hth I've been trying this. I get the CookieStore from the HttpClient that executes the HttpPost. I then get all the values from the CookieStore and place it in the CookieManager using CookiManager.getInstance ().setCookie(url, theCookieStore.getCookies().get(i).getValue()); where i is the value in whatever for loop I'm using. This still does not seem to work with the WebView, because after I execute the post and place the cookies in the CookieManager I attempt to load the tumblr.com/iphone website and it doesn't automatically login. I'm completely baffled as to what to do. I tried getting the cookies from the HttpResponse, but that still didn't do anything. does the CookieManager handle WebViews? -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 catch event from the virtual keyboard ?
Hi Everything is in the title : How to catch event from the virtual keyboard ? In fact, I want to know if the screen is touch for instance. Thank you in advance ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] android magnify feature similar to iphone
Hi all, I am writing a board game and because of the size of the pieces on the screen, I would like to implement something similar to the iphone. In the sms or email app on the iphone, when you press a key on the keyboard, the key is sort of magnify to show the user the key that has been pressed. I would like the same feature. when the player touches a piece on the board, the piece is magnified so that the player knows what has been selected. could anybody give me a hand or point me to some examples that are available? 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] How to catch event from the virtual keyboard ?
Hi, everything is in the title : How to catch event from the virtual keyboard ? I want to know if the screen is touched for instance. Thank you in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SSL/TLS implementation?
Hi im currently having some thoughts on how to do this in Android code, cause i've seen that Android has this SslCertificate in which i don't understand of using.. and right now im using HttpClient for loggin in into a website and from there i can get the response content and thus i did made some cookie extraction to get the session id , another problem i can't figure is to how to use that session to let the webview of mine show the right webpage for it while retaining the session. can you give me example / start up codes for these problems thanks guys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android Dev Phone 1 out of stock
Nobody seems to have answered the question, Like you, i recently got fed up waiting for the G1 to be released in my country (Ireland) so I decided to order the ADP1, only to find out there was no stock. If you check the View Cart page of the order website, https://android.brightstarcorp.com/cart.php, it says they expect availability to resume on March 4. I rang them to confirm that it would take 9 months, and that message is a mistake. I was told the phone would be restocked by the end of August. So i guess its eBay or wait a month. On Jul 25, 10:14 am, kenpark patrick.seiff...@gmx.net wrote: Hej. Yesterday I registered in the Android Market Place to be able to retrieve one of the dev devices. But after I had registered and paid the fee I was told that the dev phones are currently out of stock. Since I need one of those devices for my masterthesis I was very unhappy to hear that it may take a few weeks. Does anyone know (or can one estimate) when they might be available again? Regards, Kenpark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] developer.android.com is not opening..
Hi, developer.android.com not opening for me.. Is it happening to every one? I am trying to read some documentation related to testing Automation in this site.. Any workaround is available ? Thanks Regards, kamal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Network Status API
Hi All, I load a page from internet using webview and get an instance of the ConnectivityManager class and get the Network Info from which i get it's status. I would like to know if the status returned is the TCP/IP status of the connection used to access the web page or any other status. i.e the state variable of the NetworkInfo returned by getActiveNetworkInfo() is the TCP/IP status or not. Regards, Leena M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ClassCastException if the same lib is used
Hello, Hopefully someone can help me. I do have e realy strange problem. I have 4 Projects: 1. Is the Application it self 2. Is a Library with a StatisticView 3. and 4. Is a spezial subProject. The views in here will be used by the main Application. All Projects (1., 3. and 4.) needs Project 2. Project 1. 3. and 4. have the same shared user id (with out a can't start an activity form an other Project) I have a TabView. 1. Tab is a view out of the main Application 2. A View (StatisticView out of Project 3) 2. A View (StatisitcView out of Project 4) Now the Problem. I can open the StatisitcView (in Tab 2) without any problem, but do i tap on Tab 3 the following exception will be thrown (same effect when i start with Tab 3 and then Tab 2): 07-28 22:45:16.605: ERROR/AndroidRuntime(982): Uncaught handler: thread main exiting due to uncaught exception 07-28 22:45:16.715: DEBUG/dalvikvm(982): GC freed 3225 objects / 205560 bytes in 99ms 07-28 22:45:16.745: ERROR/AndroidRuntime(982): java.lang.RuntimeException: Unable to start activity ComponentInfo {ch.fhnw.aswissbook.plugin.sms/ ch.fhnw.aswissbook.plugin.sms.gui.ActDetailsSMS}: java.lang.ClassCastException: ch.fhnw.aswissbook.gui.statistics.StatisticView 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2140) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.app.ActivityThread.startActivityNow(ActivityThread.java:1988) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java: 122) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.app.LocalActivityManager.startActivity (LocalActivityManager.java:335) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.widget.TabHost$IntentContentStrategy.getContentView (TabHost.java:592) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.widget.TabHost.setCurrentTab(TabHost.java:302) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:118) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:268) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.view.View.performClick(View.java:2083) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.view.View.onTouchEvent(View.java:3497) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.view.View.dispatchTouchEvent(View.java:3152) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:809) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1561) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1085) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.app.Activity.dispatchTouchEvent(Activity.java:1873) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1545) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.os.Handler.dispatchMessage(Handler.java:88) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.os.Looper.loop(Looper.java:123) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at android.app.ActivityThread.main(ActivityThread.java:3742) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at java.lang.reflect.Method.invokeNative(Native Method) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at java.lang.reflect.Method.invoke(Method.java:515) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at dalvik.system.NativeStart.main(Native Method) 07-28 22:45:16.745: ERROR/AndroidRuntime(982): Caused by: java.lang.ClassCastException: ch.fhnw.aswissbook.gui.statistics.StatisticView 07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
[android-developers] Viewing more details in list item using Listactivity and onListItemClick
Hi, I'm new to Android, and am using ListActivity to view a list of items. I would like to click on an item and expand that clicked list item to show more details. I was able to get the click triggered using onListItemClick, but don't know how to create an expanded view upon clicking. Any help woudl be greatly appreciated. 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] how to add other status to power-off menu
just such subject example: I wanna add reboot to power-off menu so which file I should recompile . which order or what code i should 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] Change Tab Widget icon for currently active tab
Dianne Hackborn wrote the following XML-file to change the tab icon: ?xml version=1.0 encoding=utf-8? !-- Copyright (C) 2008 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- selector xmlns:android=http://schemas.android.com/apk/res/android; !-- Non focused states -- item android:state_focused=false android:state_selected=false android:state_pressed=false android:drawable=@drawable/tab_unselected / item android:state_focused=false android:state_selected=true android:state_pressed=false android:drawable=@drawable/tab_selected / !-- Focused states -- item android:state_focused=true android:state_selected=false android:state_pressed=false android:drawable=@drawable/tab_focus / item android:state_focused=true android:state_selected=true android:state_pressed=false android:drawable=@drawable/tab_focus / But i have no idear, where to write this code? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content /TabWidget FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent /FrameLayout /LinearLayout /TabHost many thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Webservices an Android.
Hi All, While consuming webservice I am getting the following error. Can somebody suggest me the cause. java.lang.VerifyError: org.ksoap2.transport.ServiceConnectionMidp at org.ksoap2.transport.HttpTransport.getServiceConnection(Unknown Source) at org.ksoap2.transport.HttpTransport.call(Unknown Source) at infy.lbs.POILocator.onCreate(POILocator.java:40) at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1122) at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2103) at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2156) at android.app.ActivityThread.access$1800(ActivityThread.java:112) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1580) at android.os.Handler.dispatchMessage(Handler.java:88) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3742) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) at dalvik.system.NativeStart.main(Native Method) Waiting 4 a quick reply. Thanks Ram --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Launching a Dialog from Overlay/MapActivity
Hi, I've hit a wall on an app I'm writing. What the app does is it has a list of locations that are marked on a Map through an Overlay. What I want to do is make it so when the user clicks on a point, a dialog will pop up giving some information that has been stored in a database about that location. I have gotten this to work to some degree using onTouchEvent in the Overlay (another class called MapOverlay) and an OnTouchListener in the MapActivity. However, the problem is that once I click to move the map around or bring up the zoom controls, it seems like the OnTouchListener dies and does not get reactivated or that the overrided method OnTouch in the OnTouchListener is never called again. I can't do showDialog in an Overlay, and all attempts to launch a Dialog through the MapOverlay have failed so far. Any suggestions? Thanks, Andrew Here is some of the code in the Map class (which extends MapActivity): private Cursor c; private MapController mapController; private MapView mapView; private MapOverlay mapOverlay OnTouchListener OTL = new OnTouchListener(){ @Override public boolean onTouch(View v, MotionEvent event){ if(mapOverlay.onTouchEvent(event, mapView)){ showDialog(DIALOG_ID); mapView.invalidate(); return true; } return false; } }; @Override protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.map); adapter = new Adapter(this); adapter.open(); mapView = (MapView) findViewById(R.id.mapview); mapView.setSatellite(true); mapView.setStreetView(true); mapView.setBuiltInZoomControls(true); c = adapter.getAll(); startManagingCursor(c); mapController = mapView.getController(); mapOverlay = new MapOverlay(c); mapView.getOverlays().add(mapOverlay); mapView.setOnTouchListener(OTL); mapView.postInvalidate(); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] About TouchEvent..! in class Mapview or javascript
Hi! nice to meet you. I'm developing Android. But I can't... First, I wanna click on Google Map(in package MapView) And wanna get the value(GPoint) But that have no Event Handler, So I think that use to JavaScript. JavaScript can't call the Package http://maps.google.com/maps; How can I this?? I wanna use to google map. Describe to me. First, Can I use EventHandler? Use to MapView... Second, can I use package googlemap in JavaScript please, Describe to me by be attached the 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] Want to earn online $400 to $500 per month !!!!
hey !!1 there is an oppurtunity for u all to earn $400 to $500 per month really and that works just go on with the link to know the details http://www.123maza.com/1011/telecommunication go ahead and fill your pocket :) :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Eclipse : Unknown error: SDK is not loaded yet. * upgrade failed *
I have same problem, SDK not loaded. I fixed it by 1. Starting eclipse 2. Click Green arrow, pick Run Configurations 3. In Run Configurations, make sure target AVD my_avd is checked. (for me, it was unchecked) On Jun 1, 11:00 pm, Mike Wolfson mwolf...@gmail.com wrote: This fixed my problem. Thanks Raphael. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 android predefined view in Activity?such as @id/android:list
i'm using the ListActivity with customized layout xml: LinearLayout ... ListView android:layout_width=fill_parent android:layout_height=wrap_content android:id=@id/android:list/ ... /LinearLayout however, i cannot get the view throught method findViewById, since the id does not in the R.id, so could you help me the get this listview, 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] How to install apk files in androd 1.5 using Eclipse IDE and what are the .apk files that should be installed???
Hi friends , I am new to android working on eclipse with android 1.5 r2 version when i am running a basic program its showing a error .apk file not found.If any of you have came across this problem please help me.. with Regards, Venkat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] sdcard mounted but not detected by android system.
I'm having a problem with sdcard detection. I've gotten the sdcard mounted, it lists as a mount point and the SD card and phone storage read it and can list available space, however any apps requiring the card still do not detect it. Here is my mount info; # mount rootfs on / type rootfs (rw) proc on /proc type proc (rw) sys on /sys type sysfs (rw) /dev/block/mmcblk0p1 on /sdcard type vfat (rw,noatime,nodiratime,fmask=,dmask=,codepage=cp437,iocharset=iso8859-1,flush) /dev/block/mmcblk0p1 on /cache type vfat (rw,noatime,nodiratime,fmask=,dmask=,codepage=cp437,iocharset=iso8859-1,flush) /dev/block/loop0 on /data type ext2 (rw,sync,noatime,nodiratime,errors=continue) /dev/block/loop1 on /system type ext2 (ro,noatime,nodiratime) tmpfs on /dev type tmpfs (rw,mode=755) devpts on /dev/pts type devpts (rw,mode=600) tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k) here is the command I've used to mount the sd; mount -t vfat -o fmask=,dmask=,rw,flush,noatime,nodiratime /dev/block/ mmcblk0p1 /sdcard In the global environment I've made sure the external storage is set to /sdcard and I've notified vold that the sdcard is already mounted in my init.rc using the following command; setprop EXTERNAL_STORAGE_STATE mounted I hope this is the right forum, I've never had to post in here before. Thanks for the 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] Replacement for 'Recent Tasks' App (longpress home key)
I am writing an app that will replace the functionality of the dialog displayed when performing a longpress on the home key and cannot figure out how to get my activity to launch via that method. I have spent the last week searching through the SDK, Google Groups, and normal google searches to try to find the solution to this, and I just can't find anything. I should just have to come up with the correct recipe for intent- filters, right? Any insight would be greatly appreciated! Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Zii Egg's Android OS
As you all can see in this image: http://www.ziilabs.com/content_images/resource/DG-Zii%20EGG%20Specs.jpg thay have two hardware buttons: HOME and CAMERA buttons (Power it's Power) so where is the MENU button, because as I saw in thier movies when he press CAMERA button goes BACK, so MENU is missing. MENU button could be a software button? They build a custom Android OS to fit their hardware, so this could be done, to have only one hardware button or none on Android. What do you think? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] i have problem with gps .
can i emulate app with gps on emulator? and any sample code for gps --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] running Ubuntu (virtual box) over WinXp
hi, We are starting development in Android and I have a question about the environment. Is there any issue about using VirtualBox/VMware (running ubuntu) as android's environment? We can't use native linux machine because we still must access company's network, so the virtual machine would solve some issues about browsing the web and streaming. thanks in advance! brs fabiano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multi-touch
Hi. Does Donut really support multi-touch? If yes, where I can find this support in code? 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] Video playlist and javax.microedition
Anyone knows if Android 1.5 support video playlist format such SMIL? Also Android SDK doesn't include all the classes in J2ME such as: javax.microedition.media.protocol.DataSource. I want to stream segmented clips of a long video. Thanks Alan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SQLiteDatabase table
Hi, I've an SQLiteDatabase mydb.db. I want to check whether a particular table named 'table1' exists or not at the beginning of my pgm. Do i have any methods for checking that without the create table if not exists query? Any suggestions Regards.. Jayaram --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SQLiteDatabase table
I'm working with SQLiteDatabase. I need to find out whether a table named 'table1' exists in my database or not, programmatically. Is there any method to find that? Thanks in advance. -- Regards, T.JAYARAM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Where can I find good remote Android developers?
oDesk is a great place for remote contractors. Check out their Android group - http://www.odesk.com/groups/android - which only has developers approved by Google. Amit On Jul 28, 5:33 pm, Mark Murphy mmur...@commonsware.com wrote: Rch wrote: Can any of suggest a place where I can hire remote Android developers. I want to build an app soon. If you are willing to give me more details, I can spread the word in a upcoming Help a 'Droid Out (HADO) email: http://wiki.andmob.org/hado There is also a job board on anddev.org. Plus, of course, there are all your normal places to post jobs or find people (DICE, Monster, Rent-A-Coder, etc.), where you just have to use Android-y keywords. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ksoap library on android
i got a ksoap library from http://code.google.com/p/ksoap2-android/ and add it as an external library but when my application need to use the library it will crash Error report like following Source not found the Jar of this class file belongs to container Android1.5 which does not allow modifications to source attachments on its entries what's worng with 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] HTTPS connection in Android how to do it?
Hi i am currently need to log in to a website with a username and password supplied to a https scheme but certificate not trusted how to do it in android code? 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] ksoap2 livrary in android
i want to use ksoap2 library on my application and i got a ksoap2 library from http://code.google.com/p/ksoap2-android/ i add it as an external library but my application will crash when it need to use the library what's wrong with 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] ARM ABI compliance
Hello, I have one doubt regarding the ABI compatibility of the binaries generated in Android. Are they ARM ABI compatible. In the sense, can I link a library generated using RVCT compiler with and Android application without any issues? As I found in the earlier discussions, Android ABI is not compatible with GNU ABI. But, Is it compatible with ARM ABI? Thanks Regards, Prasanth K --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
Res: [android-developers] What is Mediaplayer.[..] onBufferingUpdate actually telling me?
hi, You don't get updates because your player is consuming the media data, so as soon as the data is arrived (from remote source) it's being played. try to pause for a while to see what happens. the idea is don't let the buffer gets empty or you will have to restart the player (i'm not sure this happens in android, it DOES in java). br fabiano De: zero zeroo...@googlemail.com Para: Android Developers android-developers@googlegroups.com Enviadas: Quarta-feira, 29 de Julho de 2009 11:31:12 Assunto: [android-developers] What is Mediaplayer.[..] onBufferingUpdate actually telling me? Hi all I'm trying to play streamed mp3 from a remote source. basically it works, but the behaviour of the bufferingupdate listener is a riddle to me. I either get no calls at all, or updates like 1% , 2% then nothing more. music is playing already, but the buffering never goes to 100%. which i think is the cause for getting unknown mediaplayer errors after calling pause/stop and then start again. so, ??? ideas ?? zero Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.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] Why did binder report transaction failed?
Hi All, I am porting ril in android. Phone call is fine and I also can send sms.But rild will crash when there is a sms come and binder report transaction failed. Here is radio log. Any help will be appreciated. D/RILJ( 1224): [0079] SIGNAL_STRENGTH D/RIL ( 1254): onRequest: SIGNAL_STRENGTH D/AT ( 1254): AT AT+CSQ D/AT ( 1254): AT +CSQ: 9,99 D/AT ( 1254): AT OK D/RILJ( 1224): [0079] SIGNAL_STRENGTH {9, 99} D/AT ( 1254): AT +CMT: ,26 D/AT ( 1254): AT 0891683108200105F0040D91683116612260F6907082223055230677B2D92C3E03 D/RILJ( 1224): [UNSL] UNSOL_RESPONSE_NEW_SMS D/GSM ( 1224): SMS SC address: +8613800210500 D/GSM ( 1224): SMS SC timestamp: 1248789835000 D/GSM ( 1224): New SMS Message Received D/RILJ( 1224): [0080] SMS_ACKNOWLEDGE D/RIL ( 1254): onRequest: SMS_ACKNOWLEDGE D/AT ( 1254): AT AT+CNMA=1 D/GSM ( 1260): SMS SC address: +8613800210500 D/GSM ( 1260): SMS SC timestamp: 1248789835000 D/AT ( 1254): AT OK D/RILJ( 1224): [0080] SMS_ACKNOWLEDGE W/RILC( 1254): EOS. Closing command socket. 6binder: 802:821 transaction failed 29189, size 168-0 6binder: 802:821 transaction failed 29189, size 168-0 I/RILC( 1254): libril: new connection I/RILC( 1254): RIL Daemon version: android reference-ril 1.0 I/RILJ( 1389): Connected to 'rild' socket D/RILJ( 1389): Radio ON @ init; reset to OFF D/RILJ( 1389): [] RADIO_POWER D/RIL ( 1254): onRequest: RADIO_POWER D/RILJ( 1389): [UNSL] UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_UNAVAILABLE W/GSM ( 1389): Can't open /system/etc/voicemail-conf.xml W/GSM ( 1389): Can't open /system/etc/spn-conf.xml D/GSM ( 1389): [DSAC DEB] registerForPsRestrictedEnabled D/GSM ( 1389): [DSAC DEB] registerForPsRestrictedDisabled E/RILJ( 1389): Hit EOS reading message length I/RILJ( 1389): Disconnected from 'rild' socket D/RILJ( 1389): [] RADIO_POWER error: com.android.internal.telephony.gsm.CommandException: RADIO_NOT_AVAILABLE I/RIL ( 1411): Opening tty device /dev/pts/0 D/RILJ( 1389): [] GET_CURRENT_CALLS D/RILJ( 1389): [] GET_CURRENT_CALLS error: com.android.internal.telephony.gsm.CommandException: RADIO_NOT_AVAILABLE D/GSM ( 1389): Poll ServiceState done: oldSS=[1 home null null null ] newSS=[1 home null null null ] oldGprs=1 newGprs=1 oldType=unknown newType=unknown D/GSM ( 1389): [DataConnectionTracker] Radio is off and clean up all connection D/GSM ( 1389): [DataConnectionTracker] Clean up connection due to radioTurnedOff D/GSM ( 1389): [DataConnection] Stop poll NetStat D/GSM ( 1389): [DataConnectionTracker] setState: IDLE D/GSM ( 1389): [DataConnection] Stop poll NetStat D/GSM ( 1389): [DataConnectionTracker] ***trySetupData due to roamingOff D/GSM ( 1389): [DSAC DEB] trySetupData with mIsPsRestricted=false D/GSM ( 1389): [DataConnectionTracker] trySetupData: Not ready for data: dataState=IDLE gprsState=1 sim=false UMTS=false phoneState=IDLE dataEnabled=true roaming=false dataOnRoamingEnable=false ps restricted=false D/GSM ( 1389): [GsmSimCard] Broadcasting intent SIM_STATE_CHANGED_ACTION NOT_READY reason null I/RILJ( 1389): Connected to 'rild' socket I/RILC( 1411): libril: new connection I/RILC( 1411): RIL Daemon version: Enfora EDG308 RIL 1.0 D/RILJ( 1389): [UNSL] UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_UNAVAILABLE D/AT ( 1411): AT ATE0Q0V1 D/GSM ( 1389): Notifying: radio available D/RILJ( 1389): [0001] RADIO_POWER D/GSM ( 1389): Poll ServiceState done: oldSS=[1 home null null null ] newSS=[3 home null null null ] oldGprs=1 newGprs=1 oldType=unknown newType=unknown D/RILJ( 1389): [0002] SCREEN_STATE: true D/RILJ( 1389): [UNSL] UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_OFF D/RILJ( 1389): [0003] BASEBAND_VERSION D/RILJ( 1389): [0004] GET_IMEI D/RILJ( 1389): [0005] GET_IMEISV D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CFUN=0 D/AT ( 1411): AT +CME ERROR: 4 D/AT ( 1411): AT ATE0Q0V1 D/AT ( 1411): AT OK D/AT ( 1411): AT ATS0=0 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CMEE=1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CREG=1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CRC=1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CGREG=1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CCWA=1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CMOD=0 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CMUT=0 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CSSN=0,1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+COLP=0 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CSCS=UCS2 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to
[android-developers] DataSource
Android doesn't support J2ME's DataSource. Does anyone implement similar class for Android to support playlist? Thx Alan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 set device wide screen orientation
Hi androids, This is my first message over here and I'm a starting android developer so please be patient. Here's my case; I'm trying to create a simple program that sets the device's screen orientation by the press of a button. It's quite easy to set and change the orientation for the current activity, but I want to set and keep the setting until the button is pressed again like when the keyboard is slide out and back in on a G1 or by the movementsensor. I started with using the setRequestedOrientation() but I quickly found that's only for the current activity, as soon is I close the activity the screen returns to it's original state. I then found that it's possible to set orientation with updateConfiguration() Configuration config = new Configuration(); config.orientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; getResources().updateConfiguration(config, getResources ().getDisplayMetrics()); but this doesn't seem to have any effect for what soever. I've spent hours and hours googling for possible solutions but I'm completely stuck and the only option I found was to emulate the keyboard slide out and in, but besides the fact that I wouldn't know how, that seems a bit of a big solution for what seems to be a simple task. I thought this would be easy (and maybe it is), can somebody help me out or point me in the right direction? Thanks in advance, Michel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Images not loading on the phone
Hi All, In my app I am downloading images from a remote server and putting it into a gallery and displaying it. The problem is that when i do it on the emulator it works absolutely fine but when i do it on the phone few of the images come and a few are null. I tried many ways but I am not able to find the perfect way. The images on my server are of 50 kb max. But still some are downloaded and rest are not. it would be really great if someone could help me asap coz i need to make this app live by this weekend. Here is the code snippet to download the images from the server. public Bitmap getImage(String photoUrl) { Bitmap image = null; if (!photoUrl.equals()) { if(photoUrl.contains( )) { photoUrl = photoUrl.replaceAll( , %20); } try { URLConnection conn = new URL(photoUrl).openConnection(); conn.connect(); InputStream inStream = conn.getInputStream(); BufferedInputStream bis = new BufferedInputStream(inStream); image = BitmapFactory.decodeStream(bis); bis.close(); inStream.close(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { image = BitmapFactory.decodeResource(getResources(), R.drawable.image_not_available); } } else { image = BitmapFactory.decodeResource(getResources(), R.drawable.image_not_available); } return image; } Also is there any other way of loading the images in a seperate thread like it happens in the android market. please reply. Thanks Pulkit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Incoming SMS lead rild crash
Hi All, I am porting ril in android. Phone call is fine and I also can send sms.But rild will crash when there is a sms come. Here is radio log. Any help will be appreciated. D/RILJ( 1224): [0079] SIGNAL_STRENGTH D/RIL ( 1254): onRequest: SIGNAL_STRENGTH D/AT ( 1254): AT AT+CSQ D/AT ( 1254): AT +CSQ: 9,99 D/AT ( 1254): AT OK D/RILJ( 1224): [0079] SIGNAL_STRENGTH {9, 99} D/AT ( 1254): AT +CMT: ,26 D/AT ( 1254): AT 0891683108200105F0040D91683116612260F6907082223055230677B2D92C3E03 D/RILJ( 1224): [UNSL] UNSOL_RESPONSE_NEW_SMS D/GSM ( 1224): SMS SC address: +8613800210500 D/GSM ( 1224): SMS SC timestamp: 1248789835000 D/GSM ( 1224): New SMS Message Received D/RILJ( 1224): [0080] SMS_ACKNOWLEDGE D/RIL ( 1254): onRequest: SMS_ACKNOWLEDGE D/AT ( 1254): AT AT+CNMA=1 D/GSM ( 1260): SMS SC address: +8613800210500 D/GSM ( 1260): SMS SC timestamp: 1248789835000 D/AT ( 1254): AT OK D/RILJ( 1224): [0080] SMS_ACKNOWLEDGE W/RILC( 1254): EOS. Closing command socket. 6binder: 802:821 transaction failed 29189, size 168-0 6binder: 802:821 transaction failed 29189, size 168-0 I/RILC( 1254): libril: new connection I/RILC( 1254): RIL Daemon version: android reference-ril 1.0 I/RILJ( 1389): Connected to 'rild' socket D/RILJ( 1389): Radio ON @ init; reset to OFF D/RILJ( 1389): [] RADIO_POWER D/RIL ( 1254): onRequest: RADIO_POWER D/RILJ( 1389): [UNSL] UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_UNAVAILABLE W/GSM ( 1389): Can't open /system/etc/voicemail-conf.xml W/GSM ( 1389): Can't open /system/etc/spn-conf.xml D/GSM ( 1389): [DSAC DEB] registerForPsRestrictedEnabled D/GSM ( 1389): [DSAC DEB] registerForPsRestrictedDisabled E/RILJ( 1389): Hit EOS reading message length I/RILJ( 1389): Disconnected from 'rild' socket D/RILJ( 1389): [] RADIO_POWER error: com.android.internal.telephony.gsm.CommandException: RADIO_NOT_AVAILABLE I/RIL ( 1411): Opening tty device /dev/pts/0 D/RILJ( 1389): [] GET_CURRENT_CALLS D/RILJ( 1389): [] GET_CURRENT_CALLS error: com.android.internal.telephony.gsm.CommandException: RADIO_NOT_AVAILABLE D/GSM ( 1389): Poll ServiceState done: oldSS=[1 home null null null ] newSS=[1 home null null null ] oldGprs=1 newGprs=1 oldType=unknown newType=unknown D/GSM ( 1389): [DataConnectionTracker] Radio is off and clean up all connection D/GSM ( 1389): [DataConnectionTracker] Clean up connection due to radioTurnedOff D/GSM ( 1389): [DataConnection] Stop poll NetStat D/GSM ( 1389): [DataConnectionTracker] setState: IDLE D/GSM ( 1389): [DataConnection] Stop poll NetStat D/GSM ( 1389): [DataConnectionTracker] ***trySetupData due to roamingOff D/GSM ( 1389): [DSAC DEB] trySetupData with mIsPsRestricted=false D/GSM ( 1389): [DataConnectionTracker] trySetupData: Not ready for data: dataState=IDLE gprsState=1 sim=false UMTS=false phoneState=IDLE dataEnabled=true roaming=false dataOnRoamingEnable=false ps restricted=false D/GSM ( 1389): [GsmSimCard] Broadcasting intent SIM_STATE_CHANGED_ACTION NOT_READY reason null I/RILJ( 1389): Connected to 'rild' socket I/RILC( 1411): libril: new connection I/RILC( 1411): RIL Daemon version: Enfora EDG308 RIL 1.0 D/RILJ( 1389): [UNSL] UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_UNAVAILABLE D/AT ( 1411): AT ATE0Q0V1 D/GSM ( 1389): Notifying: radio available D/RILJ( 1389): [0001] RADIO_POWER D/GSM ( 1389): Poll ServiceState done: oldSS=[1 home null null null ] newSS=[3 home null null null ] oldGprs=1 newGprs=1 oldType=unknown newType=unknown D/RILJ( 1389): [0002] SCREEN_STATE: true D/RILJ( 1389): [UNSL] UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_OFF D/RILJ( 1389): [0003] BASEBAND_VERSION D/RILJ( 1389): [0004] GET_IMEI D/RILJ( 1389): [0005] GET_IMEISV D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CFUN=0 D/AT ( 1411): AT +CME ERROR: 4 D/AT ( 1411): AT ATE0Q0V1 D/AT ( 1411): AT OK D/AT ( 1411): AT ATS0=0 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CMEE=1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CREG=1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CRC=1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CGREG=1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CCWA=1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CMOD=0 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CMUT=0 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CSSN=0,1 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+COLP=0 D/AT ( 1411): AT OK D/AT ( 1411): AT AT+CSCS=UCS2 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this
[android-developers] Video encoding
I'm trying to encode a video file from a series of images using android. I am wondering if this is at all possible with the current API's -- all current devices has the ability to encode video ( from the camera ), but is it possible to use the encoder with user-supplied images ? thanks, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Broken OpenGL texture output after resuming the app
I've run into a very strange problem regarding OpenGL texture outputs, which only occurs when the app is resumed (particularly when leaving after pressing Home, and going back into the app). I'm not sure how or why, but it appears to be that it's reading bitrate of the pixels incorrect, or something else entirely. Furthermore, this issue only occurs on the device itself (testing on my G1/Dream), not on the emulator. Code as well as example screenshots in the zip file show exactly what I'm talking about. And to completely replicate the issue I've included the 2D sprite object framework I've developed for OpenGL so the situation is exactly the same as what I've run across when developing my game, so if it's somehow an issue in my framework you may be able to spot it. Here is the link to a test example project with included screenshots: http://a.imagehost.org/download/0828/BrokenTexture.zip I've been told this may be a bug in the device's openGL driver, but we can't be sure until further testing and analysis is done. Another important thing to note (with extensive debugging on my part, and visually noticeable) is after resuming the app, the texture draws correctly on the first frame; after that the texture is 'broken'. Any thoughts on this would be greatly appreciated. Also, this has been tested on multiple ROMs, including HTC ADP 1.5, first T-Mobile OTA 1.5, and latest T-Mobile OTA 1.5. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] NUMERIC data type in sqlite and dispay use SimpleCursorAdapter
... Cursor c = ppp.getAll(); String[] from = new String[] {name,gender,income}; int[] to = new int[] { R.id.text1,R.id.text2,R.id.text3}; SimpleCursorAdapter peoples = new SimpleCursorAdapter (this,R.layout.money_row, c, from, to); setListAdapter(peoples ); Try to use SimpleCursorAdapter to display data, but a question. a field type is numeric. when display it the value is 2000.12345 will be display 2000.12, save it in database field is 2000.1234 the value is 1.1234567 will be display 1.12346, save it in database field is 1.1234567 what's the problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Calling all Sydney/Australia Android Developers
Register with the Sydney Android Developers User Group. THE place to meet, network, discuss, share. Just join the Sydney Android Developers User Group in Google Groups and we will set up meetings etc.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Where can I find good remote Android developers?
You can find Android developers on the odesk site. This is a great place to find freelance developers. http://www.odesk.com/groups/android PG On Jul 28, 7:28 pm, Rch ruchi...@gmail.com wrote: Hi Can any of suggest a place where I can hire remote Android developers. I want to build an app soon. - Rch --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tabs
I want to display the footer text to the tabs and i want to create tabs with images . please help me i am the android beginer. 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] Android FTP
hello I whant to make android simple FTP client, but I cant use any FTP sdk , can someone to tell me how to make connection to ftp on android --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Black Berry Pearl 8220 Smart phone
Everything you need for your life on the go is here. With the BlackBerry Pearl 8220 Smartphone tucked in your pocket, you’re always just a flip away from the people, fun and facts that matter. You've got pocket-sized entertainment in one package: a media player, camera and Video recording, Wi-Fi and video streaming, and a large screen for .. Read More at http://www.oneworldgift.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] virtualbox+ubuntu as Android development enviroment
HI, Is there any problem in running virtualised-Ubuntu over WinXp machine to develop android app? I have to keep the WinXp to access company stuff. tks, fabiano Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.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] GroupMembership : Content Provider and WHERE clauses troubles And HTC Magic
Hi, I use the GroupMembership Uri to find which people belong to a desired Group. I use the folowing Content Provider Request : private static final String[] PROJECTION_GROUP_MEMBER= new String[] {Contacts.GroupMembership._ID, Contacts.GroupMembership.GROUP_ID, Contacts.GroupMembership.PERSON_ID, GroupMembership.GROUP_SYNC_ID}; String whereGroupId = Contacts.GroupMembership.GROUP_ID+=?; Cursor c = cr.query(GroupMembership.CONTENT_URI, PROJECTION_GROUP_MEMBER, whereGroupId, new String[]{id_group}, null); This worked well untill that morning. Now, this cursor always get me c.getCount = 0 and c.moveToFirst() = false on my Htc Magic but not on the Emulator. I do several tests : 1- I saw what's going on if i change my where clause by : - whereGroupId = Contacts.GroupMembership.PERSON_ID +=?; - WORK FIND - whereGroupId = Contacts.GroupMembership.GROUP_SYNC_ID +=?; - WORK FIND 2- If i open my Htc Repertory , and i ask to filter on a group, i have got no problem. Do have any guess ? Do you have a solution ? Regards, Olivier --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to use custom resources package
Hi, I want create a resouces package, like the framework-res.apk. But how this resource package can be used by my applications. For exmaple, I create a resouces package named myres.apk and there is a drawable logo.icon in it. How can I refer this drawable in another application using MyRes.drawable.logo? Thanks a lot. Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Unable to upload multipart file HttpURLConnection Chunked Streaming Mode is giving broken pipe exception.
Hi , I am trying to upload video to you tube using java.net.HttpURLConnection with setChunkedStreamingMode(8*1024) property and content type is multipart/binay; and even i tried chunked also. I am getting following exception. If i don't use setChunkedStreamingMode this property output stream is using internal buffer increasing while uploading data in chunks which is causing heap size to grow and throwing out of memory exception. java.net.SocketException: Broken pipe at org.apache.harmony.luni.platform.OSNetworkSystem.sendStreamImpl (Native Method) at org.apache.harmony.luni.platform.OSNetworkSystem.sendStream (OSNetworkSystem.java:241) at org.apache.harmony.luni.net.PlainSocketImpl.write (PlainSocketImpl.java:566) at org.apache.harmony.luni.net.SocketOutputStream.write (SocketOutputStream.java:50) at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection $HttpOutputStream.output(HttpURLConnection.java:550) at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection $HttpOutputStream.write(HttpURLConnection.java:658) at java.io.DataOutputStream.write(DataOutputStream.java:107) here is my code. DataOutputStream body = new DataOutputStream (httpWebConnection.getOutputStream()); body.write(requestBody); body.flush(); //* BufferedInputStream uploadStream = new BufferedInputStream(new FileInputStream(completeFilePathWithName), size); // write videoData in stream byte[] buf = new byte[size]; int len = -1; int count = 1; int bufLen =0; int bytesAvailable; while ((bytesAvailable = uploadStream.available()) 0) { int bufferSize = Math.min(bytesAvailable, size); byte[] buffer = new byte[bufferSize]; int bytesRead = uploadStream.read(buffer, 0, bufferSize); body.write(buffer, 0, bytesRead); body.flush(); bufLen = bufLen + bytesRead; try { Thread.sleep(600); }catch(Exception e) { e.printStackTrace(); } } uploadStream.close(); uploadStream = null; body.write(endBoundry.getBytes()); body.flush(); body.close(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] reg::android notification text
i have a notification in the statusbar and a corresponding expanded entry when the statusbar is dragged downwards. I have a long text message (in the expanded entry) which does not fit the notification area. i would prefer a scrolling text in the expanded entry.please let me know a way to do it. in the mean time i shall try to discover it myself. i understand that notification area wud not be customizable. i would prefer an option for scrolling text. please let me know if there is any flag for enabling that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] using webview behind http proxy.
Hi, I am facing issues while using webview. I am behind proxy. I have already set proxy through code and set the user crediantials too. //Set the proxy through code System.getProperties().put(proxySet, true); System.getProperties().put(proxyHost, 198.152.145.5); System.getProperties().put(proxyPort, 8080); //Set user crediantials for proxy authentication Authenticator authenticator = new Authenticator() { public PasswordAuthentication getPasswordAuthentication() { return (new PasswordAuthentication (userid..,passsword.toCharArray())); } }; Authenticator.setDefault(authenticator); //Using webview setContentView(R.layout.main); webview = (WebView)findViewById(R.id.webview); webview.getSettings().setJavaScriptEnabled(true); //I tried this to set the httpauthoraization user name and password. webview.setHttpAuthUsernamePassword(10.111.14.14, wipro, nitesne, Indiaisgr8-///); webview.loadUrl(http://www.google.com/m;); After that what I am getting a blank white screen for few minutes then (407) Proxy Autentication required message on Webview screen, rather than google page.(I am using loadurl(http://www/google.com/m)). I have surfed on net and found that there was issues on webview on 1.1 Android release. However I am using webview on Android 1.5, still I am geting this error. Not sure whether that issue is resolve in 1.5 build. Please anyone confirm about this. Have anyone encounter this sort of error?? Regards, Nitesh Pune, India --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] save file to sdcard directory
When I saved a file or open a dir under sdcard dir, it always complains: Parent directory of file is not writable: /sdcard/myfile, java.io.IOException: Parent directory of file is not writable.. Any idea what's wrong? Thx Alan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---