Click here to Skip to main content
15,029,501 members
Home / Discussions / Android
   

Android

 
AnswerRe: Color detection in android Pin
Richard MacCutchan18-Jun-17 23:02
mveRichard MacCutchan18-Jun-17 23:02 
AnswerMessage Closed Pin
11-Aug-17 2:30
MemberAbdhulrahuman11-Aug-17 2:30 
Questionsource code to make online appointment app Pin
Member 1325839413-Jun-17 20:39
MemberMember 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
MemberMember 132447819-Jun-17 19:24 
QuestionRe: Android jetplayer Pin
David Crow11-Jun-17 16:55
MemberDavid Crow11-Jun-17 16:55 
QuestionShowing text in an android cardboard app (using GvrView) Pin
Member 132057945-Jun-17 22:21
MemberMember 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
Memberloretta.matos11-Jun-17 21:40 
AnswerRe: Showing text in an android cardboard app (using GvrView) Pin
Arun Ganessh7-Jun-18 1:25
MemberArun Ganessh7-Jun-18 1:25 
QuestionAttachment To Text Message Pin
C-P-User-331-May-17 16:12
MemberC-P-User-331-May-17 16:12 
QuestionRe: Attachment To Text Message Pin
David Crow3-Jun-17 4:50
MemberDavid Crow3-Jun-17 4:50 
AnswerRe: Attachment To Text Message Pin
C-P-User-34-Jun-17 5:06
MemberC-P-User-34-Jun-17 5:06 
Questionimport project into android studio Pin
Member 1291906530-May-17 9:59
MemberMember 1291906530-May-17 9:59 
AnswerRe: import project into android studio Pin
Afzaal Ahmad Zeeshan30-May-17 11:45
mveAfzaal Ahmad Zeeshan30-May-17 11:45 
AnswerRe: import project into android studio Pin
David Crow30-May-17 12:54
MemberDavid Crow30-May-17 12:54 
Questionitexg Pin
Member 1322987429-May-17 16:17
MemberMember 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
MemberDavid Crow30-May-17 5:54 
QuestionMediaExtractor.setDataSource works or doesn't based on Android OS version Pin
JudyL_MD28-May-17 8:47
MemberJudyL_MD28-May-17 8:47 
AnswerRe: MediaExtractor.setDataSource works or doesn't based on Android OS version Pin
JudyL_MD6-Nov-17 4:41
MemberJudyL_MD6-Nov-17 4:41 
QuestionAndroid chat application message notification receive issue Pin
Pavlex426-May-17 20:46
MemberPavlex426-May-17 20:46 
SuggestionRe: Android chat application message notification receive issue Pin
Richard MacCutchan26-May-17 21:57
mveRichard MacCutchan26-May-17 21:57 
QuestionNeural Network Algorithms Pin
Member 1320852321-May-17 20:30
MemberMember 1320852321-May-17 20:30 
AnswerRe: Neural Network Algorithms Pin
David Crow22-May-17 3:28
MemberDavid Crow22-May-17 3:28 

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.