Click here to Skip to main content
15,886,110 members
Home / Discussions / Android
   

Android

 
QuestionHow do I issue a command that chooses what activity to show in android app? Pin
Gemson Gonzales27-Jun-17 21:24
Gemson Gonzales27-Jun-17 21:24 
AnswerRe: How do I issue a command that chooses what activity to show in android app? Pin
Richard MacCutchan28-Jun-17 8:48
mveRichard MacCutchan28-Jun-17 8:48 
QuestionColor detection in android Pin
Member 1085025318-Jun-17 9:46
Member 1085025318-Jun-17 9:46 
AnswerRe: Color detection in android Pin
Ravi Bhavnani18-Jun-17 11:25
professionalRavi Bhavnani18-Jun-17 11:25 
AnswerRe: Color detection in android Pin
Richard MacCutchan18-Jun-17 23:02
mveRichard MacCutchan18-Jun-17 23:02 
Questionsource code to make online appointment app Pin
Member 1325839413-Jun-17 20:39
Member 1325839413-Jun-17 20:39 
AnswerRe: source code to make online appointment app Pin
Richard MacCutchan13-Jun-17 21:47
mveRichard MacCutchan13-Jun-17 21:47 
AnswerRe: source code to make online appointment app Pin
ZurdoDev28-Jun-17 10:01
professionalZurdoDev28-Jun-17 10:01 
QuestionAndroid jetplayer Pin
Member 132447819-Jun-17 19:24
Member 132447819-Jun-17 19:24 
QuestionRe: Android jetplayer Pin
David Crow11-Jun-17 16:55
David Crow11-Jun-17 16:55 
QuestionShowing text in an android cardboard app (using GvrView) Pin
Member 132057945-Jun-17 22:21
Member 132057945-Jun-17 22:21 
Hello world,

I'm working on an android app for cardboard. The purpose of the app is to make augmented reality and for the moment the only thing you can do with it is to see through the smartphone's camera. I got this functionnality from this project : https://github.com/SalahEddin/CardboardPassthrough

My problem is that I would like to show some text to the user but I don't know how to make it properly in order for the text to be shown in the two squares of the GvrView. In oder words I would like something like this : screenshot

Here are some code elements that you can find in the GitHub project.

MainActivity.Java

public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_live_counting_vr);
            setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
            cardboardView = (GvrView) findViewById(R.id.cardboard_view);
            cardboardView.setRenderer(this);
            setGvrView(cardboardView);
    }


activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >
 
    <com.google.vrtoolkit.cardboard.CardboardView
        android:id="@+id/cardboard_view"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_alignParentTop="true"
        android:layout_alignParentLeft="true" />
 
</RelativeLayout>


Thanks Smile | :)
AnswerRe: Showing text in an android cardboard app (using GvrView) Pin
loretta.matos11-Jun-17 21:40
loretta.matos11-Jun-17 21:40 
AnswerRe: Showing text in an android cardboard app (using GvrView) Pin
Arun Ganessh7-Jun-18 1:25
Arun Ganessh7-Jun-18 1:25 
QuestionAttachment To Text Message Pin
C-P-User-331-May-17 16:12
C-P-User-331-May-17 16:12 
QuestionRe: Attachment To Text Message Pin
David Crow3-Jun-17 4:50
David Crow3-Jun-17 4:50 
AnswerRe: Attachment To Text Message Pin
C-P-User-34-Jun-17 5:06
C-P-User-34-Jun-17 5:06 
Questionimport project into android studio Pin
Member 1291906530-May-17 9:59
Member 1291906530-May-17 9:59 
AnswerRe: import project into android studio Pin
Afzaal Ahmad Zeeshan30-May-17 11:45
professionalAfzaal Ahmad Zeeshan30-May-17 11:45 
AnswerRe: import project into android studio Pin
David Crow30-May-17 12:54
David Crow30-May-17 12:54 
Questionitexg Pin
Member 1322987429-May-17 16:17
Member 1322987429-May-17 16:17 
AnswerRe: itexg Pin
Richard MacCutchan29-May-17 20:55
mveRichard MacCutchan29-May-17 20:55 
QuestionRe: itexg Pin
David Crow30-May-17 5:54
David Crow30-May-17 5:54 
QuestionMediaExtractor.setDataSource works or doesn't based on Android OS version Pin
JudyL_MD28-May-17 8:47
JudyL_MD28-May-17 8:47 
AnswerRe: MediaExtractor.setDataSource works or doesn't based on Android OS version Pin
JudyL_MD6-Nov-17 4:41
JudyL_MD6-Nov-17 4:41 
QuestionAndroid chat application message notification receive issue Pin
Pavlex426-May-17 20:46
Pavlex426-May-17 20:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.