phonegap api or support for Call forwarding or call divert i
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
You can use regular expression to get the file name. Here is an example: https://dotnetfiddle.net/DdzA3c
- using System;
- using System.Text.RegularExpressions;
-
- public class Program
- {
- public static void Main()
- {
- string file = @"C:\Users\xyz\Desktop\FYP\Animal\abc.jpg";
- string pattern = @"[ \w-]+?(?=\.)";
-
- Regex regex = new Regex(pattern);
-
- Match match = regex.Match(file);
-
- Console.WriteLine(match.Value);
- }
- }
0
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
and your question is?