|
mr ar wrote:
do you have any solution? To what? You've shown a few random pieces of code, but haven't explained what they are doing nor what they are supposed to do.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
|
|
By reading Pressure data from Grib2 File , i have to plot it using (isobars) on google map in my Xamarin.Android/Android App , I search from internet regarding this ,but not getting much help.
Help me how to plot isobars on Google Maps V2
modified 27-Oct-16 3:55am.
|
|
|
|
|
|
Funny how the first three results from that search are from the OP!
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
|
lakhwinder12jan wrote:
Help me how to plot isobars on Google Maps V2 Which part exactly are you having trouble with? Are you able to create an activity that displays a (Google) map? If you can't get this far, everything else is pointless. Are you able to add a layer to that map with a point/pin on it? Focus on adding one before bothering with dozens or hundreds. Break this project down into 4-5 smaller projects and handle those incrementally rather than trying to solve the larger project all at once.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Funny how so many people these days think they can build a Ferrari before they have even tried building a Go-kart.
|
|
|
|
|
That seems to be the mentality of the current generation.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
DavidCrow wrote: Focus on adding one before bothering with dozens or hundreds. Break this project down into 4-5 smaller projects and handle those incrementally rather than trying to solve the larger project all at once. I wish this was more common sense.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi David ,i have finished reading grib2 file,and also have ideas regarding how to draw isobars ,but i want to know which appproach to follow to draw isobar on google map , either use tile overlays or i can use poly lines to draw isobar , or is there any other better way to do this .
And i already break down the job into small parts , like plotting basic map , downloading grib2 file , reading grib2 file , filter pressure data from grib2 file and plotting pressure as isobars on google maps .
So now i am on my last point of plotting isobar on google maps.
If you have some better ideas or findings related to this ,plz share with me .
Thanks ..
|
|
|
|
|
You replied to the wrong message.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
How to create an application project with multiple table?
|
|
|
|
|
Obviously by writing some code. But if you want a more useful answer then please explain your problem in proper detail, including what you mean by "project with multiple table".
|
|
|
|
|
Start here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
You old dinosaur, into Android now?
I remember you answering my MFC/C++ questions 10 years back. lol!
Just curious what are you up to now.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Vunic wrote: Just curious what are you up to now. Same thing, professionally. I started working on the Android platform about 7 years ago, but it's just a hobby.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Hello Group
Now, I have a problem with a collection IList<>
My project use Web Service and the IList<> is fill with a web service, but when I try to delete one Item on IList<>, I get the error: Error Collection is of a fixed size. I have tried to fix this problem but I still can not. I need help !!!
namespace MobileApplication
{
public partial class ListaCriteriosAdapter : BaseAdapter<Criterio>
{
IList<Criterio> ListaCriterios;
private Context activity;
private LayoutInflater MiInflanter;
MobileService.MobileService Query = new MobileService.MobileService();
public ListaCriteriosAdapter(Context context, IList<Criterio> MiLista)
{
this.activity = context;
ListaCriterios = MiLista;
MiInflanter = (LayoutInflater)activity.GetSystemService(Context.LayoutInflaterService);
}
public override int Count
{
get { return ListaCriterios.Count; }
}
public override long GetItemId(int position)
{
return position;
}
public override Criterio this[int position]
{
get { return ListaCriterios[position]; }
}
public override View GetView(int position, View convertView, ViewGroup parent)
{
ContactsViewHolder Holder = null;
ImageView btnDelete;
if (convertView == null)
{
convertView = MiInflanter.Inflate(Resource.Layout.ListViewCriterios, null);
Holder = new ContactsViewHolder();
Holder.txtFolio = convertView.FindViewById<TextView>(Resource.Id.TVFolioListaCriterios);
Holder.txtCriterio = convertView.FindViewById<TextView>(Resource.Id.TVCriterioListaCriterios);
Holder.txtTipo = convertView.FindViewById<TextView>(Resource.Id.TVTipoListaCriterios);
btnDelete = convertView.FindViewById<ImageView>(Resource.Id.BTNBorrarCriterio);
btnDelete.Click += (object sender, EventArgs e) =>
{
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
AlertDialog Confirm = builder.Create();
Confirm.SetTitle("Confirmar");
Confirm.SetMessage("Estas seguro de eliminarlo?");
Confirm.SetButton("Aceptar", (s, ev) =>
{
var Temp = (int)((sender as ImageView).Tag);
int id = (Int32)ListaCriterios[Temp].IdCriterio;
ListaCriterios.RemoveAt(Temp);
EliminarCriterioPP((Int32)id);
NotifyDataSetChanged();
});
Confirm.Show();
};
convertView.Tag = Holder;
btnDelete.Tag = position;
}
else
{
btnDelete = convertView.FindViewById<ImageView>(Resource.Id.BTNBorrarCriterio);
Holder = convertView.Tag as ContactsViewHolder;
btnDelete.Tag = position;
}
Holder.txtFolio.Text = ListaCriterios[position].IdCriterio.ToString();
Holder.txtCriterio.Text = ListaCriterios[position].DescripcionCriterio.ToString();
Holder.txtTipo.Text = ListaCriterios[position].DescripcionGrafico;
NotifyDataSetChanged();
return convertView;
}
public class ContactsViewHolder : Java.Lang.Object
{
public TextView txtFolio { get; set; }
public TextView txtCriterio { get; set; }
public TextView txtTipo { get; set; }
}
private void EliminarCriterioPP(int Id)
{
Query.EliminarCriterioPPCompleted += Query_EliminarCriterioPPCompleted;
Query.EliminarCriterioPPAsync(Id);
}
void Query_EliminarCriterioPPCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
{
Toast.MakeText(activity, "Fue eliminado correctamente", ToastLength.Short).Show();
}
}
}
|
|
|
|
|
|
The MiLista parameter is a fixed size list - most likely an array.
You'll need to convert the parameter to a standard list. You can either do that unconditionally:
public ListaCriteriosAdapter(Context context, IEnumerable<Criterio> MiLista)
{
this.activity = context;
ListaCriterios = new List<Criterio>(MiLista);
MiInflanter = (LayoutInflater)activity.GetSystemService(Context.LayoutInflaterService);
}
Or, you can test the parameter to see if you need to convert it:
private static bool IsReadOnlyOrFixedSize<T>(IList<T> list)
{
if (list.IsReadOnly) return true;
var nonGenericList = list as System.Collections.IList;
return nonGenericList != null && nonGenericList.IsFixedSize;
}
public ListaCriteriosAdapter(Context context, IList<Criterio> MiLista)
{
if (IsReadOnlyOrFixedSize(MiLista))
{
MyLista = new List<Criterio>(MyLista);
}
this.activity = context;
ListaCriterios = MiLista;
MiInflanter = (LayoutInflater)activity.GetSystemService(Context.LayoutInflaterService);
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Good evening
I have implemented an application with auto update function. When I release new version on my server then application downloads new .apk and it starts an intent to install new .apk file.
I want to change this procedure, if it's possible. Before installing new version, I want that application should be able to uninstall itself.
How can I do?
Now I'm thinking to remove all file in Android system's folder reserved to this application, but is it a good way? What can you sugest me?
Thank you.
|
|
|
|
|
Quote: I have implemented an application with auto update function. When I release new version on my server then application downloads new .apk and it starts an intent to install new .apk file. That is required.
How about, you keep all of the business logic on your server side and just show the results on the Android application? This way, you won't have to push every fix to the Android application but merely the new features only.
Quote: Before installing new version, I want that application should be able to uninstall itself. That is done by default, your previous application is removed by the Google Play Store and then the latest version is installed. But if your application uninstalls itself then I am not sure, Google Play Store would be happy to install the new version of the application, without user intervention. It would require the user to go to Play Store and install the latest version themselves.
Quote: Now I'm thinking to remove all file in Android system's folder reserved to this application, but is it a good way? Of course, if the data is no longer of user, remove it.
Anyways, have a look here, there is way, where you can download the APK related content later, but that is just for the applications where the content is above 100 MB. APK Expansion Files | Android Developers[^]
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Thank you for repaly. Last days I have made some tests. Now I can recal new intent to unistal my application, after downloading and storing new version in Download folder.
I have found the routine to send Intent for installing the new version.
Here is the code for this two procedures:
Uri packageURI = Uri.parse("package:com.example.nameapp");
Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI);
startActivityForResult(uninstallIntent, PICK_CONTACT_UPDATE);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + nomeApp)), "application/vnd.android.package-archive");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
But when application executes unistallation, it is arrested and it cant't execute the install procedure (loading II intent).
How can I execute II intent after unistallation? Is it possible? How can I do?
|
|
|
|