[android-developers] Webview out jump to anchor after loadData
Hi! I hope someone can help. Does anyone know if there is a way to get a webview to automatically jump to an anchor on a webview after the webview has been populated using loadData? I don't want the user to have to press a link in order to get it to jump you see I would like to just pass the anchor value into the activity as an extra populate the webview and jump. Thanks to anyone who gives there time to help me with 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] Re: Webview out jump to anchor after loadData
Actually would this work webview.loadUrl(file:///android_asset/main.html + # + anchor); Can I append a anchor to the end of a load url from an asset? On Jul 19, 11:00 pm, SImplyG2010 thomas.sheppar...@gmail.com wrote: Hi! I hope someone can help. Does anyone know if there is a way to get a webview to automatically jump to an anchor on a webview after the webview has been populated using loadData? I don't want the user to have to press a link in order to get it to jump you see I would like to just pass the anchor value into the activity as an extra populate the webview and jump. Thanks to anyone who gives there time to help me with 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] Tween plus frame animation
Hi! Can anyone tell me is it possible to run both a frame and tween animation at the same time? I am trying to move an image from one side of the screen to the other at the middle switch the image and continue to move the image so my idea was to have a translate animation to handle the movement with a animation-list animation to handle to the switch of the image however i was unsure how to mesh the two. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallary Scroll and click event
Good evening, I have a Gallery view in which each item consists of a table view with two rows of three cells. Each time someone clicks on the image in one of these cells I would like to launch a image specific intent however if I set an on click listener for each of the image views then the Gallery loses its ability to scroll and if I use on item click from the gallery I just get the table view back as the clicked view. Does anyone know a work around? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 3.0 Recent Apps
Hey guys, Does anyone know the equivalent of Intent inte = new Intent(); inte.setAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); sendBroadcast(inte); In honeycomb to force the recent activites pop up window to close? The above works on 2.3.3 for the long press on the home key but unfortunately it doesn's seem to work on honey comb or not on the emulator at least! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Zoom event on Webview
Hello, Does anyone know if there is an event you can subscribe to that is fired when a webview is zoomed in or out? 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: Disable dictionary on softkeyboard ?
Put the input type as email I think that gets rid of the dictionary. On Feb 2, 8:38 am, mac-systems jens.h...@gmx.de wrote: Hello, my target version is still 1.6, how can i prevent the dictionary to appear ? I want that the user simply enters text as he types it. Since SDK Target Version 5 theres the Option android:inputType=textNoSuggestions EditText android:id=@+id/codeTextfield android:hint=@string/ main_pleaseEnterBarcode_Hint android:layout_height=fill_parent android:layout_width=fill_parent android:layout_weight=0.7 android:singleLine=true android:textSize=20dp android:inputType=text android:focusable=true android:autoText=false android:imeOptions=actionSearch / best regards, Jens -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: C++ exception support confusion
Hey Allen, 1.5 takes up 5% of the devices on market http://developer.android.com/resources/dashboard/platform-versions.html however that was not your question. Did you see this in the docs? Similarly, the NDK toolchain supports C++ RTTI (RunTime Type Information) since NDK r5, but all C++ sources are built with -fno-rtti by default for compatibility reasons. To enable it, add the following to your module declarations: LOCAL_CPPFLAGS += -frtti Or more simply to your Application.mk: APP_CPPFLAGS += -frtti NOTE: The obsolete arm-eabi-4.4.0 toolchain provided for backwards compatibility with this NDK does not support RTTI! On Jan 12, 6:47 pm, Allen Curtis ajcurti...@gmail.com wrote: Hello, I am in the process of porting C++ libraries to Android that use libsigc++. However I am confused about the support provided in the NDK. The Stable APIs document states the following: C++ Library: ... They may not contain all definitions required by the standard. Notably, support for C++ exceptions and RTTI is not available with Android 1.5 system images. The Standalone Toolchain document states this: 5.3 Exceptions, RTTI and STL: - - - - - - - - - - - - - - - The toolchain binaries *do* support C++ exceptions and RTTI by default. Can someone clarify? TIA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HTTPClient post delay
Good morning everyone, I am having a hugely annoying issue with delays using HTTPClient and post the first time I call execute on the client the response takes 5 seconds to come back. Subsequent calls take around 100 to 200 ms. I am using the Apache client so does anyone know why this takes so long? The client setup looks like below HttpParams params2 = new BasicHttpParams(); params2.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); params2.setParameter(CoreConnectionPNames.TCP_NODELAY, true); params2.setParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET, HTTP.UTF_8); params2.setParameter(CoreProtocolPNames.USER_AGENT, Apache-HttpClient/ Android); params2.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 15000); params2.setParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK, false); HttpClient client = new DefaultHttpClient(params2); // params are a bunch of post params about 5 of them. HttpPost post = new HttpPost(baseURL); post.setEntity(getPostContent(params)); client.execute(post); The timing for this look like below. 11-16 08:10:50.709: VERBOSE/SG Log verb(332): Call complete 5753 11-16 08:10:50.979: VERBOSE/SG Log verb(332): Call complete 271 11-16 08:10:51.099: VERBOSE/SG Log verb(332): Call complete 114 11-16 08:10:51.319: VERBOSE/SG Log verb(332): Call complete 221 11-16 08:10:51.419: VERBOSE/SG Log verb(332): Call complete 97 11-16 08:10:51.579: VERBOSE/SG Log verb(332): Call complete 165 11-16 08:10:51.689: VERBOSE/SG Log verb(332): Call complete 106 11-16 08:10:51.849: VERBOSE/SG Log verb(332): Call complete 161 Any help is 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: HTTPClient post delay
Hey Kostya It's the same result with IP address also I should point out it is way faster on an N1 running 2.2 than it is on an emulator or physical device (hero) running 2.1. On Nov 16, 10:33 am, Kostya Vasilyev kmans...@gmail.com wrote: Just to take a guess: DNS ? What happens if you use the IP address in the url, rather than server name? -- Kostya 16.11.2010 18:31, SImplyG2010 пишет: Good morning everyone, I am having a hugely annoying issue with delays using HTTPClient and post the first time I call execute on the client the response takes 5 seconds to come back. Subsequent calls take around 100 to 200 ms. I am using the Apache client so does anyone know why this takes so long? The client setup looks like below HttpParams params2 = new BasicHttpParams(); params2.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); params2.setParameter(CoreConnectionPNames.TCP_NODELAY, true); params2.setParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET, HTTP.UTF_8); params2.setParameter(CoreProtocolPNames.USER_AGENT, Apache-HttpClient/ Android); params2.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 15000); params2.setParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK, false); HttpClient client = new DefaultHttpClient(params2); // params are a bunch of post params about 5 of them. HttpPost post = new HttpPost(baseURL); post.setEntity(getPostContent(params)); client.execute(post); The timing for this look like below. 11-16 08:10:50.709: VERBOSE/SG Log verb(332): Call complete 5753 11-16 08:10:50.979: VERBOSE/SG Log verb(332): Call complete 271 11-16 08:10:51.099: VERBOSE/SG Log verb(332): Call complete 114 11-16 08:10:51.319: VERBOSE/SG Log verb(332): Call complete 221 11-16 08:10:51.419: VERBOSE/SG Log verb(332): Call complete 97 11-16 08:10:51.579: VERBOSE/SG Log verb(332): Call complete 165 11-16 08:10:51.689: VERBOSE/SG Log verb(332): Call complete 106 11-16 08:10:51.849: VERBOSE/SG Log verb(332): Call complete 161 Any help is much appreciated! -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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: HTTPClient post delay
Daniel what do you use instead? The weird thing is that the timings shown above are purely for the execute call not the creation of the client object or anything. On Nov 16, 11:09 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Tue, Nov 16, 2010 at 3:31 PM, SImplyG2010 thomas.sheppar...@gmail.com wrote: Good morning everyone, I am having a hugely annoying issue with delays using HTTPClient and post the first time I call execute on the client the response takes 5 seconds to come back. Subsequent calls take around 100 to 200 ms. I am using the Apache client so does anyone know why this takes so long? The client setup looks like below Did you look at DDMS, what happens, when you cause the first call? I never used HttpClient. Since it does a lot, it probably is a bit heavy, so class loading and instantiating could take time. Once in memory it simply works. It is just a stab in the darkness. -- Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: HTTPClient post delay
I had a look using wireshark it seems in between execute being called and the post being sent over the network is 1 second so it seems the delay is in the execute call. Anyone know why this might be? On Nov 16, 12:17 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Tue, Nov 16, 2010 at 4:22 PM, SImplyG2010 thomas.sheppar...@gmail.com wrote: Daniel what do you use instead? The weird thing is that the timings shown above are purely for the execute call not the creation of the client object or anything. Thomas, What I meant was that I have not been using HttpClient much in my app(s). Used it for one activity that was much easier to achieve as a web view and never looked at its performance. To be sure about your times, try snooping on the network traffic just to see, how quickly your POST gets down the wire... This will require emulator and a traffic capture tool, like Wireshark. You should see whether there is a noticeable delay between first call and data being actually sent. Also, could it be possible that your server is implemented, so that it needs warming up? Maybe you test it locally with server restarts between various tests? Either way, as soon as you can establish rough delays between data actually sent and data actually received, then you will know, whether the problem is with your app or somewhere external. -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Dialog change orientation
Hi, Does anyone know if it is possible to change the orientation of a dialog ONLY. So i show a dialog in landscape while the activity remains in portrait. Anyone know how to do 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] Spinner in ListView Activity
Hi, Has anyone seen a a onItemSelected not being called when using a spinner inside a listviewActivity. I have the code below Inside a listViewActivity. protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.listview); Spinner sortOption = new Spinner(this); String[] items = CursorCollection.getSortOptions(this); sortOption.setOnItemSelectedListener(this); ArrayAdapterString adapter = new ArrayAdapterString(this,android.R.layout.simple_spinner_item, items); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); searchButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { sortOption.performClick(); } }); } public void onItemSelected(AdapterView? parent, View v, int position, long id) { Log.V(Info, Doing some stuff); } The spinner is shown on screen by pressing a button (not the spinner) which in turn calls performClick() on the spinner. When I select an item from the spinner the onItemSelected function is not called. Does anyone know why this might be? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Spinner in ListView Activity
Sorry Bret I do not understand in which onClickListener? The button or the onItemSelected listener? On Oct 18, 1:31 pm, Bret Foreman bret.fore...@gmail.com wrote: Are you calling the super of the onClick method in the onClickListener? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Featured apps
Anyone know how the featured applications are chosen on Android market? I would like to put one of my apps forward for consideration. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MapView singleton issue
Hey All, Has anyone soon an issue with using two different sized map view on two screens? I am getting a problem as follows. 1) Add a full screen map to a Activity with an overlay. 2) On tap for the overlay item start a new activity with a small mapview say 1/3 of the screen. Zoom the mapview in to zoom level 21. 3) Close the new activity exposing the old activity. 4) The zoom level of the old activities map has changed and also there is probably now a black bar at the bottom. Any ideas why this might be happening? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adsense link to market
Hey Guys, I have a Google Adsense Ad running and wanted the link on the mobile campaign to go straight to market using the normal search style url. This however does not work as the ad's keep getting rejected due to the link going nowhere. Has anyone solved this issue? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Could not find ***.apk!
Try going into the code and just hitting the space bar. The apk file has not been built. On Aug 11, 6:51 pm, Andrdev gm93...@gmail.com wrote: hello guys, upgraded to android 2.2 on win xp with eclipse IDE. created a test project when i try to run it, getting this error - [2010-08-11 15:41:42 - test] -- [2010-08-11 15:41:42 - test] Android Launch! [2010-08-11 15:41:42 - test] adb is running normally. [2010-08-11 15:41:42 - test] Could not find test.apk! did anyone able to fix this issue successfully. i even tried goin g back all the way to 1.5 but getting the same issue. when i go to my bin directory, i see test.apk. so, why is eclipse not able to find it. any suggestions. 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] Gallery View Null covertView
Good afternoon, Does anyone at Google know when the null return for Gallery view may be resolved? I know it was slated for long ago but didn't make it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en