1
Answer

phonegap api or support for Call forwarding or call divert i

Photo of Rahat Yasir

Rahat Yasir

10y
993
1
i am working on a cross platform app where the user will be able to divert all his calls to his land line number when he is at home. So far i could not find any phonegap api or support for android and ios devices through which i could divert or forward my calls to another phone number. is there any way to do this..?

Answers (1)

0
Photo of Bryian Tan
NA 9.4k 887.4k 7y
You can use regular expression to get the file name. Here is an example: https://dotnetfiddle.net/DdzA3c
 
  1. using System;  
  2. using System.Text.RegularExpressions;  
  3.                       
  4. public class Program  
  5. {  
  6.     public static void Main()  
  7.     {  
  8.         string file = @"C:\Users\xyz\Desktop\FYP\Animal\abc.jpg";  
  9.         string pattern  = @"[ \w-]+?(?=\.)";  
  10.           
  11.         Regex regex = new Regex(pattern);  
  12.           
  13.         Match match = regex.Match(file);  
  14.           
  15.         Console.WriteLine(match.Value);  
  16.     }  


0
Photo of Nilesh Patil
NA 3.4k 7.1k 7y
Hi,
 
Refer This Code
 
private void timer1_Tick(object sender, EventArgs e)
{
counter++;
try // Get the tif file from C:\image\ folder
{
string path = @"C:\image\";
String filename = Directory.EnumerateFiles(path, "*.png").FirstOrDefault();
if (null != filename) {
// Load picture
pictureBox1.Load(filename);
// Show the file name
lblFile.Text = filename;
}
else {
//TODO: No *.png files are found
}
}
catch(IOException ex)
{
MessageBox.Show("No files or " + ex.Message);
}
}
 
0
Photo of Bryian Tan
NA 9.4k 887.4k 7y
and your question is?