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 have two moto 4g plus phone.

One phone is charging and working well.

other phone does not charge when i connect to charger.
i thought of swapping battery but that is too complicated to open battery in moto 4g plus which has bunch of small screws underneath battery making it hard to remove

when i connect to charger i see some times blinking light some times i do not see that blinking light as well
How do i trouble shoot or get it repaired?
Please advise
how to listen to podcasts on my android phone

i have one itune podcast with name say 'xyz'

can i listen above podcast in androind phone free?
where i can find  list of various podcasts on business, selling, enterpreneurship or technical topic etc?
how to subscribe to them

please advise
Javascript routine works on PCs but not on touchscreen phones or tablets:

When I touch the canvas, the line is drawn halfway down the canvas instead of under the finger. If only half the canvas is displayed on the screen (the bottom half is below the screen) then the line is drawn under the finger. On a PC with a mouse, it works fine.

Here is a link to the webpage modified so it doesn't send data to me:

Here is the code:
/* © 2009 ROBO Design

var imageData, context, pixels;

function clearCanvas()
	context.putImageData(imageData, 0, 0);

function checkFields()
	var themessage = "Please complete the following fields:";
	if (document.form.ptname.value=="") 
		themessage = themessage + "\n     Patient's Name";
	if (document.form.dob.value=="") 
		themessage = themessage + "\n     Birthdate";
	//alert if fields are empty and cancel form submit
	if (themessage != "Please complete the following fields:") 
			return true;
			return checkdate(document.form.dob.value);
function checkdate(input)
	var validformat=/^\d{2}\/\d{2}\/\d{4}$/ //Basic check for format validity
	var returnval=true
	if (!validformat.test(input))
		alert("Invalid Date Format. Format: (mm/dd/yyyy) \nPlease correct and submit again.")
	{ //Detailed check for valid date ranges
		var monthfield=input.split("/")[0]

Open in new window

i bought two 128gb mini mocro sd card one from sandisc other from patriot

when i insert card to laptop to check size by right clicking on it and proprties shows 119gb for sandisc card

when i insert card to laptop to check size by right clicking on it and proprties shows 119gb for patriot card

i wonder why 128gb they do not show
also why both show different?

any place i can put price alerts to get deals email to my gmail
please advise
Javascript routine works on PCs but not on touchscreen phones or tablets:

Zakaria Acharki helped me at with a webpage I designed in 2012 to get it partially working on touchscreen phones and tablets.

Here is a link to the webpage modified so it doesn't send data to me:

But this routine which works great with a mouse on a PC does not work on phones or tablets:
function clearGray()
	var imageData2 = context.getImageData(0, 0, 700, 643);
	var newPixels =;
	for (var i = 0, il = pixels.length; i < il; i += 4) 
		if((pixels[i] == 255 && pixels[i+1] == 204 && pixels[i+2] == 153) 
		|| (newPixels[i] > 235 && newPixels[i+1] < 150 && newPixels[i+2] > 75 && newPixels[i+2] < 110))
		   newPixels[i] = pixels[i];
		   newPixels[i+1] = pixels[i+1];
		   newPixels[i+2] = pixels[i+2];
	context.putImageData(imageData2, 0, 0);
	context.fillStyle  = "#CDCDCD";
	context.fillText("Referred pain",275,600);

Open in new window

This routine deletes the markings not on the body image when mouseup is fired.

This is what it looks like on the pc after swiping the mouse across the entire image: desktop imageThis is what it looks like on my phone after swiping my finger across the entire image:phone image
So on the phone, lines drawn on the image are not deleted outside of the body image.

What do I need to do to get this to work on touchscreens?
This webpage is not working on phones/tablets without a mouse:
Note: I modified the above webpage for this question so it does not send anything to me. Otherwise it works the same as the real page.

The webpage displays ok (not great) on my phone and tablet but I cannot draw on the image with my finger without a mouse.

Any ideas on how to fix this?

Here is the code:
<html lang="en">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
	<title>Pain Diagram</title>
	<style type="text/css">
		body {background-color:#CCFFFF;} 
		#container { position: relative; }
		#imageView { border: 1px solid #000; }
		.button {
		  background-color: #004A7F;
		  -webkit-border-radius: 10px;
		  border-radius: 10px;
		  border: none;
		  color: #FFFFFF;
		  cursor: pointer;
		  display: inline-block;
		  padding: 5px;
		  text-decoration: none;
		  -webkit-animation: glowing 1500ms infinite;
		  -moz-animation: glowing 1500ms infinite;
		  -o-animation: glowing 1500ms infinite;
		  animation: glowing 1500ms infinite;
		@-webkit-keyframes glowing {
		  0% { background-color: #B20000; -webkit-box-shadow: 0 0 3px #B20000; }
		  50% { background-color: #FF0000; -webkit-box-shadow: 0 0 40px #FF0000; }
		  100% { background-color: #B20000; -webkit-box-shadow: 0 0 3px #B20000; }

		@-moz-keyframes glowing

Open in new window

i have android app with bunch of videos in it.

how to access the same app in windows 10 laptop
please advise
Hi Experts

Could you point a way to automatically transfer a telephone contact list from a smartphone to another ?

The last time I shop a new smartphone someone transfered it by via bluetooth, I guess.

The new smartphone is using Android 8.

Thanks in advance!
I hv a few very active wasapp groups tt I often housekeep most of the messages so that the 30GB phone storage dont run out.  however it takes a long time to select one by one the hundreds of messages: is there a way to do shift -select like in Windows?

I cud do it by connectg phone to PC but usually while waiting for buses or in the queue, I do this housekeepg
any good android or iphone with 256 gb internal memory and good ram around 350$ budget in usa market? looking for unlocked phone without any contract obligations

Please advise
any android app that plays .mpg video files which is free
please advise
mx player i tried which did not work
hi i have 13 hour .mpg video file which i am trying to play in my phone which is not working

how to conver tthat to say mp4 which easily play in my anroid phone.
i am using mx player to play videos on phone

any free good tool for this conversion

please advise
I like to sell my moto 4g plus current phone.

any good genuine sites where i can sell my phone to get reasonable amount.

please advise
looking for cheap and best phone which has lot of memory like 128gb and good ram like 4gb

any suggestions where to see and compare varous features and costs etc. that are available in usa markets

i also like to put 400 gb mini micro sd card (i think that is maximum available in market now right?)
please advise
yesteray i put 256gb mini micro sd card (with about 220gb content) to my motorola 4g plus below phone

i played one video and my phone heating up a bit.

Do i not supposed to load that big micro sd card to my phone.

what is the maximum mini micro sd card that i can put safely without overheating etc issues

please advise

Referring to above unfinished EE thread,

will anything break if I move Whatsapp photos/images from Phone to microSD & if needed,
later move the photos/images back to the phone?

Would like to clarify what Tim Green mentioned below: I could not locate it.

"Just because it doesn't cache the email, it still save info about the mailbox that will be needed for connectivity.
The move process may be a bit different depending on the android device but you can do it like this for the most part:

1.Navigate to settings on your phone
2.Tap Apps.
3.Select an app you want to move to the microSD card.
4.Tap Storage.
5.Tap Change if it's there. If you don't see the Change option, the app cannot be moved.
6.Tap Move. "
After installing MobilePass (a 2FA/OTP app for use with Checkpoint
VPN), it has required my Android phone to enter a PIN : previously
I just need to swipe the screen.

The issue is: since MobilePass app is installed, all my various
Whatsapp groups don't give a sound/alert even if I set custom
notifications.  However, the new whatsapp messages will still
pop up (if I set a custom notification).

I would like the sound notifications for new messages at set
by custom notifications.

My Android Note 4 is not managed by MDM
On my 32GB Galaxy Note 4 (appears to have 26GB nett only from Win Explorer) :
see attached.  How is the "missing" 6GB accounted for?

I'm running MS Outlook on this Note4: when there's is huge emails in my Inbox,
does it  "sync" down to the Note4?  If so, how can I make it such that it take
Outlook emails take the space on the microSD card & not on the phone?
If this can't be done, is there any other email client app that could sync from
our MS Exchange 2016 but store the emails in microSD : pls recommend &
provide steps to configure
Lately, when I have been taking pictures with my iPhone X some of the pictures have been captured as movie files (.MOV) instead of just regular pictures (.JPG files).

How can I change this so that when I use the camera app on my iPhone it will only capture picture and won't capture movie files?
Outlook (and smartphone email apps) show a NAME, instead of a specific email address on incoming email.  This seems to be a huge spam risk, and I'd like to set Outlook to show the exact sender address on incoming mail. Anyone know how to do that?
  I get several emails a week from folks asking me if this message from "The Boss" is real or even to help them fulfill the bogus request, and I write them back asking them to compare the bogus email address to the boss' REAL address and disregard the request.  I feel if they saw the incoming email was from we could avoid some wasted time and risk...any ideas or fixes are appreciated.
After my kid helped me install Facebook, Messenger &
a few other apps (CamScanner etc), now I can't share out
my Whatsapp images via Gmail anymore:

After I selected an image in Whatsapp, select "Share", will
get to the 1st attachment which used to have an option for
Gmail but now it doesn't show the "Gmail" option anymore.
Instead when I tap on "Email" will get to the 2nd attachment's
screen which says "No email was set up" : previously it was
set up & there.

Hmm, I think I uninstalled Gmail app & disabled a couple of apps
 when I was low on storage space : could this be the reason?

Also, I've been getting beeping notifications sounds though there's
no new Whatsapp nor SMS messages coming in: could it be one of
the new app (Facebook, Messenger, ... ?)
My company is paying for me to go to training for mobile app development for Android and iOs.  I am in the IT dept 15 years manager and I have basic programming experience.  Can someone recommend a hands on course I can take.
I want my Verizon Android phone to remain SILENT when at work unless I get a call or text from Mimecast that the email server is down

What app/etc do you recommend to make the above work ?

Possible Solutions:
android 7
automatic call recorder
free version
app version 5.42.1

recordings were good then I noticed last recording was at a low volume
Maybe in a version upgrade
volume is lower which is very difficult to hear
If I pay for paid version, do you think this will fix.
airbnb app for android 7 is not showing notifications.
Previously I got notifications on top of phone screen when I got an incoming chat message.
Now I have to click on app every few hours to see if a new message arrived.
There are many places in android that it could have been disabled.

settings->apps->airbnb->Notifications-> set as priority.
settings->apps->airbnb->apps that can appear on top->allow permission

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.