AlarmManager not working

AlarmManager not working

I need to start the activity AlarmReceiver after 10 seconds (for example). I need it to be activated without running the app. But whether the app runs or not the AlarmReceiver do not get called. Any suggestions?Intent intent = new Intent(t

how to set up an inline svg with webpack

how to set up an inline svg with webpack

I am wondering how to set up an inline svg with webpack? I am following the react-webpack-cookbook. I have my webpack.config set up correctly with the file loader. However the example shows using a background image like this: .icon { back

How can I get the results from an AlertDialog?

How can I get the results from an AlertDialog?

I am using an AlertDialog.Builder to display a dialog to prompt the user to enter a password, I then want to save that password in a preference, however I can't figure out how to get the result from the alert dialog's input method.Here is e

Rendering a python dict in Jinja2 / Werkzeug

Rendering a python dict in Jinja2 / Werkzeug

I'm playing with a url shortener (basing it on the Shortly demo app from Werkzeug).I have a dict like this - ('1', {'target': 'http://10.58.48.103:5000/', 'clicks': '1'}) ('3', {'target': 'http://slash.org', 'clicks': '4'})

Android sms notification

Android sms notification

i want to remove notification when SMS comes in general inbox. is it possible... if yes then how... i got many site where is metion this is not possible through code... 1:Below is proper working code for this AndroidManifest.xml registe

Blackberry: Emoticons in Chat Application

Blackberry: Emoticons in Chat Application

I want to make a chat application where the emoticons are necessary. I was trying to write my own TextBox to handle some unicode caracters and replace them with smiles and emoticons, but that was a hard work to do and I encountered many pro

How to Filter ListView through EditText

How to Filter ListView through EditText

Im making an eBook like application for android and i want to filter the title of the book but everytime that you put a word or sentence in the edittext it will search the content of the books... can someone help me with this... 1:try t

Using Processing on a server to create images behind the scenes

Using Processing on a server to create images behind the scenes

The way I see most people use Processing is for drawing an image directly onto a screen or webpage on the client side.How would one use Processing to create an image without a visual canvas, then save this image to a file?Here are the speci

Launch popup window from service

Launch popup window from service

I need to launch a popup window from a service to do something specific inside my application. I do not seem to find a good way to do it. Inside onCreate() I create the popup window but when I launch it with showAtLocation I get this error:

How to dispatch an event with added data - AS3

How to dispatch an event with added data - AS3

Can any one give me a simple example on how to dispatch an event in actionscript3 with an object attached to it, like dispatchEvent( new Event(GOT_RESULT,result));Here result is an object that I want to pass along with the event. 1:In ca

Use array adapter with more views in row in listview

Use array adapter with more views in row in listview

I have stumbled upon a problem I can't quite get my head around, so I was hoping perhaps someone here have had the same problem or knew a good way of solving the problem. I have created a view containing a ListView. This ListView contains t

How to Make my Android App FullScreen via Android Manifest?

How to Make my Android App FullScreen via Android Manifest?

How do I do this? Any suggestions? BTW I am using SDK with AIDE. 1:Go into the manifest and use a full screen theme. 2:This code makes the current Activity Full-Screen. No Status-Bar or anything except the Activity-Window! public

Event when sim card is changed

Event when sim card is changed

How to access event when sim card is changed in mobile? 1:Basically, the answer to this question "How to monitor SIM state change" is the correct answer to your question as well. So you create a new classpackage a.b.c;import android.cont

How do I get the OnClickListener working on a custom view with a RelativeLayout?

How do I get the OnClickListener working on a custom view with a RelativeLayout?

QuestionHello,i have built a custom view with a RelativeLayout to use it as custom image button.So far, selecting it works (PIC2) and even when I click it (using GoogleTV Remote), the view successfully changes it's state to PIC3 (thanks to

Android: Change the background color of a ClickableSpan when clicked

Android: Change the background color of a ClickableSpan when clicked

I have a SpannableString with a ClickableSpan as followsfor (int i = 0; i what I want to do is to change the foreground color of the span when clicked.how can I do this ? 1:I extended the clickableSpan class and passed it a flag that let

How to call a specific parent constructor from anonymous inner class?

How to call a specific parent constructor from anonymous inner class?

Ok, So I know that an anonymous inner class is either implicitly extending a parent class or implementing an interface, and therefore a constructor of the superclass will need to be called. However, I'm not sure how to create a constructor

How to correctly filter Package replaced broadcast

How to correctly filter Package replaced broadcast

I am trying to catch the package replaced broadcast for my app and only my app, but for some reason in my reciever I am the broadcast for every app that is updated. I thought you only needed to set the intent filter in the manifest file to

Can I iterate through a NodeList using for-each in Java?

Can I iterate through a NodeList using for-each in Java?

I want to iterate through a NodeList using a for-each loop in Java. I have it working with a for loop and a do-while loop but not for-each.NodeList nList = dom.getElementsByTagName("year");do { Element ele = (Element) nList.item(i); l

Get Latitude and longitude of marker in google maps

Get Latitude and longitude of marker in google maps

I'm using the following code to create a map and attach a marker to it. I'm also adding a marker listener where I need to get the longitude and latitude of the marker position after dragging.What it does is returnning my current location no

2D Array grid on drawing canvas

2D Array grid on drawing canvas

I am writing an pixel art app that paints images the user draws on the screen to pixel look. There are two ways to approach it. Either pixelate the image after saving or have a grid before hand so the user draws the pixel image. I don't fin

How do I set a background image on the WebView on Cordova/PhoneGap for Android?

How do I set a background image on the WebView on Cordova/PhoneGap for Android?

I'm not just looking for the Splash Screen functionality in the API; if possible, I would like the HTML content to use a transparent background, and lean on the WebView to supply the background image. Is such a thing possible?Barring that,

Mapping multi-Level inheritance in Hibernate with Annotations

Mapping multi-Level inheritance in Hibernate with Annotations

Take the situation listed in this question:Mapping multi-Level inheritance in HibernateHow would this mapping be done with Annotations rather than an hbm file? 1:What specifically are you having trouble with? Mapping class hierarchy via

android receive and send data through wifi connection to hardware

android receive and send data through wifi connection to hardware

Actually I want to send data from a hardware piece to an android device.The hardware device is connected to local wireless router which is connected to modem.Android device will also connected to same router through WI-FI.Can you please sug

WIFI_STATE_CHANGED_ACTION intent not received upon connection to WiFi access point?

WIFI_STATE_CHANGED_ACTION intent not received upon connection to WiFi access point?

Part of my app's functionality is to scan and display a list of WiFi access points, and then connect to the one chosen by the user. I have this functionality working. Now, I also wish to be notified when the connection "goes through". This

Android How do i overwrite the filter for my ArrayAdapter?

Android How do i overwrite the filter for my ArrayAdapter?

Hey guys my first post here... Im trying to write a custom filter to filter the arraylist in my arrayadapter such that my listview is filtered when i click on the button.For instance when i click on my buttonpublic void onClick(View arg0) {