I am new to programming and i want to know how to send data (dual coordinates) from my map activity to another activity. I tried the conventional method but it only works when I send data from the activity to another activity and not from my fragmentmaps activity to another activity.
            Asked
            
        
        
            Active
            
        
            Viewed 242 times
        
    -2
            
            
        - 
                    share your code and then explain whats problem you facing. – Sachin Rajput Jul 05 '18 at 06:20
- 
                    It's literally the same thing: you send data from activity to activity via `Intents` and their associated `Bundle`s – terencey Jul 05 '18 at 06:21
- 
                    like Thunder already said: share a code example – JimHawkins Jul 05 '18 at 06:23
1 Answers
0
            A map fragment is implemented in the activity only. So, normal activity intent will work here.
Intent intent = new Intent(YourMapActivity.this, NextActiity.class);
intent.putExtra("Latitude", latitude);
intent.putExtra("Longitude", longitude);
startActivity(intent);
 
    
    
        Raj
        
- 2,997
- 2
- 12
- 30
 
    