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 am having this error in android
android
0
Announcing the Winners!
LVL 13
Announcing the Winners!

The results are in for the 15th Annual Expert Awards! Congratulations to the winners, and thank you to everyone who participated in the nominations. We are so grateful for the valuable contributions experts make on a daily basis. Click to read more about this year’s recipients!

We have a proprietary and patented video processing software that we license to others and we use on our own sites.  A couple or our sites/apps get approximately 3 million page views per month and are on the verge of profit.  The plan is to expand/scale the sites we own in the next six to twelve months.  This scaling presents us with a opportunity to update everything in our system.  Even though they were launched only a few years ago, so much has changed that we are forced to look at the whole architecture from hosting to platforms and development environments, etc.  We are truly a garage startup and have to make the most of limited resources while trying to present a high quality solution.  It is difficult and stressful.  We cannot afford to get this wrong thus my appeal to the many experts here. We are starting with a clean slate and very much need to hear from experienced professionals to help us put together the best possible system from the top down.

Server/website -  up to now we have used dedicated hosting.  It appears that VM is now a good and much less expensive option.  I am OK with that.  In speaking with other insiders it seems that more and more people are going toward utilizing Azure or Amazon for hosting.  We do have licensees in Europe who must be served by hardware in Europe due to latency issues.   I think Azure or other allows a much quicker provisioning of another instance in whatever geographical area needed, that we can then customize …
0
I've been having trouble returning an Id from my listview to use for deleting a record.  I have a SQLite table that feeds a list adapter.  Here is my class:
public class EOMCountsheet
    {        
        [PrimaryKey, AutoIncrement, Column("-id")]
        public int Id { get; set; }
        [MaxLength(6)]
        public string Location { get; set; }
        public int InventoryCount { get; set; }
        public string Part { get; set; }
        public string UserID { get; set; }
        public string UniqueStamp { get; set; }
    }    

Open in new window


Here is the Adapter and _listView1.ItemClick:
            string path = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "CountSheet.db3");
            var tablelistout = new SQLiteConnection(path);
            var list = tablelistout.Table<EOMCountsheet>().OrderByDescending(t => t.Id).ToList();
            var data = new List<string>();

            foreach (var listing in list)
            {
                data.Add(listing.Id + "  " + listing.Part + " - " + listing.InventoryCount);
            }

            ArrayAdapter<String> listAdapter = new ArrayAdapter<String>(Activity, Android.Resource.Layout.SimpleSelectableListItem, data.ToArray());
            listAdapter.NotifyDataSetChanged();

            //_listView1.Adapter = listAdapter;
            //***************************************************************************************************

            _listView1 = EOMScanFragment.FindViewById<ListView>(Resource.Id.listView1);

            _listView1.ItemClick += (object sender, AdapterView.ItemClickEventArgs e) =>
            {
                ///GRAB ID HERE AND PASS TO DeleteRow()
                var item = _listView1.SelectedItemId;
                

            };
            _listView1.Adapter = listAdapter;

Open in new window


Could someone please give a little guidance?  Thanks in advance!
0
This is probable a very naive question but i am just getting into development for the android phones. Is there a way to create a generic application in android studio to accomdate all andriod phones?
0
I have a json file "inventory.json" file that I am trying to show in an xamarin android listview but am having trouble understanding the adapter.  Here is my code which is throwing this error:  Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[ProfilesScan.Model.SelectInvItemlist]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.

public class EOMSelectItemActivity : Activity

    {
        public Button _btnSelect;
        public ListView _listView1;
        public TextView _txtFilter;
        public string jsonString;
        public string inventoryitems;
        private ArrayAdapter<string> adapter;
        public string items;
        private List<string> invItems;
                

        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);
            SetContentView(Resource.Layout.EOMSelectItem);

            _listView1 = FindViewById<ListView>(Resource.Id.listView1);
            

            string filePath = Path.Combine(FileSystem.Current.LocalStorage.Path + "inventory.json");

            invItems = new List<string>();
            invItems.Add(items);

            var jsonContents = System.IO.File.ReadAllText(filePath);
            items = JsonConvert.DeserializeObject(jsonContents).ToString();

            ArrayAdapter<string> adapter = new 

Open in new window

0
Hi, getting this error in Android Studio.

 error: failed linking references.

I have no idea what to look for next. Please help
0
I'm looking for a 64bit smartphone with removable battery & microSD slot.
Any Oppo models have this?

if none of the Oppo models have the 2 features, I can consider any other
models as long as the internal capacity is 64GB or more.
0
I am demonstrating the use of the Instant Pot as a social and weight loss tool for a group of retirees, mostly women.

I and some others in the Instant Pot community view the Instant Pot as a potential way to bring people together around food in a safe, healthy, and affordable way.

The missing piece as I see it is a web-based tool that will allow two people to schedule a meal together, much like a meeting would be scheduled in an office.

It should ideally be as easy as picking up your smartphone to find either a new or existing person or persons to enjoy a fast and healthy meal with.

Any suggestions in locating the right free web-based tool to adapt for this process are greatly appreciated.
2
Dear users,
assume that we have a 10:00 minutes conversation audio file and that you are suspecting that this file was cutted from the minute 5:00; in other words, the person who gives you tath file has probably used an audio editor to delete the first 5 minutes. So, this file is not created with i.e. a smartphone voice recorder but by an audio editor program. How can I check it? Is a audio-spectrum or a particular audio analyzer that can check this?

Thank you very much!

PS: the problem is not, a central part is cutted and the first and last are merged (in this case is easy check a discontinuity of spectrum). The problem is that, the entire start part is cutted.
0
I'm looking to control shades via Google Home smartphone software?

I found this on Amazon for under $100 and it says it's compatible with Google Home.

However, I really don't have any idea if this is the best place to start.

https://www.amazon.com/Internal-Re-Chargeable-Automatic-Motorized-Compatible/dp/B07RWTYDXG/ref=sr_1_6?keywords=google+home+automatic+shade&qid=1558928368&s=gateway&sr=8-6

What's really necessary for this?

Does Google also offer a way to control TV's also through a phone app?
0
Amazon Web Services
LVL 13
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

I'm creating an Android app in which there is a listeview and the search is filtered through an EditText.

What I want to know is how does Instagram (for example) show the preview of searches divided into categories?

Let me explain better, if on Instagram I look for example "London" I will come out in a list of fields where for example there is the city icon and with the word "London" next to it, underneath there is a field with "#london" written on it and another field with "London" and the user's photo below.

What are the names of the searches divided into categories or sections in "Programming"?

I would like to do it in my App but the problem is that I don't know how to call this thing.

If I have a listview and want to filter it through a search, while I type the word "London" it immediately shows me the Items with the same name as "London", instead I want a search like that of Instagram where the results are filtered first categories and then when you click on the category it shows you the results.

What is the name of this practice?
Screenshot_20190512-105039_Chrome.jpg
0
Sorry if I didn't post the code, but my question is purely theoretical.

I am creating an android app, where in the Login activity the login credentials are entered by the app automatically (after an authentication via SMS) in the EditText GONE and are sent to the server.

Is it a problem if the php code is vulnerable to SQL Injection?

Would some attacker be able to manipulate the hidden fields of my application?
0
What methods (bluetooth, custom software, etc) do you
recommend so I can mirror my Android CELL Phone screen
on a Windows 10 Pro PC that cost under $100 ?

Maybe
 1. something already BUILT-IN or
 2. https://www.howtogeek.com/257023/how-to-easily-mirror-your-android-phones-screen-on-your-pc-with-vysor-for-chrome/ or
 3. etc ?
0
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.

Thanks.
0
Hi Experts

Could you point how to rescue some folders/ files (documents) I unadvertedly deleted from my Android  8.0.0 device?

Celular Model:vSM-J400M

Thanks in advance!
0
We are Exchange 2013 on premises ONLY, we may go 365 but not at this time. Our marketing team sends a weekly email globally to internal users only. They're requesting metrics around at least a true read status for the email. Did they read it, delete it immediately etc...

Blue sky option would be to be able to tell difference between an email opened in full outlook client and webmail or smartphone. We have tried various scripts found online with no success.

What are you using for this purpose? If you went with a third party app to deliver, please let us know which. Would listserv option be a better solution?

Thanks in advance!!!
0
For my Android Phone I need to be able to quickly turn on or turn off wifi calling.
The Problem:
When a call comes in and the phone is set to my home office to WiFi calling. The quality and sound of the call is better.
However if you need to record the call for business purposes it is difficult to switch the WiFi calling off for the recording app to work.
The apps I have require WiFi to be off in order to record both sides of the call.
Two way calling is not possible as I only hear my side of the call & not my clients.

Is it possible or am I dreaming as I know nothing of apps but learning Python lately. Can a single button (like an app on my phone screen)  be made that performs like a macro.
Which will allow me to touch one button instead of 4 switching screens each time to turn on or off wifi calling?
0
Android Phone I need to be able to quickly turn on or turn off wifi calling.
When a call comes in and the phone is set to my home office to WiFi calling. The quality and sound of the call is better. However if you need to record the call for business purposes it is hard to switch the WiFi calling off for the recording app to work. Apparently the ones I have both require WiFi to be off in order to record both sides of the call.
Two way calling is not possible. All you hear is me saying um hum.

Is it possible or am I dreaming as I know nothing of apps but learning Python lately. Can a single button (like an app on my phone screen)  be made that performs like a macro.
Which will allow me to touch one button instead of trying to listen to the client and going in and selecting all those choices. I have hung up on people trying to turn off wifi.
1
Turn off scrolling and zooming when drawing on image with touch screen (ie: phones and tablets)

I have a webpage designed for the user to draw on an image. When the user moves their finger across the image on a touch screen, especially when zoomed in, the page scrolls instead of drawing on the image.  How do I turn off scrolling and zooming when the user draws on the image?

Here is a link to the webpage modified so it doesn't send data to me: www.barnwellmd.com/PainDiagram/Testdrawing.html.

Here is the code:
/* © 2009 ROBO Design
 * http://www.robodesign.ro
 */

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:") 
		{
			alert(themessage);
			return true;
		}
		else
		{
			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.")
	else
	{ //Detailed check for valid date ranges
		var 

Open in new window

0
Bootstrap 4: Exploring New Features
LVL 13
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

i like to see what i see on my android phone on my windows 10 laptop.

how can i achieve this so that i can take some screenshots or recording etc. on the laptop

please advise
1
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
0
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
0
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: www.barnwellmd.com/PainDiagram/Testdrawing.html.

Here is the code:
/* © 2009 ROBO Design
 * http://www.robodesign.ro
 */

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:") 
		{
			alert(themessage);
			return true;
		}
		else
		{
			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.")
	else
	{ //Detailed check for valid date ranges
		var monthfield=input.split("/")[0]
		var 

Open in new window

0
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
0
Javascript routine works on PCs but not on touchscreen phones or tablets:

Zakaria Acharki helped me at www.experts-exchange.com/questions/29129533 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: www.barnwellmd.com/PainDiagram/Testdrawing.html

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 = imageData2.data;
	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))
		{
		}
		else
		{
		   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?
Thanks!
1

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.