Call measure how far you dragged in AndroidHow to save an Android Activity state using save instance state?How do you assert that a certain exception is thrown in JUnit 4 tests?How do I call one constructor from another in Java?How to call a SOAP web service on AndroidWhy is the Android emulator so slow? How can we speed up the Android emulator?How do I pass data between Activities in Android application?How do I display an alert dialog on Android?How to call a method after a delay in AndroidBug: onNewIntent not called for singleTop activity with Intent.FLAG_ACTIVITY_NEW_TASKHow to getAssets in a service?

A positive integer functional equation

2000s (or earlier) cyberpunk novel: dystopia, mega storm, omnipresent noise

Convert integer to full text string duration

Taking my Ph.D. advisor out for dinner after graduation

Is it bad to suddenly introduce another element to your fantasy world a good ways into the story?

Should I warn my boss I might take sick leave?

Should I increase my 401(k) contributions, or increase my mortgage payments

Why would "dead languages" be the only languages that spells could be written in?

How did Einstein know the speed of light was constant?

How serious is plagiarism in a master’s thesis?

Is conquering your neighbors to fight a greater enemy a valid strategy?

Is there a standard definition of the "stall" phenomena?

Is there a way to change the aspect ratio of a DNG file?

Is kapton suitable for use as high voltage insulation?

How to play a D major chord lower than the open E major chord on guitar?

Was I wrongfully denied boarding for having a Schengen visa issued from the second country on my itinerary?

How did the IEC decide to create kibibytes?

SQL Server - TRY/CATCH does not work in certain cases

Is の方 necessary here?

How can I create a dashed line that slowly changes into a solid line in Illustrator?

How did Captain Marvel do this without dying?

PhD: When to quit and move on?

Why do Martians have to wear space helmets?

Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?



Call measure how far you dragged in Android


How to save an Android Activity state using save instance state?How do you assert that a certain exception is thrown in JUnit 4 tests?How do I call one constructor from another in Java?How to call a SOAP web service on AndroidWhy is the Android emulator so slow? How can we speed up the Android emulator?How do I pass data between Activities in Android application?How do I display an alert dialog on Android?How to call a method after a delay in AndroidBug: onNewIntent not called for singleTop activity with Intent.FLAG_ACTIVITY_NEW_TASKHow to getAssets in a service?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I made an application running in the background, and I want to add a function to measure the slide on the screen. I'll leave you the code for both, and someone can help me. I'm a beginner and I've been looking all over trying to solve this without results.



I know the post is too long, but I did not know how to shorten it so you can understand it.



The code for running the application in the background



App.java



package com.codinginflow.foregroundserviceexample;

import android.app.Application;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.os.Build;


public class App extends Application
public static final String CHANNEL_ID = "exampleServiceChannel";

@Override
public void onCreate()
super.onCreate();

createNotificationChannel();


private void createNotificationChannel()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
NotificationChannel serviceChannel = new NotificationChannel(
CHANNEL_ID,
"Example Service Channel",
NotificationManager.IMPORTANCE_DEFAULT
);

NotificationManager manager =
getSystemService(NotificationManager.class);
manager.createNotificationChannel(serviceChannel);





AndroidManifest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.codinginflow.foregroundserviceexample">

<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name=".ExampleService" />
</application>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

</manifest>


activity_main.xml



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:padding="16dp"
tools:context="com.codinginflow.foregroundserviceexample.MainActivity">

<EditText
android:id="@+id/edit_text_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Input" />

<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="startService"
android:text="Start Service" />

<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="stopService"
android:text="Stop Service" />

</LinearLayout>


ExampleService.java



package com.codinginflow.foregroundserviceexample;

import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.support.v4.app.NotificationCompat;

import static com.codinginflow.foregroundserviceexample.App.CHANNEL_ID;


public class ExampleService extends Service

@Override
public void onCreate()
super.onCreate();


@Override
public int onStartCommand(Intent intent, int flags, int startId)
String input = intent.getStringExtra("inputExtra");

Intent notificationIntent = new Intent(this, MainActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this,
0, notificationIntent, 0);

Notification notification = new NotificationCompat.Builder(this,
CHANNEL_ID)
.setContentTitle("Example Service")
.setContentText(input)
.setSmallIcon(R.drawable.ic_android)
.setContentIntent(pendingIntent)
.build();

startForeground(1, notification);

return START_NOT_STICKY;


@Override
public void onDestroy()
super.onDestroy();


@Nullable
@Override
public IBinder onBind(Intent intent)
return null;




MainActivity.java



package com.codinginflow.foregroundserviceexample;

import android.content.Intent;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity
private EditText editTextInput;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

editTextInput = findViewById(R.id.edit_text_input);


public void startService(View v)
String input = editTextInput.getText().toString();

Intent serviceIntent = new Intent(this, ExampleService.class);
serviceIntent.putExtra("inputExtra", input);

ContextCompat.startForegroundService(this, serviceIntent);


public void stopService(View v)
Intent serviceIntent = new Intent(this, ExampleService.class);
stopService(serviceIntent);




Code for sliding measurement



Point p1;
Point p2;

View view = new View(this);

view.setOnTouchListener(new View.OnTouchListener()
public boolean onTouch(View v, MotionEvent event)
if(event.getAction() == MotionEvent.ACTION_DOWN)
p1 = new Point((int) event.getX(), (int) event.getY());
else if(event.getAction() == MotionEvent.ACTION_UP)
p2 = new Point((int) event.getX(), (int) event.getY());

return false;

);


Can someone call me this code in my app?










share|improve this question
























  • Please put the code, or short, easily understood extracts, in-line rather than as links to external text.

    – Graham Asher
    Mar 25 at 20:19











  • Now it is better?

    – Raul
    Mar 26 at 19:03











  • Yes, and thank you.

    – Graham Asher
    Mar 27 at 20:02











  • Yes, but unfortunately not many have seen the message or no one wants to help me ...

    – Raul
    Mar 27 at 20:14

















0















I made an application running in the background, and I want to add a function to measure the slide on the screen. I'll leave you the code for both, and someone can help me. I'm a beginner and I've been looking all over trying to solve this without results.



I know the post is too long, but I did not know how to shorten it so you can understand it.



The code for running the application in the background



App.java



package com.codinginflow.foregroundserviceexample;

import android.app.Application;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.os.Build;


public class App extends Application
public static final String CHANNEL_ID = "exampleServiceChannel";

@Override
public void onCreate()
super.onCreate();

createNotificationChannel();


private void createNotificationChannel()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
NotificationChannel serviceChannel = new NotificationChannel(
CHANNEL_ID,
"Example Service Channel",
NotificationManager.IMPORTANCE_DEFAULT
);

NotificationManager manager =
getSystemService(NotificationManager.class);
manager.createNotificationChannel(serviceChannel);





AndroidManifest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.codinginflow.foregroundserviceexample">

<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name=".ExampleService" />
</application>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

</manifest>


activity_main.xml



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:padding="16dp"
tools:context="com.codinginflow.foregroundserviceexample.MainActivity">

<EditText
android:id="@+id/edit_text_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Input" />

<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="startService"
android:text="Start Service" />

<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="stopService"
android:text="Stop Service" />

</LinearLayout>


ExampleService.java



package com.codinginflow.foregroundserviceexample;

import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.support.v4.app.NotificationCompat;

import static com.codinginflow.foregroundserviceexample.App.CHANNEL_ID;


public class ExampleService extends Service

@Override
public void onCreate()
super.onCreate();


@Override
public int onStartCommand(Intent intent, int flags, int startId)
String input = intent.getStringExtra("inputExtra");

Intent notificationIntent = new Intent(this, MainActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this,
0, notificationIntent, 0);

Notification notification = new NotificationCompat.Builder(this,
CHANNEL_ID)
.setContentTitle("Example Service")
.setContentText(input)
.setSmallIcon(R.drawable.ic_android)
.setContentIntent(pendingIntent)
.build();

startForeground(1, notification);

return START_NOT_STICKY;


@Override
public void onDestroy()
super.onDestroy();


@Nullable
@Override
public IBinder onBind(Intent intent)
return null;




MainActivity.java



package com.codinginflow.foregroundserviceexample;

import android.content.Intent;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity
private EditText editTextInput;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

editTextInput = findViewById(R.id.edit_text_input);


public void startService(View v)
String input = editTextInput.getText().toString();

Intent serviceIntent = new Intent(this, ExampleService.class);
serviceIntent.putExtra("inputExtra", input);

ContextCompat.startForegroundService(this, serviceIntent);


public void stopService(View v)
Intent serviceIntent = new Intent(this, ExampleService.class);
stopService(serviceIntent);




Code for sliding measurement



Point p1;
Point p2;

View view = new View(this);

view.setOnTouchListener(new View.OnTouchListener()
public boolean onTouch(View v, MotionEvent event)
if(event.getAction() == MotionEvent.ACTION_DOWN)
p1 = new Point((int) event.getX(), (int) event.getY());
else if(event.getAction() == MotionEvent.ACTION_UP)
p2 = new Point((int) event.getX(), (int) event.getY());

return false;

);


Can someone call me this code in my app?










share|improve this question
























  • Please put the code, or short, easily understood extracts, in-line rather than as links to external text.

    – Graham Asher
    Mar 25 at 20:19











  • Now it is better?

    – Raul
    Mar 26 at 19:03











  • Yes, and thank you.

    – Graham Asher
    Mar 27 at 20:02











  • Yes, but unfortunately not many have seen the message or no one wants to help me ...

    – Raul
    Mar 27 at 20:14













0












0








0








I made an application running in the background, and I want to add a function to measure the slide on the screen. I'll leave you the code for both, and someone can help me. I'm a beginner and I've been looking all over trying to solve this without results.



I know the post is too long, but I did not know how to shorten it so you can understand it.



The code for running the application in the background



App.java



package com.codinginflow.foregroundserviceexample;

import android.app.Application;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.os.Build;


public class App extends Application
public static final String CHANNEL_ID = "exampleServiceChannel";

@Override
public void onCreate()
super.onCreate();

createNotificationChannel();


private void createNotificationChannel()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
NotificationChannel serviceChannel = new NotificationChannel(
CHANNEL_ID,
"Example Service Channel",
NotificationManager.IMPORTANCE_DEFAULT
);

NotificationManager manager =
getSystemService(NotificationManager.class);
manager.createNotificationChannel(serviceChannel);





AndroidManifest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.codinginflow.foregroundserviceexample">

<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name=".ExampleService" />
</application>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

</manifest>


activity_main.xml



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:padding="16dp"
tools:context="com.codinginflow.foregroundserviceexample.MainActivity">

<EditText
android:id="@+id/edit_text_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Input" />

<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="startService"
android:text="Start Service" />

<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="stopService"
android:text="Stop Service" />

</LinearLayout>


ExampleService.java



package com.codinginflow.foregroundserviceexample;

import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.support.v4.app.NotificationCompat;

import static com.codinginflow.foregroundserviceexample.App.CHANNEL_ID;


public class ExampleService extends Service

@Override
public void onCreate()
super.onCreate();


@Override
public int onStartCommand(Intent intent, int flags, int startId)
String input = intent.getStringExtra("inputExtra");

Intent notificationIntent = new Intent(this, MainActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this,
0, notificationIntent, 0);

Notification notification = new NotificationCompat.Builder(this,
CHANNEL_ID)
.setContentTitle("Example Service")
.setContentText(input)
.setSmallIcon(R.drawable.ic_android)
.setContentIntent(pendingIntent)
.build();

startForeground(1, notification);

return START_NOT_STICKY;


@Override
public void onDestroy()
super.onDestroy();


@Nullable
@Override
public IBinder onBind(Intent intent)
return null;




MainActivity.java



package com.codinginflow.foregroundserviceexample;

import android.content.Intent;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity
private EditText editTextInput;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

editTextInput = findViewById(R.id.edit_text_input);


public void startService(View v)
String input = editTextInput.getText().toString();

Intent serviceIntent = new Intent(this, ExampleService.class);
serviceIntent.putExtra("inputExtra", input);

ContextCompat.startForegroundService(this, serviceIntent);


public void stopService(View v)
Intent serviceIntent = new Intent(this, ExampleService.class);
stopService(serviceIntent);




Code for sliding measurement



Point p1;
Point p2;

View view = new View(this);

view.setOnTouchListener(new View.OnTouchListener()
public boolean onTouch(View v, MotionEvent event)
if(event.getAction() == MotionEvent.ACTION_DOWN)
p1 = new Point((int) event.getX(), (int) event.getY());
else if(event.getAction() == MotionEvent.ACTION_UP)
p2 = new Point((int) event.getX(), (int) event.getY());

return false;

);


Can someone call me this code in my app?










share|improve this question
















I made an application running in the background, and I want to add a function to measure the slide on the screen. I'll leave you the code for both, and someone can help me. I'm a beginner and I've been looking all over trying to solve this without results.



I know the post is too long, but I did not know how to shorten it so you can understand it.



The code for running the application in the background



App.java



package com.codinginflow.foregroundserviceexample;

import android.app.Application;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.os.Build;


public class App extends Application
public static final String CHANNEL_ID = "exampleServiceChannel";

@Override
public void onCreate()
super.onCreate();

createNotificationChannel();


private void createNotificationChannel()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
NotificationChannel serviceChannel = new NotificationChannel(
CHANNEL_ID,
"Example Service Channel",
NotificationManager.IMPORTANCE_DEFAULT
);

NotificationManager manager =
getSystemService(NotificationManager.class);
manager.createNotificationChannel(serviceChannel);





AndroidManifest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.codinginflow.foregroundserviceexample">

<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name=".ExampleService" />
</application>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

</manifest>


activity_main.xml



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:padding="16dp"
tools:context="com.codinginflow.foregroundserviceexample.MainActivity">

<EditText
android:id="@+id/edit_text_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Input" />

<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="startService"
android:text="Start Service" />

<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="stopService"
android:text="Stop Service" />

</LinearLayout>


ExampleService.java



package com.codinginflow.foregroundserviceexample;

import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.support.v4.app.NotificationCompat;

import static com.codinginflow.foregroundserviceexample.App.CHANNEL_ID;


public class ExampleService extends Service

@Override
public void onCreate()
super.onCreate();


@Override
public int onStartCommand(Intent intent, int flags, int startId)
String input = intent.getStringExtra("inputExtra");

Intent notificationIntent = new Intent(this, MainActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this,
0, notificationIntent, 0);

Notification notification = new NotificationCompat.Builder(this,
CHANNEL_ID)
.setContentTitle("Example Service")
.setContentText(input)
.setSmallIcon(R.drawable.ic_android)
.setContentIntent(pendingIntent)
.build();

startForeground(1, notification);

return START_NOT_STICKY;


@Override
public void onDestroy()
super.onDestroy();


@Nullable
@Override
public IBinder onBind(Intent intent)
return null;




MainActivity.java



package com.codinginflow.foregroundserviceexample;

import android.content.Intent;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity
private EditText editTextInput;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

editTextInput = findViewById(R.id.edit_text_input);


public void startService(View v)
String input = editTextInput.getText().toString();

Intent serviceIntent = new Intent(this, ExampleService.class);
serviceIntent.putExtra("inputExtra", input);

ContextCompat.startForegroundService(this, serviceIntent);


public void stopService(View v)
Intent serviceIntent = new Intent(this, ExampleService.class);
stopService(serviceIntent);




Code for sliding measurement



Point p1;
Point p2;

View view = new View(this);

view.setOnTouchListener(new View.OnTouchListener()
public boolean onTouch(View v, MotionEvent event)
if(event.getAction() == MotionEvent.ACTION_DOWN)
p1 = new Point((int) event.getX(), (int) event.getY());
else if(event.getAction() == MotionEvent.ACTION_UP)
p2 = new Point((int) event.getX(), (int) event.getY());

return false;

);


Can someone call me this code in my app?







java android






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 18:59







Raul

















asked Mar 25 at 19:51









RaulRaul

14 bronze badges




14 bronze badges












  • Please put the code, or short, easily understood extracts, in-line rather than as links to external text.

    – Graham Asher
    Mar 25 at 20:19











  • Now it is better?

    – Raul
    Mar 26 at 19:03











  • Yes, and thank you.

    – Graham Asher
    Mar 27 at 20:02











  • Yes, but unfortunately not many have seen the message or no one wants to help me ...

    – Raul
    Mar 27 at 20:14

















  • Please put the code, or short, easily understood extracts, in-line rather than as links to external text.

    – Graham Asher
    Mar 25 at 20:19











  • Now it is better?

    – Raul
    Mar 26 at 19:03











  • Yes, and thank you.

    – Graham Asher
    Mar 27 at 20:02











  • Yes, but unfortunately not many have seen the message or no one wants to help me ...

    – Raul
    Mar 27 at 20:14
















Please put the code, or short, easily understood extracts, in-line rather than as links to external text.

– Graham Asher
Mar 25 at 20:19





Please put the code, or short, easily understood extracts, in-line rather than as links to external text.

– Graham Asher
Mar 25 at 20:19













Now it is better?

– Raul
Mar 26 at 19:03





Now it is better?

– Raul
Mar 26 at 19:03













Yes, and thank you.

– Graham Asher
Mar 27 at 20:02





Yes, and thank you.

– Graham Asher
Mar 27 at 20:02













Yes, but unfortunately not many have seen the message or no one wants to help me ...

– Raul
Mar 27 at 20:14





Yes, but unfortunately not many have seen the message or no one wants to help me ...

– Raul
Mar 27 at 20:14












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55345416%2fcall-measure-how-far-you-dragged-in-android%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55345416%2fcall-measure-how-far-you-dragged-in-android%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript