How to pass String from 2 activities to one?
<p>I have two activitys with lists.</p>

<p>One for tablet's and one for regular density phones. 
When an item in the list is clicked it launches the same activity for either activity with list's.</p>

<p>The problem is when an item is clicked i have getter and setter class that gets the URL for a particular item and passes it to the launching activity like this...</p>

<pre><code>    private String URL = null;
try{
        URL = com.fttech.AbstractFeedsActivity.feed_url;

    }
    catch(IllegalArgumentException e){
        e.printStackTrace();
        URL = com.fttech.ItemsActivity.url;

    }
</code></pre>

<p>As you see what i tried to do is try and catch.
So if the first one isnt found then the second one will be retrieved.</p>

<p>But it doesnt seem to work.</p>

<p>It returns null each time.</p>

<p>For what i have describe what is the best way to implement this?
Is my way logic? Or is there a better way.</p>

<p>Thanks</p>
