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

Starter acoustic guitar for use with the Chord Buddy, Android smartphone, and sound amplification

I purchased this thing called the Chord Buddy https://www.amazon.com/gp/product/B00OABXOMG/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1 and am considering this option for a starter acoustic guitar https://www.amazon.com/Fender-FA-115-Acoustic-Strings-Instructional/dp/B0092V7WJ0/ref=sr_1_4?keywords=guitar&qid=1571024587&sr=8-4.

I don't want to spend a fortune but I would like to give myself some long-term options in case I actually enjoy it.

Is it possible to have this guitar interface with my cell phone in some way?

I want to make sure I am going down a reasonably flexible path before dropping another $150-$200 on a guitar, etc first.

Your thoughts and some guidance here would be greatly appreciated.
0
CompTIA Cloud+
LVL 13
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Hello

     Currently my android app uses apk on google play store to distribute my app.
 i want to switch to "app bundle"  (https://developer.android.com/platform/technology/app-bundle) approach instead of using apk approach.
i generated app bundle (.aab ) file successfully, my questions:
Q1) if i upload app bundle to google play store, does it allow to the existing users to just update the app instead of uninstalling current version of the app and res-installing latest version of app ( app bundle one)
please let mw know

Thanks,
0
hi am not able to see my design
mobile
0
I would like to create a resource that can be accessed on a smartphone (either via an app or a mobile-friendly website). The idea is for it be an educational resource, similar to an FAQ, except that all ansers are linked, so after one question is answered, there are then several (up to 5) other applicable questions, based on the answer to the previous question, that can be brought into the foreground in order to be asked and answered. So after the user reads an answer to one question, they can then choose which of the questions they want answered next.

The app will be used by the tutor, so the "questions" are actually what the child is likely to ask, and the "answers" are what the tutor will reply with.

Please see sketch in attached file. So the question being answered is at the top, the answer to that question is below, and then at the bottom are options for which question to have answered next, where the user slides the buttons left or right in order to bring to the centre the question want answered next. Then they tap the centre button to have that question answered. The text in the button then becomes the "Question" on the next screen. This gets answered, and then there are further question below, and so on...

So, my question to Experts Exchange is, what's the easiest way to achieve what I need? Is there an app development platform where I can create something like this relatively easily without coding knowledge? Or perhaps another type of use case (e.g. …
0
dear all

can anyone has a solution for the below error that occured in xamarin :
Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
here is a brief description for my case:
i have an activity and an adapter where this adapter 3 images and 2 labels
upon clicking on the image i am doing the below in adapter
if (!imageView4.HasOnClickListeners)
            {
                //Clicking on upload button
                imageView4.Click += async delegate
                 {
                   
                     var m_HolderID = "";
                     m_HolderID = m_ReferenceNum.ToString().Trim();
                   
                         Activity1 m_Activity1 = new Activity1 ();
                         await  m_Activity1.ResetImageClick(p_Activity, m_HolderID );
                        
                 };
            }

Open in new window


and in the activity below is the function ResetImageClick
public void ResetImageClick(Activity p_Activity, int m_StkTakeNum)
        {
            string m_Message = p_Activity.GetString(Resource.String.StkTakeReset);
            ShowToastMsg(p_Activity,m_Message);
        }
 public void ShowToastMsg(Activity p_Activity,string message, bool IsLengthShort = false)
        {
            try
            {
                Handler mainHandler = new Handler(Looper.MainLooper);
                Java.Lang.Runnable runnableToast = new Java.Lang.Runnable(() =>
                {
                    var duration = IsLengthShort ? ToastLength.Short : ToastLength.Long;
                    //    RunOnUiThread(() =>
                    //    {
                    Toast.MakeText(p_Activity, message, duration).Show();////SHOW MSG CANNOT BE USED INSIDE ASYN METHOD
                    //    });
                    //}
            });
                mainHandler.Post(runnableToast);
            }
            catch
            {

            }

        }

Open in new window

0
I'm trying to share a contact folder with users within my organization so that we can see them on our smartphones as well.  I've tried to following articles but still not working.  

https://support.microsoft.com/en-us/help/10157/sharing-calendar-and-contacts-in-office-365

https://support.office.com/en-us/article/Share-a-contacts-folder-with-others-CE5A40D1-BC9F-4F5D-A2AA-5EC388573821 

I created a contact folder and I set the up the permission for myself as Editor and then sent a share contacts email.  When I try to open the contact folder, it tells me “the folder you selected is not available”. “

Any ideas why it's not working?  I would use public folders but you see those on a smartphone.
0
Someone spoofing my number and calling another person with mortgage offerings and other services.  
The area codes and prefixes of my number and other recepient's number are always the same.  Last four digits are always different.  Both numbers are with AT&T carrier in US.

Anyone had experience how to deal with it?  
Any solution besides keep blocking them?  Can AT&T do something about it?
0
Since a couple of weeks, my smartphone, without any intervention of me, power off.
This happens several (between 5 and 10) times a day.
First I suspected the battery, and replaced it by a new one.
But the behaviour continues.
What shall I do to fix this ?
The smartphone is a Samsung S4 mini
0
I Got the app to post to my server ??? what I though would be more difficult... I what I need is to have the app to show the Geolocation changes on the screen ... I need to post longitude and latitude to the screen... I'm also sending Altitude and speed to server ... I can not assign  the longitude and latitude to a variable ... I also thought it may be a lazy load so I move the Geolocation function  prior to the "createLabble" still error ... How can I get the e.coor.latitude to print to label

var lat = Ti.UI.createLabel({
		top : 215,
		left : 40,
		text : latitude,
		color : "black",
		font : {
			fontSize : 10
		}
	});
	var Long = Ti.UI.createLabel({
		top : 215,
		left : 200,
		text : "longitude",
		color : "black",
		font : {
			fontSize : 10
		}
	});

Open in new window

function getLocation() {
	Ti.Geolocation.getCurrentPosition(function(e) {
		console.log(e);
		var latitude = e.coord.latitude;
	    var longitude = e.coord.longitude;
		
	});
}

Open in new window

Get this error
Script Error {
[ERROR] :      column = 19;
[ERROR] :      line = 32;
[ERROR] :      message = "Can't find variable: latitude";
[ERROR] :      sourceURL = "file:///Users/clayrichmond/Library/Developer/CoreSimulator/Devices/2185D8C3-E658-43EC-AE86-9AB1558DD5DE/data/Containers/Bundle/Application/AA37B7DA-55C2-47E1-8C23-6AF9F9E2FECB/tryAgain.app/app.js";
[ERROR] :      stack = "    at createTab(/app.js:32:19)\n    at (/app.js:9:26)\n    at global code(/app.js:168:70)\n    at require@[native code]\n 

Open in new window

0
I need to interface ionic ver.3 app with redis server for a realtime chat ,
We don't need all redis server command simply
- connect
- disconnect
- pub
- subscribe / un subscribe

we can use node_redis module
0
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 have just used RAD Studio Tokyo to complete my first program for Android. I have this program running well on my Amazon Fire.

There is one odd problem I am having with text. I am using Edit boxes for entry and display of numbers. Everything looks perfect at design time. But when I run it on the Fire, all of the numbers in the edit boxes are slightly cut off at the bottom as if they didn't quite fit into the edit boxes.

For a while I tried to make the edit boxes taller, but every time I changed the Height setting, it reverted to what it had been. I thought I had successfully made the edit boxes taller in the style designer. Apparently it reverted again.

It looks to me like the text should fit and so I suspect it might not be a matter of the text being too large for the edit box. Currently my Font is probably default, tahoma. I changed one Edit to Ariel, but they look exactly the same to me.

Currently the text is set to 28 and the height of the edit is 32. I would like to change this to 36. It won't let me change the height of the edit. I have text align set to center for both horizontal and vertical. I tried the other two settings for vertical. One moves the text up and now the top of the numbers are cut off. The other one lowers it and then there is even more of the bottom of the numbers being cut off.

I tried using a smaller font and that does fix it, when I get down to 24. But really I would rather have larger text in taller edit boxes.

How can I …
0
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/GeneratedPluginRegistrant.java:4: 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/GeneratedPluginRegistrant.java:18: error: cannot find symbol
    CustomTabsPlugin.registerWith(registry.registrarFor("com.github.droibit.flutter.plugins.customtabs.CustomTabsPlugin"));
    ^
  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 https://help.gradle.org

BUILD FAILED in 2s
Finished with error: Gradle task assembleDebug failed with exit code 1

Open in new window

0
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.
0
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.
0
Hello,

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,

Vishal
0
Hi,

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?

Thanks,
Robbie
0
Hi,

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 https://docs.nativescript.org/core-concepts/ios-runtime/how-to/BackgroundExecution 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.
0
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 "com.google.android.gms:play-services-gcm:11.+"**
    compile "com.android.support:support-v4:24.1.1+"
    compile "com.squareup.okhttp:okhttp-urlconnection:2+"
    **//compile "com.google.android.gms:play-services-gcm:+"**
    *compile 'com.google.firebase:firebase-messaging:10.2.6'
    // SUB-PROJECT DEPENDENCIES END
}
*apply plugin: 'com.google.gms.google-services'

Open in new window

0
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.
0
CompTIA Network+
LVL 13
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

I need to factory reset MC3090 with Win CE5 and MC3190 with Win CE6.
Would anyone have the image files?
Thanks..
0
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                                     
    printf("AT+CMGR=3<CR>\n\n");       

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

Open in new window

0
How to send message in whatsapp without open whatsapp apps using android?
0
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
0
How to identify editing on AMR file? Is there any softwares for that the phone call recorded was edited or not!
0
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);
                roundDrawable.setCircular(true);
                p_avatar.setImageDrawable(roundDrawable);

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.

avatar-circle.png
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?
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.