sl4a startActivity find out packagename and classname
<p>So I'm trying to start WhatsApp with a predefined message in sl4a using Python. This is my code:</p>

<pre><code>import android
droid = android.Android()

droid.startActivity("android.intent.action.SEND",
                    None, "text/plain",
                    {'com.whatsapp.locale.extras.TEXT':"sl4a test"},
                    False, "com.whatsapp", "classname"
                   )
</code></pre>

<p>I don't know if the packagename is right, and I don't know what the classname should be. The syntax is:</p>

<pre><code>startActivity(
   action (String),
   uri (String) (optional),
   type (String) MIME type/subtype of the URI (optional),
   extras (JSONObject) a Map of extras to add to the Intent (optional),
   wait (Boolean) block until the user exits the started activity (optional),
   packagename (String) name of package. If used, requires classname to be useful (optional),
   classname (String) name of class. If used, requires packagename to be useful (optional),
)
</code></pre>

<p>Nevermind I just figured out that I could set WhatsApp as the standard app in the dialog so I don't have to specify the packagename anyway.</p>

android python whatsapp sl4a