Creating Custom Layout - Black Screen Displayed?

Jul 14, 2012

I am using:

Android 4.0.3
OpenCV 2.4.2
Samsung Galaxy S2

The face-detection example (from the opencv 2.4.2) is working perfectly. But now, I would like to create a custom layout and actually work with just the data extracted from face detection and build a game on it. Not necessarily having the FdView surface taking the entire screen.

I have done these modifications below, but just a black screen is displayed. Nothing appears on the screen.

Changed the BaseLoaderCallback in FdActivity.java

Code:
//EXPERIMENT
setContentView(R.layout.fd);
FdView surface = (FdView) (findViewById(R.id.FdView));[code]....

creating custom layout - black screen displayed?


Android :: Creating A Custom Image Based Layout?

Sep 26, 2010

Is it possible to create a layout based on (background) images? For example, there is well know app called Appie that uses this picture as a homescreen:

I might be able to recreate the layout with a TableLayout, but this will be difficult to get it perfectly aligned with the buttons in the image. The default layout options make it very difficult, or maybe impossible, to allow for selection of the buttons on the image (especially when the buttons are in an arc-path). Can anyone tell me how this is done?

View 1 Replies View Related

General :: Custom Boot Animation Goes To Black Screen

Apr 6, 2014

I'm trying to make my own boot animation (A simple android kitkat logo), but when I put it in /system/media/bootanimation.zip and reboot the phone, it goes to black screen.

I followed the steps described in that guide and read that post, but they didn't share the solution and the mediafire link is dead. I'm attaching my current bootanimation.zip

View 5 Replies View Related

General :: Lenovo S890 Black Screen In Custom ROM

Jun 26, 2013

I installed custom ROM on my Lenovo S890 phone, which works great and has all I need. But there is this problem (similar like in this post [URL] .....). When I try wake up the phone from standby mode, all I see is a dark screen with vertical stripes of several colors all over it. I can however set volume and even the display responses after pushing buttons it vibrates. So it works, but the screen is broken.

When I install original ROM, everything works fine. But when I install any of these custom ROMs found on [URL] .... I have the same issue with the screen.

I'm currently trying to fix this problem with software jBART v0.7.9 - I decompiled the original ROM that works fine and also decompiled the custom ROM I want to fix. Then I'm trying to copy files from original to custom ROM, hoping somehow I overwrite possibly broken files and everything should work afterwards.

View 9 Replies View Related

General :: Custom Bootanimation Don't Work - Black Screen

Aug 9, 2010

I wanted to create a simple bootanimation for my HTC Desire. I found a couple of websites explaining pretty much everything from folder structure to the contents of desc.txt, so I started playing around a little bit.

However after pushing my first customized bootanimation to the phone, all I get is a black screen after the initial HTC logo.

I already tried using desc.txt files from different bootanimations that I found on the web. I even extracted and re-zipped a downloaded bootanimation so I could see if that could possibly be the problem. But none could solve my black screen.

At least I think I have narrowed down the problem to the png files I use. My last guess is, that I save those files using the wrong settings.

I use Photoshop CS 5 using the following workflow:

First I create the frames that I want in my animation (just like build a GIF file). The I opened File-->Export-->Render Video. Then I select "Image Sequence", choose PNG, disable interlacing in the settings and finally choose a 480x800 resolution. Alpha channel is set to "None".

After that I use IrfanView to change the image color depth to 24bit and save the files in the part0 folder. None of my files is bigger than 30 KB.

My folder structure looks like this:

part0
-----00001.png
-----00002.png
....
-----00027.png

My desc.txt looks like this:

480 800 30
p 0 0 part0

After zipping the folders and the desc.txt without compression, I push the files to my phone. But when I try to watch it, all I get is a black screen.

I attached my bootanimation.zip. When I download bootanimations from the web, it works just fine.

View 9 Replies View Related

Android :: Widget Not Displayed In Android 2.0 - Initial Layout Displayed Only

Nov 1, 2009

Our application displays widgets that update every minute through Alarm. It works fine under 1.5 and 1.6 but since 2.0, widget is not displayed at all. Only initial layout is displayed.

View 2 Replies View Related

General :: Galaxy S4 Custom ROM - No Sound / Black Screen On Call?

Jan 5, 2014

I have an issue since i start installing custom ROMS. So, is not my first time installing a ROM. I have installed stock ROM's in the past. However, not custom ones. I have rooted my device in the past and even now before installing a custom ROM. I have installed through TWRP recovery various custom ROMS such as Omega, AOSP, ARROW, WanamLite, Google Edition and CyanogenMod but none of them worked fine for me.

In some ROMS I might not have reception (don't worry the IMEI is the same and backed up). However, in EVERY ROM my dialler crashes; for example, when im trying to make a call it freezes and the screen goes black without seeing anything. On the other hand, when I receive a call, screen takes ages to appear and show the caller or even accept the call. In addition, I have NO SOUND at all in every ROM as well.

I believe that the kernel might be the problem. This is because when i am booting the phone I always see the following:

I have tried clearing cache, dalvik, removing battery, installing stock ROMS etc.... and nothing changed!

View 4 Replies View Related

General :: Samsung Galaxy Reverb - Black Screen After Flashing Custom Built CM10 ROM?

Jan 9, 2013

My Samsung Galaxy Reverb has nobody willing to build CM10 for it, so I decided to take on the task. It built without error - processed the kernel and all the CyanogenMod 10 files just fine and generated the .zip. However, after flashing the .zip I end up with a Samsung logo, then a black screen.

The compile went through without error, so I'm a little lost as to what I should check next. From doing a little searching it seems the kernel is at fault, but what to do about that. Am I supposed to flash the kernel separate from the .zip that the CM builder outputs?

View 4 Replies View Related

Android :: Layout Being Displayed Too Late?

Sep 8, 2010

I have the following situation. Attached is a snippet of code that appears in the OnCreate of my Activity.

CODE:..........

The issue is that my layout never gets displayed until the OnCreate method has compoleted. Since my 3 functions takes about 10 secs to complete, I have a blank screen being displayed for 10 secs. This layout has a progress bar which meant to show the progress thru each function.

View 4 Replies View Related

Android :: A SurfaceView And 2 Buttons On A Layout Cannot Be Displayed?

Jun 6, 2009

I have a simple problem which makes me feel like a stupid. I really need help on this.

I have a SurfaceView which I created with Java code not XML. I created a MediaPlayer which shows its content on that SurfaceView.

When I use, setContentView(mPreview); // where mPreview is a SurfaceView

The video is played on the screen.

I need to add two buttons on the screen. So I tried something like this:

code:.........

This did not change anything. Still the video is displayed on full screen and no buttons appear. I am a java programmer both SE and ME. Things are done in this way on Java.

Does Android have a different approach?

View 4 Replies View Related

Android :: GridView Inside Linear Layout Displayed In Tab

Aug 13, 2009

I am trying to display a bunch of image icons in a grid view, with some basic inductive text on the top. This layout is inside a tab pane. For some reason my application just Fore closes without any stack trace when I do this. Here is my lay out file and the corresponding code that uses it in a tab.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:id="@+id/welcomeLayout" android:orientation="vertical"> <TextView android:id="@+id/txtWelcome" text="@string/app_name" > </TextView> <GridView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="10dp" android:id="@+id/welcomeGrid" android:horizontalSpacing="10dp" android:numColumns="auto_fit" android:stretchMode="columnWidth" android:gravity="center" android:columnWidth="120dp" android:verticalSpacing="15dp"/>
</LinearLayout>......

View 3 Replies View Related

Android :: Set Focus On A View When A Layout Is Created And Displayed?

Jan 27, 2010

Currently, I have a layout which contains a Button, a TextView and an EditText. When the layout is displayed, the focus will be automatically put on the EditText, which will trigger the keyboard to show up on Android phone. It is not what I want. Is there any way that I can set the focus on TextView or on nothing when a layout is displayed?

View 6 Replies View Related

Android :: Layout Not Displayed Properly While Loading Listview Dynamically

Apr 22, 2010

I am trying to laod the listview dynamically. There are three textviews inside a listview. The text to be set in the textview is fetched from the server. All this is working fine. I am able to fetch the text and am able to display it inside the listview.

The only problem is the position of the textview. The xml layout file is as under:

CODE:.............

If I look at this xml layout in the eclipse layout tab then it is displayed properly. Problem occurs only when the text is fetched dynamically.

View 2 Replies View Related

Creating A Calendar Layout

Oct 8, 2011

I'm starting a calendar app and I'm trying to figure out what the best way to create the layout is. I don't want to use the built in CalendarView as it's only in API >11 which limits the potential users too much.

I've toyed around with a GridView with and Adapter behind it. Truth be told I'm still figuring out how that one works, but it seems the most promising.I tried a nested LinearLayout of TextViews but that requires accessing each TextView be it's ID.

View 8 Replies View Related

Creating Layout For A Menu?

Jan 16, 2012

I'm creating a menu in XML using the eclipse software.Unfortunately, I'm no expert in XML but I have attempted to create a basic menu.

The issue I'm having is the alignment of the menu buttons. The buttons on the left column are smaller in width compared to the buttons in the right column. I know this may not seem much of an issue now, but the problem is made worse if I edit the text value of the buttons.

I want to achieve even distribution for both columns of buttons but I have been scratching my head trying to figure this one out!

find below an image describing my program and the code:

Code:
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TableRow android:background="#FFFFFF">

[code]....

View 4 Replies View Related

Android :: Creating Scrollable Layout

May 6, 2010

I'm trying to create a "scrollable" layout in Android. Even using developers.android.com, though, I feel a little bit lost at the moment. I'm somewhat new to Java, but not so much that I feel I should be having these issues--being new to Android is the bigger problem right now.The layout I'm trying to create should scroll in a sort of a "grid". I THINK what I'm looking for is the Gallery view, but I'm really lost as to how to implement it at the moment. I want it to "snap" to center the frame, like in the actual Gallery application.Essentially, if I had a photo gallery of 9 pictures, the idea is to scroll between them up/down AND side to side, in a 3x3 manner. Doesn't need to dynamically adjust, or anything like that, I just want a grid I can scroll through.I'm also not asking for anyone to give me explicit code for it--I'm trying to learn, more than anything. But pointing me in the right direction for helpful layout programming resources would be greatly appreciated, and confirming if it's a Gallery view I'm looking for would also be really helpful.EDIT: To clarify, the goal is to have ONE item on screen at a time. If you scroll between one item and the next, the previous one leaves the screen, and the new one snaps into place. So if it were a photo gallery, each spot on the grid would take up the entire screen size, approximately, and would be flung out of the viewable area when you slide across to the next photo, in either direction. (Photos are just an example for illustration purposes)

View 2 Replies View Related

Android :: Can't Get Layout Info / When Creating Activity

Jul 22, 2010

I have this element in my layout XML:
<FrameLayout android:id="@+id/FrameLayout01"
android:layout_width="320sp" android:layout_height="380sp"
android:layout_gravity="center" android:background="#99CC33">
</FrameLayout>
And I want to get its position on the screen with getTop(), getBottom() but I want to do it only once.
I was trying to do it on the onCreate(), but those methods return all 0 as response.

View 1 Replies View Related

Android :: Creating Layout File Programmatically

Apr 5, 2010

I was wondering if it were possible to dynamically create an XML layout file to be displayed to the user. The idea would be to be able to retrieve a layout file from a central server, which could display this dynamic, server driven GUI.

View 2 Replies View Related

Android :: Creating Own View Type From Layout File?

Mar 9, 2010

not sure how to inflate this from my layout file: MyView v = LayoutInflater.from(this).inflate(R.layout.myview, null); the inflater of course does not know what 'MyView' type is, and returns only View. What's a good way to reconcile this?

View 1 Replies View Related

Android :: Custom Dialog Displayed On Soft Input (User Info ID)

May 18, 2009

I have a custom dialog displayed to input user info (ID). This appears on top of an activity with an 'Done' button, however when the edittext is selected and the soft keyboard appears, the keyboard obscures the Done button at the bottom of the dialog. The documentation / blog posts are a little dry on info specifically for dialogs, what do I need to include to get the dialog to pan up or otherwise?

View 5 Replies View Related

Android :: Independent Thread That Executes While Creating Layout And Defining Activity?

Jun 3, 2010

The android docs say that it adds the runnable to the queue and it runs in the UI thread. What does this mean? So, for example, the same thread I use to create my layout is used to run the Runnable? What if I want it as an independent thread that executes while I am creating my layout and defining my activity?

View 2 Replies View Related

General :: Creating A Custom Rom?

Nov 25, 2012

Where would one begin to create an Android rom? I have looked at a couple of tutorials but they all require me to download some application that is not open source and only has binaries for Windows.

View 2 Replies View Related

Android :: Creating And Using Custom Themes

Sep 21, 2010

How to create a custom themes and use it in the code? in menu how to implement theme option and apply for the activity?Please Help.

View 2 Replies View Related

Creating Custom Keyboard For Android?

Aug 21, 2012

i am trying to create a custom keyboard for android. its mostly for experimental purposes. the keyboard only has 10 buttons, two on the top, 1 all the way to the left, 2 stacked on the left one, three stacked on the 2 on the left, then 2 more in the remaining space. its pretty tricky to explain... kinda like this:

HTML Code:
<table border="1">
<tr>
<td colspan="2">a</td><td colspan="2">b</td>[code]......

View 5 Replies View Related

Creating Custom Clock Widget?

May 15, 2012

I wants to create a custom clock widget. Firstly I try to rotate one needle. There is no error found. But IMAGEVIEW stands still.

Here is my widget.java.

Code:
public class widget extends AppWidgetProvider {
@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager,
int[] appWidgetIds) {
Timer timer = new Timer();

[code]....

View 7 Replies View Related

Android :: Layout Not Displayed Properly While Dynamically Loading A Listview In Android

Apr 22, 2010

CODE:...................

This is the layout that I am inflating in the Adapter. Everything is displayed, but only the second textview which should be displayed at the bottom is getting displayed at the top. Can someone let me know the problem with this?

I I view this in the layout tab in Eclipse then it displays properly. The problem occurs only when the text is fetched dynamically.

View 1 Replies View Related

Android :: Editing Or Creating A Custom - Web Page Not Available

Nov 4, 2010

I have created a WebView layout, which is used to access a specific website, however it would be useful to edit or create a custom "Web page not available" resource when a handset doesn't have a network connection or the page times out. I know it's possible because if you open the app "Wikidroid" while a handset is in Airplane mode you receive "Article not available" error page instead of the standard Android "Web page not available" error page.

Click here for screenshots of the default and custom error pages. I have search high and low on the internet and haven't come up with any online resources which address this request.

View 1 Replies View Related

Android :: Creating Custom Properties On Xml For Phone

Jan 8, 2010

We have in our project a keyboard with "Key" elements, this Key elements have attributes such as android:codes="119", android:keyLabel="w" and so on.My question is how can I include an custom attribute like a "android:alternativeKeyLabel" to do something else.

View 2 Replies View Related

Android :: Creating Custom Listview In Phone

May 13, 2010

I want to create a list view custom like this link :

http://sites.google.com/site/androideyecontact/_/rsrc/1238086823282/Home/android-eye-contact-lite/eye_contact-list_view_3.png?height=420&width=279.

so far I have made a list view with text, and I am not extending list Activity, but I am extending Activity only.please if someone can provide me with a code for this.

View 2 Replies View Related

General :: Creating Custom Keyboard In Android

May 10, 2011

I looked /read the sample sofkeyboard code and tried to run it on my emulator and on my device .The console shows that the app is installed but i can't locate it on my desktop to use it but it shows the name in the application location.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved