Android Question open phone app from widget

Discussion in 'Android Questions' started by ivanomonti, Sep 26, 2013.

  1. ivanomonti

    ivanomonti Well-Known Member Licensed User

    how can I open phone app, contacts, calendar, e-mail widget from
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. ivanomonti

    ivanomonti Well-Known Member Licensed User

    I need to open the telephone module with keypad, not to open a call.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Try ACTION_VIEW instead of ACTION_CALL.
     
  5. ivanomonti

    ivanomonti Well-Known Member Licensed User

    Erel forgive my ignorance, I should also open the module contacts, calendar and web but I view with errors by using the contact, calendar and web ... I will give more help.
     
  6. ivanomonti

    ivanomonti Well-Known Member Licensed User

    ok code for tel + gmail + calendar + web (crome) no contact :-(

    Code:
    Sub ImageView01_Click
        
    Dim i As Intent
        i.Initialize(i.ACTION_VIEW, 
    "tel:")
        
    StartActivity(i)
        
    ToastMessageShow("Phone"True)
    End Sub
     
    Sub ImageView02_Click
        
    Dim pm As PackageManager
        
    Dim i As Intent
        i = pm.GetApplicationIntent(
    "com.google.android.gm")
        
    StartActivity(i)
        
    ToastMessageShow("GMail"True)
    End Sub
     
    Sub ImageView03_Click
        
    Dim pm As PackageManager
        
    Dim i As Intent
        i = pm.GetApplicationIntent(
    "com.android.calendar")
        
    StartActivity(i)
        
    ToastMessageShow("Calendar"True)
    End Sub
     
    Sub ImageView04_Click
        
    Dim pm As PackageManager
        
    Dim i As Intent
        i = pm.GetApplicationIntent(
    "com.android.chrome")
        
    StartActivity(i)
        
    ToastMessageShow("Web"True)
    End Sub
     
    luke2012 likes this.
  7. NJDude

    NJDude Expert Licensed User

    If you want to open the CONTACTS you have to do this:
    Code:
    Dim i As Intent
    i.Initialize(i.ACTION_VIEW, 
    "content://contacts/people/")
    StartActivity(i)
     
    Last edited: Sep 26, 2013
    Erel likes this.
  8. ivanomonti

    ivanomonti Well-Known Member Licensed User

    NJDude thank 1000000 :)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice