• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ACTION_CALL not calling in in some mobiles.

 
shikha nirankari
Ranch Hand
Posts: 43
1
  • Mark post as helpful
  • send pies
  • 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: 43
1
  • Mark post as helpful
  • send pies
  • 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
 
Ron McLeod
Bartender
Pie
Posts: 1032
65
Android Eclipse IDE Java Linux MySQL Database Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does logcat provide any clues?
 
shikha nirankari
Ranch Hand
Posts: 43
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no.

 
Tim Moores
Bartender
Posts: 3129
50
  • Mark post as helpful
  • send pies
  • 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
Bartender
Pie
Posts: 1032
65
Android Eclipse IDE Java Linux MySQL Database Redhat
  • Mark post as helpful
  • send pies
  • 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
    Bartender
    Pie
    Posts: 1032
    65
    Android Eclipse IDE Java Linux MySQL Database Redhat
    • Mark post as helpful
    • send pies
    • 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: 43
    1
    • Mark post as helpful
    • send pies
    • 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#


     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic