[android-developers] Does the AndroidManifest.xml file is mandatory to make changes to apk with aapt tool ???
Hi, I would like to make some configuration changes to the apk, Does the AndroidManifest.xml is a mandatory file required from the source ( since the AndroidManifest.xml in APK cannot be reused) to make the changes to the apk using the aapt tool. Br, Vikram Dattu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: AppWidgetProvider question on 1.5 SDK
There is a list of pre-approved Views that are allowed through RemoteViews, mostly for security reasons, and right now WebView isn't one of those. If push updates are really important, you could write the comet code in a Service that pushes widget updates to the surface as needed. As long as you're not pushing any bitmaps, widget updates are pretty fast. However, if you're considering user interaction, you might launch a full-screen app or dialog. j On Tue, Apr 21, 2009 at 6:08 PM, j wrote: > > Jeff, > > Thanks for the Wkionary sample code on the Android blog. > > I have a general question. Is it possible to set the RemoteView of > the widget to a WebView? My goal is to push real time updates to the > WebView via the comet technique (HTTP long polling), similar to how > Google Talk does it on the desktop browser I suppose. > > Do you think battery life would be significantly impacted with this > approach? > > > -- Jeff Sharkey jshar...@google.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] Has 3GPP PSS Release 6 been fully supported in cupcake
Hi, Has 3GPP PSS Release 6 been fully supported in cupcake? If not, which version has been supported? Thanks Cai Jing --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SharedPreferences got deleted! - What could be the problem?
Sorry, I was referring to the settings created using PreferenceActivity screen using xml. Your actual preference values do not help much in diagnosing the issue. Example snippet from loading preferences from xml: For preferences created programatically, you can use Preference.setPersistent(true); If no Settings screen is present, and everything is through your program, then batch SharedPreferences.Editor.commit()'s should be fine. I had a similar problem as yours, but have not faced it again so far. Other than the known issue mentioned in the previous post, I don't know what else the problem could be unless you post your code perhaps... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Developers Group for Singapore and South East Asia" IRC channel is up
Dear developers from Singapore and from our neighboring countries, We have set up our IRC channel at #CodeAndroid on irc.freenode.net where our developers can discuss and help each other out in development. Please do join us in our discussion. We will also be offering support for the upcoming ITSC's CodeXtreme competition that is coming up, so if you are a participant do stay tune to the channel. Thank you. Cheers Chua Zi Yong If you do not have an IRC client, you can log in at http://www.codeandroid.org/chat-on-codeandroid/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ConditionVariable Usage
Please help on this. Thanks On Apr 21, 5:45 pm, Asif k wrote: > Hi, > > I'm trying to use a ConditionVariable to control the execution > sequence of two threads. I can create a ConditionVariable in one > thread and block on it. But I would like to be able to access it from > another Thread and unblock it from that thread.. ? > > Blocked Thread i am planning to keep as GUI thread and it should > update the messages which are sent by b/g thread on the screen during > its block state and will be unblocked by b/g thread in the end by > calling open(); method. > > Can you please the proper way to accomplish this?? > > Thanks, > Asif --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 1.5 SDK Media Question: why doesn't android.media.AudioFormat have option for AMR-NB?
Thanks. One more question. Doesn't the bundled Android phone/dialer app uses OpenCORE to encode and stream audio when user places a normal phone call? How is that handled? On Apr 21, 5:24 pm, Dave Sparks wrote: > That is correct. The encoders are only available through the OpenCORE > author engine which does not currently supporting a streaming > interface. > > On Apr 21, 1:53 pm, j wrote: > > > I would like to use the new AudioRecord class to record in AMR-NB > > format. But android.media.AudioFormat provides only 8-bit PCM and 16- > > bit PCM options, no AMR-NB option for some reason. > > > I have also looked into MediaRecorder class. My understanding is that > > while MediaRecorder supprots recording to AMR-NB format, MediaRecorder > > can only write to a file (not to a network stream). It seems I need > > to use the AudioRecord class but it doesn't seem to support AMR-NB. > > > Please shed some light! Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: question about tabs at the bottom
How do we display the tabs at the bottom? On Wed, Apr 22, 2009 at 8:44 AM, Videoguy wrote: > > I have tabbed activity with tabs at the bottom. The labels of each tab > are getting clipped unless I set the TabWidget too high (~60dip). My > tabs don't have any icons. > > What is the trick to get the labels centered in TabWidget? > > Thanks > Videoguy > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: using PMD static analyzer on Android projects
I've just added a new post on my blog, http://blog.xlv-labs.com/, detailing the steps needed to run the PMD static analyzer on Android projects. There are a few rules in the PMD distribution specific for the Android platform (calling super in onCreate, onResume, ..., protecting calls to Log.d and Log.v). More rules will be added in the future, for instance the hard coding of "/sdcard" mentioned in my post. The existing rules were added in PMD when I started developing for Android so they may need to be refined a little bit. In future posts, I will address some of the rules mentioned in the guideline documents from the official Android site, assuming the type of check can be addressed by PMD rules. Once the setup is done in Eclipse and/or ant's build.xml, it is pretty easy to make sure that violations are not creeping up as the complexity of the project increases and keep the code quality high. Finally, using the rules mentioned above flags a few problems in the Android source code itself so it may be a good idea to setup PMD checks on that code too... Best Regards, Xavier Le Vourch -- XLV Labs Publisher of "Who Called?", Caller Id application for Android phones: http://www.xlv-labs.com/whocalled --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] problem in drawaing square using open GL
Hello, I am facing problem in drawing square in open gl. The following is my code so please let me know if any thing wrong in it. /* * Copyright (C) 2008 Google Inc. * * 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.saltriver.TriRender; //import com.example.android.apis.R; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer; import java.nio.ShortBuffer; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.opengl.GLU; import android.opengl.GLUtils; import android.os.SystemClock; import javax.microedition.khronos.egl.EGL10; import javax.microedition.khronos.opengles.GL10; public class TriangleRenderer implements GLSurfaceView.Renderer { public TriangleRenderer(Context context) { mContext = context; mTriangle = new Triangle(); } public int[] getConfigSpec() { // We don't need a depth buffer, and don't care about our // color depth. int[] configSpec = { EGL10.EGL_DEPTH_SIZE, 0, EGL10.EGL_NONE }; return configSpec; } public void surfaceCreated(GL10 gl) { /* * By default, OpenGL enables features that improve quality * but reduce performance. One might want to tweak that * especially on software renderer. */ gl.glDisable(GL10.GL_DITHER); /* * Some one-time OpenGL initialization can be made here * probably based on features of this particular context */ gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST); gl.glClearColor(.5f, .5f, .5f, 1); gl.glShadeModel(GL10.GL_SMOOTH); gl.glEnable(GL10.GL_DEPTH_TEST); gl.glEnable(GL10.GL_TEXTURE_2D); /* * Create our texture. This has to be done each time the * surface is created. */ int[] textures = new int[1]; gl.glGenTextures(1, textures, 0); mTextureID = textures[0]; gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_CLAMP_TO_EDGE); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_CLAMP_TO_EDGE); gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_REPLACE); InputStream is = mContext.getResources() .openRawResource(R.drawable.robot); Bitmap bitmap; try { bitmap = BitmapFactory.decodeStream(is); } finally { try { is.close(); } catch(IOException e) { // Ignore. } } GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); bitmap.recycle(); } public void drawFrame(GL10 gl) { /* * By default, OpenGL enables features that improve quality * but reduce performance. One might want to tweak that * especially on software renderer. */ gl.glDisable(GL10.GL_DITHER); gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_ADD);//GL_SUBTRACT // GL_MODULATE /* * Usually, the first thing one might want to do is to clear * the screen. The most efficient way of doing this is to use * glClear(). */ gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); /* * Now we're ready to draw some 3D objects */ gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glLoadIdentity(); GLU.gluLookAt(gl, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f); gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); gl.glActiveTexture(GL10.GL_TEXTURE0); gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT); gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP
[android-developers] Re: How to config G1 to make both browser and MMS work?
yep, have tired a few different sites, with no luck. basically the browser just does not get anywhere, it looks like its found the page and is loading it, but nothing, the loading bar never moves. On Apr 22, 10:49 am, Anonymous Anonymous wrote: > have u tried differnt urls with cmnet? saywww.cnn.cometc, soemthing the > "home" configured may not work > > > > On Wed, Apr 22, 2009 at 7:30 AM, shimsim wrote: > > > if i change from cmnet to cmwap i dont even get a data connection (no > > edge icon in the notification bar) > > > On Apr 22, 9:16 am, Anonymous Anonymous > > wrote: > > > give a try with "cmwap" as apn > > > > On Wed, Apr 22, 2009 at 6:41 AM, shimsim wrote: > > > > > Just tried the settings above and get exactly the same results, email > > > > works, maps work, etc ... but not the browser > > > > > What else could it be? > > > > > thanks > > > > > On Apr 22, 8:08 am, Anonymous Anonymous > > > > wrote: > > > > > Settings seems to be correct,please keep only the below information > > and > > > > see > > > > > the browser works > > > > > > apn: cmnet > > > > > proxy: 10.0.0.172 > > > > > port:80 > > > > > username: blank > > > > > password: blank > > > > > server: blank > > > > > mmsc:blank > > > > > mms proxy: blank > > > > > mms port: blank > > > > > mcc: 460 > > > > > mnc:02 > > > > > apn type: default > > > > > > and i think Pinyin input is not supported(not sure) > > > > > > On Tue, Apr 21, 2009 at 8:39 PM, shimsim wrote: > > > > > > > I got the same problem in China with my Dev G1. I'm using the > > M-Zone > > > > > > Sim card and with the settings below everything works except the > > > > > > browser. > > > > > > > name: china mobile > > > > > > apn: cmnet > > > > > > proxy: 10.0.0.172 > > > > > > port:80 > > > > > > username: blank > > > > > > password: blank > > > > > > server: blank > > > > > > mmsc:http://mmsc.monternet.com > > > > > > mms proxy: 10.0.0.172 > > > > > > mms port: 9201 > > > > > > mcc: 460 > > > > > > mnc:02 > > > > > > apn type: default > > > > > > > I have not tried sending any mms, but with these setting i can > > collect > > > > > > and send mail, use maps, see the market but NO browser. > > > > > > > Any ideas? > > > > > > > ps how do i get pinyin input, is there a way and to still have > > english > > > > > > as default? > > > > > > > Thanks! > > > > > > > On Apr 21, 7:48 am, Anonymous Anonymous < > > firewallbr...@googlemail.com> > > > > > > wrote: > > > > > > > for the mms apn make the apntype to "mms", it shud work > > > > > > > > On Fri, Apr 17, 2009 at 11:44 PM, kilroy238 > > > > wrote: > > > > > > > > > Which one of the 3 China mobile SIMS do you have? > > > > > > > > > On Mar 18, 3:38 pm, FayGU wrote: > > > > > > > > > I have a G1 phone and use it in mainland China. > > > > > > > > > But I can't config it to work with browser and MMS at the > > same > > > > time. > > > > > > > > > However with different APN, the browser and MMS can work > > > > seperately. > > > > > > > > > For browser, I use following APN config: > > > > > > > > > --- > > > > > > > > > name:cmnet > > > > > > > > > apn: cmnet > > > > > > > > > proxy:blank > > > > > > > > > port:blank > > > > > > > > > username:blank > > > > > > > > > password:blank > > > > > > > > > server:blank > > > > > > > > > mmsc:blank > > > > > > > > > mms proxy:blank > > > > > > > > > mms port:blank > > > > > > > > > mcc:460 > > > > > > > > > mnc:00 > > > > > > > > > apn type:blank > > > > > > > > > -- > > > > > > > > > > For MMS, I use following APN config: > > > > > > > > > -- > > > > > > > > > name:cmwap > > > > > > > > > apn: cmwap > > > > > > > > > proxy:blank > > > > > > > > > port:blank > > > > > > > > > username:blank > > > > > > > > > password:blank > > > > > > > > > server:blank > > > > > > > > > mmsc:http://mmsc.monternet.com > > > > > > > > > mms proxy:010.000.000.172 > > > > > > > > > mms port:80 > > > > > > > > > mcc:460 > > > > > > > > > mnc:00 > > > > > > > > > apn type:blank > > > > > > > > > --- > > > > > > > > > > When above two APNs both exists, only browser can work. MMS > > > > doesn't > > > > > > > > > work any more. > > > > > > > > > > Does any google export know that how to config G1 to make > > both > > > > > > browser > > > > > > > > > and MMS work? > > > > > > > > > If it's a known issue, is there any roadmap to fix it? > > > > > > > > > Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator (SDK 1.1_r1 for widndows XP) crash using emulator -data
Just for reference: I was using -data, instead -datadir to specify where the img files should be placed. Still, i think the reasonable behavior should be a error message (something like "the path passed as argument is a dir. Use -datadir to specify filesystem directories"), not a crash. On Mon, Apr 20, 2009 at 8:38 PM, Alan wrote: > Hello devs, > > I need to run several emulator instances to test my application. When > i try to run instances using emulator -data option, the > emulator crashes. I got a MS Visual Studio window informing that > emulator throws a "unhandled win32 exception". The exception message > in the debugger (MS Visual Studio 2008) is: "Unhandled exception at > 0x77c4706c in emulator.exe: 0xC005: Access violation reading > location 0x03216848" > > Does anyone have a hint on this? > > Ps: the emulator runs normally without "-data" option. > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Bus error when running 1.5 emulator
Thanks Evan! Your binary worked great. On Apr 21, 5:35 am, Evan JIANG wrote: > I've submitted a patch for this > bughttps://review.source.android.com/Gerrit#change,9597 > > If you'd like, I can mail you the binaray file I built. > > Best regards, > > > > On Tue, Apr 21, 2009 at 7:58 AM, Peter wrote: > > > Ok, my problem has returned, so the above fix wasn't it. Here's my > > crash report. Any ideas? > > > Process: emulator [321] > > Path: /usr/local/dev/android/android-sdk-mac_x86-1.5_pre/ > > tools/emulator > > Identifier: emulator > > Version: ??? (???) > > Code Type: X86 (Native) > > Parent Process: bash [275] > > > Date/Time: 2009-04-20 19:27:34.808 -0400 > > OS Version: Mac OS X 10.5.6 (9G55) > > Report Version: 6 > > > Exception Type: EXC_BAD_ACCESS (SIGBUS) > > Exception Codes: KERN_PROTECTION_FAILURE at 0x0010 > > Crashed Thread: 0 > > > Thread 0 Crashed: > > 0 emulator 0x000667a1 > > sock_address_init_resolve + 87 (sockets.c:631) > > > Thread 0 crashed with X86 Thread State (32-bit): > > eax: 0x0008 ebx: 0xbfffcb98 ecx: 0x edx: 0x > > edi: 0xbfffcb5c esi: 0x ebp: 0x0085fa80 esp: 0xbfffcb20 > > ss: 0x001f efl: 0x00010202 eip: 0x000667a1 cs: 0x0017 > > ds: 0x001f es: 0x001f fs: 0x gs: 0x0037 > > cr2: 0x0010 > > > Binary Images: > > 0x1000 - 0x19a46b +emulator ??? (???) /usr/local/dev/android/ > > android-sdk-mac_x86-1.5_pre/tools/emulator > > 0x8fe0 - 0x8fe2db43 dyld 97.1 (???) > > <100d362e03410f181a34e04e94189ae5> /usr/lib/dyld > > 0x90003000 - 0x90003ffd com.apple.vecLib 3.4.2 (vecLib 3.4.2) /System/ > > Library/Frameworks/vecLib.framework/Versions/A/vecLib > > 0x900a4000 - 0x904b4fef libBLAS.dylib ??? (???) /System/Library/ > > Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ > > Versions/A/libBLAS.dylib > > 0x904b5000 - 0x904ddff7 com.apple.shortcut 1 (1.0) > > <057783867138902b52bc0941fedb74d1> /System/Library/PrivateFrameworks/ > > Shortcut.framework/Versions/A/Shortcut > > 0x904de000 - 0x9052fff7 com.apple.HIServices 1.7.0 (???) > > <01b690d1f376e400ac873105533e39eb> /System/Library/Frameworks/ > > ApplicationServices.framework/Versions/A/Frameworks/ > > HIServices.framework/Versions/A/HIServices > > 0x9053 - 0x9080aff3 com.apple.CoreServices.CarbonCore 786.11 > > (786.11) /System/Library/Frameworks/ > > CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/ > > Versions/A/CarbonCore > > 0x9080b000 - 0x90820ffb com.apple.ImageCapture 5.0.1 (5.0.1) /System/ > > Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ > > ImageCapture.framework/Versions/A/ImageCapture > > 0x9085b000 - 0x90871fff com.apple.DictionaryServices 1.0.0 (1.0.0) > > /System/Library/Frameworks/ > > CoreServices.framework/Versions/A/Frameworks/ > > DictionaryServices.framework/Versions/A/DictionaryServices > > 0x90872000 - 0x908effef libvMisc.dylib ??? (???) /System/Library/ > > Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ > > Versions/A/libvMisc.dylib > > 0x908f - 0x908f6fff com.apple.print.framework.Print 218.0.2 > > (220.1) <8bf7ef71216376d12fcd5ec17e43742c> /System/Library/Frameworks/ > > Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/ > > Print > > 0x908f7000 - 0x908f8ffc libffi.dylib ??? (???) > > /usr/lib/libffi.dylib > > 0x908f9000 - 0x90984fff com.apple.framework.IOKit 1.5.1 (???) > > /System/Library/Frameworks/ > > IOKit.framework/Versions/A/IOKit > > 0x9121 - 0x912d7ff2 com.apple.vImage 3.0 (3.0) /System/Library/ > > Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/ > > Versions/A/vImage > > 0x9155c000 - 0x91589feb libvDSP.dylib ??? (???) > > /System/Library/Frameworks/ > > Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/ > > libvDSP.dylib > > 0x91597000 - 0x9161eff7 libsqlite3.0.dylib ??? (???) > > <6978bbcca4277d6ae9f042beff643f7d> /usr/lib/libsqlite3.0.dylib > > 0x9161f000 - 0x916bcfe4 com.apple.CFNetwork 422.15.2 (422.15.2) > > <80851410a5592b7c3b149b2ff849bcc1> /System/Library/Frameworks/ > > CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/ > > Versions/A/CFNetwork > > 0x916bd000 - 0x916c4ff7 libCGATS.A.dylib ??? (???) > > <386dce4b28448fb86e33e06ac466f4d8> /System/Library/Frameworks/ > > ApplicationServices.framework/Versions/A/Frameworks/ > > CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib > > 0x916c6000 - 0x91720ff7 com.apple.CoreText 2.0.4 (???) > > /System/Library/Frameworks/ > > ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/ > > Versions/A/CoreText > > 0x91721000 - 0x91725fff libmathCommon.A.dylib ??? (???) /usr/lib/ > > system/libmathCommon.A.dylib > > 0x91726000 - 0x91741ffb libPng.dylib ??? (???) > > <4780e979d35aa5ec2cea22678836cea5> /System/Library/Frameworks/ > > ApplicationServices.frame
[android-developers] Re: Encrypting application data file that is bundled with apk !
Yusuf makes good suggestions. My personal suggestion would be to include it in a class file of your java program, then obfuscate your code. If your attempting to prevent compilation this is your best bet. On Apr 21, 5:32 pm, "Yusuf T. Mobile" wrote: > From what I understand, your requirements are: > - your app uses data that it puts in a database during setup > - the end user should not be able to access this data, except through > your app's UI > > Possible cracks would then be Marco's decompilation idea, or > inspecting the database. Without knowing more about your app, I have a > few suggestions: > - bundle encrypted data with the app, but not the key to decrypt > - in the database, at least encrypt the names and values > - don't decrypt all the data at one time, only decrypt whatever the UI > requests > > One way to accomplish the last step is with a per-datum key fetched on > demand from your web service. However, depending on the value of your > data, hiding it and the key in your code may be sufficient to render > decryption not cost-effective. > > Yusuf Saib > Android > ·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. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Which components does CALL_STATE_RINGING block?
any answer ? On Apr 20, 10:32 pm, John Doe wrote: > Let me be more specific. I am trying to record voice when somebody > calls. ( When the phone is ringing! ) When I call to somebody it > records. But when somebody calls me it doesnt :( How can I record > voice when somebody calls me? > > On Apr 20, 8:30 pm, John Doe wrote: > > > Hi everybody. > > > I am writing a service which listens an incoming call. I have a > > function but it behaves differently under these cases > > > when i call the function in case > > case TelephonyManager.CALL_STATE_OFFHOOK: > > > it works! > > > when I call the same function in case > > case TelephonyManager.CALL_STATE_RINGING: > > > it doesnt work. > > > it seems that when an incoming call happens the system blocks some > > components. what should I do to prevent from this situation. Should I > > move my calculation to a background thread? Does it work in that way ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] question about tabs at the bottom
I have tabbed activity with tabs at the bottom. The labels of each tab are getting clipped unless I set the TabWidget too high (~60dip). My tabs don't have any icons. What is the trick to get the labels centered in TabWidget? Thanks Videoguy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] TabHost question
Hi I have tabbed interface based activity. 2 of the tabs invoke activities in my application. I am wondering whether it is possible to embed one of the standard Android activities (say recent calls tab of Dialer application) in my tab. If yes, what is the intent I need to use? Thanks Videoguy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 config G1 to make both browser and MMS work?
have u tried differnt urls with cmnet? say www.cnn.com etc, soemthing the "home" configured may not work On Wed, Apr 22, 2009 at 7:30 AM, shimsim wrote: > > if i change from cmnet to cmwap i dont even get a data connection (no > edge icon in the notification bar) > > On Apr 22, 9:16 am, Anonymous Anonymous > wrote: > > give a try with "cmwap" as apn > > > > > > > > On Wed, Apr 22, 2009 at 6:41 AM, shimsim wrote: > > > > > Just tried the settings above and get exactly the same results, email > > > works, maps work, etc ... but not the browser > > > > > What else could it be? > > > > > thanks > > > > > On Apr 22, 8:08 am, Anonymous Anonymous > > > wrote: > > > > Settings seems to be correct,please keep only the below information > and > > > see > > > > the browser works > > > > > > apn: cmnet > > > > proxy: 10.0.0.172 > > > > port:80 > > > > username: blank > > > > password: blank > > > > server: blank > > > > mmsc:blank > > > > mms proxy: blank > > > > mms port: blank > > > > mcc: 460 > > > > mnc:02 > > > > apn type: default > > > > > > and i think Pinyin input is not supported(not sure) > > > > > > On Tue, Apr 21, 2009 at 8:39 PM, shimsim wrote: > > > > > > > I got the same problem in China with my Dev G1. I'm using the > M-Zone > > > > > Sim card and with the settings below everything works except the > > > > > browser. > > > > > > > name: china mobile > > > > > apn: cmnet > > > > > proxy: 10.0.0.172 > > > > > port:80 > > > > > username: blank > > > > > password: blank > > > > > server: blank > > > > > mmsc:http://mmsc.monternet.com > > > > > mms proxy: 10.0.0.172 > > > > > mms port: 9201 > > > > > mcc: 460 > > > > > mnc:02 > > > > > apn type: default > > > > > > > I have not tried sending any mms, but with these setting i can > collect > > > > > and send mail, use maps, see the market but NO browser. > > > > > > > Any ideas? > > > > > > > ps how do i get pinyin input, is there a way and to still have > english > > > > > as default? > > > > > > > Thanks! > > > > > > > On Apr 21, 7:48 am, Anonymous Anonymous < > firewallbr...@googlemail.com> > > > > > wrote: > > > > > > for the mms apn make the apntype to "mms", it shud work > > > > > > > > On Fri, Apr 17, 2009 at 11:44 PM, kilroy238 > > > > wrote: > > > > > > > > > Which one of the 3 China mobile SIMS do you have? > > > > > > > > > On Mar 18, 3:38 pm, FayGU wrote: > > > > > > > > I have a G1 phone and use it in mainland China. > > > > > > > > But I can't config it to work with browser and MMS at the > same > > > time. > > > > > > > > However with different APN, the browser and MMS can work > > > seperately. > > > > > > > > For browser, I use following APN config: > > > > > > > > --- > > > > > > > > name:cmnet > > > > > > > > apn: cmnet > > > > > > > > proxy:blank > > > > > > > > port:blank > > > > > > > > username:blank > > > > > > > > password:blank > > > > > > > > server:blank > > > > > > > > mmsc:blank > > > > > > > > mms proxy:blank > > > > > > > > mms port:blank > > > > > > > > mcc:460 > > > > > > > > mnc:00 > > > > > > > > apn type:blank > > > > > > > > -- > > > > > > > > > > For MMS, I use following APN config: > > > > > > > > -- > > > > > > > > name:cmwap > > > > > > > > apn: cmwap > > > > > > > > proxy:blank > > > > > > > > port:blank > > > > > > > > username:blank > > > > > > > > password:blank > > > > > > > > server:blank > > > > > > > > mmsc:http://mmsc.monternet.com > > > > > > > > mms proxy:010.000.000.172 > > > > > > > > mms port:80 > > > > > > > > mcc:460 > > > > > > > > mnc:00 > > > > > > > > apn type:blank > > > > > > > > --- > > > > > > > > > > When above two APNs both exists, only browser can work. MMS > > > doesn't > > > > > > > > work any more. > > > > > > > > > > Does any google export know that how to config G1 to make > both > > > > > browser > > > > > > > > and MMS work? > > > > > > > > If it's a known issue, is there any roadmap to fix it? > > > > > > > > Thanks! > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android theme inheritance relation implied by name?
Hi Dianne, Thanks for your answer. Further more, I wonder if the explicit 'parent' attribute is assigned, the implicit inheritance will be overrided, for example:
[android-developers] Re: Geocoder not returning results in 1.5 preview
Hello, This is a packaging bug. Something is missing from the emulator image to enable this. We're fixing it for the final 1.5 SDK Thanks for the feedback! Xav On Apr 20, 9:33 pm, z wrote: > +1 > > On Apr 20, 5:25 pm, Olivier wrote: > > > Same problem except I seem to have an exception as if I had passed 0,0 > > as lat,lng which I didn't. > > Any info/help on this would be appreciated. > > > Thanks > > > On Apr 16, 9:22 am, Huebi wrote: > > > > I do not get any results from the Geocoder in the 1.5 preview release. > > > Any information on this? In the maps application it works but my calls > > > simply return an empty list (no exception, all permissions I know of > > > (in this case only Internet) are set. > > > > Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to config G1 to make both browser and MMS work?
if i change from cmnet to cmwap i dont even get a data connection (no edge icon in the notification bar) On Apr 22, 9:16 am, Anonymous Anonymous wrote: > give a try with "cmwap" as apn > > > > On Wed, Apr 22, 2009 at 6:41 AM, shimsim wrote: > > > Just tried the settings above and get exactly the same results, email > > works, maps work, etc ... but not the browser > > > What else could it be? > > > thanks > > > On Apr 22, 8:08 am, Anonymous Anonymous > > wrote: > > > Settings seems to be correct,please keep only the below information and > > see > > > the browser works > > > > apn: cmnet > > > proxy: 10.0.0.172 > > > port:80 > > > username: blank > > > password: blank > > > server: blank > > > mmsc:blank > > > mms proxy: blank > > > mms port: blank > > > mcc: 460 > > > mnc:02 > > > apn type: default > > > > and i think Pinyin input is not supported(not sure) > > > > On Tue, Apr 21, 2009 at 8:39 PM, shimsim wrote: > > > > > I got the same problem in China with my Dev G1. I'm using the M-Zone > > > > Sim card and with the settings below everything works except the > > > > browser. > > > > > name: china mobile > > > > apn: cmnet > > > > proxy: 10.0.0.172 > > > > port:80 > > > > username: blank > > > > password: blank > > > > server: blank > > > > mmsc:http://mmsc.monternet.com > > > > mms proxy: 10.0.0.172 > > > > mms port: 9201 > > > > mcc: 460 > > > > mnc:02 > > > > apn type: default > > > > > I have not tried sending any mms, but with these setting i can collect > > > > and send mail, use maps, see the market but NO browser. > > > > > Any ideas? > > > > > ps how do i get pinyin input, is there a way and to still have english > > > > as default? > > > > > Thanks! > > > > > On Apr 21, 7:48 am, Anonymous Anonymous > > > > wrote: > > > > > for the mms apn make the apntype to "mms", it shud work > > > > > > On Fri, Apr 17, 2009 at 11:44 PM, kilroy238 > > wrote: > > > > > > > Which one of the 3 China mobile SIMS do you have? > > > > > > > On Mar 18, 3:38 pm, FayGU wrote: > > > > > > > I have a G1 phone and use it in mainland China. > > > > > > > But I can't config it to work with browser and MMS at the same > > time. > > > > > > > However with different APN, the browser and MMS can work > > seperately. > > > > > > > For browser, I use following APN config: > > > > > > > --- > > > > > > > name:cmnet > > > > > > > apn: cmnet > > > > > > > proxy:blank > > > > > > > port:blank > > > > > > > username:blank > > > > > > > password:blank > > > > > > > server:blank > > > > > > > mmsc:blank > > > > > > > mms proxy:blank > > > > > > > mms port:blank > > > > > > > mcc:460 > > > > > > > mnc:00 > > > > > > > apn type:blank > > > > > > > -- > > > > > > > > For MMS, I use following APN config: > > > > > > > -- > > > > > > > name:cmwap > > > > > > > apn: cmwap > > > > > > > proxy:blank > > > > > > > port:blank > > > > > > > username:blank > > > > > > > password:blank > > > > > > > server:blank > > > > > > > mmsc:http://mmsc.monternet.com > > > > > > > mms proxy:010.000.000.172 > > > > > > > mms port:80 > > > > > > > mcc:460 > > > > > > > mnc:00 > > > > > > > apn type:blank > > > > > > > --- > > > > > > > > When above two APNs both exists, only browser can work. MMS > > doesn't > > > > > > > work any more. > > > > > > > > Does any google export know that how to config G1 to make both > > > > browser > > > > > > > and MMS work? > > > > > > > If it's a known issue, is there any roadmap to fix it? > > > > > > > Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Of Progress Bars and Wait Dialogs
Mark Murphy wrote: > Brian Conrad wrote: > >> To be even more precise it is one string with carriage returns. The >> data is calculated by the program. The layout is in XML and handling >> the interface programmatically won't make a difference. This only takes >> 4-5 seconds but I still want a some kind of indicator of that. This >> string is part of the main display about 40 rows worth so we have to >> wait for them. >> > > 4-5 seconds to generate 1-2K worth of string data seems like a lot, but > I'll take it on faith that it really does need to take that long. > It's actually 2.7 seconds long and floating point math is involved. >> I'll play around with some threads though and see what happens >> > > Pretty much anything Android can offer in the way of progress indication > support requires a background thread, whether explicitly created by you > or implicitly created by a framework (e.g., 1.5's AsyncTask). > This project has been migrated to 1.5 but I was yet unaware of the AysncTask so thanks for pointing that out. It looks like it might be the answer for these kind of situations. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Problem Sending/Receiving data using startActivityForResult
Hayden wrote: > Ok, I have 2 Activities I want to send data between...activity A and > B. My problem is that some random code of mine seems to be called > between startActivityForResult() and onActivityResult() in Activity > A. This doesn't make any sense because there is no code after > startActivityForResult() is called. Shouldn't onActivityResult() be > the first thing A does after B finishes? According to the documentation for onActivityResult(): "You will receive this call immediately before onResume() when your activity is re-starting." However, that leaves open the possibility that onStart() or onRestart() will be called before onActivityResult(). -- 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] Re: Screen/Pattern Lock application invocation
Apologize for the confusion. I meant to ask how I can UNLOCK the phone from inside a program after it is locked with a screen lock? Is there interface to Pattern/Screen lock? What is KeyguardManager for? Thanks! D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem Sending/Receiving data using startActivityForResult
Ok, I have 2 Activities I want to send data between...activity A and B. My problem is that some random code of mine seems to be called between startActivityForResult() and onActivityResult() in Activity A. This doesn't make any sense because there is no code after startActivityForResult() is called. Shouldn't onActivityResult() be the first thing A does after B finishes? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: uninstall vs. upgrade
On Apr 21, 5:29 pm, Marco Nelissen wrote: > Which is really a bug in the application. If an application updates its > database schema, it should include code to migrate old versions of the > database to the new schema. Correct, and OP is on the right track to ask the question he or she asks about how to test this out. BTW, in anticipation of such concerns, I always include a healthy dose of spare columns for future use. Always comes in handy and minimizes schema evolution headaches. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] UNLOCK Screen lock programatically
We are writing an app to substitute screen/pattern lock on G1. Unfortunately, it is impossible to substitute the original screen lock app with a 3rd party one. The only option left is if we can UNLOCK the phone from a service running in the background when G1 is locked. Is it possible? Is there interface to Pattern/Screen lock? What is KeyguardManager for? Thanks! Dmitriy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 config G1 to make both browser and MMS work?
give a try with "cmwap" as apn On Wed, Apr 22, 2009 at 6:41 AM, shimsim wrote: > > Just tried the settings above and get exactly the same results, email > works, maps work, etc ... but not the browser > > What else could it be? > > thanks > > On Apr 22, 8:08 am, Anonymous Anonymous > wrote: > > Settings seems to be correct,please keep only the below information and > see > > the browser works > > > > apn: cmnet > > proxy: 10.0.0.172 > > port:80 > > username: blank > > password: blank > > server: blank > > mmsc:blank > > mms proxy: blank > > mms port: blank > > mcc: 460 > > mnc:02 > > apn type: default > > > > and i think Pinyin input is not supported(not sure) > > > > > > > > On Tue, Apr 21, 2009 at 8:39 PM, shimsim wrote: > > > > > I got the same problem in China with my Dev G1. I'm using the M-Zone > > > Sim card and with the settings below everything works except the > > > browser. > > > > > name: china mobile > > > apn: cmnet > > > proxy: 10.0.0.172 > > > port:80 > > > username: blank > > > password: blank > > > server: blank > > > mmsc:http://mmsc.monternet.com > > > mms proxy: 10.0.0.172 > > > mms port: 9201 > > > mcc: 460 > > > mnc:02 > > > apn type: default > > > > > I have not tried sending any mms, but with these setting i can collect > > > and send mail, use maps, see the market but NO browser. > > > > > Any ideas? > > > > > ps how do i get pinyin input, is there a way and to still have english > > > as default? > > > > > Thanks! > > > > > On Apr 21, 7:48 am, Anonymous Anonymous > > > wrote: > > > > for the mms apn make the apntype to "mms", it shud work > > > > > > On Fri, Apr 17, 2009 at 11:44 PM, kilroy238 > wrote: > > > > > > > Which one of the 3 China mobile SIMS do you have? > > > > > > > On Mar 18, 3:38 pm, FayGU wrote: > > > > > > I have a G1 phone and use it in mainland China. > > > > > > But I can't config it to work with browser and MMS at the same > time. > > > > > > However with different APN, the browser and MMS can work > seperately. > > > > > > For browser, I use following APN config: > > > > > > --- > > > > > > name:cmnet > > > > > > apn: cmnet > > > > > > proxy:blank > > > > > > port:blank > > > > > > username:blank > > > > > > password:blank > > > > > > server:blank > > > > > > mmsc:blank > > > > > > mms proxy:blank > > > > > > mms port:blank > > > > > > mcc:460 > > > > > > mnc:00 > > > > > > apn type:blank > > > > > > -- > > > > > > > > For MMS, I use following APN config: > > > > > > -- > > > > > > name:cmwap > > > > > > apn: cmwap > > > > > > proxy:blank > > > > > > port:blank > > > > > > username:blank > > > > > > password:blank > > > > > > server:blank > > > > > > mmsc:http://mmsc.monternet.com > > > > > > mms proxy:010.000.000.172 > > > > > > mms port:80 > > > > > > mcc:460 > > > > > > mnc:00 > > > > > > apn type:blank > > > > > > --- > > > > > > > > When above two APNs both exists, only browser can work. MMS > doesn't > > > > > > work any more. > > > > > > > > Does any google export know that how to config G1 to make both > > > browser > > > > > > and MMS work? > > > > > > If it's a known issue, is there any roadmap to fix it? > > > > > > Thanks! > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to config G1 to make both browser and MMS work?
Just tried the settings above and get exactly the same results, email works, maps work, etc ... but not the browser What else could it be? thanks On Apr 22, 8:08 am, Anonymous Anonymous wrote: > Settings seems to be correct,please keep only the below information and see > the browser works > > apn: cmnet > proxy: 10.0.0.172 > port:80 > username: blank > password: blank > server: blank > mmsc:blank > mms proxy: blank > mms port: blank > mcc: 460 > mnc:02 > apn type: default > > and i think Pinyin input is not supported(not sure) > > > > On Tue, Apr 21, 2009 at 8:39 PM, shimsim wrote: > > > I got the same problem in China with my Dev G1. I'm using the M-Zone > > Sim card and with the settings below everything works except the > > browser. > > > name: china mobile > > apn: cmnet > > proxy: 10.0.0.172 > > port:80 > > username: blank > > password: blank > > server: blank > > mmsc:http://mmsc.monternet.com > > mms proxy: 10.0.0.172 > > mms port: 9201 > > mcc: 460 > > mnc:02 > > apn type: default > > > I have not tried sending any mms, but with these setting i can collect > > and send mail, use maps, see the market but NO browser. > > > Any ideas? > > > ps how do i get pinyin input, is there a way and to still have english > > as default? > > > Thanks! > > > On Apr 21, 7:48 am, Anonymous Anonymous > > wrote: > > > for the mms apn make the apntype to "mms", it shud work > > > > On Fri, Apr 17, 2009 at 11:44 PM, kilroy238 wrote: > > > > > Which one of the 3 China mobile SIMS do you have? > > > > > On Mar 18, 3:38 pm, FayGU wrote: > > > > > I have a G1 phone and use it in mainland China. > > > > > But I can't config it to work with browser and MMS at the same time. > > > > > However with different APN, the browser and MMS can work seperately. > > > > > For browser, I use following APN config: > > > > > --- > > > > > name:cmnet > > > > > apn: cmnet > > > > > proxy:blank > > > > > port:blank > > > > > username:blank > > > > > password:blank > > > > > server:blank > > > > > mmsc:blank > > > > > mms proxy:blank > > > > > mms port:blank > > > > > mcc:460 > > > > > mnc:00 > > > > > apn type:blank > > > > > -- > > > > > > For MMS, I use following APN config: > > > > > -- > > > > > name:cmwap > > > > > apn: cmwap > > > > > proxy:blank > > > > > port:blank > > > > > username:blank > > > > > password:blank > > > > > server:blank > > > > > mmsc:http://mmsc.monternet.com > > > > > mms proxy:010.000.000.172 > > > > > mms port:80 > > > > > mcc:460 > > > > > mnc:00 > > > > > apn type:blank > > > > > --- > > > > > > When above two APNs both exists, only browser can work. MMS doesn't > > > > > work any more. > > > > > > Does any google export know that how to config G1 to make both > > browser > > > > > and MMS work? > > > > > If it's a known issue, is there any roadmap to fix it? > > > > > 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] AppWidgetProvider question on 1.5 SDK
Jeff, Thanks for the Wkionary sample code on the Android blog. I have a general question. Is it possible to set the RemoteView of the widget to a WebView? My goal is to push real time updates to the WebView via the comet technique (HTTP long polling), similar to how Google Talk does it on the desktop browser I suppose. Do you think battery life would be significantly impacted with this approach? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Of Progress Bars and Wait Dialogs
Brian Conrad wrote: > To be even more precise it is one string with carriage returns. The > data is calculated by the program. The layout is in XML and handling > the interface programmatically won't make a difference. This only takes > 4-5 seconds but I still want a some kind of indicator of that. This > string is part of the main display about 40 rows worth so we have to > wait for them. 4-5 seconds to generate 1-2K worth of string data seems like a lot, but I'll take it on faith that it really does need to take that long. > I'll play around with some threads though and see what happens Pretty much anything Android can offer in the way of progress indication support requires a background thread, whether explicitly created by you or implicitly created by a framework (e.g., 1.5's AsyncTask). If the whole UI is pointless until the string is generated, you can use a trick I applied in one project. In that case, a designer wanted to display some content in a full-screen WebView which took a few seconds to load up. Based on the designer's requests, I went with the following: 1. Used a FrameLayout to have both a full screen WebView and a full-screen ImageView, one atop the other 2. Had the WebView flagged as invisible (android:visibility="invisible") and loaded a round image in the ImageView 3. Used a RotateAnimation on the ImageView to simulate indefinite progress 4. When the WebView reported the page was loaded, I stopped the animation, made the ImageView invisible, and made the WebView visible Via this pattern, your user is not exposed to the half-baked UI until you have had a chance, in a background thread, to build the data to flesh out the rest of the UI. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer 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: Of Progress Bars and Wait Dialogs
Mark Murphy wrote: > Brian Conrad wrote: > >> I have an application that initializes a bunch of strings on startup. >> > > Hopefully, in a background thread. > > >> Apparently none of these things will work until the >> layout is displayed? >> > > More precisely, none of these things will display if you are hogging the > UI thread. > > >> What workarounds are there? >> > > You have not indicated where the strings are stored (resources? > literally in the layout? XML file? plain text file? database column? > fetched from the Internet? randomly generated based on device orientation?). > > Generally speaking, when things take a while, you want to cause the "a > while" to happen in a background thread, possibly using a progress bar > or animation or something if the UI is not terribly useful until the > background work is complete. > > If you could be a bit more specific on how you are trying to load > strings today that is causing such a slowdown, we might be able to give > more specific advice. To be even more precise it is one string with carriage returns. The data is calculated by the program. The layout is in XML and handling the interface programmatically won't make a difference. This only takes 4-5 seconds but I still want a some kind of indicator of that. This string is part of the main display about 40 rows worth so we have to wait for them. I'll play around with some threads though and see what happens. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: uninstall vs. upgrade
Which is really a bug in the application. If an application updates its database schema, it should include code to migrate old versions of the database to the new schema. On Tue, Apr 21, 2009 at 5:26 PM, Dan Pou wrote: > As a side note, the SQLite db seems to be a frequent source of install > problems for apps. Often developers change the layout and require the user > to uninstall and re-install apps. > > > On Tue, Apr 21, 2009 at 7:11 PM, JP wrote: > >> >> >> >> An uninstall/install cycle will wipe the SQLite db and the >> preferences. The only (reasonable) way to keep user data is through an >> upgrade. You can test an upgrade by posting the new version (new apk >> file) on a web site of yours and install it as a non-market app >> through Android's browser. Once the download begins, the process of >> installing the app converges. >> Posting on a web site needs the following MIME setting there: >> application/vnd.android.package-archive >> >> >> >> >> >> On Apr 21, 4:28 pm, havexz wrote: >> > Hi >> > >> > Well i dont know is there a way of testing the upgrade without putting >> > it on the market, but I can clarify few of the issues. The database >> > wont be delete when the market is upgrading. It keeps the user data >> > intact only the application binary is deleted and new installed. >> > >> > On Apr 21, 4:52 pm, "yves...@gmail.com" wrote: >> > >> > > I have an application which stores data in preference (to save initial >> > > settings) and sqllite database. So, if uninstall the application >> > > (through market), will the preference and database be deleted? how >> > > about upgrade? Is there a way for me to test this before I upload my >> > > upgrade to the market? I don't want people report that they have to >> re- >> > > setup everything and the data in sqllite Database is missing. >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Question about rtsp streaming support on cupcake
There have been no changes in RTSP support for Cupcake other than a couple of minor bug fixes. On Apr 21, 2:46 am, caijing wrote: > Hi, > > I am doing development on RSTP streaming on cupcake. I want know more > clear about it, so my question is, which version of 3GPP PSS has been > support on cupcake, R4, R5 or R6? > > Thanks > > Cai Jing --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: uninstall vs. upgrade
As a side note, the SQLite db seems to be a frequent source of install problems for apps. Often developers change the layout and require the user to uninstall and re-install apps. On Tue, Apr 21, 2009 at 7:11 PM, JP wrote: > > > > An uninstall/install cycle will wipe the SQLite db and the > preferences. The only (reasonable) way to keep user data is through an > upgrade. You can test an upgrade by posting the new version (new apk > file) on a web site of yours and install it as a non-market app > through Android's browser. Once the download begins, the process of > installing the app converges. > Posting on a web site needs the following MIME setting there: > application/vnd.android.package-archive > > > > > > On Apr 21, 4:28 pm, havexz wrote: > > Hi > > > > Well i dont know is there a way of testing the upgrade without putting > > it on the market, but I can clarify few of the issues. The database > > wont be delete when the market is upgrading. It keeps the user data > > intact only the application binary is deleted and new installed. > > > > On Apr 21, 4:52 pm, "yves...@gmail.com" wrote: > > > > > I have an application which stores data in preference (to save initial > > > settings) and sqllite database. So, if uninstall the application > > > (through market), will the preference and database be deleted? how > > > about upgrade? Is there a way for me to test this before I upload my > > > upgrade to the market? I don't want people report that they have to re- > > > setup everything and the data in sqllite Database is missing. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 1.5 SDK Media Question: why doesn't android.media.AudioFormat have option for AMR-NB?
That is correct. The encoders are only available through the OpenCORE author engine which does not currently supporting a streaming interface. On Apr 21, 1:53 pm, j wrote: > I would like to use the new AudioRecord class to record in AMR-NB > format. But android.media.AudioFormat provides only 8-bit PCM and 16- > bit PCM options, no AMR-NB option for some reason. > > I have also looked into MediaRecorder class. My understanding is that > while MediaRecorder supprots recording to AMR-NB format, MediaRecorder > can only write to a file (not to a network stream). It seems I need > to use the AudioRecord class but it doesn't seem to support AMR-NB. > > Please shed some light! 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] Thumbnails query ok but how to get thumb?
Hello I use ImageGallery2 of application camera to select an image. The result is an uri of image. The last segment of path is the image id in database. baseImageId in query is the last segment of previous uri I execute this query to get thumb of my image (and query is sucess) private static final String[] THUMB_PROJECTION = new String[] { BaseColumns._ID, // 0 Images.Thumbnails.IMAGE_ID, // 1 Images.Thumbnails.WIDTH, Images.Thumbnails.HEIGHT }; c = Thumbnails.queryMiniThumbnail(getContentResolver(), baseImageId, Images.Thumbnails.MINI_KIND, AddObjectCategory.THUMB_PROJECTION); if (c != null && c.moveToFirst()) { int thumbId = c.getLong(0);< This Id isn't the id of image reduce int imageId = c.getLong(1);< this id = baseImageId } I'm on 1.1 sdk You have an idea? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 config G1 to make both browser and MMS work?
Settings seems to be correct,please keep only the below information and see the browser works apn: cmnet proxy: 10.0.0.172 port:80 username: blank password: blank server: blank mmsc:blank mms proxy: blank mms port: blank mcc: 460 mnc:02 apn type: default and i think Pinyin input is not supported(not sure) On Tue, Apr 21, 2009 at 8:39 PM, shimsim wrote: > > I got the same problem in China with my Dev G1. I'm using the M-Zone > Sim card and with the settings below everything works except the > browser. > > name: china mobile > apn: cmnet > proxy: 10.0.0.172 > port:80 > username: blank > password: blank > server: blank > mmsc: http://mmsc.monternet.com > mms proxy: 10.0.0.172 > mms port: 9201 > mcc: 460 > mnc:02 > apn type: default > > I have not tried sending any mms, but with these setting i can collect > and send mail, use maps, see the market but NO browser. > > Any ideas? > > ps how do i get pinyin input, is there a way and to still have english > as default? > > Thanks! > > On Apr 21, 7:48 am, Anonymous Anonymous > wrote: > > for the mms apn make the apntype to "mms", it shud work > > > > On Fri, Apr 17, 2009 at 11:44 PM, kilroy238 wrote: > > > > > Which one of the 3 China mobile SIMS do you have? > > > > > On Mar 18, 3:38 pm, FayGU wrote: > > > > I have a G1 phone and use it in mainland China. > > > > But I can't config it to work with browser and MMS at the same time. > > > > However with different APN, the browser and MMS can work seperately. > > > > For browser, I use following APN config: > > > > --- > > > > name:cmnet > > > > apn: cmnet > > > > proxy:blank > > > > port:blank > > > > username:blank > > > > password:blank > > > > server:blank > > > > mmsc:blank > > > > mms proxy:blank > > > > mms port:blank > > > > mcc:460 > > > > mnc:00 > > > > apn type:blank > > > > -- > > > > > > For MMS, I use following APN config: > > > > -- > > > > name:cmwap > > > > apn: cmwap > > > > proxy:blank > > > > port:blank > > > > username:blank > > > > password:blank > > > > server:blank > > > > mmsc:http://mmsc.monternet.com > > > > mms proxy:010.000.000.172 > > > > mms port:80 > > > > mcc:460 > > > > mnc:00 > > > > apn type:blank > > > > --- > > > > > > When above two APNs both exists, only browser can work. MMS doesn't > > > > work any more. > > > > > > Does any google export know that how to config G1 to make both > browser > > > > and MMS work? > > > > If it's a known issue, is there any roadmap to fix it? > > > > Thanks! > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Of Progress Bars and Wait Dialogs
Brian Conrad wrote: > I have an application that initializes a bunch of strings on startup. Hopefully, in a background thread. > Apparently none of these things will work until the > layout is displayed? More precisely, none of these things will display if you are hogging the UI thread. > What workarounds are there? You have not indicated where the strings are stored (resources? literally in the layout? XML file? plain text file? database column? fetched from the Internet? randomly generated based on device orientation?). Generally speaking, when things take a while, you want to cause the "a while" to happen in a background thread, possibly using a progress bar or animation or something if the UI is not terribly useful until the background work is complete. If you could be a bit more specific on how you are trying to load strings today that is causing such a slowdown, we might be able to give more specific advice. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer 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: uninstall vs. upgrade
An uninstall/install cycle will wipe the SQLite db and the preferences. The only (reasonable) way to keep user data is through an upgrade. You can test an upgrade by posting the new version (new apk file) on a web site of yours and install it as a non-market app through Android's browser. Once the download begins, the process of installing the app converges. Posting on a web site needs the following MIME setting there: application/vnd.android.package-archive On Apr 21, 4:28 pm, havexz wrote: > Hi > > Well i dont know is there a way of testing the upgrade without putting > it on the market, but I can clarify few of the issues. The database > wont be delete when the market is upgrading. It keeps the user data > intact only the application binary is deleted and new installed. > > On Apr 21, 4:52 pm, "yves...@gmail.com" wrote: > > > I have an application which stores data in preference (to save initial > > settings) and sqllite database. So, if uninstall the application > > (through market), will the preference and database be deleted? how > > about upgrade? Is there a way for me to test this before I upload my > > upgrade to the market? I don't want people report that they have to re- > > setup everything and the data in sqllite Database is missing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Bluetooth and Serial Port Profile
On Tue, Apr 21, 2009 at 12:42 PM, Alin wrote: > > Hello > > I realize that the Bluetooth API is subject to change over time and > that the only available profiles are A2DP and AVCRP, but I am really > interested about the options I have to develop an application using > the Serial Port Profile. I don't really care if the API will later > change, this application is meant to be used only by me (I am trying > to communicate to a mirocontroller using Bluetooth and the only > supported profiles are SPP and GAP). > > I am going through the /core/java/android/bluetooth/ classes at the > moment but I don't see anything that refers to the SPP or otherwise. I > am willing to invest time to learn and write a SPP implementation, > provided I have someone to guide me. This is valuable to me because I > am doing this project as a final year project so I'm not exactly > waiting for someone else to do my work. RfcommSocket.java is what you want. SPP is just rfcomm. > > > In conclusion, does anyone have any suggestions on where I could start > looking and studying to be able to use the SPP in an application? > > Any piece of advice is greatly appreciated, > Alin > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Of Progress Bars and Wait Dialogs
I have an application that initializes a bunch of strings on startup. This takes a few seconds and I need either a progress bar or wait dialog. On other platforms this is usually not problem to pop something up. But Android needs to work on either how the progress bar (maybe in the title bar works) or how temporary dialogs work. I've seen other postings from people looking to make their progress bars or dialogs work but often no reply. Apparently none of these things will work until the layout is displayed? And it is of course a bunch of strings in a TextView in my layout that is causing the delay. What workarounds are there? I've not seen any examples that deal with this so far. - Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 change the fading color in scrollview?
It's the same API/XML attribute for both. On Wed, Apr 22, 2009 at 8:51 AM, havexz wrote: > > I want to change the fading color for scrollview. One can change the > fading color for listview but how about scrollview? > > > -- 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] How to change the fading color in scrollview?
I want to change the fading color for scrollview. One can change the fading color for listview but how about scrollview? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: uninstall vs. upgrade
Hi Well i dont know is there a way of testing the upgrade without putting it on the market, but I can clarify few of the issues. The database wont be delete when the market is upgrading. It keeps the user data intact only the application binary is deleted and new installed. On Apr 21, 4:52 pm, "yves...@gmail.com" wrote: > I have an application which stores data in preference (to save initial > settings) and sqllite database. So, if uninstall the application > (through market), will the preference and database be deleted? how > about upgrade? Is there a way for me to test this before I upload my > upgrade to the market? I don't want people report that they have to re- > setup everything and the data in sqllite Database is missing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Early Look Android 1.5 SDK
>But will the official release will work on the ADP1? One more question >after 1.5 is released officially, do we still have to support for the >older versions or all gphone owners will have this update available on >their phones? fwiw, i'm running Haykuro's 5.0.1Gr3-signed.zip build on my ADP1 right now. i just followed the instructions on Haykuro's blog - install a JF ROM, backup with Nandroid, then install the 1.5 ROM. works well enough for me. i'm seeing some issues, but they're most likely generic 1.5 ones rather than anything specific to the ADP as such. -- 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] Custom AutocompletionTextView
Hello, I have changed the background image of an AutocompletionTextView. Is there any way to change the appearance of the list view, the default one looks pretty ugly ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Early Look Android 1.5 SDK
> It's not going to run on ADP1 as it lacks the proprietary files that > are needed for that. > > JBQ But will the official release will work on the ADP1? One more question after 1.5 is released officially, do we still have to support for the older versions or all gphone owners will have this update available on their phones? On Apr 14, 1:11 pm, Jean-Baptiste Queru wrote: > The latest cupcake source drop (done a few hours ago) matches the > preview SDK. We're working to tag it. Note that this isn't release 1.5 > of Android, it's just a code drop that matches an official preview > SDK. > > It's not going to run on ADP1 as it lacks the proprietary files that > are needed for that. > > JBQ > > > > > > On Tue, Apr 14, 2009 at 12:20 AM, Vladimir > wrote: > > > Hi Xav. > > > Thanks! > > But I have questions. > > How can I build the same version by myself? > > Is it based on Master branch? Or Cupcake? > > Is it possible to build the same version for ADP1? > > > I think it would be better to create new branch to avoid issues like > > "18 march" issue. As example "release1_5". > > > BR, > > Vladimir Stepanov > > > On Apr 14, 3:30 am, Xavier Ducrohet wrote: > >> Hello developers! > > >> I'm pleased to announce the release of an early look of the Android 1.5 > >> SDK. > > >> More information and download link > >> at:http://android-developers.blogspot.com/2009/04/getting-ready-for-andr... > > >> Have fun! > > >> Xav > >> -- > >> Xavier Ducrohet > >> Android Engineer, Google. > > -- > Jean-Baptiste M. "JBQ" Queru > Android Engineer, Google. > > Questions sent directly to me that have no reason for being private > will likely get ignored or forwarded to a public forum with no further > warning.- 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: SDK 1.5, Unable to load XML wizard
I think that the problem is related with the menu New->Other...- >Android->Android XML File which gives the "unable to load class..." message but not with the new Android XML wizard button in the toolbar which works, at least in my case. On Apr 20, 9:48 am, iceberg wrote: > I dont know why my previous post didnt appear. I have the same build > as Raphael, but wizards dont work for me. > > Maybe good possibility is to release bundled Eclipse+ADT version. What > do you think about this ? > > On Apr 15, 10:48 am, "stefan.jau...@googlemail.com" > > wrote: > > I have it also > > > On 14 Apr., 15:43, Al wrote: > > > > I'm trying to make a new XML file and have selected New->Android XML > > > File, but each time I get this message: > > > > The selected wizard could not be started. > > > Plug-in com.android.ide.eclipse.adtwas unable to load class > > > com.android.ide.eclipse.editors.wizards.NewXmlFileWizard. > > > com.android.ide.eclipse.editors.wizards.NewXmlFileWizard > > > > The problem is only with the XML file creator, I can create a new > > > Android Project fine. I'm usingADT0.9 Pre release and have installed > > > it as per the instructions on the doc page. > > -- Have you read my blog ? http://dtmilano.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: memory leak when closing and restarting appliction several times
You need a tearDown() method, and for each activity you start, keep a handle to it.. which depends on which Test package you are using. Looks like you are using a single activity, in which case you can use getActivity() for your current activity. So an example would be: @Override protected void tearDown() throws Exception{ getActivity().finish; randomVariable = null; if(otherRandomActivity() != null) otherRandomActivity().finish() super.tearDown(); } See if that helps! On Mon, Apr 20, 2009 at 1:44 PM, Julie Alexan wrote: > > Hi, All! Using 'ddms' and repeatably clicking SysInfo -> Update from > Device helped me find a memory leak. So we have 9 JUnit test cases > spread amongst 4 files, and we run them in eclipse. After EACH test > cases finishes, our application is exiting; and it restarts again for > the next test case. So for now, that's 9 times our app is closing and > restarting, which would be fine, except that each time it close it > leaks memory so that there is less available for the next test. All > we have for @before and @after is this: > >@Before >public void setUp() { >System.gc(); // < TRIED TO SEE IF THIS WOULD HELP, > BUT IT > DIDN'T >startActivity("com.yellowpages.android.ypmobile", > "com.yellowpages.android.ypmobile.YPM"); >waitForStartup(); >} > >@After >public void postTest() { >if (wait_post_test) { >waitFor("class.simpleName", "BASIC_TIMEOUT", timeout_in_ms); >} >} > > Questions: > 1. What's the proper solution? Find a way to only start the app ONE > time then run all tests? Or fix the leak? > 2. To fix the leak, is there something we're missing/forgetting to do > in the @After method? > 3. As a quick fix, is there somewhere particular in the positron code > that I can do a garbage collect() that might help? > > Any help is appreciated. > Thanks, > > Julie > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Pre-Loading apps from SD Card? Possible?
Pete wrote: > Is is possible to load/install apps by simply putting the APK file on > a SD Card? There is no file-browser program in Android, so you would still need to install one application off the Market or over the Web that would let you browse the SD card and choose to install those apps. -- 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] uninstall vs. upgrade
I have an application which stores data in preference (to save initial settings) and sqllite database. So, if uninstall the application (through market), will the preference and database be deleted? how about upgrade? Is there a way for me to test this before I upload my upgrade to the market? I don't want people report that they have to re- setup everything and the data in sqllite Database is missing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Encrypting application data file that is bundled with apk !
>From what I understand, your requirements are: - your app uses data that it puts in a database during setup - the end user should not be able to access this data, except through your app's UI Possible cracks would then be Marco's decompilation idea, or inspecting the database. Without knowing more about your app, I have a few suggestions: - bundle encrypted data with the app, but not the key to decrypt - in the database, at least encrypt the names and values - don't decrypt all the data at one time, only decrypt whatever the UI requests One way to accomplish the last step is with a per-datum key fetched on demand from your web service. However, depending on the value of your data, hiding it and the key in your code may be sufficient to render decryption not cost-effective. Yusuf Saib Android ·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. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Getting the ID of a ListView row item from a button click
Why are you wrapping each checkbox in its own linearlayout? On Tue, Apr 7, 2009 at 10:35 AM, e-satis wrote: > > Hello, > > Each row of my view look like that : > > http://schemas.android.com/apk/res/ > android" >android:id="@+id/row_layout" > > > > > > > > > > > > > > > > > > > > > > > When I click on the ImageButton "arrow", I trigger a method than need > the id of the row to perform. By ID I mean the value of the field > "_id" of the corresponding record in database. > > I did not find a direct way to do it, but I think I can if I get the > index of the row in the ListView. Again, I don't know how to get this > index from a click to a childview. > > Any help much appreciated ! > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Elan sues Apple for multitouch patent infringment... and guess what....
On Tue, Apr 21, 2009 at 12:43 PM, Stoyan Damov wrote: > > On Tue, Apr 21, 2009 at 10:27 PM, Marco Nelissen > wrote: > > On Tue, Apr 21, 2009 at 12:19 PM, Stoyan Damov > > wrote: > >> > >> On Wed, Apr 15, 2009 at 5:11 PM, Jean-Baptiste Queru > >> wrote: > >> > > >> > Second, more importantly, many people who read and participate in this > >> > group and other official Android discussion groups work for companies > >> > where company policy is to avoid reading or learning about any > >> > patent-related subject, and to avoid forums and sites where such > >> > discussions routinely happen. It'd be unfortunate if those people were > >> > forced to stay away from the official groups because of patterns of > >> > patent-related discussions. Let's try to be self-moderating in that > >> > area before lawyers need to get involved (as even the most friendly > >> > lawyers can't make their involvement pleasant in that case). > >> > > >> > >> I call BULLSHIT. > >> No one is forcing these guys to use their business e-mails for reading > >> these groups. > > > > It doesn't matter what email address is used. It's the person behind the > > email address that matters. > > > > True, but I don't see what can stop me from setting up a > blab...@gmail.com account, accessing it on https://gmail.com with an > HTTP tunneling I've setup at home, and using it from work (or simply > browsing the newsgroup via VNC at home). Sure you can do that. My point is not that we can't try to hide our activities or identities, but that we *should not* hide them. We should not masquerade as someone else in order to participate in conversations that are not appropriate for us as Google employees to participate in. > I also call bullshit because these people could, for example, google > for "parent", accidentally make a typo and type "patent" (r and t are > close to each other) and eventually see some patent-related stuff, > which wasn't supposed to be seen. That is completely different from signing up using a fake identity. In any case, since Elan suing Apple has nothing to do with the SDK, this discussion remains off-topic for this group. Please take it somewhere else. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Camera preview different from captured image
Has anyone noticed that the camera preview image field of view is slightly smaller than the captured image? That is, if, using the capture application I align the top of the camera preview with some object in the scene, and then capture, the captured image will extend noticeably outside the preview. It appears that, probably, the area of the image sensor where the image is captured for still photography extends outside the area where the image is captured for live display. This would not in itself be a problem but it leads to an issue when I write an app that overlays the preview with other graphics, for example a viewfinder window. When the viewfinder is lined up with the object to be captured in the preview, it will be offset from the correct position in the still image -- and the viewfinder window will appear in the incorrect, offset, position in the still frame that is automatically shown after capture. This means that it doesn't appear to be possible to give the user decent positioning guidance near the edge of the preview image. The offset between the preview image and the still image is at least 10 pixels there. Has anyone come up with a workaround for this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting the ID of a ListView row item from a button click
Solved it the same way than in http://groups.google.com/group/android-developers/browse_thread/thread/16e2f50d9a46823a/fc448b80b6ae29cc?lnk=gst&q=e-satis, adding the id to the view manually. On Apr 7, 7:35 pm, e-satis wrote: > Hello, > > Each row of my view look like that : > > http://schemas.android.com/apk/res/ > android" > android:id="@+id/row_layout" > > > > > > > > > > > > > > > > > > > > > > > When I click on the ImageButton "arrow", I trigger a method than need > the id of the row to perform. By ID I mean the value of the field > "_id" of the corresponding record in database. > > I did not find a direct way to do it, but I think I can if I get the > index of the row in the ListView. Again, I don't know how to get this > index from a click to a childview. > > Any help much appreciated ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] 1.5 SDK Media Question: why doesn't android.media.AudioFormat have option for AMR-NB?
I would like to use the new AudioRecord class to record in AMR-NB format. But android.media.AudioFormat provides only 8-bit PCM and 16- bit PCM options, no AMR-NB option for some reason. I have also looked into MediaRecorder class. My understanding is that while MediaRecorder supprots recording to AMR-NB format, MediaRecorder can only write to a file (not to a network stream). It seems I need to use the AudioRecord class but it doesn't seem to support AMR-NB. Please shed some light! Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Null pointer exception while using setOnClickListener
I solved the problem building a custom view list adapter. I post the code here with some comments so it can help any body else : import android.content.Context; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.View.OnClickListener; import android.widget.CheckBox; import android.widget.ImageButton; import android.widget.SimpleCursorAdapter; import android.widget.TextView; public class ItemListAdapter extends SimpleCursorAdapter { private Context context; private int layout_id; // initialize the on click listeners. It's static so it's share with all the buttons to avoid object creation // navigation with the arrow button private static final OnClickListener arrow_button_on_click_listener = new OnClickListener() { public void onClick(View v) { // on click, get the id of the item, make it the current node // then refresh the view so we see its children InContext list = (InContext) v.getContext(); list.setCurrentNode(v.getId()); list.refreshView(); } }; // validation with the check box button // initialize the listener. It's static so it's share with all the buttons to avoid object creation private static final OnClickListener check_box_on_click_listener = new OnClickListener() { public void onClick(View v) { // on click, get the id of the item, make it the current node // then refresh the view so we see its children InContext list = (InContext) v.getContext(); // this state is the contrary of the previous one int checked = 1; if (((CheckBox) v).isChecked()) checked = 0; list.toggleItem(v.getId(), checked); } }; public ItemListAdapter(Context context, int layout_id, Cursor c,String[] from, int[] to) { super(context, layout_id, c, from, to); this.context = context; this.layout_id = layout_id; } /** * Custom view translates columns into checkbox, title and arrow * * @see android.widget.CursorAdapter#getView(int, android.view.View, android.view.ViewGroup) */ public View getView(int position, View convertView, ViewGroup parent) { // no need to manage the cursor, thanks to the "simplecursoradapter", it will be on the right position Cursor cursor = getCursor(); cursor.moveToPosition(position); // get the id of the item, so we can store it in each view int index = cursor.getColumnIndex(ItemDbHelper.KEY_ID); int _id = cursor.getInt(index); /* inflate the list row view from the XML so we can instanciate it's child with findViewById if we don't do that, we'll get null from findViewById and so a null pointer exception */ // first we get the instance of the inflater that is pre configured for this phone LayoutInflater inflater = LayoutInflater.from(this.context); // then, we inflate the view with it View v = inflater.inflate(this.layout_id, parent, false); // we don't want the layout to be bound to any root for the moment, setAdapter() will do that // set the value of the item title of each row TextView item_title = (TextView) v.findViewById (R.id.item_title); index = cursor.getColumnIndex(ItemDbHelper.KEY_TITLE); item_title.setText(cursor.getString(index)); // set the status of the checkbox of each row CheckBox item_checkbox = (CheckBox) v.findViewById (R.id.row_checkbox); item_checkbox.setId(_id); index = cursor.getColumnIndex(ItemDbHelper.KEY_CHECKED); if (cursor.getInt(index) == 0) item_checkbox.setChecked(false); else item_checkbox.setChecked(true); // set the check box click listener to perform db update on clic item_checkbox.setOnClickListener(check_box_on_click_listener); // set the image of the image button according to the number of childrdb en ImageButton arrow = (ImageButton) v.findViewById (R.id.arrow_right); arrow.setId(_id); index = cursor.getColumnIndex (ItemDbHelper.KEY_CHILDREN_COUNT); if (cursor.getInt(index) == 0) arrow.setImageResource(R.drawable.arrow); else arrow.setImageResource(R.drawable.double_arrow); // set the arrow button click listener to navigate in depth in the node list arrow.setOnClickListener(arrow_button_on_click_listener); return v; } } On Apr 7, 8:56 pm, e-satis wrote: > My row layout is in a separate
[android-developers] Re: WebView and Button in layout, only one of them can be clicked.
This problem only happens in 1.0 but not 1.1. Anyone knows how to solve this in 1.0? Kevin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: pictures and buttons
ImageButton? j On Tue, Apr 21, 2009 at 12:56 PM, petunio wrote: > > Hi > > Does anybody knows how can I put a Bitmap on top of a button, but > without taking the whole surface? > > at the moment, what I am doing is: > > > BitmapDrawable bd=new BitmapDrawable(myBitmap); > Button myButton.setBackgroundDrawable(bd); > > and the picture occupies the whole button... is there any way to set > up some margins? > > Thanks a lot > > > -- Jeff Sharkey jshar...@google.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SharedPreferences got deleted! - What could be the problem?
Well here are the things that can be as a maximum in my settings file: http://paste.pocoo.org/show/lqqABv2lblNz1Bkh9XNs/ It would be nice if you could tell me if this is ok. Where should I use this one "use android:persistent="true"" ? Regards. On Apr 21, 5:39 pm, Chander Pechetty wrote: > Are these settings part of your preferences xml file? > use android:persistent="true" or set it and you most likely won't have > this issue. > > Check if your case falls under the issue > :http://code.google.com/p/android/issues/detail?id=1707 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] pictures and buttons
Hi Does anybody knows how can I put a Bitmap on top of a button, but without taking the whole surface? at the moment, what I am doing is: BitmapDrawable bd=new BitmapDrawable(myBitmap); Button myButton.setBackgroundDrawable(bd); and the picture occupies the whole button... is there any way to set up some margins? Thanks a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Pre-Loading apps from SD Card? Possible?
Is is possible to load/install apps by simply putting the APK file on a SD Card? I'm trying to figure out a way to preinstall apps (prior to handing them out i mean) in a large corporate environment without the need of going though Marketyplace. I know I can point the device to an APK file on the web and do an install that way, but I'm looking for a way to preinstall the app in a more expedited way. Ideally, writing this onto SD and poping in the Card into each device is ideal in our setup. Is this possible? Any suggestions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Pre-Loading apps from SD Card? Possible?
Is is possible to load/install apps by simply putting the APK file on a SD Card? I'm trying to figure out a way to preinstall apps (prior to handing them out i mean) in a large corporate environment without the need of going though Marketyplace. I know I can point the device to an APK file on the web and do an install that way, but I'm looking for a way to preinstall the app in a more expedited way. Ideally, writing this onto SD and poping in the Card into each device is ideal in our setup. Is this possible? Any suggestions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Picture supported in Android
Note that ImageView does not animate animated GIFs. On Apr 20, 7:34 pm, Anonymous Anonymous wrote: > http://developer.android.com/guide/appendix/media-formats.html > > On Tue, Apr 21, 2009 at 8:02 AM, guishenl...@gmail.com < > > guishenl...@gmail.com> wrote: > > > Hi all, > > I'm doing an application of showing picture with ImageView.I want > > to know how many kinds of picture are supported in Android, and what > > are they.Could anyone give a list of these files?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] Re: Elan sues Apple for multitouch patent infringment... and guess what....
On Tue, Apr 21, 2009 at 10:27 PM, Marco Nelissen wrote: > On Tue, Apr 21, 2009 at 12:19 PM, Stoyan Damov > wrote: >> >> On Wed, Apr 15, 2009 at 5:11 PM, Jean-Baptiste Queru >> wrote: >> > >> > Second, more importantly, many people who read and participate in this >> > group and other official Android discussion groups work for companies >> > where company policy is to avoid reading or learning about any >> > patent-related subject, and to avoid forums and sites where such >> > discussions routinely happen. It'd be unfortunate if those people were >> > forced to stay away from the official groups because of patterns of >> > patent-related discussions. Let's try to be self-moderating in that >> > area before lawyers need to get involved (as even the most friendly >> > lawyers can't make their involvement pleasant in that case). >> > >> >> I call BULLSHIT. >> No one is forcing these guys to use their business e-mails for reading >> these groups. > > It doesn't matter what email address is used. It's the person behind the > email address that matters. > True, but I don't see what can stop me from setting up a blab...@gmail.com account, accessing it on https://gmail.com with an HTTP tunneling I've setup at home, and using it from work (or simply browsing the newsgroup via VNC at home). I also call bullshit because these people could, for example, google for "parent", accidentally make a typo and type "patent" (r and t are close to each other) and eventually see some patent-related stuff, which wasn't supposed to be seen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Bluetooth and Serial Port Profile
Hello I realize that the Bluetooth API is subject to change over time and that the only available profiles are A2DP and AVCRP, but I am really interested about the options I have to develop an application using the Serial Port Profile. I don't really care if the API will later change, this application is meant to be used only by me (I am trying to communicate to a mirocontroller using Bluetooth and the only supported profiles are SPP and GAP). I am going through the /core/java/android/bluetooth/ classes at the moment but I don't see anything that refers to the SPP or otherwise. I am willing to invest time to learn and write a SPP implementation, provided I have someone to guide me. This is valuable to me because I am doing this project as a final year project so I'm not exactly waiting for someone else to do my work. In conclusion, does anyone have any suggestions on where I could start looking and studying to be able to use the SPP in an application? Any piece of advice is greatly appreciated, Alin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Screen/Pattern Lock application invocation
Mark, Calling System.Settings.putInt(getContentResolver(), System.Settings.LOCK_PATTERN_ENABLED, 1); System.Settings.putInt(getContentResolver(), System.Settings.LOCK_PATTERN_VISIBLE, 1); on emulator does not seem to activate the pattern, even after having configured the lock pattern. Later I call KeyGuardManager.reenableLock() ... I am going to try it on a real phone and report it. This, however, seems like a configuration change versus unlocking (here is the right word :)) the phone from a program. I guess it might work. Thanks! On Apr 21, 5:51 am, Mark Murphy wrote: > dilit wrote: > > Can you tell me what classes would allow me to disable the lock from > > within the program? > > Is it KeyguardManager, KeyguardLock? > > It is android.provider.Settings.System -- you want the > LOCK_PATTERN_ENABLED setting. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android App Developer Training:http://commonsware.com/training.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] coarse grained vs fine grained location -- when to use?
Hi, I was thinking of using just coarse grained location control for a location app I'm working on. My thinking was that this service would "always" be available -- as opposed to GPS. Is there any documenation on the typical accuracy differences? Is network lookup (coarse grained) available on all G1 phones? Best wishes! Thanks George F. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Is there a way to drop a collection of apps into a folder on the homepage programmatically?
If I want to take 3 apps that I write and target them for a folder called "my corporation" folder is there a way to do this programmatically? Will live folders help here in such a case? Thanks Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Elan sues Apple for multitouch patent infringment... and guess what....
On Tue, Apr 21, 2009 at 12:19 PM, Stoyan Damov wrote: > > On Wed, Apr 15, 2009 at 5:11 PM, Jean-Baptiste Queru > wrote: > > > > Second, more importantly, many people who read and participate in this > > group and other official Android discussion groups work for companies > > where company policy is to avoid reading or learning about any > > patent-related subject, and to avoid forums and sites where such > > discussions routinely happen. It'd be unfortunate if those people were > > forced to stay away from the official groups because of patterns of > > patent-related discussions. Let's try to be self-moderating in that > > area before lawyers need to get involved (as even the most friendly > > lawyers can't make their involvement pleasant in that case). > > > > I call BULLSHIT. > No one is forcing these guys to use their business e-mails for reading > these groups. It doesn't matter what email address is used. It's the person behind the email address that matters. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Encrypting application data file that is bundled with apk !
On Tue, Apr 21, 2009 at 12:04 PM, Slater wrote: > > Hi, > > I plan to bundle an xml data file that has all the metadata > required by the application. When my app loads for the first time, the > xml data file is read and local database is created and populated. > This xml file is a crucial part of my app and it holds at least 100k > entries. I don't want this data to be compromised. > > Is there a way to encrypt this data file so that the file is > unreadable in case someone opens the .apk file and extracts the data > file. Since the decryption algorithm and key would have to be part of your apk as well, someone could conceivably decompile your app and get all the information they need to decrypt the data. So you can't make it 100% secure, you can only make it less convenient for someone trying to get the data. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Elan sues Apple for multitouch patent infringment... and guess what....
On Wed, Apr 15, 2009 at 5:11 PM, Jean-Baptiste Queru wrote: > > Second, more importantly, many people who read and participate in this > group and other official Android discussion groups work for companies > where company policy is to avoid reading or learning about any > patent-related subject, and to avoid forums and sites where such > discussions routinely happen. It'd be unfortunate if those people were > forced to stay away from the official groups because of patterns of > patent-related discussions. Let's try to be self-moderating in that > area before lawyers need to get involved (as even the most friendly > lawyers can't make their involvement pleasant in that case). > I call BULLSHIT. No one is forcing these guys to use their business e-mails for reading these groups. Nice try though :P Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: App widgets and remote views
It's an intentional limitation. Only views that are implemented by the framework can be used, and only those that are annotated as safe for remoting. I don't know if there is a list provided in the SDK docs, but as of 1.5 the supported Views are: AbsoluteLayout AnalogClock Button Chronometer FrameLayout ImageButton ImageView LinearLayout ProgressBar RelativeLayout TextView Tom 2009/4/21 Joel > > I'm excited about the app widget functionality, and I've been playing > with it for a bit. I love the idea that downloadable apps can > customize the home screen with arbitrary data. > > Is it possible to create my own custom views and use them inside of an > app widget? For instance, if I wanted to have MyView (which extends > View) and use it in my layout, would that be possible? I tried to do > this, but ran into an InflateException that was thrown as a result of > a ClassNotFoundException. I wasn't sure if this was a result of some > coding error on my part or if this was an intentional limitation of > the framework. > > Joel > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Encrypting application data file that is bundled with apk !
Hi Slater, You could write a Java util to encrypt the file, then use the same algorithm and key to decrypt it in your android app before reading. Kirk On Apr 21, 12:04 pm, Slater wrote: > Hi, > > I plan to bundle an xml data file that has all the metadata > required by the application. When my app loads for the first time, the > xml data file is read and local database is created and populated. > This xml file is a crucial part of my app and it holds at least 100k > entries. I don't want this data to be compromised. > > Is there a way to encrypt this data file so that the file is > unreadable in case someone opens the .apk file and extracts the data > file. > > Your help is highly appreciated. > > Thanks, > Slater. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Encrypting application data file that is bundled with apk !
Hi, I plan to bundle an xml data file that has all the metadata required by the application. When my app loads for the first time, the xml data file is read and local database is created and populated. This xml file is a crucial part of my app and it holds at least 100k entries. I don't want this data to be compromised. Is there a way to encrypt this data file so that the file is unreadable in case someone opens the .apk file and extracts the data file. Your help is highly appreciated. Thanks, Slater. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Map view not displaying tiles in 1.5 but it's fine in 1.1
Wayne, You could also have moved your old debug.keystore in the new location, instead of generating a new map key. But either way is fine. > 2. Regenerate the key: I used the html file that comes with the 1.5 > documentation rather than the going to the google website and using > that one version. I don't know if it makes a difference or not, but it > generated a new key. > > file:///C:/android-sdk-windows-1.5_pre/docs/maps-api-signup.html This just calls back to the google server. The generation of the map key can only be done by our server. Glad to here it worked out. Xav --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Development versions of proprietary Google applications
Hi, I was wondering if there's any chance that you will release development versions of the proprietary Google applications. I'm guessing that the 'trunk' or 'main' version of them will be stable enough for people to use them in their personal builds. I've been diving into the source code of the platform, but if I compile the system and put it on my Dev Phone, it's of course missing the Google applications. These applications with their integration to the Google services are a part of what makes the entire platform so interesting. To clarify a bit: I'm not asking for those applications to be open sourced, I'd just like to see regular builds of the applications and used libraries, so we could include them in our own development version of the platform. Of course the development version are not suitable for 'production-critical' environments, but I'm guessing that the main branch will be stable enough for developers to use. Thanks, Sander --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] creating a dialog that slides in
how would one create a dialog box that slides in and out when done. thx. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Can I close automatically the browser when I use it to start another activity ?
Hi, I want start a video stream and I have a link with http:. With a redirection or other the android's browser can find the link rtsp:. My problem is when I stop the video, the browser is again there and empty. In the LOG: I/ActivityManager( 54): Starting activity: Intent { action=android.intent.action.VIEW categories=android.intent.category.BROWSABLE} data=http://site/t.cgi comp={com.android.browser/com.andr oid.browser.BrowserActivity} } I/ActivityManager( 54): Starting activity: Intent { action=android.intent.action.VIEW categories=android.intent.category.BROWSABLE} data=rtsp://dsfsdf.sdf/ 54454 comp=com.android.camera/com.android.camera.MovieView} } Can I close automatically the browser when I use it to start another activity ?(with an intent.category or a other intent.action) Other solution : Can I close the browser after the end of the activity "MovieView" ? Other solution : Can I find the good redirection rtsp without the android's browser ? (don't work with HttpGet) Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: App widgets and remote views
I'm excited about the app widget functionality, and I've been playing with it for a bit. I love the idea that downloadable apps can customize the home screen with arbitrary data. Is it possible to create my own custom views and use them inside of an app widget? For instance, if I wanted to have MyView (which extends View) and use it in my layout, would that be possible? I tried to do this, but ran into an InflateException that was thrown as a result of a ClassNotFoundException. I wasn't sure if this was a result of some coding error on my part or if this was an intentional limitation of the framework. Joel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with tabs and focus
Hello all. I've got another little issue using tabs. I've created a new TabHost handling 4 Tabs. Each tab has an Intent as content. The first tab launches a new Activity that creates a new Options Menu. When i change the tab and then come back to the first one, that menu wont show at first. I have to put the focus into one View inside in order to make the menu show again. I've tried requesting focus inside the first Activity.. @Override protected void onResume() { super.onResume(); _searchText.setFocusable(true); _searchText.requestFocus(); } i've also tried this... public class MainActivity extends TabActivity { @Override public void onCreate(Bundle savedInstanceState) { _tabhost = getTabHost(); _tabhost.setDescendantFocusability (ViewGroup.FOCUS_AFTER_DESCENDANTS); } But no luck at all... :S Any Idea??? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to instrument code to find an OutOfMemory error (in WebView?)
Look at ActivityManager, it has access to memory info. I bet you could use that to manage/find memory leaks and other things. Let me know if that helps at all! On Tue, Apr 21, 2009 at 8:57 AM, Richard Cook wrote: > This is a good question, a proper testing method for unit power/memory > consumption. I believe there is one through instrumentation that allows you > to access the free memory (I can't find it right now). > > But I'd like to know this as well. > > > On Tue, Apr 21, 2009 at 3:18 AM, Mariano Kamp wrote: > >> Hi, >> >> I sometimes get bug reports that are caused by an OutOfMemory error. It >> happens when creating a bitmap, but I am pretty sure that it is not the >> bitmap size that is the real problem, because the instantiation of those >> images happens > 100.000 times a day without an error report. Those png >> images are of 4K size (on disk) anyway. >> >> Those bug reports are very infrequent, but still I would love to get rid >> of them. I can't reproduce the memory growing over 10 MBs (actually way >> less) when using the app myself and monitoring the memory consumption in >> DDMS. I also, at no point in time, cache something or hold on to more than >> one item (article in my case) at a time, except in one list. There the list >> caches the visible components, which cannot amount to much too and is >> default functionality from the Android framework. >> >> I meanwhile kind of ***suspect*** that maybe the WebView I embed does >> eat up all the memory, because the page to display might be huge?! I don't >> know though how to get closer to confirming that or any other possible >> cause. I tried to use a ca. url that one user provided me with, but this >> also didn't make the memory grow much. And a single page it is probably not >> a good enough test case, as it doesn't account for what page was displayed >> before and how the cache behaved. >> >> So I would like to gather more data when I capture an OutOfMemory and >> create a bug report. >> >> The obvious thing would be to include the current memory consumption. >> >> Something like this? >> >> Runtime rt = Runtime.getRuntime(); >> >> Log.d("Memory", "Memory left=" >> >> + String.format("Memory free: %4.2fMB total: %4.2fMB max: %4.2fMB", >> >> rt.freeMemory() / 1024 / 1024.0, >> >> rt.totalMemory() / 1024 / 1024.0, >> >> rt.maxMemory() / 1024 / 1024.0)); >> >> Memory left=Memory free: 3.94MB total: 6.82MB max: 16.00MB (see >> screenshot for DDMS at the same point in time) >> >> I am not sure though, if this of any value. When I get an OutOfMemory >> error I would *expect* to get free: 0, total: 16, max 16. >> I would still deploy that in a new version, just in case. Maybe my process >> didn't even get 16 MB, because the phone was running low on memory as it is? >> >> Anything else I can measure of gather to get to the bottom of it? >> >> Cheers, >> Mariano >> >> -- Android Version: sdk=2, release=1.1, inc=128600 >> -- Thread State: RUNNABLE >> -- NewsRob Version: 1.9.0/190 >> -- Stacktrace: >> java.lang.RuntimeException: Unable to start activity >> ComponentInfo{com.newsrob/com.newsrob.ShowEntryActivity}: >> android.view.InflateException: Binary XML file line #29: Error inflating >> class java.lang.reflect.Constructor >> at >> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2141) >> at >> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2157) >> at android.app.ActivityThread.access$1800(ActivityThread.java:112) >> at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581) >> at android.os.Handler.dispatchMessage(Handler.java:88) >> at android.os.Looper.loop(Looper.java:123) >> at android.app.ActivityThread.main(ActivityThread.java:3739) >> 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) >> Caused by: android.view.InflateException: Binary XML file line #29: Error >> inflating class java.lang.reflect.Constructor >> at android.view.LayoutInflater.createView(LayoutInflater.java:512) >> at >> com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) >> at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562) >> at android.view.LayoutInflater.rInflate(LayoutInflater.java:617) >> at android.view.LayoutInflater.inflate(LayoutInflater.java:407) >> at android.view.LayoutInflater.inflate(LayoutInflater.java:320) >> at android.view.LayoutInflater.inflate(LayoutInflater.java:276) >> at >> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:231) >> at android.app.Activity.setContentView(Activity.java:1569) >> at com.newsrob.ShowEntryActivity.onCreate(ShowEntryActivity.java:70) >> at >> android.app.Instrumentation.cal
[android-developers] Disable XSL transforms in HTTPClient
Does anyone know how to avoid the XSL transforming that is taking place in the HTTPClient? I just want the raw xml. thanks /Magnus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] does cupcake recognise (anti)clockwise rotatiions of the device
hi I was told that Cupcake distinguishes both clockwise and anti-clockwise rotations of the device and that it sets UI layouts accordingly. Is this true? Or have I misunderstood something? Also, what happens when the device is flipped upside down? Does cupcake deal with it at all? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: maps api and 1.5
Hi Finally, my error was to left maps.jar in the classpath Now, this very simple Map app with 1.5 SDK launch good Thank for all the responses. It helps a lot. Andre --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 get the source code of the command monkey?
Hi Dianne, In fact my goal is to write my own Monkey-service(initial version only for key presses). What I need is a much more controlled randomness of key presses and key timings. I can create and start a service. I can create a key event: KeyEvent = kevent = new KeyEvent (KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_A); But I don't know how my Monkeyservice can send it to the current activity. How can I compile such service? On Apr 16, 10:33 am, Dianne Hackborn wrote: > You need to build it with the platform build system. This is not intended > to be used outside of that. > > > > On Thu, Apr 16, 2009 at 12:46 AM, adrian wrote: > > > Hello group, > > I download the source code from [platform/development.git]/cmds/ > > monkey/ and want to build in eclipse. > > But I don't have some non-public classes. > > like: > > import android.app.ActivityManagerNative; > > import android.app.IActivityManager; > > import android.app.IActivityWatcher; > > > where can I get the non-public classes? > > > Thanks and best regards, > > Adrian > > > On Apr 16, 2:54 am, swarup wrote: > > > git source path : > > > > [platform/development.git]/cmds/monkey/... > > > > On Apr 15, 10:57 am, adrian wrote: > > > > > Hello group, > > > > I don't have a option -f in my commandmonkey(/system/bin/monkey). > > > > example: adb shellmonkey-f . > > > > But the command unknown option -f. > > > > So I want to get the source code of the commandmonkey, then open > > > > this option and rebuild it. > > > > > Regards, > > > > Adrian > > -- > 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: Map view not displaying tiles in 1.5 but it's fine in 1.1
Thanks a bunch Xavier. That worked I now can see the map in the 1.5 toolkit. A few notes on what I did: 1. Regenerate the certificate using the new location for the 1.5 environment. 2. Regenerate the key: I used the html file that comes with the 1.5 documentation rather than the going to the google website and using that one version. I don't know if it makes a difference or not, but it generated a new key. file:///C:/android-sdk-windows-1.5_pre/docs/maps-api-signup.html 3. Replace the old key in your whatever_map.xml file with the new key. Thanks again for the quick response! Wayne http://www.reddroid.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] using the ARM toolchain on FreeBSD to compile a .so for Android
Hello, I'd like to compile C code on FreeBSD as a .so to be linked with a Java front-end using JNI. I have available to me the arm-rtems-gcc-4.2.3 toolchain from ports. Can I expect to compile for Android using this toolchain? Is there anything unique about the cross-compiler from CodeSourcery? 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] Re: Problem installation Android Development Tools
I had similar problem. You may need to update and install latest fixes to eclipse. Eclipse->Preferences->Install/Updates->Automatic Updates Click 'Automatically find new updates and notify me', select 'Look for updates each time platform is started' Restart eclipse. You should see at the bottom of the startup screen eclipse updating. Wait until you see no more updates. Now, try to install ADT plugins. Resolved my problem on Mac OS X 10.5.6 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Problem installation Android Development Tools
Hey All, I had the same problem. The fix: Turn on automatic update for eclipse. You can get to automatic updates one of the two ways: 1. As you are in the Software Updates and Add-ons screen, at the very bottom there is a blurb about Automatic Update. Click on it. 2. Eclipse -> Preferences ->Install/Update -> Automatic Update. Check Look for updates each time platform is started. etc., Click 'Apply' Restart eclipse, if you do not see it updating itself. Either way, let eclipse update itself. In my case it updated mylyn etc. As recommended, exit eclipse and restart eclipse. After the restart, try installing the android plugins That worked for me on Mac OS 10.5.6. Cheers! On Apr 20, 8:45 pm, Rowan wrote: > I am using Avast and did two things to get it to work. > > I moved the directory to a location with no spaces and disabled my > antivirus. > > Thanks to everyone who posted their workarounds! > > On Apr 19, 11:58 pm, "william.stryker.08" > > wrote: > > That is unbelievable. I struggled with that issue all day yesterday > > and sure enough, McAfee was to blame. I also am running the Vista 64 > > bit and Ganymede. Definitely not a coincidence. Thanks for the post. > > > On Apr 19, 4:02 pm, tweitzel wrote: > > > > Had the same problem a couple of hours ago: Failed to prepare partial > > > IU: [R]com.android.ide.eclipse.ddms 0.8.0.v200809220836-110569. > > > > In the Eclipse log file (/.metadata/.log) I found: > > > > !ENTRY org.eclipse.equinox.p2.metadata.generator 2 0 2009-04-19 > > > 19:17:15.101 > > > !MESSAGE An error occurred while loading the bundle manifest C:\Apps > > > \eclipse\plugins > > > \com.android.ide.eclipse.ddms_0.8.0.v200809220836-110569.jar > > > !STACK 0 > > > java.util.zip.ZipException: error in opening zip file > > > (more lines) > > > > When I looked there, the JAR file was corrupted. Turned out it was my > > > anti-virus software (Avira AntiVir Personal) that was responsible for > > > that. After I cleaned up Eclipse and switched off the anti-virus > > > software, installation worked (for me ;-). > > > > Just for the record, I use Vista SP1 64bit, Eclipse Ganymede Version: > > > 3.4.2 Build id: M20090211-1700, Android Update > > > Sitehttp://dl-ssl.google.com/android/eclipse/(becausehttps://... didn't > > > work for me, something like "no repository found at ..."), and Avira > > > AntiVir 9.0.0.387. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 get the source code of the command monkey?
Hi Dianne, Just for fun I wanted to write a Service, which can display the current activityManager, the current Window Manager and the current Service Manager, in Monkey.java this is done by Monkey.getSystemInterfaces() with mAm = ActivityManagerNative.getDefault(); How can I get the same functionality for an Android application? and of course, how can I compile it. Thanks in advance On Apr 16, 10:33 am, Dianne Hackborn wrote: > You need to build it with the platform build system. This is not intended > to be used outside of that. > > > > On Thu, Apr 16, 2009 at 12:46 AM, adrian wrote: > > > Hello group, > > I download the source code from [platform/development.git]/cmds/ > > monkey/ and want to build in eclipse. > > But I don't have some non-public classes. > > like: > > import android.app.ActivityManagerNative; > > import android.app.IActivityManager; > > import android.app.IActivityWatcher; > > > where can I get the non-public classes? > > > Thanks and best regards, > > Adrian > > > On Apr 16, 2:54 am, swarup wrote: > > > git source path : > > > > [platform/development.git]/cmds/monkey/... > > > > On Apr 15, 10:57 am, adrian wrote: > > > > > Hello group, > > > > I don't have a option -f in my commandmonkey(/system/bin/monkey). > > > > example: adb shellmonkey-f . > > > > But the command unknown option -f. > > > > So I want to get the source code of the commandmonkey, then open > > > > this option and rebuild it. > > > > > Regards, > > > > Adrian > > -- > 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] SQLiteCursor.class Breakpoint
Whenever I'm debugging, my code randomly breaks in SQLiteCursor.class as if there was a breakpoint in that class. Of course, it tells me that the source is not found, so I have no idea what's going on. Has anyone else encountered this? Any solutions? Thanks! Kirk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: What is the permission required to toggle the phone GPS setting?
Use should this one. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 driving direction info from maps application?
Depending on your accuracy needs, you could wave your hands and calculate the distance as-the-bird-flies. Timing might be harder, but assuming 55MPH might be enough for a very rough estimate. j On Tue, Apr 21, 2009 at 8:32 AM, Neil wrote: > > And he then abandoned the whole idea because it goes against the Terms > Of Use of Google Maps. > > > On Apr 1, 7:01 am, jj wrote: >> Actually he developed his own code for calculating distance and >> direction, > > > > -- Jeff Sharkey jshar...@android.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] How to create this fancy Map-Item-Navigation?
Hi, can some tell my how i can create this very fancy item-navigation like google did it in thier app google maps for android? here is a screen: http://img16.imageshack.us/img16/3649/device122.png --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to instrument code to find an OutOfMemory error (in WebView?)
This is a good question, a proper testing method for unit power/memory consumption. I believe there is one through instrumentation that allows you to access the free memory (I can't find it right now). But I'd like to know this as well. On Tue, Apr 21, 2009 at 3:18 AM, Mariano Kamp wrote: > Hi, > > I sometimes get bug reports that are caused by an OutOfMemory error. It > happens when creating a bitmap, but I am pretty sure that it is not the > bitmap size that is the real problem, because the instantiation of those > images happens > 100.000 times a day without an error report. Those png > images are of 4K size (on disk) anyway. > > Those bug reports are very infrequent, but still I would love to get rid > of them. I can't reproduce the memory growing over 10 MBs (actually way > less) when using the app myself and monitoring the memory consumption in > DDMS. I also, at no point in time, cache something or hold on to more than > one item (article in my case) at a time, except in one list. There the list > caches the visible components, which cannot amount to much too and is > default functionality from the Android framework. > > I meanwhile kind of ***suspect*** that maybe the WebView I embed does eat > up all the memory, because the page to display might be huge?! I don't know > though how to get closer to confirming that or any other possible cause. I > tried to use a ca. url that one user provided me with, but this also didn't > make the memory grow much. And a single page it is probably not a good > enough test case, as it doesn't account for what page was displayed before > and how the cache behaved. > > So I would like to gather more data when I capture an OutOfMemory and > create a bug report. > > The obvious thing would be to include the current memory consumption. > > Something like this? > > Runtime rt = Runtime.getRuntime(); > > Log.d("Memory", "Memory left=" > > + String.format("Memory free: %4.2fMB total: %4.2fMB max: %4.2fMB", > > rt.freeMemory() / 1024 / 1024.0, > > rt.totalMemory() / 1024 / 1024.0, > > rt.maxMemory() / 1024 / 1024.0)); > > Memory left=Memory free: 3.94MB total: 6.82MB max: 16.00MB (see > screenshot for DDMS at the same point in time) > > I am not sure though, if this of any value. When I get an OutOfMemory > error I would *expect* to get free: 0, total: 16, max 16. > I would still deploy that in a new version, just in case. Maybe my process > didn't even get 16 MB, because the phone was running low on memory as it is? > > Anything else I can measure of gather to get to the bottom of it? > > Cheers, > Mariano > > -- Android Version: sdk=2, release=1.1, inc=128600 > -- Thread State: RUNNABLE > -- NewsRob Version: 1.9.0/190 > -- Stacktrace: > java.lang.RuntimeException: Unable to start activity > ComponentInfo{com.newsrob/com.newsrob.ShowEntryActivity}: > android.view.InflateException: Binary XML file line #29: Error inflating > class java.lang.reflect.Constructor > at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2141) > at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2157) > at android.app.ActivityThread.access$1800(ActivityThread.java:112) > at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581) > at android.os.Handler.dispatchMessage(Handler.java:88) > at android.os.Looper.loop(Looper.java:123) > at android.app.ActivityThread.main(ActivityThread.java:3739) > 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) > Caused by: android.view.InflateException: Binary XML file line #29: Error > inflating class java.lang.reflect.Constructor > at android.view.LayoutInflater.createView(LayoutInflater.java:512) > at > com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) > at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562) > at android.view.LayoutInflater.rInflate(LayoutInflater.java:617) > at android.view.LayoutInflater.inflate(LayoutInflater.java:407) > at android.view.LayoutInflater.inflate(LayoutInflater.java:320) > at android.view.LayoutInflater.inflate(LayoutInflater.java:276) > at > com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:231) > at android.app.Activity.setContentView(Activity.java:1569) > at com.newsrob.ShowEntryActivity.onCreate(ShowEntryActivity.java:70) > at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122) > at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2104) > ... 11 more > Caused by: java.lang.reflect.InvocationTargetException > at android.widget.Button.(Button.java:63) > at java.lang.reflect.Constructor.constructNative(Native Method) > at java.lang.ref
[android-developers] In case anyone wants to launch sync settings activity...
You need to specify the target package/class for the intent as it doesn't appear to be registered for it explicitly (probably a reason for that.) Intent l_oIntent = new Intent(); l_oIntent.setAction( "android.settings.SYNC_SETTINGS" ); l_oIntent.setClassName( "com.android.settings", "com.android.settings.SyncSettings" ); startActivity( l_oIntent ); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Listview row layout dependent on remote data
What I've done in the past is use a single layout that has all the possible views, which I set visible, invisible or gone depending on context. That should work well with ListView since you can customize the row, including visibility of widgets, in your getView() or bindView () method. On Apr 20, 5:07 pm, AusR wrote: > Hi, > > Does anyone have any pointers on developing a listview where the > layout of the rows of a listview are dependent on some to-be- > downloaded data. > For example. the rows will detail a time table, so the downloaded > items for each row will be a days worth of classes. But then the row > will have multiple TextViews (Clickable) and they will be set as width > = duration of class. > > Therefore the textviews will be of differing number and widths for > each row only known after download. > > I will be using a custom horizontal fling on the listview to scroll to > different periods of the day. > > Thanks for any pointers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---