last day (14 days later) » 

1:45 PM
1
A: Starting a 3rd Activity involves dragdrop listener. what is proper way of initializing Activity

ChaitanyaAtkuri@Mark, It is not suggestible to implement the architecture in the above way. It is better to use an Interface to acheive this. Step 1: Create an Interface. public interface CorrectAnswerListener { void onRightAnswerSelected(); } Step 2: public class DropSpot extends MyAbsoluteLayout imple...

 
I am having trouble with Step 3. are you refering to this line of my code?private DropSpot mSpot2;
 
@MarkLigot, Yes initialize the listener where you have initialized the object DropSpot mSpot2 = <Value Initialized>;
 
I tried to put that DragSpot mSpot = DragActivityV2.this; is an error...
 
@MarkLigot show where you r initializing mSpot data in your code.
 
Hello i have edited above...not all codes were copied all the way down not sure why...Mind u that this code is borrowed from many different sources so I am kinda just getting a feel for it programming wise (this is my first project actually)
 
1:45 PM
Hey U have this line na.. mSpot2 = drop2; after that line write this line of code, mSpot2.mListener = DragActivityV2.this;
 
also where do i put Step 1? currently I put it on the DragActivity2
yes i tried to put it after it said its incompatible types.. required info.audiodrive.tabsswipe.dragview.DragActivity2.CorrectAnsw‌​erListener found info.audiodrive.tabsswipe.dragview.DragActivity2.
 
@MarkLigot as said, for DragActivity2 implement CorrectAnsw‌​erListener
 
so correctAnswerListener is in another class? where do I put that part (Step 1)
 
Create a new Interface, just like creating a public class
 
public class DragActivityV2 extends Activity implements View.OnLongClickListener, View.OnClickListener, View.OnTouchListener, CorrectAnswerListener { I put implemented it..puting it on another class and errored still
I wish I can just send u my project is that possible? It would really help me out as i have tried to get this done for 2 days now...:(
 
1:45 PM
Send to my email id chaitanyaatkuri@gmail.com
 
thank u so much i have sent it ....its rather large but it has alot of unused Java testing classes I gathered from github and this website
 
Hey
there?
 

last day (14 days later) »