Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8311781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:55:26+00:00 2026-06-08T19:55:26+00:00

I am trying make a request and get response from server. Here is my

  • 0

I am trying make a request and get response from server. Here is my HttpGet request.

public static String getAddress() throws Exception {
        final HttpGet get = new HttpGet("192.168.1.4:3000/api/1.0/geo/address/lookup");
    }

My server side is written by ruby on rails.

routes.rb

map.with_options(:controller => "geo") do |geo|
    geo.geo_lookup_address "/api/1.0/geo/address/lookup", :action => "lookup_address"

my controller is

class GeoController < ApiController
def lookup_address
      puts "lookup"
  end
end

my html is lookup_address.html.erb

<h1>GEO</h1>

When I type the address in browser(192.168.1.4:3000/api/1.0/geo/address/lookup) I see the result GEO, but when I use that in android application it doesn’t work I check and I have an exception on HttpGet request, but the problem is I can’t find out what’s execption exactly is.
is there any solution here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:55:28+00:00Added an answer on June 8, 2026 at 7:55 pm

    Have you tried?

    "http://192.168.1.4:3000/api/1.0/geo/address/lookup"
    

    As I see in your question You missed http:// in your URL in HttpGet..

    Also don’t forget to add permission in your Application’s Manifest file,

    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a https get request from behind a squid proxy with
hi i'm trying to make a soap request but i don't get any response.
I'm trying to make an SNMP v3 get request from a simply c program
I am trying to make an ajax GET request to a WCF web service
I am trying to make an async get request using ExecuteAsync<T> , but it
I'm trying to make this request to the RunKeeper API : GET /user HTTP/1.1
I'm trying to make an ajax request recursively upon each success response that is
I'm trying to make an HTTP Get request using JQuery, but I get an
So, I'm trying to make cross-site AJAX request from my own script to the
I am trying to make an HttpWebRequest from an ASP.Net page on a server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.