Questions tagged [elevation]

331 questions
9
votes
1 answer

How does task manager elevate without UAC Prompt?

This has been on my mind for sometime. I can open task manager by pressing Ctrl + Shift + Esc and on the second tab (Processes), I can easily press Alt + S -- Show processes from all users to elevate my task manager without any prompts whatsoever.…
Chibueze Opata
  • 9,856
  • 7
  • 42
  • 65
9
votes
4 answers

How to Start a Process Unelevated

My app runs as requestedExecutionLevel set to highestAvailable. How do I run a process unelevated? I tried the following but it didn't work: Process.Start(new ProcessStartInfo {FileName = "foo.exe", Verb = "open"}) I have tried the following trust…
Elmo
  • 6,409
  • 16
  • 72
  • 140
8
votes
2 answers

Restart program unelevated

For some reason, my C# program needs to restart with elevated privileges. I use the following code to achieve it: private static void RestartForPermissionsFix() { ProcessStartInfo processInfo = new ProcessStartInfo(); processInfo.Verb =…
coffee_machine
  • 1,203
  • 14
  • 28
8
votes
1 answer

MPAndroidChart - MarkerView doesn't show shadow

My app shows a line chart and a custom MarkerView. One problem with the MarkerView is that the shadow doesn't work. The same code works in activity's layout. But, if I copy it to the MarkerView's layout, the shadow doesn't show when I run the…
Jia Li
  • 488
  • 2
  • 8
8
votes
1 answer

Is it possible to build a .NET DLL with COM visible types without VS requiring elevation?

An assembly in a project has a type marked with ComVisible(true). When building (non-elevated), VS tries to register that DLL and fails: Cannot register assembly "\path\to\foo.dll" - access denied. Please make sure you're running the application as…
Rik Hemsley
  • 877
  • 1
  • 10
  • 15
8
votes
0 answers

React Native elevation on the top of View

I need to set shadow on the top of View, for iOS I use shadowOffset and it works fine but for Android in the docs says to use elevation and now my problem is that elevation set shadow only under View but I need to shadow was on top of View. How can…
Metallistener
  • 187
  • 1
  • 2
  • 16
8
votes
1 answer

Remove toolbar elevation for specific fragment

How can I set Elevation to 0 or disable it for a specific Fragment of my NavigationDrawer? Programmatically or with theme maybe ? toolbar.setElevation(0) seems not working. This ìn my onNavigationItemSelected doesn't work, elevation won't change :…
Emmanuel Loisance
  • 706
  • 1
  • 12
  • 22
7
votes
3 answers

PHP Looping through a GPX to calculate total ascent/descent of a track

I want loop though a gpx file and calculate the total ascent and descent. I have a function that can calc the difference in elevation between two sets of lat long points and I've set up simplexml to read & loop through the gpx file trkseg…
Legionar
  • 7,472
  • 2
  • 41
  • 70
7
votes
2 answers

How elevate and get admin rights on-demand in a .NET application?

I have an .NET application which is run with default rights as the current user, then at some point I need to perform an action which requires admin rights. How can I get admin rights on-demand in a .NET application? Requiring that the application…
sashaeve
  • 9,387
  • 10
  • 48
  • 61
7
votes
3 answers

Extracting elevation from website for lat/lon points in Australia, using R

G'day Everyone, I am trying to get some elevation data for about 700 points I have. I thought I might use the code provided to the same question (Conversion for latitude/longitude to altitude in R), unfortunately I get errors when using the geonames…
Adam
  • 1,147
  • 3
  • 15
  • 23
7
votes
2 answers

Start process as limited user from elevated script

I have an elevated console running some bat files. Having this console running in elevated mode is mandatory for it to be able to perform some tasks like managing network shares, etc without asking for permissions. But sometimes the scripts also…
Áxel Costas Pena
  • 5,886
  • 6
  • 28
  • 59
6
votes
0 answers

RecyclerView items shadow clipped when RV alpha is less than 1.0

I'm working on a RecyclerView that shows in horizontal orientation a list of items. Every item is a CardView with elevation=8dp. The elevation gives the items a shadow that gets cut by the RecyclerView. So to make it work I added…
methedroid
  • 61
  • 3
6
votes
1 answer

React Native: Elevation Style Property - Change shadow direction

Can I change the shadow direction of elevation style property (android only) on React Native? Typically the shadow is show on bottom of element, but I wanna show it on top side. Thanks
rodrix
  • 470
  • 6
  • 17
6
votes
3 answers

How to run another app as administrator on Windows XP

I used the application manifest file as described here to have a part of my application running with elevated privileges (which it needs). So when needed, the main program just invokes a small assembly using Process.Start which then handles the task…
Marc
  • 9,012
  • 13
  • 57
  • 72
6
votes
1 answer

How to capture screenshot with shadow using getDrawingCache?

I take screenshots within my app using: private Bitmap takeScreenshot() { View rootView = findViewById(android.R.id.content).getRootView(); rootView.setDrawingCacheEnabled(true); return rootView.getDrawingCache(); } This works fine…
Usman
  • 2,331
  • 2
  • 21
  • 29
1
2
3
22 23