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

Every time that a user with a Samsung Galaxy S8 phone enters an area that has a Comcast Wi-Fi cable modem she is always taken to a webpage on her cell phone and prompted to sign in to connect to the Wi-Fi network.

This user is a Comcast subscriber at home but doesn't want to be interrupted with what she is doing on her phone or by receiving beep notifications that a Comcast Wi-Fi network is available.

What can be done to disable these types of notifications?

Or what can be done to save the user's Comcast logon username and password within the phone so that every time that a Comcast Wi-Fi network is within range the user's Galaxy S8 phone will automatically connect without prompting the user to manually sign on?
0
Free Tool: SSL Checker
LVL 9
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Hi,

I'm currently looking at building a small basic app that a few of my customers are looking for, however they all want it as their own unique app so I will need to whitelabel each release from one core set of code, instead of managing several different sets of code / apps.

All companies will have the exact same app features (which are very basic), however I will need to change the 'logo', 'app name' and 'main UI color' for each release.

Swift / iOS and Android Studio seem to have their own 'Whitelabel Management' feature so that you can have one code base and release variable releases from the code base.

So, you build one core app, and then you can release different builds with the variable settings.

QUESTIONS
01 - Has anyone ever used this approach before, and if so do you have any advice?
02 - Is anyone aware of any software (outside of Swift and Android Studio) that will manage code like this, as I might go the Hybrid approach with React Native.

Thank you in advance for your help.
0
Hi,

moto 4g plus android makes noise while taking photo. how to mute while taking photo. please advise
0
Hello,

I made an app in Delphi Seattle.
The app sends an email to the user.
For this I deploy libcrypto.so and libssl.so.

Interestingly so far it worked well under Android 5 and 6 too, but now I noticed that it works well only with 5 but not with 6 and 7,

The error message is:

Error!
[EldOSSLCouldNotLoadSSLLibrary]
Could not load SSL library.

I read that starting with Android 6 Marshmallow, Google no longer supports OpenSSL on Android.

The question is what should I do so as the Android 6 and 7 users would get my email.

Thank you very much.
0
hi,
how to copy photos from moto 4g plus phone to windows laptop without using APPs which are not dependable. I like to view all the wats up etc photos, files received back up ones i needed and delete ones not needed after connecting to laptop similar to how i used to do earlier with samsung phone. please advise
0
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.
0
* 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.
     https://stackoverflow.com/questions/4797050/how-to-run-process-as-background-and-never-die
0
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 https://www.youtube.com/watch?v=hr6Xw9JPQe8 - 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.

Thanks.
0
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
0
i am going to install apk through web silently.

i can not use adb.

please help.
0
Want to be a Web Developer? Get Certified Today!
LVL 9
Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Hello

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) : http://www.cisco.com/c/en/us/about/cisco-on-cisco/collaboration/tail-end-hop-off-web.html

Is this possible using a mobile app? I've seen some solutions like the below but interested in people's thoughts

http://btsmartnumbers.com/solutions/enterprisemobile/

http://moviuscorp.com
0
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
0
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
0
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>
      </style>

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

                         <Switch android:id="@+id/toggleMode"
                                                   android:layout_width="wrap_content"
                                                   android:layout_height="wrap_content"
                                                   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.
0
i have this Json Data [a link](https://itunes.apple.com/jo/rss/topfreeapplications/limit=50/json)

and i parsing it like that

14269634_1770297169877373_1088045603.png


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

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


14341549_1771200553120368_1517035075.png
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 = "https://itunes.apple.com/jo/rss/topfreeapplications/limit=50/json"; 
RequestQueue requestQueue; 
private RecyclerView.LayoutManager mLayoutManager; 
public ImageListFragment() { 
} 
@Override 
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { 
return 

Open in new window

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

java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.client.o com.google.android.gms.ads.i.a' on a null object reference 09-13 09:13:07.220 14820 14820 E AndroidRuntime: at dancam.com.chords.ChordsList.b.a(Unknown Source) 09-13 09:13:07.220 14820 14820 E AndroidRuntime: at dancam.com.chords.ChordsList.g.onClick(Unknown 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";


@Override
public void onCreate(Bundle b){
    super.onCreate(b);
    setContentView(R.layout.chord_layout);

    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(R.id.chord_banner);
        AdRequest adRequest = new AdRequest.Builder().build();
        chordBanner.loadAd(adRequest);
    }

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

Open in new window

0
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 = "http://www.praiseserver.com/churches/lakewood/tv/" & listTV.getItem(i);
  Video1.src = "http://www.praiseserver.com/churches/lakewood/tv/" & listTV.getItem(i)
  Video1.play()
'  frmMain.show()
'  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 = "http://www.praiseserver.com/churches/lakewood/scripts/tv.js"
  head.appendChild(newScript)
End Function

Function processDataTV(s)
  listTV.deleteItem("all")
  'This function is called by the .js file which is loaded.
  data=Split(s,",")
  'Textarea1.value=""
  For i=0 To UBound(data)-1
    'txtAnnouncements.value=txtAnnouncements.value & data(i) & vbCRLF
    listTV.addItem(data(i))
    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.
tv.js.js
server-screen-shot.png
0
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!
0
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.
0
[Webinar] How Hackers Steal Your Credentials
LVL 9
[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

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:/exampleurl.net/restapi/Handler.ashx";
    String cnoKey = "com.example.app.saveCredentials.cno";
    String aliasnameKey = "com.example.app.saveCredentials.aliasname";
    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;
    @Nullable
    @Override
    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(R.id.tableLayout1);

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

Open in new window

0
Hi, My Samsung s4 mini was stolen. I tried a program: Androidlost.com 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?
0
My smartphone was stolen at a party
0
Hi,
  I tried to compile a project from internet

https://github.com/jgh-/VideoCore

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
Alex
0
who use my phone or where is my phone
0
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.
0

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.