Android :: How To Show Things Directly To Screen?
Oct 4, 2010
I was wandering is there a way to show a stream or a pic to the screen directly even without the manifest? Or how do I load resources files without using the manifest on the Android platform?
View 1 Replies
Oct 12, 2010
I want to scale and display images which are dynamically loaded to a certain maximum size. The way I'm doing this is to set the layout_width and layout_height of my ImageView to the maximum dimensions and setting the scaleType to "fitCenter".
But here's the problem. This is inside a RelativeLayout and I want to show text directly under the image. In portrait mode, the text is way at the bottom (because of the height I have set). So I want the ImageView to scale down to the actual visible image size which is what it would seem like adjustViewBounds="true" should do.
Am I wrong in this assumption? Or is there a better way to do what I'm trying to do? Because I've been unsuccessful to this point!
View 2 Replies
View Related
Jan 27, 2010
well had the nexus for a few days and its now gone weird. i was scrolling in the market and it started jerking and selecting things different from where am pressing, then just returns to home screen. anyone had that?
View 6 Replies
View Related
Nov 10, 2010
Now I have dropped my Inc many times (I have the rubber case) and never had a problem. Well on Sunday I was coming home from the airport and dropped it perfectly about 3 feet directly on the screen on a rock and kablooey, it was shattered. I mean ruined to the point where you couldn't touch it without getting cut. However it actually still worked perfectly, but for obvious safety reasons I needed to get a new one. To make a long story short I got Verizon to send me a new one, and I couldn't be happier. Now they explained that I didn't receive a new one or a refurbished one, rather one that was returned immediately by someone.
It looks great, works perfectly and is running faster and smoother than my old one did. This is even after I did a backup from AppBrain to re-download over 130 apps. My only sadness is that I lost all my levels on Angry birds, and that I had to reset up my phone with all the little personalizations that I had before. Has anyone else had a similar experience with their replacement. My old phone (one that had received the update) It was constantly bogged down, and got better once I did a factory reset, however it still wasn't as smooth as my new one.
View 17 Replies
View Related
Nov 22, 2010
I have x10 mini 2.1 since I updated to 2.1 any long press on home screen or corner icons goes directly to edit either widgets or icons depending wich screen I have up.This is anoying because many times I press just a little too long and for example end up in the edit icons mode instead of opening messages like I wanted to. Is there anyway to get this as it was on 1.6? Long press didnt open edit, the only way to open edit was trough menu key.
View 3 Replies
View Related
Sep 2, 2010
I have posted a message for this topic. And my requirement changed, seek some help here. What I want to do is to make my application run on the Home screen, like the widget show on the home screen. But I can decide how my application was shown on the screen, and the application will have to be in front of all the others ( including widget, I think this also prevent me using a widget). It is something like when I get a SMS, I will run my application and show something. the application will be show in the most front. And it can not removed by change the widget setting( unless remove the application). Can anyone help me on this? Or give me some advice. Shall I modify the android source code to achieve the target?
View 2 Replies
View Related
Jul 21, 2010
Thought it would be cool for people to post up "screenshots" of how their Android phone is setup ( Like Main screen(s) ). I will be rooting my phone soon, so I will post up my pictures in a day or 2. Just kind of like to see how other people arrange their apps, etc.
View 2 Replies
View Related
Apr 23, 2010
I'm writing an android application which listens the phone calling events. What I want to do is, if there is a call incomes or outgoes, an activity shows with my customized info.I want to this screen keeps showing during the calling period. However, if a call is coming, the system UI which shows the contact always appears on top of my activity.I've found some apps already realized this function, but mine can't.
View 1 Replies
View Related
Jun 20, 2010
My question is kinda strange: is there a way to show incoming calls and SMS on my computer screen while my HTC Legend is connected to it by USB?
When I'm the university library I've to put the cellphone in silent mode and often I end up loosing calls&SMS while I'm working on my laptop.
So it would be very nice if there was a way to notify me with incoming calls (maybe on windows 7 task bar) while my cellphone is connected to the pc via USB.
Does anyone know a way to achieve this?
View 2 Replies
View Related
Mar 5, 2010
I know the code below opens the native Edit/Add contact screen
CODE:.........
Now i want this screen to be populated with some data in fields like name, phone number, address etc. I found that if i do something like newIntent.putExtra(ContactsContract.Intents.Insert.NAME, "Some Name"); will show this screen with name "Some Name" being shown in the name field this is fine for me now i dont understand how will i fill the city, state and zip fields similarly.
I found the ContactsContract.Intents.Insert has a POSTAL attribute for address but there are no specific attributes for city, state and zip in ContactsContract.Intents.Insert.
Also i found that ContactsContract.CommonDataKinds.StructuredPostal has the city, state and zip attributes but still i dont know how can i use this to prepopulate the Edit/Add contact screen with values of city, state and zip.
View 2 Replies
View Related
Mar 9, 2010
I know the code below opens the native Edit/Add contact screen
Intent newIntent = new Intent(Intent.ACTION_INSERT,
ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(newIntent, 1);
now i want this screen to be populated with some data in fields like name, phone number, address etc. I found that if i do something like newIntent.putExtra(ContactsContract.Intents.Insert .NAME, "Some Name"); will show this screen with name "Some Name" being shown in the name field this is fine for me now i dont understand how will i fill the city, state and zip fields similarly. I found the ContactsContract.Intents.Insert has a POSTAL attribute for address but there are no specific attributes for city, state and zip in ContactsContract.Intents.Insert. Also i found that ContactsContract.CommonDataKinds.StructuredPostal has the city, state and zip attributes but still i dont know how can i use this to prepopulate the Edit/Add contact screen with values of city, state and zip.
View 2 Replies
View Related
Sep 22, 2010
I want to show the direction on the screen that phone is facing.
For example:
0
|- []
|_
South --- North
In the above diagram the phone would display "North". Since the user (the stick with 0 for his head) is holding out the phone (the [] in the diagram) pointing north.
I found this example. I understand what it's doing except it seems to calculate yaw, pitch, roll, and inclination. What are those and how would I use them to simply find which way the phone is pointing?
Also this android documentation mentions X, Y, and Z axises but I don't see anywhere that says how those axises correspond to the phone? Is Z going from the bottom of the phone to the top?
View 1 Replies
View Related
Nov 22, 2010
Is it possible to display the log messages (which I print using android.util.Log) on screen in an Android application?
Or is there any other better method to just output lines on the screen? Something like System.out.println?
View 3 Replies
View Related
Jul 28, 2009
How can i access the Home screen .....i need to show the gif animation there how can i show that gif image there how can i do it .....
View 8 Replies
View Related
Nov 16, 2010
How to show the soft input keyboard while a activity opens. In Normal case a keyboard pops up when we tap inside the edit text but i want to open it automatically when that screen loads.
Here is the xml layout file
And here is the main.xml layout file
CODE:.....................
View 1 Replies
View Related
Apr 12, 2010
I've been block by this question for about a week. I tried to implement a simple application: show a image, when user touch on screen, I want to create a GLSurfaceView to cover the previous image. Then show some 3D effects on this GLSurfaceView.
The logic is quite simple. But I have a serious problem. When GLSurfaceView comes out, the whole screen become black, after 1-2 seconds, the GLSurfaceView with texture shows up. Is there any way to make this smoothly? The 1-2 second black screen is really a bad user experience.
View 5 Replies
View Related
May 29, 2010
I have an Android TextView where the view itself is limited to four lines.If the text exceeds this limit I want the end of the view to end with something like.<-- to notify that there is more text here so you can click and open in full screen for example.Not just suddenly stop in the middle of a sentence. Is there a quick fix for this?
View 1 Replies
View Related
Jun 6, 2010
what are the new things in android 2.1?
View 7 Replies
View Related
Feb 9, 2010
I want to show a menu similar in look and feel to the sub-menus. I want the menu to come up when we tap on the screen. Is it possible to have sub-menus displayed without creating the main options menu? I do not want to use context menus for this.
View 3 Replies
View Related
Mar 20, 2009
I have a background service component which is reacting to changes in network connectivity. I would like to alert the user that a a connectivity change event has occurred by popping up a Toast View on the device screen. Is this possible ? Can it be done even though a Service component does not have a UI associated with it ?
View 3 Replies
View Related
Mar 15, 2010
WARN/WindowManager(61): No focus window, dropping: KeyEvent{action=0 code=82 repeat=0 meta=0 scancode=229 mFlags=8}
View 2 Replies
View Related
Jun 17, 2010
I just got my Ally today, and I when I receive a text message I would love to have it show up automatically on my screen. As it is now, when I get a text or email it just makes a faint sound and the screen doesn't even light up. Is there a setting or app I can use to have my texts automatically preview on the screen?
View 1 Replies
View Related
Aug 30, 2010
I am trying to make an application which will triggered by SMS, and show in front of the standby screen. My application will only use a small portion of the full screen, and the background is the android standby screen. I have searched some android examples but those application will always fill full of the screen, can anyone give me some guideline on how to make an such application?
View 3 Replies
View Related
Jul 30, 2010
I am having issue while showing a WebView in an activity in the middle of the screen. I have an activity and I want to show a webview in the center of screen. My activity is transparent so background activity will be visible. Whenever I try to create a webview and add it to activity using setContentView(webview) it always shows the view on the top left corner of the screen. Is their a way to workaround this?I am trying to do this via pure code only.
Here is my code.
CODE:....................
View 1 Replies
View Related
Jan 26, 2013
I have setup Eclipse classics, download all the APis using the application managers, etc. The AVD only shows a blank screen with "android" text at the center. I even tried download a tic tac toe program. The AVD shows the same result.
For the AVD device, I've selected, I went about as this:
1) click on the "new" button in Eclipse-> Android Virtual Device Manager
2) I entered AVD Name, choose Nexus 7 as device.
3) The Target is Google APIs, Google API 11
4) The rest of the options are default.
Upon launch, the title shows 5554:myavd with android text in the middle.
I have tried other AVD like Nexus One and target to be Android 4.2, but it showed same result.
There is errors on the android emulator dialog.
It says could not
Failed to create Context 0x3005
and could not get wglGetExtionsStringARB
View 2 Replies
View Related
Jul 5, 2010
So now that it's out and taking up 22 megs on my phone. What things use it?
View 4 Replies
View Related
Mar 18, 2010
I'm trying to show a ScrollView with a button anchored to bottom of screen. This is coded programmatically (without using XML layout for now). The trouble is when the ScrollView has many items (requiring scrolling), it prevents the button at the bottom from showing. The bottom button is sort of pushed off the screen. Look at the code below. I have a TODO which mentions a workaround to specify the exact pixel height of the ScrollView, but this is not a good solution. If you change the for loop to add only 2 buttons, then the bottom button will show. So how do I make the ScrollView show a scrolling list, with the bottom button in view, and without specifying an exact size of the ScrollView? I've seen some discussions here:
http://groups.google.com/group/android-developers/browse_thread/threa http: //groups. google.com /group/ android-developers/browse_thread/threa But I don't know how to apply these to my situation.package com.test.ScrollViewTest; import android.app.Activity; import android.os.Bundle; import android. view. Gravity ; import android.view. ViewGroup. MarginLayoutParams; import android.widget.Button; import android. widget.ImageView; import android .widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.ScrollView; import android.widget.TextView; public class MyScrollViewTest extends Activity @Override public void onCreate(Bundle savedInstanceState) super. onCreate (savedInstanceState); LinearLayout ll = new LinearLayout(this); // the main layout of the screen ll.setOrientation (LinearLayout.VERTICAL); TextView tv1 = new TextView(this); tv1.setText("First line of text"); TextView tv2 = new TextView(this); tv2.setText("Second line of text"); ll.addView(tv1); ll.addView(tv2); ScrollView sv = new ScrollView(this);// You can only add one child (usually a layout) to a scrollview, // otherwise you get exception: "ScrollView can host only one direct child" LinearLayout ll2 = new LinearLayout(this); ll2.setOrientation(LinearLayout.VERTICAL); * TODO: PROBLEM HERE: You cannot use WRAP_CONTENT for height, because * the layout below the scrollView will not show (it's sort of pushed * off the screen - even if a margin is specified). * An alternate value of 300 works OK (remove the bottom margin too).* But this is only suitable for screen size 320x480 in portrait mode.LinearLayout.LayoutParams params Linear = new LinearLayout.LayoutParams( LinearLayout. Layout Params.FILL_PARENT, Linear Layout.LayoutParams.WRAP_CONTENT /*300*/); Add 50 pixel margin to bottom of scrollview (this margin doesn't scroll) paramsLinear.bottomMargin = 50;sv.addView(ll2); // Add some stuff to scrollView to test its depth // (it should leave a margin at bottom of screen) for (int i = 1; i < 10; i++) { TextView textView = new TextView(this) ;textView.setText ("Text View " + i); linearLayout.LayoutParams p = new LinearLayout .LayoutParams (Linear Layout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
ll2.addView (textView, p); button buttonView = new Button(this); buttonView. setText ("Button " + i);ll2.addView(buttonView, p); ll.addView(sv, paramsLinear); RelativeLayout rl = new RelativeLayout(this); RelativeLayout.LayoutParams paramsRelative = new lative Layout. LayoutParams( RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout .Layout Params .WRAP_CONTENT); // Make the button anchored to the bottom of the screen.// But this doesn't work when the ScrollView has a scrolling list of items. Why? params Relative .addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); rl.setLayout Params (params Relative) ;
View 5 Replies
View Related
Aug 13, 2010
It seems when screen orientation changes, the activity's onCreate() method is called. In my onCreate() method, I have an AlertDialog which pops up when the activity is called. The problem is when I switch the screen sideways, the popup is displayed again. How can I avoid this?
View 1 Replies
View Related
Jul 21, 2009
Is it possible to do an application should download the mail from the mail server and should show on our mobile screen exacltly like outlook etc., applications on pc's if it possible how to do that guide me plz any application examples like that is there means give me the refference of that app.
View 6 Replies
View Related
Feb 20, 2009
Can Webview tell me that I didn't get a HTTP 200 OK HTTP response code? I really don't want to display the Android Web Page Not Available screen inside my app.
View 3 Replies
View Related