Posts by EdeiltonSO • 331 points
12 posts
-
3
votes2
answers1105
viewsQ: JAVASCRIPT: Sort HTML list by name and age
Good night, I need to sort a list of HTML phrases by user name or age, depending on which button is clicked. How can I do this? Below is a clearer version of the code: <html> <head>…
-
2
votes3
answers120
viewsQ: Property defined in constructor only returns zero value
I created a Web API in C# that returns me a list of products in JSON. However, the property PrecoVenda is always returned with the value zero and I noticed that this occurs because in the class…
-
4
votes1
answer170
viewsQ: How do I send variables to another page on Windows Phone 8?
I tried to follow that method, but there is an error in Mainpage, saying that the NavigationService does not exist in the current context. In Blankpage, the same error occurs in NavigationContext.…
-
2
votes1
answer628
viewsQ: How to use variables in a location outside the scope where they were created?
I have the following code: public class TracoActivity extends Activity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
0
votes1
answer847
viewsQ: Change Dialog title background color
I have the following dialog box: The green part was mounted with a LinearLayout, but the attribute android:background="#77FF77" did not change the titlebar color. Java da Dialog: public void…
-
2
votes2
answers270
viewsQ: Modify XML features through Java
I got the following RelativeLayout: <RelativeLayout android:id="@+id/layout_avancado" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#FF0000"…
-
2
votes1
answer348
viewsQ: Checkbox checked/unchecked does not obey instructions
To Activity is started with the layout activity_home and the CheckBox unchecked. When I touch CheckBox, the layout becomes the activity_home_avancado, however the Checkbox remains unmarked. At the…
-
1
votes2
answers86
viewsQ: Application closes at the touch of the button
When one or more EditTextare empty the tap on the button should show the message of the Toast, but the application closes. Why? public class HomeActivity extends Activity { int rcpNum, fckNum,…
-
0
votes1
answer360
viewsQ: Why does the app stop when I leave the field empty?
public class VigMetBiapsb extends Activity { int porctAlt, porctLarg; double edtVaoNum; EditText edtVao; Button calcBiapsb; TextView secaoBiapsb; @Override protected void onCreate(Bundle…
-
0
votes2
answers4140
viewsQ: Error opening Activity: The <application> stopped
I have a file VigasFragment.java with a button that when touched should open the Activity VigMetBiapsb.java, however some error occurs, closing the application. Vigasfragment.java: public class…
-
4
votes1
answer367
viewsQ: "cannot be resolved to a variable percentage"
I need to set the variable value porcentagem as defined in Spinner. The problem is that I need to use the value of porcentagem out of method setOnItemSelectedListener(), on the line int r =…
-
0
votes0
answers91
viewsQ: Tap Close App button
Follow this tutorial to create a layout with tabs. After that, I created an XML button, which is displayed without action, because it is only in XML. I want to open another Activity from the touch…