Quantcast








     

Disabling a linearLayout

stackoverflow.com - 2012-06-09 08:10:27 - Similar - Report/Block

In my application , I am dynamically generating two linearlayouts and adding them to ScrollView. Each LinearLayout has a Button and an Edit Text, I want that when the Button of the second LinearLayout is clicked , the 1st Linearlayout gets disabled . Code: package com.integrated.mpr; import android.app.Activity; import android.app.Dialog;...

need help, got confuse with AsyncTask

stackoverflow.com - 2013-06-10 06:18:18 - Similar - Report/Block

I'm new in android and i need to make AsyncTask, so my application can work on ICS. But after I read tutorials i still got confuse. Anyone, please help me to fix my code, i don't know what and where i must put in AsyncTask with my code like this. thank you Login.java package com.karismaelearning; import java.io.BufferedReader; import java...

how can in get facebook user likes , in the following code i didn't getting the result can you help me what should i change the folllowing code? [closed]

stackoverflow.com - 2013-04-21 01:38:44 - Similar - Report/Block

basically i am making a app for facebook users so can you tell me how to get the user likes from facebook in android. if you know then write the code here.i want to fetch the facebook user likes and then the individual username and phone no and catagory of likes. of anyone who know the code of it then help me.and if you know then tell me...

Can't add WebViewFragment derived class to FragmentTransaction

stackoverflow.com - 2012-03-03 09:45:13 - Similar - Report/Block

I am using ActionBarSherlock and implementing a tabbed app. Each tab represents a Fragment that contains nothing but a WebView. I've got it implemented with my object derived from Fragment. But when I changed it to WebViewFragment, I can no longer add it to the FragmentTransaction. I'm wondering if I importing the right things? Here'...

Get the lat and lang from the Geo coding API?

stackoverflow.com - 2012-05-01 15:22:57 - Similar - Report/Block

I want to get the latitude and longitude positions from the Geo Coding API. I wrote the following code for that. package com.appulento.mapsexample.pack; import android.graphics.Point; import android.location.Address; import android.location.Geocoder; import android.location.Location; import android.location.LocationListener; import androi...

Android Gesture onFling not working

stackoverflow.com - 2012-05-03 03:28:27 - Similar - Report/Block

I had my onFling gesture code working perfectly. Then I've added some if statements to the method and make some minor other adjustments in the Activity code. Plus wrote a couple new methods in a different class PassGen. As well as some code re-ordering. Nothing I added interfaces with gestures other than being called by them, but now the...

Android : how to create a button over Bitmap dynamically?

stackoverflow.com - 2012-03-27 07:18:23 - Similar - Report/Block

I am trying to create a BUTTON over BITMAP. I am creating digital signature here. after signature i need to save for that i need a button. please anyone help me out. Its very urgent. Thank you Here my code import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Bitmap.Config;...

is their any way to read pdf from asset folder without copying the pdf to sdcard?

stackoverflow.com - 2013-02-26 07:59:31 - Similar - Report/Block

i am using this code .it works fine when i keep this pdf file in sdcard manually. Is their any way to read this pdf file directly from asset folder.And user dnt have to put this pdf in sdcard. Thanks in advance. package com.example.pdf; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.Inpu...

Unable to start activity ComponentInfo?

stackoverflow.com - 2012-04-19 17:20:05 - Similar - Report/Block

I am using the code below and I am trying to add a button to turn off wifi but I am getting the error java.lang.RuntimeException: Unable to start activity ComponentInfo Any Ideas? Does the button code need to be placed somewhere else? Thanks! import java.util.List; import android.app.Activity; import android.os.Bundle; import android.cont...

android listFragment crashing

stackoverflow.com - 2012-05-31 13:33:13 - Similar - Report/Block

i have a ListFragment in a tabHost based app with only linearLayouts with "extends Fragment" on my tabs it works fine , but I need to place a ListFragment on one of my tabs, so the app crashes when i touch the tab with the ListFragment, ;( here the code for the "tab_fragment" package com.orchard.elasto; import java.util.ArrayList; import...

Using seekbar in android

stackoverflow.com - 2012-07-07 17:42:41 - Similar - Report/Block

I am making an android application where i got a seekbar for some music. I got the seekbar to show the music playing status, where i currently am in the music playback. But how can i setup a listener so that i can say that the mediaplayer would play a specific place on a track? I know the code for setting the play time in mediaplayer, but...

Saving video file to sd card

stackoverflow.com - 2012-03-30 08:00:37 - Similar - Report/Block

My goal is to record a video using the native api and storing the video in a folder titled "MyVideos" in the SDCard. However, once the recording is done, a video of size 0kb is stored. Moreover, the folder does not appear in the gallery view. This code works fine when I try to do the same thing with pictures, but fails in case of videos.

evolveStar Join

Google android mapview lat long to topixel projection issue

stackoverflow.com - 2012-03-28 21:11:38 - Similar - Report/Block

I am getting different x,y value for a specific lat,long. I wonder why it is happening. May be I lack knowledge. So, if you anyone can explain by observing the following code snippet then it would be a great help. import java.util.List; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.

Android: Datepicker dialog - TimePickerDialog.OnTimeSetListener

stackoverflow.com - 2013-05-14 10:51:23 - Similar - Report/Block

I am newbie in Android, here I am again with another "simple" question. I hope you can help me. I just want a button that displays a TimePicker in a dialog. When I set the time in timepicker I would like to get selected time. I am using android support library and ActionbarSherlock. Here is my code: AddPeriod.java import android.app.Alert...

Cannot play a mp3 file from a url with htts protocol in android

stackoverflow.com - 2013-03-18 14:21:18 - Similar - Report/Block

I am play a mp3 file from url containing a https protocol extention , I get a mediaplayer failed to prepare exception but when i use a http protocol the code runs fine import com.erkutaras.media.audio.url.R; import android.app.Activity; import android.media.MediaPlayer; import android.media.MediaPlayer.OnBufferingUpd ateListener; impo...

Clearing SurfaceView in android

stackoverflow.com - 2011-05-21 03:12:05 - Similar - Report/Block

how to clear the surfaceView in android? I have a class like this - class DrawingPanel extends SurfaceView implements SurfaceHolder.Callback { can any one tell as to which method shud i call to clear my custom drawingPanel This is my class - package com.applenty.LearnToCount; import java.util.ArrayList; import android.app.Activity; import...

How to implement different click events for child of expandable list?

stackoverflow.com - 2011-02-17 08:12:01 - Similar - Report/Block

In my expandable list view I have a textView and an imagebutton . When I click on the textView or child view of expandable list, it should show an alertbox . I can achieve this by using onChildClick but I have an imagebutton inside the child view after textView . When I click on this, it should perform another activity. I don't know h...

Android WebView File Upload

stackoverflow.com - 2012-07-30 17:03:03 - Similar - Report/Block

I am developing an Android app. Basically it is a WebView and a progressBar. Facebook's mobile site (m.facebook.com) is loaded into the WebView When I click on the Choose File button to upload an image, nothing happens. I have tried ALL of the solutions and none of them work. I am testing on a Galaxy Note (GT-N7000) running 4.0.3. My min...

Unable to login to ejabberd server using XMPP client in Android

stackoverflow.com - 2013-03-24 09:20:18 - Similar - Report/Block

I am trying to connect & login to ejabberd server using a XMPP client in Android. The XMPP client connects to the server but doesn't logs in. I am getting Exception message as No response from the server . I don't know where is the problem. Following is the code: XMPP Client.java package org.apache.android.xmpp; import android.app.Activit...

Simplify my ListView (with Intent, setOnItemClick etc)

stackoverflow.com - 2012-07-08 02:16:07 - Similar - Report/Block

I write a activity with a ListView. Now I want to know, is it possible to simplify my code (make it shorter). An example is under the codeblock package de.bodprod.dkr; import java.util.ArrayList; import java.util.HashMap; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.os.Bund...

Zxing when qr code is scanned it reverts to menu

stackoverflow.com - 2012-03-04 16:52:40 - Similar - Report/Block

I have the zxing library imported into my project and the scanner works like a charm but when i scan a qr code it says Qr code found and goes back to the menu i had set up is there any way to show the result and set it to open the url package com.Qrgolf.App; import java.util.regex.Pattern; import com.google.zxing.Result; import android.a...

how to import and edit C++ code in android using ndk?

stackoverflow.com - 2012-03-22 14:04:47 - Similar - Report/Block

I have run and compiled an existing c++ code of cocos2d-x on android emulator using eclipse and NDK (CDT and Sequoyah are installed)(c++ code edited outside the eclipse). but, not able to edit c++ code or debug during runtime. If I open a c++ (main.cpp) file, the project gets contaminated with errors. main.cpp is a file having java as wel...

Code before setContentView trouble

stackoverflow.com - 2012-04-14 13:50:39 - Similar - Report/Block

My question is if it is possible to write code before setContentView(R.layout.main) in the onCreate method of the main activity. For instance, below i try to run the setVariables(); before setContentView but this causes my application to crash. Every time i put setVariables after setContentview it all works fine. Why is this? please find...

How do I load different activities with this menuitem

stackoverflow.com - 2013-03-19 02:46:37 - Similar - Report/Block

I'm attempting to load different activites with this MenuItem when I click the menuitem (specifically - help) the correct activity User1Tap.class does not load (it brings me to the AddEditCountry.class instead) import android.os.AsyncTask; import android.os.Bundle; import android.app.AlertDialog; import android.app.ListActivity; import an...

Preferences & CheckBoxes

stackoverflow.com - 2012-02-26 20:46:15 - Similar - Report/Block

I'm currently coding my LogIn class, which is where it gets the users' log info and submits it to the serve to be checked and if correct puts an intent to another class and if not it displays a toast, also, I'm going to put in a progress bar. Anyway, I have a checkbox that says "Stay Signed In" I would like to know how I could set up a pr...

Creating new SoapObject Blows up android app

stackoverflow.com - 2012-04-26 00:09:02 - Similar - Report/Block

I'm new to ksoap2 and I'm trying to get example w3 schools example working. For some reason it always fails on this line. SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME); I dont know what is causing the fail. The android app just blows up. I have set internet permisions in Manifest. Im not really sure what is going on. Thanks...

Android using jaudiotagger

stackoverflow.com - 2012-02-22 21:14:31 - Similar - Report/Block

I try to use jaudiotagger like this but it crashes Main app.java : import java.io.File; import java.io.IOException; import org.jaudiotagger.audio.AudioFile; import org.jaudiotagger.audio.AudioFileIO; import org.jaudiotagger.audio.AudioHeader; import org.jaudiotagger.audio.exceptions.Cannot ReadException; import org.jaudiotagger.aud...

Internet on android, causing twitter4j exception?

stackoverflow.com - 2010-07-05 17:51:43 - Similar - Report/Block

I'm experimenting with twitter4j on android (new to both) coded up a simple process in java just to test it out. It downloads a users timeline and prints to screen. I modify the code for android, but I get a TwitterException when i try to download the user timeline. I checked out the debugger and the exception is null; no information give...

Enlarge images in grid view - Android development

stackoverflow.com - 2012-07-20 01:39:05 - Similar - Report/Block

I'm just getting into Android development and have been following Google's HelloGridView tutorial (http://developer.android.com/guide/topi cs/ui/layout/gridview.html). I've understood the tutorial and wanted to add an additional function to enlarge a picture of whatever grid is clicked. The code below shows what I've tried so far and I thi...

open HTML content in android tablet in web view

stackoverflow.com - 2012-03-28 08:32:06 - Similar - Report/Block

i want to open HTML page in my web view using loadURL() method ..its Home page is opening now only and other link on click of button is not working..while when i open it my Browser its working fine so pls suggest me what strategy should i follow..is it possible in android tabs as it is opening in IPad ..my code is below pls refer.. pa

initial state drawable list selector not working

stackoverflow.com - 2013-02-27 13:38:33 - Similar - Report/Block

This is my code for the list view: This is the list selector: My goal is to add a background to the list items: initial (no click happened and no focus) -> a grey background. When pressed -> blue background. When released -> grey background. But the initial background is not showing up. The grey background does not show up when opening...

Force close error on application to get light sensor value

stackoverflow.com - 2013-03-21 18:35:59 - Similar - Report/Block

The following code gives no compilation errors. But when i build and run it on my Sony Ericsson Xperia play, it force closes. Is it due to any any hardware related problems? Anyone help me please. package com.exercise.androidlightsensor; import android.app.Activity; import android.content.Context; import android.hardware.Sensor; import...

Android WebView back button causes force close

stackoverflow.com - 2012-08-03 22:53:36 - Similar - Report/Block

Here is my program code. I am new to Android and Java so it may seem messy. When I press the back button after adding in this code i get a Force Close. package com.alexriggs.android.gansterstreetwars; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.KeyEvent...

My Android ListFragment isn't displaying the list

stackoverflow.com - 2013-04-11 22:09:34 - Similar - Report/Block

The following ListFragment doesn't display anything other than a blank screen. I know the data are present. I'm not getting errors, just a blank (white) screen. I'm sure it's something silly. I'm fairly new to Android. package com.pbs.deliverytrack1; import com.pbs.deliverytrack1.DBContract; import com.pbs.deliverytrack1.DBHelper; import...

Android in Eclipse - AsyncTask upon Button click initiates FileWriter

stackoverflow.com - 2012-03-15 17:54:31 - Similar - Report/Block

Eric Nordvik has been helping me with this issue for some time now so big props to him. This question has sort of evolved into an AsyncTask question so I figured I'd move it here. When my print button (btnPrintTardy) is click I was to start an AsyncTask to save whatever is in the edit text field (editText1) via FileWriter to the SD card...

android- requestLocationUpdates() working in ICS but not in android 2.2

stackoverflow.com - 2013-01-17 05:33:30 - Similar - Report/Block

When running the application in android 2.2 the GPS is searching for location but doesn't show any location. This application is working perfectly in ICS version. What will be the reason? Thanks in advance. This is the complete code :- package com.example.gps; import android.app.Activity; import android.location.Criteria; import android.l...

Issues with creating new Android MainActivity

stackoverflow.com - 2013-03-11 12:38:31 - Similar - Report/Block

I'm new to Android programming and am attempting to create a new Main Activity for my app (taken from the Android tutorial website). My original Main Activity is called "MainActivity". The new activity I want to be my Main Activity is called "Homepage" and it should contain a button that produces "MainActivity" upon clicking. I'm unsure w...

Resuming Android Activity

stackoverflow.com - 2012-07-24 06:28:14 - Similar - Report/Block

I have a simple application, where I created a SurfaceView class, then in the main activity, I created an object of the class, then added this SurfaceView to a relative layout, and set the content view to the relative layout. package com.my.game; import com.google.ads.Ad; import com.google.ads.AdListener; import com.google.ads.AdRequest;...

Run time Error in android application

stackoverflow.com - 2011-10-29 13:55:34 - Similar - Report/Block

While running the android application, I got the following error, 10-29 17:02:12.454: ERROR/AndroidRuntime(253): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dummies.android.silent modetoggle/com.dummies.android.silentmod etoggle.SilentModeToggleActivity}: java.lang.NullPointerException How can I solve it? Please h...

Google map sous android

developpez.net - 2013-04-24 12:53:34 - Similar - Report/Block

Bonjour a tous, S'il vous plait je dois intégré une map dans mon projet je ne sais pas pourquoi ça ne marche pas, j'ai suivi pleins de tutos mais toujours dans résultat voila mon activity principal Main.java: Code: package com.formation.gmaps; import java.util.ArrayList; import java.util.List; import android.content.Context; import androi...




dialogShowMessage!

Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.


Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !


evolveStar.com provides a search engine that allows you to gather information to write their own blog.


evolveStar.com enhances the sources displaying the logo of the site.


If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com


Specifies the subject copyright violation and the url of the page


evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.


Next will be effectual and relevant checks.







Who We Are Partner Advertising Contacts Privacy terms Help & FAQ

© Copyright 2010-2017 Fabrizio Fichera. All rights reserved.