Win a copy of Head First Android this week in the Android forum!

Andrzej Borucki

Ranch Hand
+ Follow
since Aug 24, 2013
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
16
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andrzej Borucki

I have activity_main.xml:

I want some:


but is


No textview displayed. Control with fill_parent must be last , but I want some controls below.
Which layout I must use (Linear? Relative? Constraint?) and how?
2 months ago
I test example from github android/location-samples/LocationAddress. On physical smartphone it works great but on emulator not. I test both emulator map or telnet 5554. Do you have similar problem on this example?
3 months ago
I try:
1 year ago
I try get pairs and typle size N from list.


For pairs is lopp in loop, for N=3 is loop in loop in loop and so on.
How can I write parametrixed method? Recursion is needed?
1 year ago
I heard about it,but can't find by Google: humans created only application skeleton which was automatically filled by Java code based on Github samples. Where can I find by Google?
2 years ago

Zach Rode wrote:So I might be misunderstanding your question but why don't you return a collection or array? Those can contain objects or primitives(collections autoboxes primitives to their object type, just fyi)



and if I wanna returns Matrix+Matrix +int? it simply Object[] sm_block_partition() ?
3 years ago
How to deal with the elegant way of returning many variables. No pointers, no parameter reference, no make_pair.
Sample:
package sparse;

here is code moved from C++


visit_col must fill row visited and cols_visited
sm_block_partition must returns two objects;

better is return object with two or three objects or additional methods like return_last_computed_by_other_method_rows_visited ?
3 years ago
I have big C++ program which can't rewrite to Java.
This program must works with HBase.
HBase has nice Java interface, uses many *.jar's distributed by HBase.
How to use Java classes like shared library?
Reverse situation : Java using C is more popular by JNI.
This situation is also JNI? How do it? Where are examples (github?)
3 years ago
I make test million quartic equations in C++,C# nad Java: https://github.com/borneq/quartic
On Intel I3, one thread, release C++ and C#, beyond IDE,
C++ 5.99 s
C++ 64 bits 4.91 s.
C# - 5.12
Java 2.64 s!
Why Java time is so good? C++ operates on stack without new/delete, floating-point operations depends on hardware (coprocessor), the same Complex lib.
Java is the base for numeric? Unfortunately Java has not operators overloading, that is nice for complex, vectors and matrices.
3 years ago
I want compile https://github.com/mapsme/api-android/blob/master/sample-app-capitals/build.gradle and I must use Gradle.
In https://gradle.org/install/ I see: $ scoop install gradle
but how install scoop?
in http://scoop.sh/ I see: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
but not iex, I can't install Powershell because can't install Windows6.1-KB2506143-x64.msu
3 years ago
"sudo" in title is error
4 years ago
For example : export JAVA_HOME=/usr/local/jdk1.8.0_144
but my java -version is

$ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)


$ which java is simple: /usr/bin/java
link to Java is : /usr/lib/jvm/java-1.9.0-openjdk-amd64/bin/java

JAVA_HOME will be /usr/lib/jvm/java-1.9.0-openjdk-amd64 or /usr ?
4 years ago
How determine from Java is system (Linux) is 32 or 64 bit?
4 years ago
I see JNI is usable with DLL. I must use it with (maybe) static and C++ with mangled names. I want call LLVM low level virtual machine methods and types from Java.
4 years ago