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

hi everyone I'm working on a small project  (android app) when a user creating an account then it automatically get current sim card number tanx.
On Demand Webinar: Networking for the Cloud Era
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.


My android moto 4g plus phone hundres of browser windows running in background. How do we close all those browser windows or tab instances in one stroke.  I am not able to close all one by one which is taking long time. what are other tips to improve phone performance.
please advise
hi i have a sansung j--106 and i want it will start the app very specific app in the reboot how can i do that ?
can you please advise
best free / cheap way to copy files from windows 10 pc to iphone 7.

i have about 100 gb mp4 video movie files to transfer

* We have a product Ccure[/b][/b] Anti-Theft which is not working in oppo company phones background we are trying hooting on wrong attempt.
            we have perform certain process like:
    1. we exclude this app from battery optimization and power saving.
    2. We exclude  also from data saving.
    3. App process management and given all permissions .
    4. added to app auto startup (Startup Manager)
    5. Also prevented app to be killed while releasing background app memory

* we have also referred to certain links to resolve our problem but did not.
reference link.
Looking for general direction. I'm researching how one would develop a phone app with following requirements. IOS and Android. Or only IOS if that would be easier as a minimum viable product.

I'm a programmer (VB, SQL, ADO, ASP) .... but, a phone app newbie.

My Vision
The app would playback music of approx 3 mins long, that has (say) 5 multi-tracks - up to 4 vocal tracks and 1 track of backing instruments.
A graphic of the vocal parts will scroll across the screen (in landscape). It will look something like this.
Screen will look like this
The horizontal bars represent the notes in a 3 part harmony. The screen will scroll as the music plays. (eg. as in the app Anytune Pro)

It will be possible for the user to Mute/Unmute each track by pressing a button, as the music in playing. (eg. as in the app Sing Harmonies see at 2:10 in this video - however, in that app there is no graphic of the notes)

The user will be able to sing along with phone mic and hearing through headphones. (eg. as in the app Acappella). He/she can learn from the playback, then mute the part, and sing along with the other parts to practice.

Question: where should I look for a basic entry into learning about developing this kind of app? It involves music playback, individually mutable mutitracks (streamihg or downloaded), scrolling visual, use of mic.

I have been trying to follow a number of youtube videos instructing on the installation of cordova developmet environment on windows 10.

All time i get some sort of error, in trying to the the hello world example. So clear everything down.

Does anyone have a concise set of instructions in sequence to install this from scratch, im not interested in the android studio as will be using as text editor.

Many thanks
i am going to install apk through web silently.

i can not use adb.

please help.

We came from an environment where we gave our users Blackberry devices since they needed to make international calls. We have a corporate deal with most carriers we were in.

We want to switch to a BYOD model, but this calling aspect is proving difficult to solve.

I had an idea though -

Let's say UserA is in UK and wants to call UserB in the USA. Standard phonecalls will connect UserA to UserB directly, which is expensive.

However - as an organisation, we have a corporate voice network that connects UK to US. Is it possible for a solution there UserA calls UserB, but the call actually routes

UserA > UK Corporate Phone system > US Corporate Phone system > UserB

That means we only need to pay the carriers local calls?

I believe this is called TEHO (Tail End Hop Off) :

Is this possible using a mobile app? I've seen some solutions like the below but interested in people's thoughts
Say, I'm using blackberry Classic Q20 and trying to cope with its low battery life. Kindly recommend a good quality portable battery pack for it.  One or two brands and particular model numbers would be appreciated. If possible, a make and product that is available in South Africa. Thanks
On Demand Webinar - Networking for the Cloud Era
On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

I have built a simple Android application but no longer want to target Android V4 and therefore I removed the references to the AppCompat V4 an\d AppCompat V7 libraries to clean up my App.  I then noticed that my SwipeToRefresh activity would no longer build.  Turns out this is in the AppCompat V4 package.  Problem is I don't seem to be able to add that package again as it says there are no compatible assemblies - I guess that thisis because I have set my project to Compile using Android 5 and the minimum Android to target as V5.  Any way I can get a SwipeToRefresh under Xamarin without using the appCompat libraries?  These libraries seem to cause all sorts of style issues and I have had problems with them before so would rather not use them if it can be avoided
I have a fairly basic Android app developed using Xamarin.  It now targets and is build against Android 5 and I have removed all references to such things as appCompat V4 and V7 libraries.  application styles is set as

      <style name="AppTheme.Base" parent="@android:Theme.Material.Light.DarkActionBar">
            <item name="android:windowNoTitle">true</item>
            <item name="android:windowActionBar">false</item>
            <item name="android:windowBackground">@drawable/background</item>

I want to use a 'Switch' in my layout and have implemented it as

                         <Switch android:id="@+id/toggleMode"
                                                   android:textOn="Day Rate"
                                                   android:textOff="Piece Rate"/>

Trouble is it just appears as a simple slider with no text and nothing like the examples I have seen where the text is shown and it actually looks like a switch with the 'pressed' part of the switch highlighted.  How can I style this button to look like the examples I have seen?  I assume it is the material theme which is causing the issue but I have changed themes and it still appears the same.
i have this Json Data [a link](

and i parsing it like that


but when i click on any item i get all image into im:image , like this

i wanna do like this ,, when click for example > imo ,, i get just image for imo ???

the question is how can i solve this problem ?
if anyone have any idea or solution please tell me iam waiting !!
hope the problem is clear and this is my code

this is my module :

public class AppShowModule 
private List<String> Allimage = new ArrayList<String>(); 
public List<String> getAllimage() { 
return Allimage;} 
public void setAllimage(List<String> allimage) { 
Allimage = allimage;} 

Open in new window

this is my Fragment
public class ImageListFragment extends Fragment { 

List<AppShowModule> appShowModules; 
List<AppShowModule> imagesModule; 
RecyclerView AppRecyclerView; 
RecyclerView.Adapter imageRecyclerViewadapter; 
List<String> imageUrls; 
String feedKey = "feed"; 
String entryKey = "entry"; 
String imageKey = "im:image"; 
String labelKey = "label"; 
String jsonUrl = ""; 
RequestQueue requestQueue; 
private RecyclerView.LayoutManager mLayoutManager; 
public ImageListFragment() { 
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { 

Open in new window

I'm getting this strange NPE when launching a specific activity in my android App.

java.lang.NullPointerException: Attempt to read from field '' on a null object reference 09-13 09:13:07.220 14820 14820 E AndroidRuntime: at Source) 09-13 09:13:07.220 14820 14820 E AndroidRuntime: at Source)
As you can see from here the source seems to be unknown.

This is my code for the Activity causing the NPE:

public class ChordActivity extends Activity {
ViewPager viewPager;
PagerAdapter adapter;
TextView name, note;
CirclePageIndicator _indicator;
ImageButton sound;
boolean isPremium;
static final String PREFERENCES = "prefs";

public void onCreate(Bundle b){

    SharedPreferences settings = getSharedPreferences(PREFERENCES,0);
    isPremium = settings.getBoolean("status", false);

    /** gestisce le pubblicita */
    if (!isPremium) {
        MobileAds.initialize(getApplicationContext(), "ca-app-pub-6723047396589178/2515152442");
        AdView chordBanner = (AdView) findViewById(;
        AdRequest adRequest = new AdRequest.Builder().build();

    Intent intent = this.getIntent();
    Bundle bundle = intent.getExtras();
    final Accordo selectedAccordo = 

Open in new window

I need guidance on how to populate a listbox of MP4 videos located on my personal web server. I have uploaded a screenshot of url and videos as well as the .js I attempted to use from NSBASIC sample code. All webserver files are in mp4 video format.
Here is the code that I cannot get to function.

Function listTV_onclick(i)
  'location = "" & listTV.getItem(i);
  Video1.src = "" & listTV.getItem(i)
'  ChangeForm(frmMain)
'  Dim itemText
'  If TypeName(i)="object" Then Exit Function
End Function

Function frmTV_onshow()
  head = document.getElementsByTagName("head")[0]
  newScript = document.createElement("script")
  newScript.src = ""
End Function

Function processDataTV(s)
  'This function is called by the .js file which is loaded.
  For i=0 To UBound(data)-1
    'txtAnnouncements.value=txtAnnouncements.value & data(i) & vbCRLF
    location = listTV.getItem(i);
  End If
End Function

Once listbox is populated and video file is selected, I would like to play video file using the NSBASIC video control on a separate form.
Please view file attachments.
The phone is perfect honestly accept for its fatal flaw which after a short time becomes a major issues: the expandable memory via SD card is unusable.

no matter what the brand - no matter what the size after a short time (from minutes to a few days) any SD card that is placed in the phone will become corrupt and you will be asked to format it - this obviously kills any files, Vids, pictures or apps you decided to put on the SD card!

The solution - I would like to root the phone so i could gain access to the miscellaneous files folder so i could delete un-needed files on the phone and create free space.

I have been researching it and this seems to be a very hard phone to root.

I have attempted samsung keis 3 and iroot 1.8.6 but these do not root the phone and therefore i am unable to gain access to the miscellaneous files folder so i could delete un-needed files on the phone and create free space.

I also tried the root king 4.6 android app and that didnt work to root the phone either!

Can someone please help me root this phone or point me in a direction that will make my phone usable again!

Thank you in advance!
I want to develop 300 similar apps(For example, we consider 300 clubs for each club we need to create an app. These 300 app will follow the same structure but it differs only by their club logo and their app colour theme). Does the play store allow to upload all these apps?. Just wondering whether this brings any violations since everything has the same pattern.
I am new to Android development. I removed unnecessary code here, but the call to the Rest API has no issues. I have a fragment here that has a tablelayout within. A call is made to a Rest API in the async task, which is then supposed to insert the retrieved data into the table and refresh it. The problem is, that the table does not display the data after it is received. Can someone please point me in the right direction into how to resolve this? Thanks!

public class TransactionsFragment extends Fragment {
    final String urlString = "https:/";
    String cnoKey = "";
    String aliasnameKey = "";
    SharedPreferences prefs;
    LayoutInflater inflaterGlobal;
    ViewGroup containerGlobal;

    List<String> recids;
    List<String> folders;
    List<String> whotos;
    List<String> directions;
    List<String> documents;
    List<String> thedates;

    View rootView;
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        View rootView = inflater.inflate(R.layout.fragment_transactions, container, false);
        inflaterGlobal = inflater;
        containerGlobal = container;

        TableLayout ll = (TableLayout) rootView.findViewById(;

        prefs = getActivity().getPreferences(Context.MODE_PRIVATE);
        String aliasname = 

Open in new window

Hi, My Samsung s4 mini was stolen. I tried a program: which says some GPS was successfully installed in the phone. When I looked and try located don't get it. I spend some time and there was a option to type the last location, after, I typed next and I got a next location very close where the robbery took place but  I can not remember what I press. I have the original box with the FCC ID number and I have my google account. With that info can get the phone back?
Free Tool: Site Down Detector
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

My smartphone was stolen at a party
  I tried to compile a project from internet

however, when I compile in real device, it shows 3 errors.
1.  undefined symbol in armv64 (so I remove this)
2. the following

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_VCSimpleSession", referenced from:
      objc-class-ref in ViewController.o

I have no idea how to get rid of this error.  Please help
who use my phone or where is my phone
Hi ,

How do i achieve android app to pick one sentence randomly from a set of sentences and push that quote as notification message. I want user to click ok to clear message.

Please kindly post code.

Many thanks in advance.
I'm making a gmail account and gmail wants me to give them a phone number for SMS to activate it.

I don't have a phone number to give. Is there a way to bypass this?

Are there any FREE online numbers that will work with activating gmail? I've tried a few online, but, they don't work.
Can't download any apps. RPC error codes for Samsung Galaxy S captive.

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.