problem about back-Collection of common programming errors
merrill
listview button activity back
I have a mainActivity which is Customer.java with listview of 5 diff. activities. I was able to open all 5 activities when I tap them but when i press back button(the device backbutton) to go back to the mainAcitivity it would give me an error which you will see debug/logcat below the codes. I have post 2 examples activity below my main screen (logout and clockin) . Bonus: As one extra thing I would like to have is when click of the ‘clockinActivity’ button i want it to send the current time &am
GrayFox
android xml android-layout button back
I can’t find a way how to make it work. So here it goes:Application starts and I press Option menu and it offers me “Settings” option, and when I click it, it goes to layout called “help.xml” which shows me some text …And in that layout I created a button which must return me to my activity ( the window which is shown when app starts) I tried making a back button works but I failed cause I need for user to wait 30 seconds until the next image switch , and by making back button works hw would e
user2603628
safari websocket back
If I open a page in Safari for examplehttp://stackoverflow.comthen open the safari console and open a websocket, for example:var ws = new WebSocket(“ws://ws.dslreports.com”)then I click a link on the page, and then press BACK the back cache is now ignored and the page is reloaded. I observe this on Safari 5.0 (which first introduced hixie websocket support) and latest Safari 6.x which uses hybi. Chrome and Firefox and other browsers supporting websockets do not seem to invalidate the back cache
user1001635
android listview view back
hi guys after i call the method onKeyDown and my app closes without get me back error, this my code:public boolean onKeyDown(int keyCode, KeyEvent event) {if (keyCode == KeyEvent.KEYCODE_BACK) {if (expList.getVisibility() == View.VISIBLE){expList.setVisibility(View.INVISIBLE);}else{//}}return super.onKeyDown(keyCode, event); }
user2337114
android camera back
I have a problem. I want execute example app from http://www.vogella.com/articles/AndroidCamera/article.html It works. But when change in code CAMERA_FACING_FRONT to CAMERA_FACING_BACK I see in LogCat: Camera Error -1I execute it on my Samsung Galaxy SII private int findFrontFacingCamera() { int cameraId = -1; // Search for the front facing camera int numberOfCameras = Camera.getNumberOfCameras(); for (int i = 0; i < numberOfCameras; i++) {CameraInfo info = new CameraInfo();Camera.getCameraI
Avadhani Y
android textview back
i want to set runtime background in textview in android here you can see i have a one image which is runtime set this is not fix so i want to change runtime background in textview and current location in text with different colorholder.textmenu.setBackgroundDrawable(R.Drawable.imagename) // gives errorholder.textmenu.setBackgroundColor(R.color.color_orange);`
Barney
android memory android-activity back
I want, when I press the back button on one of my activities, to go back to the previous activity but before that I need to delete all bitmaps and other resources in memory first otherwise I get an outofmemory error.I tried:public void onBackPressed() {bitmap.recycle();System.gc();Runtime.getRuntime().gc();Intent intent = new Intent(this,GameActivity.class);this.startActivity(intent); }But still have the outofmemory error with that.
theisenp
android stack hashmap back fragment
In my application I have one Activity, which consists of an overlaying side panel (navigation menu) and a LinearLayout, which is my main layout. I do transactions on my layout and replace fragments inside. I’m only allowing the user to navigate forward so I do not use a backstack at all. Instead, I use a Hashmap (a pseudo-cache) to keep the fragment instances in memory as the user navigates forward in the menu. The only problem with this approach is that I keep getting a crash when I try to
Dan James Palmer
ios6 uiviewcontroller uinavigationcontroller exc-bad-access back
I am getting a EXC_BAD_ACCESS(code=1, address=0x0) error (the address equals is another not 0x0 but I assume a number related to my project).This error occurs when going “back” to the main VC in a Navigation Controller system. The set up is as follows:View Controller – MyConnection is the main ViewController. There are tableviewcells and a tab bar on this VC. The tableviewcells will take you to either the Choose Server VC or the Choose Test Type VC. The one button on the tab bar takes you to Pre
ie.
windows-phone-7 exception back
On Wp7 when the user presses the Start button on a page when the phone keyboard is displayed and hits device back button the app crashes with Exception as :-The parameter is incorrect. at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)at MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual)at System.Windows.Controls.SipHelper.AdjustFrame(Framework
NickLH
android activity back
Ok my game starts with 2 buttons: One is the new game with this code:case R.id.newgame:openNewGameDialog();break;private void openNewGameDialog() {new AlertDialog.Builder(this).setTitle(“new game”).setItems(R.array.difficulty,new DialogInterface.OnClickListener() {public void onClick(DialogInterface dialoginterface,int i) {startGame(i);}}).show(); }private void startGame(int i) {Log.d(TAG, “clicked on ” + i);Intent intent = new Intent(SudokuActivity.this, Game.class);startActivity(intent);intent
James
android webview expandablelistview back tabview
Okay so my App has a Tabview with 3 tabs. Two of my tabs I have no issues with. The first just opens a webview, which works, the third shows a series of picture buttons which in turn open pages that have options, and it works fine. My second is the issue. It has an Expandable List View with 4 parents and varying number of children per parent. I have the Expandable List View working, and each child opens a different page in a webview. This part is working just fine. The problem comes in once I op
Dan James Palmer
ios6 uiviewcontroller uinavigationcontroller push back
Below is the hierarchy in question.The “ViewController – MyConnection” in the top left is my main ViewController. I implement a NavigationController system. From the main VC a user can go to the “Choose Server VC” or the “Choose Test Type” VC using Push. Having done that a user can then press back and return to the main VC, no problem.A user can also Push to the “Preferences” VC from the main VC. From the prefences VC a user can also go to the “Choose Server VC” or the “Choose Test Type” VC, aga
lansher1985
android tabbar back activitygroup
every one!One year ago, I have developed an application with the combination “ActivityGroup + TabWidget”, it works well on android os 2.3+. But I tested it on os 4.0, and I found it crash sometimes. – If I open application, I do nothing, and i hit “back”, it works well. – If I open application, navigate in the application (click on list item, see detail item then go back), and then when I am back to the “root” page of a tab, i click “back”, it crash. (It should close the application normally) –
geebee
iphone uitableviewcell crash scroll back
When I scroll my table view fast (with a long and quick gesture) so it will scroll for a few seconds more on screen displaying my cells (let’s say 3-4 seconds) – and so very quickly I hit the back button to go back to the previous screen: it works… BUT then the scrolling would have come to a stop (on the screen that I cannot see anymore – so 3-4 seconds later): the app crashes! and that each time I do that “fancy” crash test.I used my own table view cells – and I am a bit out of ideas of where
rptwsthi
ios crash exc-bad-access back
The app crashes and shows this error when I hit the Back button. I have 2 view controllers. On the first vc the Start button works fine to switch to second view, but when I hit the Back button the app crashes and I get the error above on the line below @autorelease pool. I will also post the code for my start & back buttons. thx :)#import #import “AppDelegate.h”int main(int argc, char *argv[]) {@autoreleasepool {return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate cl
jigar
android android-intent bundle back
I have made a simple android program with two activities,in that 1st activity contains some edittexts and a button,and second activity contain same number of textviews.Now when the button in 1st activity pressed the text from Edittexts should go to 2nd activity’s textViews.I have tried code as below,but it’s not working:MainActivity.javapackage com.example.myweb;import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.Vie
Hosni
android activity back
I am trying to get a quiet simple activity to work.my activity includes two buttons, and i am trying to make one of them work as a simple back button (go back to previous activity) any help?here is my code:public void valider(View v) {c.setNomPrenom(et1.getText().toString());c.setmPortable(et2.getText().toString());c.setmFixe(et3.getText().toString());i.putExtra(ContactActivity.TAG_AJOUT_EDIT, c);setResult(RESULT_OK,i);finish(); }@Override public void onBackPressed() {super.onBackPressed(); }pub
unor
forms browser https back
Enter/change something in a textarea Before submitting the form, leave the page (e.g. by clicking browser’s back button) Go back to the edit page (e.g. by clicking the forward button)Expected result: the content entered in the textarea should still be thereActual result: with HTTPS: all changes are gone (bad!) with HTTP: the changes are still there (good!)Why is this happening when using HTTPS? How can I prevent this? Is the browser or the website responsible?
QLiu
ajax call back
I have an Ajax call back function which call to a PHP function check the file modified time. I uses timer to execute it every 50 seconds.<script type=”text/javascript”>setInterval(“_checkPopUpUpdate()”, 50000); //50 seconds</script>function _checkPopUpUpdate(){var callback=new Object();callback.success=this.onExternalSuccess;callback.failure=this.onExternalFailure;YAHOO.util.Connect.asyncRequest(‘GET’,’/ci/ajaxCustom/ajaxCheckPopupUpdate’,callback); };The PHP function checks whether
QLiu
ajax popup call back
I have an Ajax callback function, which will load a html file and pop up the content of this HTMl file in a pop up window. It works so far, however, i want to get rid of the location bar in the pop up window. Here is my code function _checkPopUpUpdate() {var callback=new Object();callback.success=this.onExternalSuccess;callback.failure=this.onExternalFailure;YAHOO.util.Connect.asyncRequest(‘GET’,’/ci/ajaxCustom/ajaxCheckPopupUpdate’,callback);};function onExternalSuccess (o){if(o.responseText!=
XYZ_Allen
javascript html dom back browser-history
im testing a method that include simple javascript to switch different contents instead of linking to other pages. However the problem is if i do this, the browser actually renders all “pages” but only show part content of it. therefore its no history but only different url followed by. I tried use goback(-1) won’t work. Haven’t try document.referrer. So the question is there a way that can store history and add it to browser? I checked the history is read-only, but i can make go back button
Zachary
button layout webview back
As part of an app I am creating, I am trying to make little push buttons go to web pages. I’ve been using webview for such, but an having some trouble configuring the back buttonMy Current Code so Far For One Button:public class MainActivity extends Activity implements View.OnClickListener{@Override public void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main); }public void onClick(View v){}public void tip1 (View v){WebView mWebView;se
Web site is in building