Hi,
 
Im currently the current fonctions below and i am having an issue depending which version the phone is.
Ive tested the following function on 2 different phones:
 
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
#1: Version 4.1.1 with API 10 - 15 -17 and it works perfect
 
#2: Version 2.3.5 with API 10 - 15 -17 and i get the error message below
Can anyone help me out?
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			Im currently the current fonctions below and i am having an issue depending which version the phone is.
Ive tested the following function on 2 different phones:
			
				PHP:
			
		
		
		Sub SetOpacity(alpha As float, aView As View)
    Dim aReflector As Reflector
   aReflector.Target = aView
   aReflector.RunMethod2("setAlpha", alpha, "java.lang.float")
End Sub#1: Version 4.1.1 with API 10 - 15 -17 and it works perfect
#2: Version 2.3.5 with API 10 - 15 -17 and i get the error message below
Can anyone help me out?
			
				PHP:
			
		
		
		aReflector.RunMethod2("setAlpha", alpha, "java.lang.int")
java.lang.NoSuchMethodException: setAlpha
at java.lang.ClassCache.findMethodByName(ClassCache.java:247)
at java.lang.Class.getDeclaredMethod(Class.java:731)
at anywheresoftware.b4a.agraham.reflection.Reflection.runmethod(Reflection.java:203)
at anywheresoftware.b4a.agraham.reflection.Reflection.RunMethod2(Reflection.java:806)
at b4a.example.utilities._setopacity(utilities.java:466)
at b4a.example.statebutton._specificuidisplay(statebutton.java:909)
at b4a.example.statebutton._initdisplay(statebutton.java:478)
at b4a.example.scrollmenu._initscrollview(scrollmenu.java:584)
at b4a.example.scrollmenu._specificuidisplay(scrollmenu.java:1192)
at b4a.example.scrollmenu._initdisplay(scrollmenu.java:432)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:167)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:797)
at anywheresoftware.b4a.keywords.Common.CallSub2(Common.java:782)
at b4a.example.page._initdisplay(page.java:109)
at b4a.example.pagemanager._setpage(pagemanager.java:400)
at b4a.example.pagemanager._activatepage(pagemanager.java:59)
at b4a.example.flowmanager._activatesecondarymanagers(flowmanager.java:172)
at b4a.example.page._setenabled(page.java:358)
at b4a.example.pagemanager._setpage(pagemanager.java:407)
at b4a.example.pagemanager._activatepage(pagemanager.java:59)
at b4a.example.flowmanager._setcurrentmanager(flowmanager.java:523)
at b4a.example.flowmanager._activatemanager(flowmanager.java:84)
at b4a.example.flowmanager._initmanagers(flowmanager.java:338)
at b4a.example.flowmanager._init(flowmanager.java:302)
at b4a.example.main._init(main.java:393)
at b4a.example.main._activity_create(main.java:254)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:167)
at b4a.example.main.afterFirstLayout(main.java:89)
at b4a.example.main.access$100(main.java:16)
at b4a.example.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3691)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
at dalvik.system.NativeStart.main(Native Method)
java.lang.NoSuchMethodException: setAlpha 
				 
 
		 
 
		 
 
		