[android-developers] SoftKeypad upon the Notification Bar
When we pull down the notification bar, we see the current notifications. We've taken it a step further and we're able to get audio, video and buttons in notification bar, when it is pulled down. Now my issue is, I need the soft keypad to come up when I click on the edit text field inside the notification bar. The qwerty keyboard simply doesn't show up. I tried forcing it to show itself using the following code inside the notification file. InputMethodManager inputMethodManager = (InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED,InputMethodManager.HIDE_IMPLICIT_ONLY); inside StatusBarService.java Anyone who could enlighten me on this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 411 length required for HttpPost in Calendar protocol
I'm trying to implement the create calendar protocol from Google Calendar. For that I'm supposed to do a HTTPPost to owncalendar url, with auth header and content-type given. After performing HttpPost, i get a response saying "411 length required".. But when I checked packets using wireshark, the content-length is added, I tried to add it manually, but it is not allowing me to do so and raises an exception saying content-length already added. So how do i go about it? check this code Code here-- String body="" + ""+title+"" + ""+summary+"" + ""+ ""+ ""+ ""+ ""; String url="http://www.google.com/calendar/feeds/default/ owncalendars/full"; final HttpPost mPost=new HttpPost(url); mPost.addHeader("Content-type","application/atom+xml"); mPost.addHeader(AUTH_HEADER_NAME,AUTH_HEADER_VALUE); // mPost.removeHeaders("Content-Length"); // mPost.setHeader("Content-Length", String.valueOf(body.length())); Header[] mHeaders1=mPost.getAllHeaders(); for(int i=0;i"+mHeaders1[i].getName()+" val=>"+mHeaders1[i].getValue()); } try { HttpEntity entity = new StringEntity(body); HttpClient mClient= new DefaultHttpClient(); HttpProtocolParams.setUseExpectContinue(mClient.getParams(), false); mPost.setEntity(entity); HttpResponse mResponse; mResponse= mClient.execute(mPost); System.out.println("THE SUCCESS CODE IS AS FOLLOWS"+mResponse.getStatusLine().getStatusCode()+mResponse); THe rest follows -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 404 returned by Picasa Protocol
Hello Everyone, I've gotten through the ClientLogin procedure using service=lh2 for picasa and am getting an Auth Token, with which I'm doing the following HttpGet mGet=new HttpGet("http://picasaweb.google.com/data/feed/api/ all?q=puppy&max-results=10"); System.out.println(" THE REQUEST URL FOR PICASA IS ==>"+picasa_url); mGet.addHeader(AUTH_HEADER_NAME, PICASA_AUTH_VALUE); // picasa auth value contains : Google Auth=blah blah mGet.addHeader(GDATA_VERSION_NAME, GDATA_VERSION_VALUE); //Gdata value is : 2 HttpResponse mResponse; mResponse=getResponesForHttpGet(mGet); // this method executes the the mGet as defaultHttpClient.execute(mGet) and returns response.. but I get a 404 Not Found error saying data/feed/api/all?q=puppy&max- results=10 Not found on this server. How to get through this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.
[android-developers] Re: username and password for sample sync adapter
Okay, I tried the user1/test on emulator and it added account succesfully, and on the web side I added few handles and added few friends on the same handle, and tried syncing the same on emulator, and I am getting 500 internal server error, is there still something wrong? I added one more user on the server and authenticated same from emulator, it the accounts get added fine. As far as hosting the python files for personal contact server is concerned I'm afraid it might take time for me, as I'd have get approval from my manager. So I wished if I could see the working with the already existing db on server. Thanks again On Feb 19, 4:18 am, Megha wrote: > Hi, > > I have uploaded the zipped source files for this sample > at:http://code.google.com/p/apps-for-android/downloads/list > > Sorry about the server related python source files not being visible > on developer.android.com. We will fix it soon. > This sample source will be available with the next sdk package, we are > working on making zipped samples downloadable from > developer.android.com itself in future. > > Regardingpasswordissue, please use account user1/test on > samplesyncadapter server. > > I would recommend that to add new accounts, download the server code, > modify it as you want and host it on a separate app engine instance. > If you look at dashboard.py and app.yaml in server code it should be > pretty clear how to do this..giving a short overview below: > 1) Add a new Sample SyncAdapter account @: > http://.appspot.com/add_user > For example I have added user1: > http://.appspot.com/edit_user?user=1 > 2) Enterusername/password@ > http://.appspot.com/add_credentials > Thepasswordfor user1 is test. > 3) Modify the android code to use your server instance. > > Sorry for the confusion so far, please let me know if you have more > questions. > > Thanks, > Megha > > On Feb 18, 10:28 am, HCH wrote: > > > > > Could someone on the android team please tell us what we should use > > for thepasswordwhen connecting to the SampleSyncAdapter server? > > > On Feb 16, 4:19 pm, HCH wrote: > > > > as for 1) > > > > - The source tree is not available for download that I can tell. You > > > have to cut and paste each individual file from the html and > > > reconstruct the source tree locally. > > > - The source to the server has a directory but is not actually there. > > > - What to use as apasswordisn't clear and I can't find one (tried > > > all values in the user account I created plus 'password', etc.). > > > > So even though there is now an example months after the OS shipped > > > with this feature it isn't complete and was seemingly put up without > > > much care. > > > > On Feb 16, 3:50 am, Sameer AM wrote: > > > > > Hello, > > > > > I just got thesamplesyncadaptercode running on the emulator, but > > > > how do I add account in it when it asks forusernameandpassword? > > > > > And I have the following questions > > > > > 1) SampleSyncAdapter is for 2.0 and in 2.0 emulator I don't see the > > > > Accounts &Syncoptions in the Settings, am I missing anything? > > > > -- so for this I compiled this app in 2.1 and ran on 2.1 emulator > > > > > 2) In 2.0 emulator when I launch Accounts option from Contact app, it > > > > crashes? I saw this a raised bug, is this solved? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: username and password for sample sync adapter
Thanks a lot megha.. this is a relief, I'd try this and get back -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: username and password for sample sync adapter
Thanks a lot for quick reply.. I got clarification for 1, and 2, so I don't have a username with which I could login! Great documentation! and I saw that bug is fixed in 2.0.1, now here is one more question, when I try to add an account for corporate type, I get this message "Unable to open connection". any fix for this? Thanks for the help 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] username and password for sample sync adapter
Hello, I just got the sample sync adapter code running on the emulator, but how do I add account in it when it asks for username and password? And I have the following questions 1) SampleSyncAdapter is for 2.0 and in 2.0 emulator I don't see the Accounts & Sync options in the Settings, am I missing anything? -- so for this I compiled this app in 2.1 and ran on 2.1 emulator 2) In 2.0 emulator when I launch Accounts option from Contact app, it crashes? I saw this a raised bug, is this solved? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] username and password for sample sync adapter
Hello, I just got the sample sync adapter code running on the emulator, but how do I add account in it when it asks for username and password? And I have the following questions 1) SampleSyncAdapter is for 2.0 and in 2.0 emulator I don't see the Accounts & Sync options in the Settings, am I missing anything? -- so for this I compiled this app in 2.1 and ran on 2.1 emulator 2) In 2.0 emulator when I launch Accounts option from Contact app, it crashes? I saw this a raised bug, is this solved? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Contacts App crashes when switching between Dialer to Call log
I've altered the contact app so that in Dialer the soft keypad always stays and it hides when other tab activity resumes, We've given different look for the contacts app, but when using the same, a crash occurs when we rapidly change from dialer to call log. And the App crashes without the standard crash dialog. I have copied the log and the error seems to be happening in a deeper section.. 01-01 06:25:37.401: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:37.464: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:37.472: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:39.081: DEBUG/(1350): The INPUT TYPE OF MDIGITS onPause 1 01-01 06:25:39.097: WARN/InputManagerService(1082): Ignoring hideInputMethod of token: null 01-01 06:25:39.222: DEBUG/dalvikvm(1404): GC freed 70 objects / 5424 bytes in 143ms 01-01 06:25:39.573: DEBUG/dalvikvm(1350): GC freed 41355 objects / 1657488 bytes in 214ms 01-01 06:25:39.589: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:39.589: INFO/dalvikvm(1350): Uncaught exception thrown by finalizer (will be discarded): 01-01 06:25:39.589: INFO/dalvikvm(1350): Ljava/lang/ IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@45c8b2b0 on calls that has not been deactivated or closed 01-01 06:25:39.589: INFO/dalvikvm(1350): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596) 01-01 06:25:39.589: INFO/dalvikvm(1350): at dalvik.system.NativeStart.run(Native Method) 01-01 06:25:39.620: WARN/IInputConnectionWrapper(1350): finishComposingText on inactive InputConnection 01-01 06:25:39.698: INFO/DEBUG(1008): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 01-01 06:25:39.698: INFO/DEBUG(1008): Build fingerprint: 'zoom/ldp1/ ldp1/ldp1:Donut/Donut/eng.vishal.20091203.130315:eng/test-keys' 01-01 06:25:39.698: INFO/DEBUG(1008): pid: 1350, tid: 1355 >>> android.process.acore <<< 01-01 06:25:39.698: INFO/DEBUG(1008): signal 11 (SIGSEGV), fault addr 0004 01-01 06:25:39.698: INFO/DEBUG(1008): r0 0004 r1 40023778 r2 0004 r3 ad32d629 01-01 06:25:39.698: INFO/DEBUG(1008): r4 r5 r6 ad34e495 r7 4203afb8 01-01 06:25:39.698: INFO/DEBUG(1008): r8 100ffd00 r9 4203afb0 10 4203afa0 fp 0001 01-01 06:25:39.698: INFO/DEBUG(1008): ip ad372c80 sp 100ffce8 lr ad32d633 pc afb04408 cpsr 0010 01-01 06:25:39.776: INFO/DEBUG(1008): #00 pc 4408 / system/lib/libcutils.so 01-01 06:25:39.784: INFO/DEBUG(1008): #01 lr ad32d633 / system/lib/libandroid_runtime.so 01-01 06:25:39.784: INFO/DEBUG(1008): stack: 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffca8 45ba1410 /dev/ ashmem/mspace/dalvik-heap/2 (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcac ad371820 /system/ lib/libandroid_runtime.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb0 45ba1410 /dev/ ashmem/mspace/dalvik-heap/2 (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb4 afd00949 /system/ lib/libstdc++.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb8 0028c820 [heap] 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcbc 43079f5c /data/ dalvik-cache/sys...@framework@framework@classes.dex 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc0 0001 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc4 43079f5c /data/ dalvik-cache/sys...@framework@framework@classes.dex 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc8 0001 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffccc a9d222bf /system/ lib/libutils.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd0 a000 [heap] 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd4 420f30b8 /dev/ ashmem/dalvik-LinearAlloc (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd8 100ffd30 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcdc 000d 01-01 06:25:39.792: INFO/DEBUG(1008): 100ffce0 df002777 01-01 06:25:39.792: INFO/DEBUG(1008): 100ffce4 e3a070ad 01-01 06:25:39.800: INFO/DEBUG(1008): #00 100ffce8 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcec ad32d633 /system/ lib/libandroid_runtime.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf0 100ffd20 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf4 ad34e4a5 /system/ lib/libandroid_runtime.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf8 40023778 /dev/ ashmem/mspace/dalvik-heap/zygote/0 (deleted) 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcfc ad00e438 /system/ lib/libdvm.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd00 420f30b8 /dev/ ashmem/dalvik-LinearAlloc (deleted) 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd04 0010e8a0 [heap] 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd08 ad34e495 /system/ lib/libandroid_runtime.so 01-01 06:25:39.808: INFO/DEBUG(1008): 100ffd0c 40023778 /dev/ ashmem/mspace/dalvik-heap/zygote/0 (deleted) 01-01 06:25:39.808: INFO/DEBUG(1008): 100ffd10 1071 01-01 06:25:39.808: INFO