This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!

German Hernandez

Greenhorn
+ Follow
since Dec 17, 2018
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

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 months 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 months ago
i test this



and still nothing
6 months 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)
6 months 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
6 months 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
6 months ago
yes, problem solved, thanks
6 months ago
added as attachment
6 months 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
6 months ago
sorry but i cant edit the previous post i will try with this code removing the extra data, thanks for the help !
6 months ago
hi daniel thank you a lot for the answer but i need something more simple no values only the images
6 months 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
6 months ago