|
I don't know for sure, but none of the properties you referred to will tell you. They are all related to the real network that you finally connect to. Information about the VPN would be external to them. Probably more important to explain what problem you are actually trying to solve.
|
|
|
|
|
Richard MacCutchan wrote: Probably more important to explain what problem you are actually trying to solve.
I did in my post
"I'm working on an Android app that we only want to allow to run if the user has VPN'd into the network."
The app generates a daily barcode for logging into an instrument we have. We only want internal users to run the app.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Just to clarify, this is for Android devices connected to your internal network via VPN, and not WiFi?
Are you using a VPN app on the Android device?
Could the barcode that the Android device is generating be uploaded to a secure web site? I'm not trying to change your mind, rather just trying to see if there are any other ways to skin that cat.
"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
|
|
|
|
|
David Crow wrote: Just to clarify, this is for Android devices connected to your internal network via VPN, and not WiFi?
Are you using a VPN app on the Android device
That's correct
David Crow wrote: Could the barcode that the Android device is generating be uploaded to a secure web site? I'm not trying to change your mind, rather just trying to see if there are any other ways to skin that cat
Not an option
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Would you be able to detect if the VPN app itself was up & running? I don't use VPN for anything so I don't know if they're considered "up & running" if no one is logged in to it. In other words, you may get a false positive.
Would you be able to create a web site (it doesn't need to do anything other than exist) that is only available from your internal network (i.e., from inside your firewall)?
"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
|
|
|
|
|
Yes, that I could do
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
In your Android code, try to connect to that site's IP address. If the site truly is not visible to the outside world, and your app can connect to it while using VPN, then you're one step closer to a solution.
"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
|
|
|
|
|
Good idea. I'll give that a try.
Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Cat skinned or possibly drowned in milk.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Kevin Marois wrote: We only want internal users to run the app. Internal users are any users that are on your company network. Whether they come in via VPN or direct they are seen as the same at the network level. The only suggestion I can find about this is comparing the IP address before and after connection; but it sounds as if that is unlikely to be possible in your case.
|
|
|
|
|
This may be one of those issues where the OSI model comes in to play. Depending on which layer your VPN is operating under, you may not be able to acquire such information.
What exactly are you trying to keep from happening?
"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
|
|
|
|
|
David Crow wrote: What exactly are you trying to keep from happening?
See my reply to Richard
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
I have an ExpandableListView is using an adapter that inherits from the BaseExpandableListAdapter base class. On the childview I have a button, in this case with an id of HelloWorld.
When I click on the HelloWorld button and the Click event is fired, the Click event is also fired for other HelloWorld buttons not on this childview, the Toast is displaying more than one group when I expect only one to be displayed.
What I am expecting is for only one Click event to be fired and that event to be associated with the button I click on the childview the button is on.
So there is obviously something I am not understanding here.
I have spent an hour googling but cannot find anything that points to what I am getting wrong.
Any pointers or help much appreciated
public override View GetChildView(int groupPosition, int childPosition, bool isLastChild, View convertView, ViewGroup parent)
{
if (convertView == null)
{
convertView = _context.LayoutInflater.Inflate(Resource.Layout.ListItemCustomLayout, null);
}
var button = (Button)convertView.FindViewById(Resource.Id.HelloWorld);
button.SetFocusable(ViewFocusability.NotFocusable);
button.Click += (sender, e) =>
{
var groupName = ((Models.Timer)(((JavaObjectWrapper<Models.Timer>)GetChild(groupPosition, childPosition)).Obj)).GroupName;
Toast.MakeText(_context, groupName, ToastLength.Long).Show();
};
return convertView;
}
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
I found some RoundCube apps on Google Play Store.
If anyone has personal experience (good or bad are equally valuable) with any such app on your own Android, please share it with me.
Thank you
|
|
|
|
|
This, and your other question below, would be more appropriate in the Lounge. They have nothing to do with programming.
|
|
|
|
|
Just found some cPanel apps on google play store.
Ratings go from two stars up to four stars.
Four stars costs five bucks, I think.
Anybody got this on their Android ?
Tell me good. Tell me Bad.
|
|
|
|
|
hi friends
problem with volley in android studio
///*********************************
public void getPerson(final OnPersonRecived onPersonRecived) {
String url = "http://192.168.1.105:8080/serveydevice/getperson.php";
// String url="http://api.openweathermap.org/data/2.5/weather?q=London&apikey=e44e3fad935f5d47c7f99d2511478fe3";
JsonArrayRequest request = new JsonArrayRequest(url, new Response.Listener() {
@Override
public void onResponse(JSONArray response) {
Log.i(TAG, "onResponse: " + response.toString());
List persons = new ArrayList<>();
for (int i = 0; i persons);
}
/****************************
after running this show belew message:
request={jsonarrayrequest@831721332616} "[ ] http://192.168.1.105:8080/serveydevice/getperson.php" 0x85bc0dda NORMAL null
///**************
url is correct
please help me
|
|
|
|
|
wrote: please help me With what? All you've shown is code (which has not been tagged correctly so makes it appear pieces are missing), but have said nothing about what is happening, what is supposed to happen, any exceptions that are being thrown, whether you've used the debugger and what it showed, etc.
To borrow a phrase, help us to help you.
"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
|
|
|
|
|
- Format your Code
- Include complete error message
- Where it occurred?
- Include screenshot if possible
- If you want answer, give all required details
|
|
|
|
|
This year I finish a course of Android, I know .NET and made program using industrial cameras in my job, well the thing is I bought a Huawei mobile with depht camera, and try to search info of how to grab the depht array from the camera but cant find anything.
Anyone have info about this?
|
|
|
|
|
i do update application and change package name ,this application made in sdk version 17, so i change and write 26 version thats right. and one problems is come its application made in firebase database so come error "PLUGIN SERVICES IS BLEW
All dependency is bleow
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation project(':library')
implementation 'de.hdodenhof:circleimageview:2.0.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.google.code.gson:gson:2.6.1'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.google.android.gms:play-services:16.0.0'
compile 'com.google.maps.android:android-maps-utils:'
implementation 'org.apache.httpcomponents:httpcore:4.4.1'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.google.firebase:firebase-core:15.0.1'
implementation 'com.google.firebase:firebase-messaging:10.2.1'
implementation 'com.facebook.android:account-kit-sdk:4.+'
compile 'com.google.android.gms:play-services-ads:9.0.0'
compile 'com.google.android.gms:play-services-analytics:9.0.0'
}
apply plugin: 'com.google.gms.google-services'
allprojects
{
repositories
{
jcenter()
google()
}
after build come error
1.
Error:(53, 13) Failed to resolve: com.google.maps.android:android-maps-utils:
<a href="openFile:/Users/vctroid/Desktop/vcare/app/build.gradle">Show in File</a>
2.
Error:(52, 20) Failed to resolve: com.google.android.gms:play-services:16.0.0
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:/Users/vctroid/Desktop/vcare/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
3.
Error:(56, 20) Failed to resolve: com.google.firebase:firebase-core:15.0.1
<a href="openFile:/Users/vctroid/Desktop/vcare/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
com.android.tools.idea.gradle.structure.editors.ModuleDependenciesTableItem@5a4a24e3 Implementation
how do resolve
|
|
|
|
|
sir i tried to make a signup page, so i wrote code in scroll view and leniar layout but cant not design a perfect page pls help me.......
code bleow
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
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">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.TextInputLayout
android:id="@+id/textInputLayout2"
android:layout_width="377dp"
android:layout_height="64dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
app:layout_constraintBottom_toTopOf="@+id/textView10"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<android.support.design.widget.TextInputEditText
android:layout_width="383dp"
android:layout_height="wrap_content"
android:hint="FIRST NAME" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/textInputLayout"
android:layout_width="374dp"
android:layout_height="51dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
app:layout_constraintBottom_toTopOf="@+id/textView11"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<android.support.design.widget.TextInputEditText
android:layout_width="384dp"
android:layout_height="46dp"
android:hint="LAST NAME" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/textInputLayout3"
android:layout_width="384dp"
android:layout_height="58dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
app:layout_constraintBottom_toTopOf="@+id/textView12"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="you@domain.com" />
</android.support.design.widget.TextInputLayout>
<TextView
android:id="@+id/textView"
android:layout_width="381dp"
android:layout_height="45dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:text="FIRST NAME"
android:textColor="#FF00"
android:textColorHighlight="?attr/colorBackgroundFloating"
android:textColorLink="?android:attr/colorLongPressedHighlight"
app:layout_constraintBottom_toTopOf="@+id/textInputLayout2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.461"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.727" />
<TextView
android:id="@+id/textView10"
android:layout_width="372dp"
android:layout_height="34dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:text="LAST NAME"
android:textColor="#FF00"
app:layout_constraintBottom_toTopOf="@+id/textInputLayout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/textView11"
android:layout_width="377dp"
android:layout_height="37dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:text="EMAIL"
android:textColor="#FF00"
app:layout_constraintBottom_toTopOf="@+id/textInputLayout3"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/textView12"
android:layout_width="376dp"
android:layout_height="41dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:text="PASSWORD"
android:textColor="@color/pink"
app:layout_constraintBottom_toTopOf="@+id/textInputLayout4"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<android.support.design.widget.TextInputLayout
android:id="@+id/textInputLayout4"
android:layout_width="376dp"
android:layout_height="57dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:layout_editor_absoluteY="381dp">
<android.support.design.widget.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="create a new password" />
</android.support.design.widget.TextInputLayout>
<Button
android:id="@+id/button4"
android:layout_width="160dp"
android:layout_height="50dp"
android:background="@color/blue"
android:text="SIGNUP"
android:textColor="?android:attr/colorLongPressedHighlight"
tools:layout_editor_absoluteX="108dp"
tools:layout_editor_absoluteY="540dp" />
<CheckBox
android:id="@+id/checkBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:text="I certify that I am 18 years of age or older, I agree of age of older, I agree to the User Agreement and acknowledge the privacy Policy "
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.571"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textInputLayout4" />
</RelativeLayout>
</LinearLayout>
</ScrollView>
|
|
|
|
|
Please don't repost if it doesn't go through immediately: the automated system flagged both of these as "possible spam" and it required human intervention to check. I then had to chase down the posts and delete the spare.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
how can we measure a room using frustum in AR.Or by using any other methods
|
|
|
|
|