[android-developers] Re: Enable / Disable android widgets runtime.
Yep. For the other part though you can use this to disable (make it as if it doesn't exist) and re-enable any component of your application, such as the receiver for the widget: http://developer.android.com/reference/android/content/pm/PackageManager.html#setComponentEnabledSetting(android.content.ComponentName, int, int) On Tue, Sep 22, 2009 at 10:48 PM, nEx.Software email.nex.softw...@gmail.com wrote: You cannot add or remove AppWidgets from your application. The user must explicitly do that from the home screen. On Sep 22, 10:40 pm, Manjunatha M man...@gmail.com wrote: Hi All, I am writing an widget application for android. I have a requirement where i need to disable the widget on some intent, i.e., I have the remove the widget from the android home screen and remove from menu options so that the user cannot add the widget further. I have to enable the widget on some intent, so that, the framework automatically adds the widget to the home screen, by calculating the empty position available on the home screen, and the many option re-appears in order to add the widget further. Please let me know if this can be possible.. Regards, Manjunatha -- 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: How to save a canvas to disk
Hi, Have a look at - http://developer.android.com/reference/android/view/View.html#draw(android.graphics.Canvas) - create a new bitmap and a new canvas, associate the bitmap with this canvas and call view.draw( your_new_canvas ) - using your KidsPaintView view instance - then save the bitmap or use it to set the wallpaper. Regards On Sep 23, 1:03 pm, limtc thyech...@gmail.com wrote: Hi, I am doing a painting program (KIds Paint - you can find in Android Market) and I have a lot of requests to save the content on disk or to wallpaper. I have been searching around but cannot find solution. My guess is that I probably wanted to get the bitmap from the canvas, but I can't find ways to get it. Then I try to set an empty bitmap into the canvas and draw on the canvas, and save the bitmap... but I got an empty bitmap. Please help! Thanks. Here's my codes: public class KidsPaintView extends View { Bitmap bitmap = null; ... protected void onDraw(Canvas canvas) { if (bitmap == null) { bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_); canvas.setBitmap(bitmap); } ... // do painting on canvas } } Then in my main code I try to retrieve the bitmap and save it as wallpaper: Bitmap bitmap = view.bitmap; try { setWallpaper(bitmap); } catch (IOException e) { e.printStackTrace(); } But all I got is a black wallpaper. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: OpenGL and pause/resume
allright, I'll check that all. I think I reload my textures but I keep my old vertex buffer IDs... thx a lot! On 22 sep, 19:23, Robert Green rbgrn@gmail.com wrote: You can but you only need the callback information for knowing when the surface has been created/modified or destroyed. The renderer will get the same callbacks. The important things are these: Your activity should only be creating one GLSurfaceView in onCreate and releasing it in onDestroy Your activity onPause and onResume must call your GLSurfaceView's onPause and onResume. Ideally, your GLSurfaceView will create your renderer. Your renderer needs to reload everything (textures, vbos, etc) to video memory when the surface has changed. After the surface has changed, when reloading, get all new texture and vertex buffer IDs. Do not use the old ones or you could crash the gl system. If you follow these rules, your app should play nicely with Android. On Sep 22, 11:05 am, Guian guiandou...@gmail.com wrote: thx for your answer. I'm not familiar with it, should I use a SurfaceHolder.Callback to be notified when the surface is created and destroy ? On 21 sep, 23:15, Robert Green rbgrn@gmail.com wrote: Check to make sure that at the time of resume, you're not hanging on to old surface holders or anything like that. I use GLSurfaceView onPause and onResume and they work correctly for me on the G1 and Emulator. On Sep 21, 8:18 am, Guian guiandou...@gmail.com wrote: well, I did put those lines in the onPause/onResume methods but still have the black screen with this error in the logcat: ERROR/SurfaceComposerClient(15353): using an invalid surface id=0, identity=1431 should be 1435 Doesn't seem exactly the same error... can anybody help please ? On 30 août, 09:59, Cor cg0...@gmail.com wrote: In the mean time I found this was a classic RTFM case ;-) If you use GLSurfaceView you have to call view.onPause() and view.onResume() respectively in the activities onPause() and anResume () methods --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to use hardware acceleration in OpenGL ES
i draw a cube with two sides textured(320*430 png) and let it rotate between the two sides, but it's sad to get a 16 FPS on emulator and 9 FPS on the real phone. i don't known whether i have used the hardware acceleration on my phone. so i tried many parameters in OpenGLES ,finally i found i can set a value in my CubeView(inherit from GLSurfaceView )'s constructor , public CubeView(Context context) { super(context); this.getHolder().setType(SurfaceHolder.SURFACE_TYPE_HARDWARE); // here is the crucial line mRender = new CubeRender(this); this.setRenderer(mRender); } setType with the value SURFACE_TYPE_HARDWARE can improve the OpenGL rendering speed, and i get a rate of 14FPS on real phone, but has no effect on emulator( i guess emulator didn't use hardware to render) but the 14FPS also is not enough for me , 18 -- 20 may be acceptable . the qualcomm demo neocore can render a complex arena on 25-27 FPS in my phone. so what's the problem with me, is there another ways to use the hardware acceleration in OpenGL ES . my phone has a cell of qualcomm MSM7201A with a hardware acceleration. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Remote Interface - Parcelables problem...
Been using remote interfaces for quite a while now, but the time has come to increase the amount of data i need to pass between processes. Following the Designing a Remote Interface using aidl examples/ tutorial i have had some success but have now come to a problem. My activity binds to my service no problem, the callbacks work, but the data i send does not reach the client. My code is an extension of Pass by value Parameters using Parcelables from the Designing a Remote Interface using aidl page. The only difference is the amount of data, it has 18 int's and 3 Doubles. As you will see below, once i have entered the data into the parcel, i create my Parcelable using .createFromParcel(p) this however does not seem to work, even when my Parcelable is reading from the parcel no data gets read. Here is my code for sending the data to the client. /* * Send the latest info to the bound apps */ private void updateBoundApps(){ if(mCallbacks.beginBroadcast() 0){ if(gLOG){Log.d(TAG,updateBoundApps + mSMNI.int1);} // Always shows int1 as corret value (non 0) Parcel p = Parcel.obtain(); p.writeInt(mSMNI.int1); p.writeInt(mSMNI.int2); p.writeInt(mSMNI.int3); p.writeInt(mSMNI.int4); p.writeInt(mSMNI.int5); p.writeInt(mSMNI.int6); IteratorEntryObject, Object itNew = mSMNI.intMap.entrySet ().iterator(); for(int i = 0 ; i 6; i++){ if(itNew.hasNext()){ Map.EntryObject, Object eNew = itNew.next(); p.writeInt((Integer) eNew.getKey()); p.writeInt((Integer) eNew.getValue()); }else{ p.writeInt(0); p.writeInt(0); } } p.writeDouble(mLastLoc.Double1); p.writeDouble(mLastLoc.Double2); p.writeDouble(mLastLoc.Double3); MPSData mpsd = MPSData.CREATOR.createFromParcel(p); // Send the message Message msg = mHandler.obtainMessage(REPORT_MSG, mpsd); mHandler.sendMessageDelayed(msg, 1*1000); p.recycle(); } mCallbacks.finishBroadcast(); } Here is my Parecelable: public class MPSData implements Parcelable{ public int int1; public int int2; public int int3; public int int4; public int int5; public int int6; public int int7; public int int8; public int int9; public int int10; public int int11; public int int12; public int int13; public int int14; public int int15; public int int16; public int int17; public int int18; public double double1; public double double2; public double double3; public static final Parcelable.CreatorMPSData CREATOR = new Parcelable.CreatorMPSData() { @Override public MPSData createFromParcel(Parcel in) { Log.d(MPSData,createFromParcel dataAvail + in.dataAvail() + dataSize + in.dataSize()); return new MPSData(in); } public MPSData[] newArray(int size) { return new MPSData[size]; } }; public MPSData(){ } private MPSData(Parcel in){ Log.d(MPSData,MPSData(Parcel in)); readFromParcel(in); } @Override public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToParcel(Parcel out) { out.writeInt(int1); out.writeInt(int2); out.writeInt(int3); out.writeInt(int4); out.writeInt(int5); out.writeInt(int6); out.writeInt(int7); out.writeInt(int8); out.writeInt(int9); out.writeInt(int10); out.writeInt(int11); out.writeInt(int12); out.writeInt(int13); out.writeInt(int14); out.writeInt(int15); out.writeInt(int16); out.writeInt(int17); out.writeInt(int18); out.writeDouble(double1); out.writeDouble(double2); out.writeDouble(double3); } public void readFromParcel(Parcel in) { int1= in.readInt(); Log.d(MPSData,readFromParcel(Parcel in) + int1); // Always shows int1 as 0 int2= in.readInt(); int3= in.readInt(); int4= in.readInt(); int5= in.readInt(); int6= in.readInt(); int7=
[android-developers] Re: android SDK 1.5 where do i find the sqlite db file in my system
In android am using the SDK 1.5 am using the Database concepts to create the Sqlite Db file but i don't know where the file is stored. any one help me to find that Db file in my system please /data/data/your.package.here/databases (where your.package.here is the package that you declare in your manifest element of your AndroidManifest.xml file). -- Mark Murphy (a Commons Guy) http://commonsware.com 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] Invitation to connect on LinkedIn
LinkedIn Sam Aldis requested to add you as a connection on LinkedIn: -- Michele, I'd like to add you to my professional network on LinkedIn. - Sam Accept invitation from Sam Aldis http://www.linkedin.com/e/LLkLpmh1-H9DJacyTMkv6XzPQQAN5aX4GK1ApDHb9BOx5AxLj59i/blk/I1454306818_2/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cBYUcjwSc3cQdjgNiiZmp5lNlkMMuiYQd3oScz4SdjsLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Sam Aldis http://www.linkedin.com/e/LLkLpmh1-H9DJacyTMkv6XzPQQAN5aX4GK1ApDHb9BOx5AxLj59i/blk/I1454306818_2/39ve34Udz0Pd3kQckALqnpPbOYWrSlI/svi/ -- DID YOU KNOW you can use your LinkedIn profile as your website? Select a vanity URL and then promote this address on your business cards, email signatures, website, etc http://www.linkedin.com/e/ewp/inv-21/ -- (c) 2009, LinkedIn Corporation --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 we use gmaps in a commercial application?
Hi *, We've read the Android Gmaps license but is not to clear whether we are allowed or not to use it for free in a commercial application. Do you have more details about this? Is it possible to use in a commercial application the Android Gmaps? Do we need to pay a fee for it? Any feedback is higly appreciated. 10x --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 as a virtual PBX
Can Android be used as Virtual PBX. This means that, it can work as a virtual attendant for playing specific music files, call fowarding, recording messages. SipDroid is already available but it is just a client soft phone. Regards, M Alam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 as a virtual PBX
Of course you could think of to run your Android device as a server like system, but be aware that in case of cellular you have to deal with NAT. This means all your clients have to know how to reach you. One possibility to deal with this problem would be to use a cloud service and notify the cloud about your new IP address. In general you can easily support data traffic which does not need to be in a session context (no streaming) like browsing. In this cases you always can re-establish a connection. To run your mobile Android server in a Wifi environment might be easier to handle than cellular but this depends again how your Wifi LAN is setup. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 23, 3:18 am, Masoom Alam masoom.a...@gmail.com wrote: Can Android be used as Virtual PBX. This means that, it can work as a virtual attendant for playing specific music files, call fowarding, recording messages. SipDroid is already available but it is just a client soft phone. Regards, M Alam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Keystore tampered with or password incorrect
Hello, I'm having an issue with my keystore. i crated it a while back and now I want to provide an update. I know I'm providing the correct password but I keep getting the error message that says the keystore has been tampered with or the password is incorrect... Is it possible to generate a new keystore? Has anyone else seen this issue? Is there a way I can fix thisany guidance would be awesome.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 android provides API for muiti tap?
How to achieve multi tap for 3x4 virtual keyboard? Regards Pradeep --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Utility class for database query
Thanks Jefferey. I don't want to extend the android.database.* package but I just want to simplify it. The idea is to build a utility package to help developers for easier,faster and robust programming. On Sep 23, 7:00 pm, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: have you seen android.database.*? what would you provide on top of that? On 9/23/09 4:34 AM, Sudeep Jha wrote: Hi all, Can anybody suggest what functionality to provide in a query utility class/classes? The idea is to provide a database utility package for android developers. I just wanna do it for android community and of course for my learning.:-) Warm Regards, Sudeep -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Compile fails when using a method that is Since: API Level 3
I have an activity that needs to respond to DPAD key presses. I started by using the View.onKeyDown method to get the DPAD events, but found that sometimes they go to one of the views in the view hierarchy for the activity and so never get to the activity view. Looking through the documentation I found a new method View.onKeyPreIme method that says it will get the key press events before the view hierarchy. But the documentation also says this method is Since: API Level 3 When I changed my code to use onKeyPreIme instead of onKeyDown, the java compiler gives me the error that it does not override or implement a super type method. I checked my manifest file and it has: uses-sdk android:minSdkVersion=3 / Is there something else that needs to be changed in the manifest or in the eclipse development environment so that the java compiler will see the level 3 APIs and be able to compile the file? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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....
Does a Spinner take care of your requirement ? A spinner is not a scrollable list like a list activity but it does show you a drop down list. http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/view/Spinner1.html On Sep 22, 7:43 pm, furby wookie...@gmail.com wrote: Why does this type of thing always end up being so difficult? I want to have a scrolling list on the screen. Very simple... Except that the Android SDK seems to require that list to be a listview which is implemented in a completely different way from other programming languages... (Slight rant following, skip to the bottom to see my question, sorry...) Why is it so hard? Why can't I just say Here's a listview on the page and there is a method for adding options onto it and I'll iterate through my result set to add them? My question is simple - is there a simple way to use lists in Android? Or does one have to define entire screens every time just to display a list? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: does android provides API for muiti tap?
You can easily write an IME that does this. Start off with the SoftKeyboard sample code. On Wed, Sep 23, 2009 at 9:41 PM, and.pradeep and.prad...@gmail.com wrote: How to achieve multi tap for 3x4 virtual keyboard? Regards Pradeep -- 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: Regarding Process Context
I think they are talking about modifying the platform (system service is the main process that runs the system services), in which case this should be moved to android-porting. Also processes do not have contexts, so if you post to android-porting it would be good to explain in more detail what you are asking. On Wed, Sep 23, 2009 at 9:34 PM, Mark Murphy mmur...@commonsware.comwrote: I have created a Separate Process in Android Java Framework Layer. Why? Processes are expensive and generally should not be needed, beyond the one Android allocates for you as part of your app instance. Now, I registered new receiver in System Server for my Process and calling my process methods from that receiver on intent received. What is System Server? -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- 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: HTC Magic Keyboard compatibility issue
Right... Having just finished up the code to make it a little more cross platform friendly here's what I needed to do to make it work nice: 1) Make the assumption that the keyboard isn't shown when the application starts (which seems to be generally true) 2) Look for size change notifications (filtering out rotations and those caused by my application showing the keyboard) and then make the assumption that the keyboard has been hidden or shown based on before and after sizing Three other issues came up that are related to this - the first is probably a bug though based on what I've read 1) In portrait mode calling showSoftInput results in the system keyboard being shown and my view correctly resized. However in landscape mode this isn't the case and so I get no notifications about size changes in landscape mode that are caused by the keyboard state being changed. This seems to be a bug in 1.5 based on an earlier posting. Hence in landscape mode my app does not work correctly. I've tried the suggestion to set EditorInfo.IME_FLAG_NO_EXTRACT_UI but that had no effect. 2) Full screen mode is still extremely difficult (if not impossible) to support. In full screen mode you get no notifications about size changes caused by the keyboard being shown or hidden and so you can never tell whether the keboard is visible or not. My app should ideally run in fullscreen mode but can't due to there being no way to get keyboard notifications. Another issue related to (2) above is the lack of ability to query the size of the keyboard on screen. An API that would return the bounding rect or region of the keyboard would be helpful since in full screen mode you would at least know which parts of the screen are being obscured by the keyboard which would then help me position my widgets based on the keyboard size (this would be for fullscreen mode). All of this pain in developing my app could have been avoided if there were APIs like: 1) InputMethodManager.showSoftKeyboard (xxx,xxx,onkeyboardStateChangeCallback) -- where the callback is invoked when the hide / show state of the keyboard changes 2) InputMethodManger.isSoftKeyboardVisible() 3) getKeyboardBoundingRect(Rect boundingRect) This would allow my app to definitely know when the keyboard is hidden rather than needing to induce it through size change notifications. My argument is that if I am asking for the system keyboard to be shown then there should be a way of being told when it's later hidden. Thanks Lee On Sep 24, 12:06 pm, Chris Stratton cs07...@gmail.com wrote: Or to put it real simply, how come we can easily toggle the showing of the keyboard, but not query or set it? I do see the benefit in allowing flexibility for localization, etc, via open-ended keyboard capabilities, but at the same time some applications that just barely fit in the display really need to optimize its utilization, and will break if the keyboard can take a variable about of that. These may not end up being automatically localizeable via the user's configuration, but that's the price of working at the limit of the display resolution. On Sep 23, 8:39 pm, Lee labor...@gmail.com wrote: I think that putting the flexibility onto keyboard developers takes actually imposes a burden on the application developers. I would say that the number of people developing applications for Android are going to far outnumber the number of people who are developing keyboards and IMEs. Furthermore because of the number of different devices out there and the fact that each device may implement its own standard keyboard there should be more information provided about the keyboard than there currently is. I'm going to layout my problems and explain what information I really need to be able to get my application to work properly. 1) Startup state When my application starts I've got no way of seeing whether the software keyboard is currently being shown or not. My application has an activity screen containing an edit text that when touched will show the keyboard. It then can create a second activity by tapping on a ListView which will start the new activity with the keyboard showing (or not if I didn't first tap in the EditView). Based on your feedback above the only way to determine whether the keyboard is showing is to *induce* this based on the size of my View which hardly seems like a safe bet considering that there are other elements to consider including the title bar. A simple API that would allow me to query the soft keyboard state would be welcome. Given that it'd be the system keyboard being shown when the application starts why is this difficult? 2) Keyboard hide notification To determine whether the keyboard has been hidden / shown I need to respond to the onSizeChanged callback and again deduce that something changed on screen which is *probably* the keyboard being hidden but looking for it in the
[android-developers] Re: Zipalign utility not available in android 1.5_r3
Hi, Is there anyone who can reply to this? Regards Sunil On Sep 23, 6:37 pm, javame_android su...@saltriver.com wrote: Hi, I have developed an application and want to sign it. After signing the application when I try to Align the final package with zipalign. But there's no file called zipalign in tools directory. Can someone guide me regarding this? Moreover, after signing the application when I try to install the application it gave me com.satloc signatures do not match the previously installed version; ignoring!. To remove this error I tried -wipe_data. After doing this I again tried to load the application with adb install SatLoc.apk but it again gave me an error this time it DDM dispatch reg wait timeout Can't dispatch DDM chunk 52454151: no handler defined Can't dispatch DDM chunk 48454c4f: no handler defined pkg: /data/local/tmp/SatLoc.apk Failure [-12] Now can anyone suggest me what is this and how to remove this? I want to load the signed application in emulator. Is zipalign necessay for this purpose? If yes then from where can I get zipalign utility. Thanks Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---