Smartphone Programming

Smartphones run using a variety of operating systems -- Android, iOS and Windows Mobile most commonly -- and an even wider variety of programming languages, including Objective-C, Java, Visual C#, C++ and .NET, not to mention HTML5 and JavaScript, and cross-platform frameworks such as PhoneGap.

Share tech news, updates, or what's on your mind.

Sign up to Post

I am trying to create an Android contacts app/service that will do the following once every 24 hours:

1 - Get contacts from an XML file on our web server and put them into an array.
2 - Loop through the array, inserting those contacts into the phone's address book.
3 - Delete all the contacts with the same name to stop duplicates.

I have managed to get steps 1 and 2 working correctly, as well as a service that runs every 24 hours. However, I cannot delete contacts with the same name. I've only managed to get it to delete all the contacts on the phone including personal ones etc.

If someone could show me how to delete only contacts with the same display name as those in my XML file, that would be very helpful.

Here is part of my code without any delete functions. This gets the contacts from the XML file and inserts them into the phone successfully.

        String folderPath = "";
        String xmlFile = folderPath;
        DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
        DocumentBuilder dBuilder;

        /// gets the main nodes in the config and saves them to a list

            dBuilder = dbFactory.newDocumentBuilder();
            Document doc = dBuilder.parse(xmlFile);
            //System.out.println("Root element is:" + doc.getDocumentElement().getNodeName());
            NodeList mainList = 

Open in new window

Introduction to R
LVL 13
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Several clients have expressed an interest in getting a blocking service to prevent junk phone calls from being received on their land lines.

Is there a filtering service that can work with VOIP provided by  Xfinity, FIOS, Optimum Online, and other providers?
Is there one for those using copper wiring?

I have been using RoboKiller on my iPhone, and I've been happy with that service.
Something like that for land lines would be great.

I published my app to google play and apple store yesterday but I failed build my app today.

Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
/Users/michaelkang/AndroidStudioProjects/bethany_app/android/app/src/main/java/io/flutter/plugins/ error: package com.github.droibit.flutter.plugins.customtabs does not exist
import com.github.droibit.flutter.plugins.customtabs.CustomTabsPlugin;
/Users/michaelkang/AndroidStudioProjects/bethany_app/android/app/src/main/java/io/flutter/plugins/ error: cannot find symbol
  symbol:   variable CustomTabsPlugin
  location: class GeneratedPluginRegistrant
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at

Finished with error: Gradle task assembleDebug failed with exit code 1

Open in new window

Is there an app that I can also use at a flashcard for IT related learning?  I'd like to make notes on my computer and then view them on the app on my phone.  I have an Apple phone.
Hello to everyone,

I've installed the AutomateIT App on my Samsung Note 3 with Android 8.1 because I want to execute the following task :

-) when my phone reconnects to my WI-FI hotspot it should kill some APP like Whatsapp or any other APP that I don't need when I'm at home.

If I don't get wrong,AutomateIT can't do it,at least in a easy way. Thanks.

I need to setup a MacinCloud Environment for Xamarin Mobile Application Development.

What should be the configuration of MacinCloud Machine that I should order.

Thanks & Regards,


I have a Samsung Note 9 phone.

My contacts are located in two different places; sim card and Gmail account.

There are different contacts in both of these places but would like all imported to Note 9 phone.

Also, there are some contacts which are the same in both places.

Is there a way of syncing together contacts in Gmail with contacts on this phone, where contacts were imported from sim card, without having duplication of contacts?


I am working on an iOS application (in nativescript) that needs to get and post some data to an API in the background each 5 minutes. Now it seems that iOS is closing my application so I took a look at the long running tasks section of but I fail to see how I should configure an interval now.

Also while it works correctly on the simulator (not thinking about the interval) with the debug fetch command, I can't get it to work correctly on a real device.
I have a cordova app and would like to make some changes to the build.gradle file. Basically, I would like to remove some lines (with **) and add some new statements (*)

I have added the lines but when I build my code with  cordova  the gradle file gets regenerated and my changes are lost.

I know that I can use the android studio but I am automating my process and would do it with my current automation script

Can you please let me know how to make this change with maybe gradle.extra file

I am using Cordova 6.5.0

Thanks for the help

here is the snippet from the build.gradle file

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    debugCompile(project(path: "CordovaLib", configuration: "debug"))
    releaseCompile(project(path: "CordovaLib", configuration: "release"))
    **//compile ""**
    compile ""
    compile "com.squareup.okhttp:okhttp-urlconnection:2+"
    **//compile ""**
    *compile ''
*apply plugin: ''

Open in new window

Published iOS app about 18 months ago using Xamarin Studio.  Now that its Visual Studio 2017, need to recreate Apple certificates and profiles and then use fastlane to install them on my Mac.  App builds fine and it runs on an iPhone attached to my Mac.  Looking for a consultant who can help me with this process.
Exploring ASP.NET Core: Fundamentals
LVL 13
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Hi all
We have a number of Android tablets, some of which are misbehaving. I need to be able to save (or send) the system logs (and maybe dmesg as well, if poss) continuously to the removeable SD card, or alternately, to send the logs out to an FTP server. Can someone help me do this please? I will not be able to "root" the devices.
Thanks in advance
I need to factory reset MC3090 with Win CE5 and MC3190 with Win CE6.
Would anyone have the image files?
I had this question after viewing Using AT commands with C.

I'm doing a project and want to connect my gsm "click" to my phone USING C PROGRAMMING, have it wired up ok just the program is letting me down..... [ I want the gsm to send a message to my phone ]
The GSM is connected to the UART serial port of my 8051f020 microcontroller, any help much appreciated my program is as follows:

 void send_it (void) interrupt 4 using 1   // This is the ISR 
		TI0 = 1; // TI must be cleared by software when writing directly  
	                       // to SBuf  as shown in the previous program – However,   
                   // the  Printf function requires TI to equal “1” on entering
		          // the function.
		printf ("Hello \n\n");  
   		printf ("This text was sent to the Uart using Printf \n\n"); 
    printf("AT+CMGF=1<CR>%c\n\n"); // configured the GSM module to SMS mode                                     

    ("AT+CMGS=\"08******\"HELLO"); // send mobile number to the GSM           

Open in new window

How to send message in whatsapp without open whatsapp apps using android?
Say, Whatsapp Broadcast Msg Info displays READ and Delivered. I want some way to get a list of the Delivered (but not read) in order to be able to resend.
Please suggest a software of method. Does Whatsapp Business make this easier to manage than Whatsapp? I've tried Whatsapp web but this doesn't allow me to export a list and difficult to use in a web interface.
Tx Shaun
How to identify editing on AMR file? Is there any softwares for that the phone call recorded was edited or not!
I'm using Android Studio and I would like to be able to pickup am image from the gallery, resize it and make it fit inside a rounded square (of about 300x300px) by maintening the correct aspect ratio. At the moment, I'm able to resize it and display it as a circle with this code:

FixBitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), uri);
                bitmap_to_save = scaleBitmapAndKeepRation(FixBitmap, 320, 320);

                RoundedBitmapDrawable roundDrawable = RoundedBitmapDrawableFactory.create(getResources(), bitmap_to_save);

Open in new window

However, I would like to know if it is possible to make the bitmap look like my attached image. Moreover, it would be important for me to resize the image without losing the original aspect ratio.

It is not exactly a well square rounded figure, so I'm not sure that it is possible to do it in Android.

I hope you can help me, thanks!

EDIT: I'm using Picasso library for the moment, and it seems to work. Anyway, I would like to keep always the same picture size (300x300 px) and the aspect ratio. How can I do it?
I used following code for phone call.But the call is not working .can anyone help me? I also given manfest Call Phone permission.

 call = (TextView) findViewById(;
        call.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                String no = call.getText().toString();
            //    Toast.makeText(Accepted_Details.this, no, Toast.LENGTH_SHORT).show();
                Intent callIntent = new Intent(Intent.ACTION_CALL);
                callIntent.setData(Uri.parse("tel:" + no));

                /*if (ActivityCompat.checkSelfPermission(Accepted_Details.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
                    // TODO: Consider calling
                    //    ActivityCompat#requestPermissions
                    // here to request the missing permissions, and then overriding
                    //   public void onRequestPermissionsResult(int requestCode, String[] permissions,
                    //                                          int[] grantResults)
                    // to handle the case where the user grants the permission. See the documentation
                    // for ActivityCompat#requestPermissions for more details.
We want to offer our customers the possibility to download their APN settings trough a browser.
Apple has a Configuration Utility, that works fine.

It seems to be an XML like binary, that includes the details of the APN settings.
When accessing this file in the default (Safari) browser, it asks if you wish to load the config. If so, it loads the APN settings into the phone.

Does Android offer the same option?
Why Diversity in Tech Matters
LVL 13
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

I've been trying to fix this for days now. Using Xamarin and Visual Studio, I deleted the asset catalogs/media folder then I used app icon set creator to create the icons. I then went into info.plist under visual assets and hit add catalog, then dragged the icons into the slots.

No matter how many times I try this I get the same error.

Since this is xamarin, I was told I have to create an IPA file and upload using ApplicationUploader.  The file uploads but then I get an email from Apple with a build file error shown above.

Does anyone know how to fix this?


Missing Info.plist value - A value for the Info.plist key 'CFBundleIconName' is missing in the bundle

Open in new window

Need to know about how does it work?

I send a text message and I got a reply text message having some info., e.g., this is what's provided by Blue Cross Blue Sheild:
Text ID to BCBSIL (123456) to receive ID card information

how does this work and how I can configure it for my own use?

Please advise/guide/suggest ... thanks in advance.

How to use c4.5 classifier in android studio to process the  accelerometer and and gyroscope  sensor data from phone.
Hi there,
I need a sample application to build off to accomplish the following:
Scan a ticket that has a QR code.
As the ticket gets scanned add it to a datagrid or listbox (doesn't matter)
Once all the codes are in this data repository and on button click stores it on a database.
I don't expect to someone in here write something from scratch this escenario. But if you have seen something that can get me ahead on things I will greatly appreciate it.
If you have an idea of an aspx app or windows
Can someone guide me to making a simple application on android wherein the screen is blank and everytime someone touches the screen a small rectangle is drawn on and then erased the next time.
Hi Experts,

Iphone Cordova App. I'm getting a location request every time the app loads how do i get rid of it.

"var/containers/Bundle/Application/....www/index,html@ Would like to Use your Current Location.

When the app installs the correct location alert, followed by this one, then this one every time the app opens?



Smartphone Programming

Smartphones run using a variety of operating systems -- Android, iOS and Windows Mobile most commonly -- and an even wider variety of programming languages, including Objective-C, Java, Visual C#, C++ and .NET, not to mention HTML5 and JavaScript, and cross-platform frameworks such as PhoneGap.