Click here to Skip to main content
15,949,686 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Significance of AI in mobile app development Pin
Android Pocket 24-Oct-23 9:47
Android Pocket 24-Oct-23 9:47 
AnswerRe: Significance of AI in mobile app development Pin
mellissahow12-Apr-24 0:17
mellissahow12-Apr-24 0:17 
QuestionFood Delivery App Development Pin
nithin sethu28-Oct-22 3:25
nithin sethu28-Oct-22 3:25 
AnswerRe: Food Delivery App Development Pin
Jignen Pandya19-Apr-23 22:18
professionalJignen Pandya19-Apr-23 22:18 
Questioncan anyone help me to solve this error? Pin
Member 1579646613-Oct-22 0:51
Member 1579646613-Oct-22 0:51 
AnswerRe: can anyone help me to solve this error? Pin
Richard MacCutchan13-Oct-22 1:13
mveRichard MacCutchan13-Oct-22 1:13 
SuggestionRe: can anyone help me to solve this error? Pin
David Crow13-Oct-22 3:16
David Crow13-Oct-22 3:16 
QuestionXamarin using C#: System.NullReferenceException: 'Object reference not set to an instance of an object.' Pin
Luis M. Rojas22-Jul-22 7:18
Luis M. Rojas22-Jul-22 7:18 
Hello, I am new in XAMARIN, i have a simple APP in VS2022.
Here is part of the code:
public interface IRepository
   {
       [Get("/package/")]
       Task<Resultado> GetAllData();
   }


public class PaqueteServicio
   {
       public const string API_BASE_URL = "http://www.mi.traelopaq.net/listarpaqjson.php?text1=2264&text2=pOADSIQMASD.O398AJas&KEYAPI=ODUTRAS.9di23821@ldpli2skjs43&KEYPASo=OASmsjdu38IO1p29AA93JA0OD9K1221";

       private IRepository repo;
       public PaqueteServicio()
       {
           repo = RestService.For<IRepository>(API_BASE_URL);
       }
       public Task<Resultado> Get()
       {
           return repo.GetAllData();
       }
   }

Package.cs
public class Package
{
        [JsonProperty("peso")]
        public string Peso { get; set; }

        [JsonProperty("tracking_number")]
        public string TrackingNumber { get; set; }

        [JsonProperty("contenido")]
        public string Contenido { get; set; }


public class Resultado
  {
      [JsonProperty("results")]
      public Package[] Results { get; set; }
  }


Main:
class MainViewModel : BaseViewModel
   {
       private readonly PaqueteServicio paqueteServicio;
       private List<Package> paqueteList;
       public List<Package> PaqueteList
       {
           get => paqueteList;
           set
           {
               paqueteList = value;
               RaisePropertyChanged();
           }
       }
       public ICommand ClickCommand => new Command(ClickCommandExecute);

       private async void ClickCommandExecute()
       {
           var response= await paqueteServicio.Get();  //This line is the one with the Error
           PaqueteList = response.Results.ToList();
       }

       public MainViewModel()
       {
           paqueteServicio = new PaqueteServicio();
       }
   }

AnswerRe: Xamarin using C#: System.NullReferenceException: 'Object reference not set to an instance of an object.' Pin
Richard MacCutchan22-Jul-22 21:23
mveRichard MacCutchan22-Jul-22 21:23 
GeneralRe: Xamarin using C#: System.NullReferenceException: 'Object reference not set to an instance of an object.' Pin
Luis M. Rojas23-Jul-22 3:34
Luis M. Rojas23-Jul-22 3:34 
GeneralRe: Xamarin using C#: System.NullReferenceException: 'Object reference not set to an instance of an object.' Pin
Richard MacCutchan23-Jul-22 8:14
mveRichard MacCutchan23-Jul-22 8:14 
GeneralRe: Xamarin using C#: System.NullReferenceException: 'Object reference not set to an instance of an object.' Pin
Luis M. Rojas23-Jul-22 11:59
Luis M. Rojas23-Jul-22 11:59 
GeneralRe: Xamarin using C#: System.NullReferenceException: 'Object reference not set to an instance of an object.' Pin
Richard MacCutchan23-Jul-22 20:50
mveRichard MacCutchan23-Jul-22 20:50 
GeneralRe: Xamarin using C#: System.NullReferenceException: 'Object reference not set to an instance of an object.' Pin
Luis M. Rojas25-Jul-22 3:21
Luis M. Rojas25-Jul-22 3:21 
GeneralRe: Xamarin using C#: System.NullReferenceException: 'Object reference not set to an instance of an object.' Pin
Richard Deeming25-Jul-22 4:37
mveRichard Deeming25-Jul-22 4:37 
QuestionMessage Closed Pin
25-Mar-22 7:38
Member 1557910425-Mar-22 7:38 
QuestionIs is realistic to make money from a small mobile/tablet app? Pin
Patrick Skelton20-Mar-22 0:54
Patrick Skelton20-Mar-22 0:54 
AnswerRe: Is is realistic to make money from a small mobile/tablet app? Pin
Richard MacCutchan20-Mar-22 2:17
mveRichard MacCutchan20-Mar-22 2:17 
GeneralRe: Is is realistic to make money from a small mobile/tablet app? Pin
Patrick Skelton21-Mar-22 21:26
Patrick Skelton21-Mar-22 21:26 
AnswerRe: Is is realistic to make money from a small mobile/tablet app? Pin
Gerry Schmitz20-Mar-22 4:32
mveGerry Schmitz20-Mar-22 4:32 
GeneralRe: Is is realistic to make money from a small mobile/tablet app? Pin
Patrick Skelton21-Mar-22 21:33
Patrick Skelton21-Mar-22 21:33 
GeneralRe: Is is realistic to make money from a small mobile/tablet app? Pin
Member 150787168-Aug-22 16:50
Member 150787168-Aug-22 16:50 
AnswerRe: Is is realistic to make money from a small mobile/tablet app? Pin
Member 150787168-Aug-22 16:44
Member 150787168-Aug-22 16:44 
QuestionHow to get started - app android and ios Pin
David Mikkelsen 20212-Mar-22 8:06
David Mikkelsen 20212-Mar-22 8:06 
GeneralRe: How to get started - app android and ios Pin
jaket-cp14-Mar-22 4:43
jaket-cp14-Mar-22 4:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.