German Hernandez

Greenhorn
+ Follow
since Dec 17, 2018
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by German Hernandez

thanks both answers:

1) y try


2)
i have
y test with:
public class Personal extends MainActivity and i can't use

again, i think i have a misunderstood with the clases in java
4 years ago
Hi, guys, im stuck with this.

i have this code on mainactivity

then in a class called personal

i need call the iso code. i try with youtube tutorials but the teacher only display the info on the same main activity, and if i create the method on the class "personal" y got errors.
exactly



thanks in advance

4 years ago
Hi,

im trying to convert this url


autor.php?id=division-men

to

autor/division-men



 

i try with this solution but no results

 stackoverflow.com/questions/28168375/how-to-write-htaccess-rewrite-rule-for-seo-friendly-url


also with:


RewriteRule palabra/(.*)/ autor.php?id=$1  [L,QSA,NC]


and with this:

RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+autor\.php\?id=([^\s]+) [NC]
RewriteRule ^ /autor/%1/? [R=302,L]



thanks for the help!
randy i try but i think the problem is with the logic of the tags
5 years ago
i get the message, so the image is listening and working but the image not change

its simple i have one image "image1", when the user click on it i change to "image2"

but now i click and not change xD
5 years ago
i test this



and still nothing
5 years ago
i fix that but im fighting with this, no error but when i tap on the image don't change to the other

actual code:


stackoverflow.com/questions/8642823/using-setimagedrawable-dynamically-to-set-image-in-an-imageview
in SO one user suggest this line

int id = getResources().getIdentifier("asd.testapp:drawable/" + oldpic, null, null); << but i get a "cannot resolve on the variable oldpic (its the name of the first image)
5 years ago
E/AndroidRuntime: FATAL EXCEPTION: main
Process: asd.testapp, PID: 6822
java.lang.IllegalStateException: Could not find method onClick(View) in a parent or ancestor Context for android:eek:nClick attribute defined on view class android.support.v7.widget.AppCompatImageView with id 'select1'
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.resolveMethod(AppCompatViewInflater.java:424)
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:381)
at android.view.View.performClick(View.java:4785)
at android.view.View$PerformClick.run(View.java:19884)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)

and the complete code in paste
https://pastebin.com/6Fz6d4w1


thanks
5 years ago
hi guys im stuck with this




and with this code i have the error

   java.lang.IllegalStateException: Could not execute method for android:onClick
5 years ago
yes, problem solved, thanks
5 years ago
added as attachment
5 years ago
thanks all for take time for help me but i need something more simple i did this ugly graphic maybe is more clear

http://es.tinypic.com/view.php?pic=1h73va&s=9#.XBsKEd9fg5k
5 years ago
sorry but i cant edit the previous post i will try with this code removing the extra data, thanks for the help !
5 years ago
hi daniel thank you a lot for the answer but i need something more simple no values only the images
5 years ago
Hi guys im with my first java/android app

I want shuffle 5 images i already check on google "how to shuffle images java" and "how to shuffle a deck on java" and i read stackoverflow but they explain the logic for shuffle the values of cards  and i only want shuffle the images

If anyone can share a link or explainme what i need learn for add this effect will be great

thanks in advance for read this
5 years ago