Win a copy of Fixing your Scrum this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

ACTION_CALL not calling in in some mobiles.

 
Ranch Hand
Posts: 48
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi All,
I am using below code to call a phone no using android but in some mobiles its not calling just dialing the no, can anybody help me in identifying the bug?
And can I make no calling lasting min for 30 sec through code since it seems handset dependent.

Intent i = new Intent(Intent.ACTION_CALL);
           i.addFlags(Intent.FLAG_FROM_BACKGROUND);
           String phoneno="01127126192";
           String uri="tel:"+phoneno.trim();
           i.setData(Uri.parse(uri));
           i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
           context.startActivity(i);


Thanks & Regards
Shikha
 
shikha nirankari
Ranch Hand
Posts: 48
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can anybody help??

these are  the list of devices where I am facing an issue:

LIST 1 Android ver
CENTRIC CM3321 v6.0.1
ORBIC RC505L-RW v6.0
HTC 0PE65 v4.4.4
SAMSUNG G316HU 4.4.4
HTC DESIRE C v4.0
HTC ONE  V v4.0
XIAOMI 4I v5.0.2
INFOCUS M260 v5.0.2
INFOCUS M415 v6.0
XIAOMI HM NOTE
1 LTE v4.2
INFOCUS M680 v5.1
INFOCUS M430 v5.1
VIVO Y31 L v5.1.1
VIVO V3 MAX v5.1.1
 
Marshal
Posts: 3642
516
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does logcat provide any clues?
 
shikha nirankari
Ranch Hand
Posts: 48
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no.

 
Saloon Keeper
Posts: 7062
164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What, exactly, does "not calling, just dialing" mean? Provide as much detail as you can. Also post the relevant logcat excerpt, irrespective of whether you think it contains anything relevant.
 
Ron McLeod
Marshal
Posts: 3642
516
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure about others, but I don't have access to any of those handsets.  As Tim suggested, providing the output from logcat and any other data would really be helpful.

I have two ideas that you can try:
  • Try formatting your telephone number as an E.164 number (plus symbol, then country code, then domestic telephone number)
  • Try using URLEncoder to ensure the URI does not contain any reserved characters
  •  
    Ron McLeod
    Marshal
    Posts: 3642
    516
    Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Tim Moores wrote:What, exactly, does "not calling, just dialing" mean?


    I understand this to mean that it has the behaviour of ACTION_DIAL (pre-fill dialer, but do not place call), rather than of ACTION_CALL (place call to specified telephone number).
     
    shikha nirankari
    Ranch Hand
    Posts: 48
    1
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I tried the solution provided in the link below but still no luck.

    http://stackoverflow.com/questions/37073123/android-intent-action-call-not-making-a-phone-call#


     
    To do a great right, do a little wrong - shakepeare. twisted little ad:
    the value of filler advertising in 2021
    https://coderanch.com/t/730886/filler-advertising
    reply
      Bookmark Topic Watch Topic
    • New Topic